/* =========================================
   A2HOME EMS DESIGN SYSTEM - DEEP SPACE / METALLIC
   Aktualisiert: 2026-01-09 (Mit Dashboard Integration)
   ========================================= */

:root {
    /* --- Farbpalette --- */
    --bg-deep: #0b0c15;
    --bg-card: rgba(30, 32, 45, 0.7); /* Etwas dunkler für Kontrast */
    --bg-card-hover: rgba(45, 48, 65, 0.8);

    --gradient-glow: radial-gradient(circle at 50% 0%, #2e3b55 0%, #0b0c15 70%);

    --accent-primary: #93bcff; /* Blau */
    --accent-glow: rgba(147, 188, 255, 0.4);

    /* Flow Farben für Dashboard (Neon Style) */
    --flow-pv: #fbbf24;   /* Gelb/Gold */
    --flow-home: #3b82f6; /* Blau */
    --flow-grid: #ef4444; /* Rot */
    --flow-batt: #10b981; /* Grün */
    --flow-ev: #a855f7;   /* Lila */

    --text-main: #f8fafc;
    --text-sec: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);

    --max-w: 1200px;
    --radius: 16px;
    --nav-height: 80px;
}

/* --- Basis Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    background-image: var(--gradient-glow);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Typografie --- */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--text-main); }

/* ÄNDERUNG: margin-top: 70px hinzugefügt */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    margin-top: 70px; /* Schiebt die H1 vom Kopf weg */
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 15px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
p { color: var(--text-sec); font-size: 1.1rem; }

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 32px; border-radius: 12px; font-weight: 600; font-size: 1rem;
    text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary {
    background: rgba(255,255,255,0.05); color: var(--text-main); border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--text-main); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 24px; font-size: 0.9rem; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.narrow-container { max-width: 800px; }

/* ÄNDERUNG: Padding oben verringert (30px statt 100px) */
.section {
    padding: 30px 0 50px 0; /* Oben 30px, Unten 100px */
    scroll-margin-top: 100px;
}

/* Suchen Sie .grid-3 und ersetzen Sie es hiermit: */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px; /* ÄNDERUNG: Von 60px auf 100px erhöht */

}

/* --- Navbar --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: var(--nav-height);
    background: rgba(11, 12, 21, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); z-index: 1000;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--text-main); font-size: 1.3rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-sec); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.menu-toggle { display: none; cursor: pointer; color: var(--text-main); }

/* --- Hero --- */
.hero {
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding-top: var(--nav-height); text-align: center; position: relative;
    background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}
.hero-content { position: relative; z-index: 2; margin-bottom: 40px; max-width: 900px; }
.hero-sub { max-width: 650px; margin: 24px auto 40px; font-size: 1.25rem; line-height: 1.6; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 60px; }

/* Hero Image Style */
.hero-img-container {
    margin-top: 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2); /* Blaues Leuchten */
    border: 1px solid var(--border);
    max-width: 1000px;
    width: 100%;
}
.hero-img-container img { width: 100%; display: block; }


/* --- Cards --- */
.glass-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px; transition: transform 0.4s; backdrop-filter: blur(12px);
    margin-bottom: 10px;
}
.glass-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.2); }
.icon-large { font-size: 48px; color: var(--accent-primary); margin-bottom: 24px; display: block; }

/* =========================================
   DASHBOARD SIMULATION (Portierung oneEMS)
   ========================================= */
.vis-section { padding: 80px 0; background: rgba(0,0,0,0.3); }
.ems-d {
    position: relative; width: 100%; max-width: 1000px; margin: 40px auto 0;
    border-radius: var(--radius); overflow: hidden;
    background: #000; border: 1px solid var(--border);
    aspect-ratio: 1290 / 789; /* Aspect Ratio vom Bild behalten */
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
}
.ems-bg img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.6; /* Abdunkeln für Dark Mode */ }
.ems-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

/* Flow Lines mit Neon Effekt */
.ems-flow {
    fill: none; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 8 12; opacity: 0.1; transition: opacity 0.3s;
    filter: drop-shadow(0 0 2px currentColor); /* Neon Glow */
}
.ems-flow.active { opacity: 1; animation: dash 1s linear infinite; stroke-width: 3px; }
.ems-flow.reverse { animation: dash-rev 1s linear infinite; }

/* Farben zuweisen */
#flow-pv { stroke: var(--flow-pv); color: var(--flow-pv); }
#flow-home { stroke: var(--flow-home); color: var(--flow-home); }
#flow-batt { stroke: var(--flow-batt); color: var(--flow-batt); }
#flow-grid { stroke: var(--flow-grid); color: var(--flow-grid); }
#flow-ev { stroke: var(--flow-ev); color: var(--flow-ev); }

@keyframes dash { to { stroke-dashoffset: -20; } }
@keyframes dash-rev { to { stroke-dashoffset: 20; } }

/* Daten Karten im Dashboard */
.ems-card {
    position: absolute; z-index: 5; width: 120px; height: 120px;
    transform: translate(-50%, -50%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* Gauge SVG */
.gauge-svg { width: 90px; height: 90px; overflow: visible; transform: rotate(150deg); }
.gauge-bg { stroke: rgba(255,255,255,0.1); fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 167 251; }
.gauge-val { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 167 251; stroke-dashoffset: 167; transition: stroke-dashoffset 0.5s ease-out; filter: drop-shadow(0 0 3px currentColor); }

/* Gauge Colors */
.col-pv { stroke: var(--flow-pv); }
.col-home { stroke: var(--flow-home); }
.col-batt { stroke: var(--flow-batt); }
.col-grid { stroke: var(--flow-grid); }
.col-ev { stroke: var(--flow-ev); }

.gauge-icon { position: absolute; font-size: 24px; color: white; top: 32px; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.gauge-text { position: absolute; bottom: 20px; font-size: 14px; font-weight: 700; color: white; text-shadow: 0 2px 4px black; }

/* Controls */
.sim-controls {
    margin-top: 30px; display: flex; justify-content: center; gap: 20px; align-items: center;
    background: var(--bg-card); padding: 15px; border-radius: 50px; display: inline-flex; border: 1px solid var(--border);
}
input[type=range] { accent-color: var(--accent-primary); cursor: pointer; width: 200px; background: transparent; }

/* ========================================= */

/* --- Tech Specs --- */
.tech-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; margin-top: 40px; }
.tech-row { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--border); }
.tech-row:last-child { border-bottom: none; }
.tech-label { color: var(--text-sec); }
.tech-value { color: var(--text-main); font-weight: 600; text-align: right; }

/* --- Pricing Images --- */
.product-img { width: 100%; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid var(--border); }

/* --- Pricing Grid --- */
.pricing-card {
    background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
    display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s;
}
.pricing-card:hover { border-color: var(--accent-primary); transform: translateY(-5px); }
.pricing-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.08) 0%, var(--bg-card) 100%);
}
.price { font-size: 2.5rem; font-weight: 700; color: var(--text-main); margin: 10px 0; }
.price-sub { font-size: 0.9rem; color: var(--text-sec); margin-bottom: 20px; display: block; }
.pricing-card ul { list-style: none; padding: 0 30px 30px; }
.pricing-card li { margin-bottom: 12px; display: flex; gap: 10px; color: var(--text-sec); font-size: 0.95rem; }
.pricing-card li span { color: var(--accent-primary); }

/* --- Footer --- */
.footer { border-top: 1px solid var(--border); padding: 80px 0 30px; margin-top: 10px; background: rgba(0,0,0,0.2); }

/* --- Mobile --- */
.mobile-menu {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(11, 12, 21, 0.98);
    z-index: 2000; display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); transition: transform 0.4s ease;
}
.mobile-menu.active { transform: translateY(0); }
.mobile-menu a { font-size: 1.5rem; color: #fff; text-decoration: none; margin: 15px 0; }
.close-icon { position: absolute; top: 20px; right: 20px; font-size: 2rem; color: #fff; cursor: pointer; }

@media (max-width: 768px) {
    .nav-links, .btn-primary.btn-sm { display: none; }
    .menu-toggle { display: block; }
    h1 { font-size: 2.5rem; }
}

/* ... (Vorheriger CSS Code bleibt bestehen) ... */

/* --- FAQ Accordion (Deep Space Style) --- */
.faq-container { margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }

details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker { display: none; }

/* Plus/Minus Icon rein mit CSS */
summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 300;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg); /* Wird zum X */
    color: var(--flow-grid); /* Rot beim Schließen */
}

details p {
    padding: 0 20px 20px;
    color: var(--text-sec);
    line-height: 1.6;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 15px;
    animation: fadeIn 0.4s ease;
}

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

/* --- Formular Verbesserungen --- */
.form-group { margin-bottom: 20px; text-align: left; }
label { display: block; margin-bottom: 8px; color: var(--text-sec); font-size: 0.9rem; font-weight: 500; }

/* Custom Datalist Pfeil ausblenden für cleaneren Look (optional) */
input::-webkit-calendar-picker-indicator {
    filter: invert(1); opacity: 0.5; cursor: pointer;
}

/* =========================================
 L OGO ANPASSUNG (Constraint 1)                                             *
 ========================================= */
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 700;
    gap: 2px; /* Minimaler Abstand zwischen Buchstaben und Icon */
}

/* Das Haus-Icon im Logo */
.logo .icon-home {
    font-size: 1.3rem; /* Gleiche Größe wie Text */
    color: var(--accent-primary);
    /* Wichtig: Entfernt den Standard-Versatz von Icons */
    display: inline-block;
    vertical-align: middle;
    /* Fein-Tuning: Falls es optisch immer noch springt */
    position: relative;
    top: -1px;
}

/* =========================================
 H ARDWARE REQUIREMENTS SECTION (Constraint 2)                              *
 Design: Dark Mode / Glassmorphism
 ========================================= */
.hardware-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Basis Karte für Anforderungen */
.req-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin-bottom: 30px;
}

.req-card:hover {
    transform: translateY(-5px);
}

/* MUST HAVE Karte (Rot/Warnung) */
.req-card.must-have {
    border-color: rgba(239, 68, 68, 0.5); /* Rötlicher Rand */
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1); /* Rotes Leuchten */
}

/* Badges (Oben links auf der Karte) */
.badge-req {
    position: absolute;
    top: -12px;
    left: 30px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #000; /* Schwarzer Text für Kontrast */
}

/* Badge Farben */
.badge-req.red { background: var(--flow-grid); color: white; } /* Rot */
.badge-req.green { background: var(--flow-batt); color: #000; } /* Grün */
.badge-req.yellow { background: var(--flow-pv); color: #000; } /* Gelb */

/* Listen Styles in den Karten */
.req-list { list-style: none; margin-top: 20px; padding: 0; }
.req-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-sec);
    font-size: 0.95rem;
}

/* Icons in der Liste */
.icon-check { font-size: 1.2rem; margin-top: 2px; }

/* Typografie in den Karten */
.req-card h3 { margin-top: 15px; margin-bottom: 10px; font-size: 1.25rem; }
.req-card p { font-size: 0.95rem; line-height: 1.5; color: var(--text-sec); }

input, select, textarea {
    width: 100%; padding: 15px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; color: var(--text-main); font-family: inherit; font-size: 1rem;
    outline: none; transition: border-color 0.3s;
}

/* Switcher / Tabs */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Abstand zwischen den Buttons */
    margin: 0 auto 40px auto; /* Zentriert & Abstand nach unten */

    /* Hintergrund-Design für den Container */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border); /* Oder rgba(255,255,255,0.1) */
    padding: 8px;
    border-radius: 50px;
    width: fit-content; /* Passt sich dem Inhalt an */
    max-width: 100%;
}

.toggle-btn {
    background: transparent;
    border: 1px solid transparent; /* Unsichtbarer Rand verhindert Springen */
    color: var(--text-sec); /* Oder #94a3b8 */
    padding: 12px 25px;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap; /* Text nicht umbrechen */
}
/* Aktiver Zustand */
.toggle-btn.active {
    background: var(--bg-card); /* Oder rgba(30, 32, 45, 1) */
    border-color: var(--accent-primary); /* Oder #3b82f6 */
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.toggle-btn:hover {
    color: #fff;
}


.split-layout { display: flex; align-items: center; gap: 50px; }
.split-layout > div { flex: 1; }
.rounded-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); }
.check-list { list-style: none; margin-top: 25px; }
.check-list li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: var(--text-main); }
.check-list span { color: var(--accent-orange); }


/* --- Simulation Controls (Responsive Fix) --- */
.sim-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;               /* Abstand etwas verringert für Mobile */

    background: var(--bg-card);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--border);

    /* Zentrierung & Mobile Schutz */
    width: fit-content;      /* Passt sich dem Inhalt an */
    max-width: 90vw;         /* WICHTIG: Maximal 90% der Bildschirmbreite */
    margin: 30px auto;       /* Zentriert */

    /* Verhindert Umbruch, erzwingt Schrumpfen der Elemente */
    flex-wrap: nowrap;
}

input[type=range] {
    accent-color: var(--accent-primary);
    cursor: pointer;

    /* Responsive Breite */
    width: 200px;            /* Wunschbreite auf Desktop */
    flex-shrink: 1;          /* ERLAUBT dem Slider zu schrumpfen wenn Platz fehlt */
    min-width: 100px;        /* Aber nicht kleiner als 100px (damit bedienbar) */

    background: transparent;
    height: 6px;
}

/* Optional: Text-Größe bei sehr kleinen Handys anpassen */
#simVal {
white-space: nowrap;     /* Verhindert Umbruch des Textes "14.5 kW" */
font-size: 0.95rem;
}
/* Cookie Banner */
.cookie-banner {
    display: none; /* Standardmäßig aus, JS schaltet es an */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 12, 21, 0.95); /* Deep Dark */
    border-top: 1px solid var(--border);
    padding: 15px 0;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .cookie-banner .container { flex-direction: column; text-align: center; }
}
/* =========================================
 *  ZIELGRUPPEN & SPLIT LAYOUT FIX
 *  ========================================= */

/* Basis Layout (Desktop) */
.split-layout {
    display: flex;
    align-items: center; /* Vertikal mittig */
    justify-content: space-between;
    gap: 50px; /* Großzügiger Abstand zwischen Text und Bild */
}

/* Die beiden Hälften teilen sich den Platz */
.text-block { flex: 1; }
.img-block { flex: 1; }

/* Bild-Styling */
.rounded-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    object-fit: cover;
}

/* Switcher Buttons Container */
.toggle-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Erlaubt Umbruch bei sehr kleinen Handys */
}

.toggle-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-sec);
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-btn.active, .toggle-btn:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Checkliste Styling */
.check-list { list-style: none; padding: 0; margin-top: 20px; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-sec);
}
.check-list span { color: var(--accent-primary); }


/* --- MOBILE ANPASSUNG (Responsive) --- */
@media (max-width: 900px) { /* Greift bei Tablets und Handys */

    .split-layout {
        flex-direction: column; /* WICHTIG: Untereinander statt nebeneinander */
        text-align: center;     /* Text zentrieren sieht mobil oft besser aus */
        gap: 30px;
    }

    .text-block, .img-block {
        width: 100%; /* Volle Breite nutzen */
        flex: none;  /* Flex-Verhältnis aufheben */
    }

    /* Reihenfolge ändern: Bild oben, Text unten?
     *      Wenn gewünscht, entfernen Sie die Kommentarzeichen bei 'order':
     */
    /* .img-block { order: -1; } */

    .check-list {
        display: inline-block; /* Damit die Liste trotz text-align:center linksbündig wirkt */
        text-align: left;
        margin-top: 20px;
    }

    .toggle-btn {
        width: 100%; /* Buttons auf Handy volle Breite für einfache Bedienung */
        margin-bottom: 5px;
    }
}


/* Formular Grid Layout (2 Spalten auf Desktop) */
.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row-grid {
        grid-template-columns: 1fr; /* Auf Handy untereinander */
        gap: 0;
    }
}

/* Checkbox Style Korrektur */
.checkbox-group input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 20px !important;
    height: 20px !important;
}

/* --- MOBILE ANPASSUNG (Handy) --- */
@media (max-width: 600px) {
    .toggle-container {
        flex-direction: column; /* WICHTIG: Untereinander statt nebeneinander */
        width: 100%;            /* Volle Breite nutzen */
        border-radius: 16px;    /* Ecken etwas weniger rund bei Block-Form */
        padding: 15px;
        gap: 15px;
    }

    .toggle-btn {
        width: 100%;            /* Button nimmt volle Breite ein */
        text-align: center;
        padding: 15px;          /* Größere Touch-Fläche */
        border-radius: 12px;
    }
}


/* =========================================
 *  LIGHTBOX (Bildvergrößerung)
 *  ========================================= */

/* Der Hintergrund (Overlay) */
.lightbox-overlay {
    display: none; /* Standardmäßig versteckt */
    position: fixed;
    z-index: 9999; /* Ganz oben */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* 90% Schwarz */
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out; /* Zeigt an, dass man klicken kann zum Schließen */
    align-items: center;
    justify-content: center;
}

/* Das vergrößerte Bild */
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh; /* Maximal 90% der Bildschirmhöhe */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Animation beim Öffnen */
.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

/* Schließen Button (Optional, da Klick überall schließt) */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-primary);
    text-decoration: none;
    cursor: pointer;
}

/* Klasse für Bilder, die klickbar sein sollen */
.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.zoomable:hover {
    transform: scale(1.02); /* Leichter Zoom beim Drüberfahren */
}

/* Honeypot Feld - für Menschen unsichtbar */
.special-req {
    display: none;
    visibility: hidden;
    height: 0;
    width: 0;
    opacity: 0;
    overflow: hidden;
}
