/* --- 1. CORE VARIABLES & RESET --- */
:root {
    --c-bg: #f8f9fa;
    --c-surface: #ffffff;
    --c-surface-alt: #f1f1f1;
    --c-text-primary: #111111;
    --c-text-secondary: #666666;
    --c-accent: #cc0000;
    --c-accent-hover: #a30000;
	
  /* Blau */
  --c-blue: #0056b3;
  --c-blue-hover: #004494;
  /* Grün */
  --c-green: #28a745;
  --c-green-hover: #218838;	
    /* Lila */
  --c-purple: #6f42c1;
  --c-purple-hover: #5a32a3;
  /* Rosa */
  --c-pink: #d63384;
  --c-pink-hover: #b82a6f;
  
    --c-border: #e0e0e0;
    --c-success: #2a9d8f;
    --c-dark: #0f0f0f;
    --font-main: arial, verdana, sans-serif;
    --font-display: arial, verdana, sans-serif;
    --container-w: 1320px;
    --header-h: 80px;
    --radius-sm: 4px;
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    font-family: var(--font-main);
    background-color: var(--c-bg);
    color: var(--c-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; width: 100%; }

a { text-decoration: none; color: inherit; transition: 0.2s; cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; object-fit: cover; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }

/* --- UTILITY CLASSES --- */
.container { max-width: var(--container-w); margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 1rem; }
.gap-4 { gap: 2rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-display { font-family: arial, verdana, sans-serif; }
.uppercase { text-transform: uppercase; letter-spacing: 1px; }
.text-sm { font-size: 0.875rem; color: var(--c-text-secondary); }
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.w-full { width: 100%; }
.mt-4 { margin-top: 4rem; }
.mb-2 { margin-bottom: 1rem; }
.relative { position: relative; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

#logo { background-image: url('AHLogoT500w.gif'); max-height: 60px; height: 60px; width: 200px;  background-size: contain; background-repeat: no-repeat; background-position: center; }

@media (max-width: 1024px) {
  #logo { max-height: 45px; height: 45px; width: 150px; }
}

/* --- UI COMPONENTS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; font-weight: 700; font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.3s ease; border-radius: 2px;
    font-family: arial, verdana, sans-serif;
    position: relative; overflow: hidden;
    white-space: nowrap;
}
.btn::after {
    content:''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn:hover::after { left: 100%; }
.btn-primary { background: var(--c-accent); color: white; }
.btn-primary:hover { background: var(--c-accent-hover); box-shadow: 0 4px 20px rgba(204, 0, 0, 0.4); }
.btn-white { background: white; color: var(--c-text-primary); border: 1px solid white; }
.btn-white:hover { background: #f0f0f0; color: black; }
.btn-outline { border: 2px solid var(--c-border); background: transparent; color: var(--c-text-primary); }
.btn-outline:hover { border-color: var(--c-text-primary); background: var(--c-text-primary); color: white; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.btn-full { width: 100%; }

.fav-btn {
    position: absolute; top: 10px; right: 10px;
    background: white; border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 5; color: #ccc;
}
.fav-btn:hover { transform: scale(1.1); color: var(--c-accent); }
.fav-btn.active { color: var(--c-accent); fill: var(--c-accent); }
.fav-btn svg { width: 18px; height: 18px; fill: currentColor; }

.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.form-control, select.form-control {
    width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    font-size: 1rem; background: white; transition: border 0.2s; appearance: none;
}
.form-control:focus { border-color: var(--c-text-primary); }

.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; }
.pagination span { font-size: 0.9rem; font-weight: 600; color: var(--c-text-secondary); }

/* Modal */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.modal-content {
    background: white; width: 90%; max-width: 500px;
    border-radius: var(--radius-sm); padding: 2.5rem;
    position: relative; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.close-modal { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; cursor: pointer; transition: 0.2s; }
.close-modal:hover { color: var(--c-accent); }
.tabs { display: flex; border-bottom: 1px solid var(--c-border); margin-bottom: 1.5rem; }
.tab { padding: 0.8rem 1.5rem; cursor: pointer; font-weight: 600; border-bottom: 3px solid transparent; transition: 0.3s; }
.tab.active { border-bottom-color: var(--c-accent); color: var(--c-accent); }

/* --- HEADER --- */
.site-header {
    height: var(--header-h); background: #ffffff; border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    width: 100%;
}
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -1px; display: flex; align-items: center; gap: 0.5rem; font-family: arial, verdana, sans-serif; font-style: italic; white-space: nowrap;}
.nav-desktop { display: flex; gap: 2.5rem; }
.nav-link { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
.nav-link::after { content:''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background: var(--c-accent); transition: 0.3s; }
.nav-link:hover::after { width: 100%; }

.icon-btn { padding: 0.5rem; position: relative; color: var(--c-text-primary); display: flex; align-items: center; transition: 0.2s; flex-shrink: 0; }
.icon-btn:hover { color: var(--c-accent); }
.badge {
    position: absolute; top: -2px; right: -5px; background: var(--c-accent); color: white;
    font-size: 0.7rem; font-weight: bold; height: 18px; min-width: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid white;
}

/* Garage Bar */
.garage-bar {
    background: #1a1a1a; color: white; padding: 0.6rem 0; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px;
    cursor: pointer; transition: background 0.3s; text-transform: uppercase;
}
.garage-bar:hover { background: var(--c-accent); }
.garage-icon { color: white; margin-right: 0.8rem; opacity: 0.8; }

/* Search Bar */
.search-wrapper { position: relative; width: 250px; transition: 0.3s; }
.search-wrapper:focus-within { width: 350px; }
.search-input { 
    padding-right: 2.5rem; border-radius: 50px; border: 1px solid #eee; background: #f5f5f5;
    padding-left: 1.5rem; height: 40px; font-size: 0.9rem;
}
.search-input:focus { background: white; border-color: var(--c-accent); }
.search-btn-inner { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #666; }

/* --- HERO & SLIDER --- */
.hero-premium { position: relative; height: 44vw; background-color: #000; overflow: hidden; color: white; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-in-out; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-img { position: absolute; top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 6s ease; }
.hero-slide.active .hero-img { transform: scale(1.05); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 55%; height: 100%; background: linear-gradient(105deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0) 100%); z-index: 2; pointer-events: none; }
.hero-content-wrapper { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; }
.hero-content { padding-left: 2rem; max-width: 650px; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; transition-delay: 0.2s; }
.hero-slide.active .hero-content { opacity: 1; transform: translateY(0); }
.hero-super-title { font-family: arial, verdana, sans-serif; font-size: 4.5rem; line-height: 0.9; font-weight: 700; font-style: italic; margin-bottom: 1.5rem; text-transform: uppercase; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-sub { font-size: 1.3rem; margin-bottom: 2.5rem; color: #fff; font-weight: 400; max-width: 90%; }
.hero-dots { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; gap: 12px; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); cursor: pointer; transition: 0.3s; }
.hero-dot:hover { background: rgba(255,255,255,0.5); }
.hero-dot.active { background: var(--c-accent); border-color: var(--c-accent); transform: scale(1.2); }

/* --- HOMEPAGE SECTIONS --- */
.cat-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: -80px; position: relative; z-index: 10; }
.cat-box {

border-left: 4px solid #fff;
border-right: 4px solid #fff;
border-top: 4px solid #fff;


 background: white; height: 320px; border-bottom: 4px solid var(--c-accent); box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative; overflow: hidden; cursor: pointer; transition: transform 0.3s ease; }
.cat-box:hover { transform: translateY(-10px); }
.cat-box img { width: 100%; height: 200px; object-fit: cover; transition: 0.5s; }
.cat-box:hover img { transform: scale(1.1); }
.cat-info { padding: 1.5rem; text-align: center; background: white; position: relative; z-index: 2; height: 120px; display: flex; flex-direction: column; justify-content: center; }
.cat-title { font-family: arial, verdana, sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; }
.cat-sub { font-size: 0.85rem; color: #777; }

.promo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; }
.promo-card { height: 300px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 3rem; color: white; border-radius: 2px; }
.promo-bg { position: absolute; top:0; left:0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: 0.5s; }
.promo-card:hover .promo-bg { transform: scale(1.05); }
.promo-card.dark { background: #111; }
.promo-card.red { background: var(--c-accent); }
.promo-card.green { background: var(--c-green); }
.promo-card.blue { background: var(--c-blue); }
.promo-card.purple { background: var(--c-purple); }
.promo-card.pink { background: var(--c-pink); }
.promo-content { position: relative; z-index: 2; max-width: 60%; }
.promo-title { font-family: arial, verdana, sans-serif; font-size: 2.5rem; font-weight: 700; line-height: 1; margin-bottom: 1rem; text-transform: uppercase; font-style: italic; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin: 3rem 0; }
.product-card { background: var(--c-surface); border: 1px solid transparent; transition: 0.3s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { border-color: #eee; box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.product-img-wrapper { position: relative; padding-top: 90%; background: #f4f4f4; overflow: hidden; margin-bottom: 1rem; }
.product-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: 0.6s; mix-blend-mode: multiply;}
.product-card:hover .product-img-wrapper img { transform: scale(1.08); }
.product-info { padding: 0 1rem 1.5rem; flex-grow: 1; display: flex; flex-direction: column; text-align: center; }
.product-cat { font-size: 0.7rem; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.product-title { font-weight: 700; margin-bottom: 0.5rem; font-size: 1.05rem; }
.product-price { font-size: 1.25rem; font-weight: 800; color: var(--c-accent); margin-top: auto; padding-top: 0.5rem; }

.trust-bar { background: #f9f9f9; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 3rem 0; margin-top: 5rem; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.trust-item svg { width: 48px; height: 48px; margin-bottom: 1rem; color: #333; }
.trust-title { font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.trust-desc { font-size: 0.9rem; color: #666; max-width: 250px; margin: 0 auto; }

/* Footer */
.premium-footer { background: #0a0a0a; color: #fff; padding: 4rem 0 0 0; margin-top: auto; border-top: 1px solid #222; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { font-family: arial, verdana, sans-serif; font-size: 1.1rem; margin-bottom: 1.5rem; color: white; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: #888; font-size: 0.9rem; transition: 0.2s; }
.footer-links a:hover { color: white; transform: translateX(5px); }
.footer-bottom { border-top: 1px solid #222; padding: 2rem 0; display: flex; justify-content: space-between; align-items: center; }
.payment-icons { display: flex; gap: 1rem; }
.payment-icon { background: #222; padding: 5px 10px; border-radius: 3px; font-size: 0.8rem; font-weight: bold; color: #ccc; border: 1px solid #333; }

/* Brands */
.brands-section { padding: 4rem 0; background: #fff; border-top: 1px solid #eee; text-align: center; }
.brands-grid { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; margin-top: 2rem; }
.brand-logo { width: 80px; height: 40px; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; cursor: pointer; font-family: arial, verdana, sans-serif; font-size: 1.5rem; font-weight: 900; color: #333; font-style: italic; display:flex; align-items:center; }
.brand-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); color: var(--c-accent); }
.brand-header { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.brand-line { height: 1px; background: #ddd; width: 100px; }
.brand-title { font-family: arial, verdana, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #333; }

/* Detail Page specific */
.grid-2 { display:grid; grid-template-columns: 1.5fr 1fr; gap:4rem; }

/* Gallery Styling */
.detail-gallery { 
    display: flex; 
    gap: 0.5rem; 
    margin-top: 1rem; 
    overflow-x: auto; 
    padding-bottom: 0.5rem; 
    /* Optional: Hide scrollbar for cleaner look */
    scrollbar-width: thin;
}

.detail-thumb { 
    width: 80px; 
    height: 80px; 
    object-fit: cover; 
    border-radius: 4px; 
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: all 0.2s ease; 
    background: #f9f9f9; 
    flex-shrink: 0; /* Prevent shrinking if many images */
}

.detail-thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.detail-thumb.active { 
    border-color: var(--c-accent); 
    opacity: 0.8;
}
 
/* Responsive */
.mobile-only { display: none; }
.desktop-only { display: flex; }

@media (max-width: 1024px) {
    .cat-showcase { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
    .hero-premium { height: 500px; }
    .hero-super-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .mobile-only { display: block; }
    .desktop-only { display: none; }
    .nav-desktop { display: none; }
    .search-wrapper { width: 100%; display: none; }
    .search-wrapper.active { display: block; position: absolute; top: 80px; left: 0; width: 100%; padding: 1rem; background: white; border-bottom: 1px solid #ddd; z-index: 90; }
    
    .grid-2, .promo-split, .trust-grid, .footer-grid, .footer-bottom { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .container { padding: 0 1.5rem; }
    .hero-overlay { width: 100%; background: rgba(0,0,0,0.6); }
    .hero-content { padding-left: 0; text-align: left; }
    .hero-super-title { font-size: 2.5rem; }
    .cat-showcase { margin-top: 2rem; gap: 1rem; }
    .cat-box { height: auto; }
    .cat-box img { height: 150px; }
    .hero-dots { bottom: 20px; }
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 480px) {
    .container { padding: 0 0.8rem; }
    .logo { font-size: 1.1rem; }
    .icon-btn { padding: 0.3rem; }
    .site-header .container .flex.gap-2 { gap: 0.2rem; }
    .site-header { height: 60px; } /* Header etwas schmaler machen */
    .hero-premium { height: 400px; }
    .hero-super-title { font-size: 2rem; }
    #mobile-menu { top: 60px; height: calc(100vh - 60px); } /* MenÃ¼ anpassen an Header HÃ¶he */
    
    /* FIX: Force 1 column on mobile to prevent overflow */
    .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    /* Allow button text to wrap so it doesn't push width */
    .btn { white-space: normal; padding: 1rem; font-size: 0.85rem; }
}

#mobile-menu {
    position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
    background: white; z-index: 99; transform: translateX(-100%);
    transition: transform 0.3s ease; padding: 2rem;
}
#mobile-menu.open { transform: translateX(0); }
.mobile-nav-link { display: block; font-size: 1.2rem; padding: 1rem 0; border-bottom: 1px solid #eee; font-weight: 600; text-transform: uppercase; }

#toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 1100; }
.toast { background: #333; color: white; padding: 1rem 1.5rem; border-radius: 4px; margin-top: 0.5rem; animation: fadeIn 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.2); display: flex; align-items: center; gap: 10px; }
.toast.success { border-left: 4px solid var(--c-success); }

/* --- HERO VIDEO ERGÄNZUNG --- */
.hero-video {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Sorgt dafür, dass das Video Vollbild ist (ohne Ränder) */
    object-position: center;
    z-index: 1; /* Hält das Video ganz im Hintergrund */
}

/* --- SCHWARZES FADER-OVERLAY FÜR DAS VIDEO --- */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Farbverlauf: Schwarz am linken Rand, transparent zur Mitte */
    background: linear-gradient(to right, rgba(0,0,0,1.0) 10%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 80%);
    z-index: 2; /* Liegt ÜBER dem Video, aber UNTER dem Text (der hat z-index: 3) */
    pointer-events: none; /* Verhindert, dass das Overlay Klicks blockiert */
}