/* --- THEME DEFINITION --- */
:root {
    --bg: #ffffff;
    --text: #0b0f19;
    --sub-text: #64748b;
    --accent: #d1fae5; /* Sehr helles Mint */
    --accent-dark: #10b981; /* Vitality Green */
    --border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: 800; letter-spacing: -0.5px; text-transform: uppercase; }
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }

/* NEU: HERO CONTAINER (Flexbox für perfekte Zentrierung) */
.container-hero { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 40px; 
    display: flex; /* Flexbox zwingt Elemente zusammen */
    flex-direction: column;
    align-items: center;
}

/* --- HEADER --- */
header {
    padding: 20px 0;
    position: sticky; top: 0; 
    z-index: 1000; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }

.logo { 
    font-size: 1.5rem; font-weight: 900; color: #000; text-decoration: none; letter-spacing: -0.5px; 
    display: flex; align-items: center; gap: 10px; z-index: 5000;
}
.logo-icon {
    width: 24px; height: 24px; 
    background: linear-gradient(135deg, var(--accent-dark), #059669);
    border-radius: 6px;
}

/* DESKTOP NAV */
.desktop-nav { display: flex; gap: 40px; align-items: center; }

.dt-link {
    text-decoration: none; color: #000; font-weight: 600; font-size: 0.8rem; 
    text-transform: uppercase; letter-spacing: 1px; position: relative;
}
.dt-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; 
    background-color: var(--accent-dark); transition: width 0.3s;
}
.dt-link:hover::after { width: 100%; }

.btn-login {
    padding: 10px 25px; background: #000; color: #fff; border-radius: 50px;
    font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px;
    text-decoration: none; transition: all 0.3s;
}
.btn-login:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* --- MOBILE HAMBURGER (FIXED) --- */
.hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 40px; height: 40px; padding: 0; 
    position: relative; 
    z-index: 6000; /* Muss höher sein als Logo */
    align-items: center; justify-content: center;
}
/* Die Linien */
.hamburger span {
    display: block; width: 30px; height: 3px; background: #000;
    position: absolute; left: 5px; transition: all 0.3s ease-in-out; border-radius: 4px;
}
.hamburger span:nth-child(1) { top: 10px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 28px; }

/* ACTIVE STATE (DAS X) - EXTREM WICHTIG */
.hamburger.is-active {
    position: fixed !important; /* Löst den Button aus dem Header heraus */
    top: 25px !important;
    right: 25px !important;
    z-index: 2147483647 !important; /* Über allem anderen */
}
/* Farbe erzwingen und Rotation */
.hamburger.is-active span { background: #000 !important; } 
.hamburger.is-active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* OVERLAY MENU */
.nav-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000; /* Unter dem Hamburger (der hat max int), aber über Header */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: all 0.4s ease;
}
.nav-overlay.is-active { opacity: 1; visibility: visible; pointer-events: all; }

.mobile-link {
    font-size: 2rem; font-weight: 800; color: #000; text-decoration: none;
    margin: 15px 0; letter-spacing: -1px; transition: color 0.3s;
}
.mobile-link:hover { color: var(--accent-dark); }


/* --- HERO SECTION (FLEXBOX FIX) --- */
.hero { padding: 80px 0 120px 0; position: relative; }

.hero-split {
    display: flex; /* Flexbox statt Grid */
    align-items: center; /* Vertikal zentrieren */
    justify-content: center; /* Horizontal zentrieren */
    gap: 60px; /* Der feste Abstand zwischen Text und Bild */
    margin-bottom: 80px;
    width: 100%;
}

.hero-text { 
    flex: 1; /* Nimmt Platz ein, aber flexibel */
    max-width: 500px; /* Begrenzt die Breite, damit es nicht zu weit läuft */
    text-align: left;
}

.hero-label { 
    color: var(--accent-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 2px; 
    text-transform: uppercase; margin-bottom: 20px; display: block;
}

/* Die Grafik */
.hero-graphic {
    flex: 1;
    max-width: 450px; /* Begrenzt die Bildbreite, damit sie näher am Text bleibt */
    height: 400px;
    position: relative;
}

.hero-graphic img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1); /* Soft Shadow */
}

/* Badge im Bild */
.graphic-badge {
    position: absolute; bottom: 30px; left: -30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 15px;
    border: 1px solid #fff;
}
.gb-icon { width: 35px; height: 35px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--accent-dark); }


/* --- FILTER BAR --- */
.filter-bar {
    display: flex; gap: 20px; padding: 25px; background: #fff;
    align-items: flex-end; border: 1px solid #eee; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    width: 100%; max-width: 900px; /* Nicht zu breit */
}

.filter-group { flex: 1; }
.filter-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #aaa; display: block; margin-bottom: 8px; letter-spacing: 1px; }

.filter-select {
    width: 100%; padding: 12px; border: 1px solid #eee; background: #f9f9f9; border-radius: 8px;
    font-family: 'Montserrat'; font-weight: 600; font-size: 1rem; outline: none; cursor: pointer; transition: all 0.2s;
}
.filter-select:focus { border-color: var(--accent-dark); background: #fff; }

.btn-search {
    background: #000; color: #fff; border: none; padding: 15px 40px; border-radius: 8px;
    font-family: 'Montserrat'; font-weight: 700; text-transform: uppercase; cursor: pointer;
    letter-spacing: 1px; transition: all 0.3s;
}
.btn-search:hover { background: var(--accent-dark); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2); }

/* --- CARDS & GRID --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.card {
    border: 1px solid var(--border); background: #fff; border-radius: 16px; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 50px rgba(0,0,0,0.08); }

.card-img-wrapper { position: relative; height: 300px; overflow: hidden; }
.card-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(100%); transition: filter 0.4s, transform 0.4s;
}
.card:hover .card-img { filter: grayscale(0%); transform: scale(1.05); }

.health-score {
    position: absolute; bottom: -25px; right: 20px;
    width: 60px; height: 60px; background: #fff; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1); z-index: 2; border: 3px solid var(--accent);
}
.score-val { font-weight: 900; font-size: 1.2rem; line-height: 1; color: var(--text); }
.score-label { font-size: 0.4rem; font-weight: 700; text-transform: uppercase; color: #aaa; }

.type-badge {
    position: absolute; top: 20px; left: 20px;
    background: rgba(0,0,0,0.8); color: #fff; padding: 6px 12px; border-radius: 4px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; backdrop-filter: blur(4px);
}

.card-body { padding: 35px 25px 25px 25px; }
.card-title { font-size: 1.2rem; margin-bottom: 5px; }
.card-loc { font-size: 0.85rem; color: var(--sub-text); margin-bottom: 20px; display: block; font-weight: 500;}

.card-features { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 25px; }
.feature-tag { 
    font-size: 0.65rem; background: #f0fdf4; color: var(--accent-dark);
    padding: 5px 10px; border-radius: 50px; font-weight: 700; text-transform: uppercase;
}

.card-footer { 
    border-top: 1px solid #f1f5f9; padding-top: 15px; 
    display: flex; justify-content: space-between; align-items: center; 
}
.price { font-weight: 700; font-size: 1.1rem; }
.details-link { font-size: 0.8rem; font-weight: 700; text-decoration: none; color: #000; border-bottom: 2px solid var(--accent); }

/* FOOTER */
footer { background: #0b0f19; color: #fff; padding: 80px 0; text-align: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    
    h1 { font-size: 2.5rem; }
    
    /* Auf Mobile untereinander */
    .hero-split { flex-direction: column; gap: 40px; text-align: center; }
    .hero-text { text-align: center; max-width: 100%; }
    .hero-graphic { width: 100%; order: -1; height: 300px; }
    .graphic-badge { display: none; }
    
    .filter-bar { flex-direction: column; align-items: stretch; margin-top: 30px; }
    .btn-search { margin-top: 20px; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .container, .container-hero { padding: 0 25px; }
}