/* ==========================================================================
   CSS VARIABLES (Theming System: Dark & Light Mode)
   ========================================================================== */
:root {
    /* DARK MODE (Neu: Weiches Tiefblau/Grau) */
    --color-bg-base: #242c3d;       
    --color-bg-surface: #1B2230;    /* Leicht abgedunkeltes Blaugrau für Cards */
    --color-bg-surface-light: #354157; /* Hellerer Rahmen-Ton, passend zum Blau */
    
    --color-cta: #00E676;           /* Neon Green */
    --color-cta-hover: #00C853;     
    --color-cta-text: #121212;      
    
    --color-text-main: #F8F9FA;     
    --color-text-muted: #9CA3AF;    
    
    --color-border: rgba(255,255,255,0.08);

    /* Fonts & Layout */
    --font-main: 'Inter', sans-serif;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

/* LIGHT MODE OVERRIDES */
[data-theme="light"] {
    --color-bg-base: #fafafa;       /* Neues, softes Off-White */
    --color-bg-surface: #ffffff;    /* Reinweiß für Cards */
    --color-bg-surface-light: #E5E7EB; 
    
    --color-cta: #00C853;           
    --color-cta-hover: #00B248;     
    --color-cta-text: #ffffff;      
    
    --color-text-main: #111827;     
    --color-text-muted: #4B5563;    
    
    --color-border: rgba(0,0,0,0.08);
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
p { color: var(--color-text-muted); font-size: 1.125rem; transition: color 0.4s ease; }
a { text-decoration: none; transition: all var(--transition-speed); }

.container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-accent { color: var(--color-cta); }
.mb-4 { margin-bottom: 1.5rem; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   HEADER, NAV & THEME TOGGLE
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-surface);
    position: fixed; top: 0; width: 100%; z-index: 1000;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.4s ease;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem; max-width: var(--container-max-width); margin: 0 auto;
}
/* Logo & Brand Name */
.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.6rem; /* Minimal kleinerer Abstand für mehr Platz */
    white-space: nowrap; /* Zwingt alles strikt in eine Zeile */
}
.logo-img { 
    height: 28px; /* Perfekte Balance zwischen Sichtbarkeit und Platz */
    width: auto; 
    flex-shrink: 0; /* Verhindert, dass das Bild auf schmalen Handys gequetscht wird */
}
.logo a { 
    font-family: var(--font-heading); 
    font-size: clamp(1.4rem, 4vw, 1.6rem); 
    color: var(--color-text-main); 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
    font-weight: 800; /* <--- Diese Zeile macht den Text wieder fett! */
}

.nav-controls { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--color-text-muted); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--color-cta); }

/* Theme Toggle Button */
.theme-btn {
    background: none; border: none; cursor: pointer; color: var(--color-text-muted);
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}
.theme-btn:hover { background: var(--color-bg-surface-light); color: var(--color-text-main); }
.sun-icon { display: none; }
.moon-icon { display: block; }
[data-theme="light"] .sun-icon { display: block; }[data-theme="light"] .moon-icon { display: none; }

/* Mobile Menu Bugfix! (Weißer Punkt auf Desktop ist weg) */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger, .hamburger::before, .hamburger::after {
    display: block; width: 25px; height: 3px; background-color: var(--color-text-main); position: relative; transition: all var(--transition-speed);
}
.hamburger::before { content: ''; top: -8px; }
.hamburger::after { content: ''; bottom: -8px; }

/* ==========================================================================
   ULTIMATE STORE BUTTONS (Stabil & Simpel)
   ========================================================================== */
.store-buttons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    margin-top: 2rem; 
    align-items: center; /* WICHTIG: Richtet alle auf der Mittellinie aus */
}

/* Zentrierung für die untere Sektion */
.store-buttons.justify-center { 
    justify-content: center; 
}

/* Die Links für Apple & Google */
.official-badge-link {
    display: inline-block;
    transition: transform 0.2s ease;
    height: 44px; /* Standard-Höhe für Store Badges */
}

/* Die Bilder darin */
.official-badge-img {
    height: 100%; /* Füllt die 44px Höhe aus */
    width: auto;  /* Behält das Seitenverhältnis bei */
    display: block;
}

/* OPTISCHER AUSGLEICH FÜR APPLE:
   Wir machen Apple 4 Pixel höher, weil das Logo in der Datei kleiner ist. */
.official-badge-link[href*="apple"] {
    height: 48px; 
}

/* APK-BUTTON (Muss exakt so hoch sein wie Google) */
.store-btn.btn-apk {
    display: flex;
    align-items: center;
    height: 44px; /* Exakt wie Google */
    padding: 0 15px;
    border-radius: 7px;
    border: 1px solid var(--color-cta) !important;
    background-color: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 160px; /* Damit er nicht zu schmal wird */
}

.btn-apk .icon-svg { 
    width: 20px; height: 20px; margin-right: 10px; flex-shrink: 0;
    stroke: var(--color-text-main);
}

.btn-apk .btn-text { display: flex; flex-direction: column; line-height: 1.1; }
.btn-apk .btn-text small { font-size: 8px; color: var(--color-text-main); text-transform: uppercase; }
.btn-apk .btn-text strong { font-size: 14px; font-weight: 700; color: var(--color-text-main); }

/* Hover Effekte */
.official-badge-link:hover, .btn-apk:hover { transform: translateY(-2px); }
.btn-apk:hover { background-color: var(--color-cta) !important; }
.btn-apk:hover .btn-text strong, .btn-apk:hover .btn-text small, .btn-apk:hover .icon-svg {
    color: #121212 !important; stroke: #121212 !important;
}

/* Mobile: Auf Handys untereinander stapeln */
@media (max-width: 600px) {
    .store-buttons { 
        flex-direction: column; 
        align-items: center; 
    }
}

/* ==========================================================================
   APP PAGE SECTIONS (BoomCast)
   ========================================================================== */
.app-hero-icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.hero-tactical { padding: 180px 0 100px; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-text h1 { font-size: clamp(3rem, 5vw, 4.5rem); }
.subtitle { color: var(--color-text-muted); font-size: 1.25rem; font-weight: 400; }

.css-device {
    width: 100%; max-width: 320px; aspect-ratio: 9 / 19.5; 
    /* Fixe dunkle Farben, egal welches Theme aktiv ist */
    background-color: #121212 !important;
    border: 12px solid #2A2D30 !important;
    border-radius: 40px; position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4); overflow: hidden; margin: 0 auto;
}
.css-device::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 45%; height: 26px; 
    background-color: #2A2D30 !important; /* Fixe Notch Farbe */
    border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; z-index: 10;
}
.device-screen { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity 0.4s; }

/* Logo Styling für die Navbar */
.logo-img { height: 32px; width: auto; margin-right: 10px; }

.zero-clutter { padding: var(--spacing-lg) 0; background-color: var(--color-bg-base); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.feature-icon { width: 48px; height: 48px; color: var(--color-cta); margin-bottom: 1.5rem; }
.zero-clutter h2 { font-size: 2.5rem; }

.scroll-story-section { padding: var(--spacing-lg) 0; position: relative; }
.scroll-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.sticky-container { position: sticky; top: 120px; height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; }
.story-block { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding-right: 2rem; }
.story-block h3 { font-size: 2rem; color: var(--color-text-main); }
.story-block p { font-size: 1.2rem; }

.offline-section { padding: var(--spacing-lg) 0; }
.tactical-card {
    background-color: var(--color-bg-surface); padding: 4rem; border-radius: 24px; text-align: center;
    border: 1px solid var(--color-border); max-width: 900px; margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.bottom-cta { padding: var(--spacing-lg) 0 8rem; }
.bottom-cta h2 { font-size: 3rem; }

/* ==========================================================================
   CORPORATE PAGE (Bloom & Boom LLC Startseite)
   ========================================================================== */
.tech-hero {
    position: relative;
    padding: 200px 0 150px;
    background-color: var(--color-bg-base);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
/* Den grünen Glow von unten behalten wir, da er auf dem weichen Blau super aussieht */
.tech-hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
    background: linear-gradient(to top, rgba(0, 230, 118, 0.05), transparent); pointer-events: none;
}
[data-theme="light"] .tech-hero::after { display: none; } 

.tech-hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 1.5rem; position: relative; z-index: 2;}
.tech-hero p { font-size: 1.5rem; max-width: 600px; margin: 0 auto; position: relative; z-index: 2;}
.product-showcase { padding: var(--spacing-lg) 0; }
.product-card {
    display: flex; align-items: center; gap: 3rem; background-color: var(--color-bg-surface);
    padding: 4rem; border-radius: 24px; border: 1px solid var(--color-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); margin-top: -80px; position: relative; z-index: 10;
}
.product-icon-large { width: 120px; height: 120px; border-radius: 24px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.product-info { flex: 1; }
.product-info h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.product-info p { margin-bottom: 1.5rem; font-size: 1.2rem; }

.about-grid { 
    /* var(--spacing-lg) ist für oben/unten, 1.5rem ist der perfekte Seitenabstand fürs Handy */
    padding: var(--spacing-lg) 1.5rem; 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 3rem; 
    max-width: var(--container-max-width); /* Stellt sicher, dass es auf PCs nicht zu breit wird */
    margin: 0 auto; /* Zentriert den Block auf großen Bildschirmen */
}
.about-col h3 { color: var(--color-cta); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.about-col p { font-size: 1.1rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background-color: var(--color-bg-surface); border-top: 1px solid var(--color-border); padding: 3rem 0; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; }
.footer-links a { color: var(--color-text-muted); font-size: 0.9rem; font-weight: 700; }
.footer-links a:hover { color: var(--color-cta); }
.footer-copy { font-size: 0.8rem; color: var(--color-text-muted); opacity: 0.7; }

/* ==========================================================================
   MOBILE RESPONSIVENESS & FULL-SCREEN NAVIGATION
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Der Hamburger Button */
    .mobile-menu-toggle { 
        display: block; 
        z-index: 1001; /* Zwingend über dem Blur-Menü! */
        position: relative;
    }

    /* 2. Das neue Full-Screen Overlay Menü */
    .nav-links {
        display: none; /* Initial versteckt */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(36, 44, 61, 0.98); /* Dunkelblau mit Deckkraft */
        backdrop-filter: blur(15px); /* Verschwommener Hintergrund */
        z-index: 1000;
        gap: 3rem;
    }
    /* WICHTIG: Light Mode Farbe für das Full-Screen Menü */
    [data-theme="light"] .nav-links {
        background-color: rgba(250, 250, 250, 0.98); /* Das weiche Off-White (#fafafa) mit Transparenz */
    }

    /* Das macht das JavaScript sichtbar */
    .nav-links.active {
        display: flex; 
    }

    /* Große Links für die Fingerbedienung */
    .nav-links a {
        font-size: 1.8rem;
        font-weight: 800;
        color: var(--color-text-main);
    }

    /* Animation für das Hamburger-Icon zu einem X */
    .mobile-menu-toggle.is-active .hamburger { background-color: transparent; }
    .mobile-menu-toggle.is-active .hamburger::before { transform: rotate(45deg); top: 0; }
    .mobile-menu-toggle.is-active .hamburger::after { transform: rotate(-45deg); bottom: 0; }

    /* 3. Allgemeine Mobile Layout Fixes */
    .hero-split, .scroll-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-tactical { padding: 120px 0 60px; }
    .app-hero-icon { margin: 0 auto 1.5rem; }
    .desktop-only { display: none; } /* Sticky Bild auf Mobile ausblenden */
    
    .story-block { min-height: auto; padding: 3rem 0; padding-right: 0; border-bottom: 1px solid var(--color-border); }
    .story-block:last-child { border-bottom: none; }
    
    .product-card { flex-direction: column; text-align: center; padding: 2.5rem; }
}

/* ==========================================================================
   LEGAL PAGES (Terms & Privacy)
   ========================================================================== */
.legal-page {
    padding: 150px 0 80px; /* Platz für den fixierten Header */
    background-color: var(--color-bg-base);
}

.legal-content {
    max-width: 800px; /* Optimale Zeilenlänge für Lesbarkeit */
    margin: 0 auto;
    background-color: var(--color-bg-surface);
    padding: 3rem 4rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.legal-content h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.legal-content h3 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.legal-content h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    font-weight: 700;
}

.legal-content p, .legal-content ul {
    margin-bottom: 1.2rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content .effective-date {
    color: var(--color-cta);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Rote Warnfarbe für die Safety Disclaimers (Wichtig für LLC Schutz) */
.warning-header {
    color: #FF5252 !important; 
    border-bottom-color: rgba(255, 82, 82, 0.3) !important;
}

.contact-box {
    background-color: var(--color-bg-base);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid var(--color-border);
}

.contact-box a {
    color: var(--color-cta);
    font-weight: 700;
}

.contact-box a:hover {
    text-decoration: underline;
}
/* 1. Grundzustand: Diese Bilder überall verstecken */
.mobile-inline-img {
    display: none;
}

/* 2. Nur in der Mobile-Ansicht (max 991px) anzeigen */
@media (max-width: 991px) {
    .mobile-inline-img {
        display: block;
        width: 100%;
        max-width: 280px; /* Schön kompakt für den Handy-Bildschirm */
        margin: 2rem auto 0; /* Zentriert mit Abstand nach oben */
        border-radius: 20px;
        border: 4px solid var(--color-bg-surface-light);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }
    
    .story-block {
        margin-bottom: 5rem; /* Mehr Platz zwischen den Features auf Mobile */
    }
}
/* ==========================================================================
   FOOTER SOCIAL MEDIA ICONS
   ========================================================================== */
.footer-social-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-group span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--color-text-main); /* Verhindert das Standard-Blau/Lila */
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link svg {
    width: 24px !important;  /* Zwingt das Icon klein zu bleiben */
    height: 24px !important; /* Zwingt das Icon klein zu bleiben */
    transition: transform 0.3s ease;
}

.social-link:hover {
    color: var(--color-cta); /* Wird Neon-Grün beim Hover */
}

.social-link:hover svg {
    transform: scale(1.2); /* Wächst beim Hover leicht an */
}

/* Mobile Anpassung (Legal Pages & Footer Stack) */
@media (max-width: 768px) {
    .legal-content {
        padding: 2.5rem 1.5rem;
        border-radius: 0; 
    }

    /* Footer auf dem Handy stapeln */
    .footer-social-section {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-links {
        flex-direction: column; 
        gap: 1.5rem;
        align-items: center;
    }
    .footer-links a {
        font-size: 1.1rem;
        padding: 10px;
        width: 100%; 
        text-align: center;
    }
    .footer-copy {
        margin-top: 2rem;
        padding: 0 1rem;
    }
}