/* ==========================================================
   F4C MASTER DESIGN SYSTEM
   Version: 1.1 (Dark Mode, Floating Headers, Glow Effects)
   ========================================================== */

:root {
    --f4c-green: #00c853;
    --f4c-yellow: #fcd000;
    --f4c-orange: #ff7b00;
    --f4c-twitch: #9146FF;
    --f4c-grad: linear-gradient(90deg, var(--f4c-green), var(--f4c-yellow), var(--f4c-orange));
    --bg-page: #050810; 
    --bg-inner-box: #0f172a; 
    --border-light: rgba(255, 255, 255, 0.08);
}

/* ==========================================================
   GLOBALES BODY STYLING (HINTERGRUND)
   ========================================================== */
body {
    background-color: var(--bg-page, #050810) !important;
    color: #e2e8f0; /* Helle Textfarbe als Standard */
}

/* ==========================================================
   1. HEADER NAVIGATION (SCHWEBENDES GTSL-DESIGN IN F4C FARBEN)
   ========================================================== */
#f4c-global-header {
    position: sticky; 
    top: 20px; /* Abstand nach oben (schwebend) */
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    
    /* Begrenzung der Breite exakt wie bei den Inhaltsboxen */
    max-width: 1200px; 
    width: 95%; 
    margin: 20px auto; 
    padding: 0 30px; 
    height: 80px; 
    
    background: #0a0e17; /* Dunkler Hintergrund wie bei GTSL */
    border-radius: 12px; /* Abgerundete Ecken */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Basis-Schatten für Tiefe */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
}

/* Die leuchtende Linie am unteren Rand (Grün zu Orange) */
#f4c-global-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--f4c-green), var(--f4c-orange));
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    
    /* Farbiger Glow-Effekt nach unten */
    box-shadow: 
        -40px 5px 30px -10px rgba(0, 200, 83, 0.5), 
         40px 5px 30px -10px rgba(255, 123, 0, 0.5);
    z-index: -1;
}

#f4c-global-header .f4c-header-left { display: flex; align-items: center; justify-content: space-between; }
#f4c-global-header .f4c-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
#f4c-global-header .f4c-nav a { color: #e2e8f0; text-decoration: none; font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s ease; }
#f4c-global-header .f4c-nav a:hover { color: var(--f4c-orange); text-shadow: 0 0 10px rgba(255, 123, 0, 0.5); }

/* Dropdown (Kugelsicher) */
#f4c-global-header .f4c-dropdown { position: relative; }
#f4c-global-header .f4c-dropdown-menu {
    display: none !important; 
    position: absolute; top: 100%; left: 0; background: #0a0e17;
    min-width: 220px; padding: 10px 0; margin-top: 25px; border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); flex-direction: column; gap: 0;
}
#f4c-global-header .f4c-dropdown:hover .f4c-dropdown-menu { display: flex !important; }
#f4c-global-header .f4c-dropdown-menu li { width: 100%; }
#f4c-global-header .f4c-dropdown-menu a { display: block; padding: 12px 25px; font-size: 13px; font-weight: bold; }
#f4c-global-header .f4c-dropdown-menu a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; padding-left: 30px; }

/* Mobile Burger */
#f4c-mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; margin-left: 20px; }
#f4c-mobile-toggle span { width: 25px; height: 3px; background: #fff; transition: 0.3s; border-radius: 3px; }

@media (max-width: 992px) {
    #f4c-global-header { padding: 0 20px; border-radius: 0; top: 0; width: 100%; margin: 0; }
    #f4c-global-header::after { border-radius: 0; }
    #f4c-mobile-toggle { display: flex; }
    #f4c-global-header .f4c-header-left { width: 100%; }
    
    #f4c-global-header .f4c-header-nav-container {
        display: none; position: absolute; top: 80px; left: 0; width: 100%;
        background: #0a0e17; padding: 20px; border-bottom: 3px solid var(--f4c-orange); box-shadow: 0 20px 40px rgba(0,0,0,0.9);
    }
    #f4c-global-header.menu-open .f4c-header-nav-container { display: block; }
    #f4c-global-header .f4c-nav ul { flex-direction: column; gap: 15px; align-items: flex-start; }
    #f4c-global-header .f4c-dropdown-menu { position: static; display: flex !important; background: transparent; border: none; box-shadow: none; padding: 10px 0 10px 15px; margin-top: 0; }
    
    #f4c-global-header.menu-open #f4c-mobile-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    #f4c-global-header.menu-open #f4c-mobile-toggle span:nth-child(2) { opacity: 0; }
    #f4c-global-header.menu-open #f4c-mobile-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==========================================================
   2. TYPOGRAFIE & BUTTONS
   ========================================================== */
.text-grad { background: var(--f4c-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; }

.btn-grad {
    background: var(--f4c-grad); color: #000 !important; font-weight: 900; text-transform: uppercase;
    padding: 12px 24px; border-radius: 6px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3); border: none; transition: 0.3s;
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 123, 0, 0.4); }

.btn-outline {
    background: rgba(255, 255, 255, 0.05); color: #fff; border: 1px solid rgba(255,255,255,0.3);
    padding: 12px 24px; border-radius: 6px; font-weight: bold; text-transform: uppercase;
    text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }


/* ==========================================================
   3. DAS BOX-SYSTEM
   ========================================================== */

/* DIE GROSSEN OUTER-BOXES (Schwarz) */
.outer-box { 
    position: relative; 
    padding: 40px; 
    margin: 40px auto 80px auto; /* Zentriert die Box horizontal */
    max-width: 1200px; /* Die Box wird nie breiter als 1200px */
    width: 90%; /* Auf Handys etwas Rand lassen */
    z-index: 1; 
}.outer-box::after { content: ''; position: absolute; background-color: #000000; border-radius: 12px; z-index: -1; box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05); }

/* Typ A: Besondere Box (Lauflicht) */
.outer-box.special::after { top: 2px; left: 2px; right: 2px; bottom: 2px; }
.outer-box.special::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, var(--f4c-green), var(--f4c-yellow), var(--f4c-orange), var(--f4c-green)); background-size: 400% 400%; filter: blur(20px); z-index: -2; animation: lichtbewegung 10s ease infinite; border-radius: 12px;
}
@keyframes lichtbewegung { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Typ B: Normale Box (Statischer Glow dahinter) */
.outer-box.normal::after { top: 0; left: 0; right: 0; bottom: 0; }
.outer-box.normal::before {
    content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--f4c-green) 0%, transparent 35%, transparent 65%, var(--f4c-orange) 100%);
    filter: blur(15px); opacity: 0.6; z-index: -2; border-radius: 12px; transition: 0.3s ease;
}
.outer-box.normal:hover::before { opacity: 1; filter: blur(20px); }

.outer-box-content { position: relative; z-index: 5; }

/* BOX HEADER (Die schwebenden Titel) */
.box-header {
    display: flex; align-items: center; background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(10, 15, 25, 0.95) 100%);
    padding: 15px 30px; border-style: solid; border-width: 3px 0 0 0; border-image: var(--f4c-grad) 1;
    margin-top: -65px; margin-bottom: 40px; box-shadow: 0 20px 40px rgba(0, 0, 0, 1), 0 5px 20px rgba(255, 123, 0, 0.15); width: fit-content; position: relative; z-index: 10;
}
.box-header h2 { margin: 0; font-size: 18px; text-transform: uppercase; font-weight: 900; letter-spacing: 2px; color: #fff; }

/* DIE KLEINEN INNER-BOXES (Dunkelblau) */
.inner-box {
    position: relative; z-index: 10; background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(10, 15, 25, 0.4) 100%);
    border: 1px solid var(--border-light); border-top: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; padding: 25px; box-shadow: 0 10px 25px rgba(0,0,0,0.6), inset 0 2px 15px rgba(255,255,255,0.02); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.inner-box:hover {
    transform: translateY(-4px); background: linear-gradient(180deg, rgba(45, 60, 85, 0.9) 0%, rgba(15, 23, 42, 0.7) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

/* --- LAYOUT GRIDS --- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; position: relative; z-index: 5; }
.triple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 5; }

@media (max-width: 992px) {
    .split-grid, .triple-grid { grid-template-columns: 1fr; }
    .outer-box { padding: 25px 15px; margin-top: 30px;}
    .box-header { margin-top: -45px; }
}
/* ==========================================================
   HERO-BOX WUCHTIGER MACHEN (Nur in der Höhe)
   ========================================================== */
.outer-box.special {
    padding: 80px 40px; /* 80px Abstand oben/unten (dicker), 40px an den Seiten (bündig mit dem Rest) */
}

/* Fürs Handy wieder etwas kompakter */
@media (max-width: 992px) {
    .outer-box.special {
        padding: 40px 20px; 
    }
}
/* ==========================================================
   STREAM STATUS SCHALTER (Kugelsicher)
   ========================================================== */
/* 1. Grundeinstellung: Alles verstecken */
.stream-live-iframe, 
.status-badge-live, 
.status-badge-offline { 
    display: none !important; 
}

/* 2. Was passiert im OFFLINE-MODUS */
.offline-mode .stream-offline-img { display: block !important; }
.offline-mode .stream-live-iframe { display: none !important; }
.offline-mode .status-badge-offline { display: flex !important; }

/* 3. Was passiert im LIVE-MODUS */
.live-mode .stream-live-iframe { display: block !important; }
.live-mode .stream-offline-img { display: none !important; }
.live-mode .status-badge-live { display: flex !important; }

/* ==========================================================
   TV-OPTIK & OFFLINE LOGO
   ========================================================== */
.tv-casing {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 10px 10px 30px 10px; /* Dickerer Rand unten für den TV-Look */
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8), inset 0 2px 5px rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.05);
}

/* Rote Standby-LED unten in der Mitte */
.tv-casing::after {
    content: '';
    position: absolute;
    bottom: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444; 
    box-shadow: 0 0 10px #ef4444;
}

.tv-screen {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000; /* Schwarzer Bildschirm */
    box-shadow: inset 0 0 20px rgba(0,0,0,1);
}

/* Leichte Spiegelung auf dem Glas-Display */
.tv-screen::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 45%);
    pointer-events: none; /* Wichtig, damit der Stream klickbar bleibt */
    z-index: 5;
}

/* Logo zentrieren, verkleinern und sanft schweben lassen */
.tv-screen .stream-offline-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 35%; /* Macht das Logo schön kompakt */
    height: auto;
    object-fit: contain;
    z-index: 2;
    animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -55%); }
    100% { transform: translate(-50%, -50%); }
}

.tv-screen .stream-live-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
/* ==========================================================
   HERO CORNER LOGO (Klassischer Masken-Effekt, wie zuvor)
   ========================================================== */
.hero-corner-logo {
    position: absolute;
    top: -70px;
    left: 30px;
    width: 250px;
    z-index: 20; 
    pointer-events: none; 
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 35%, rgba(0,0,0,0) 100%);
}

@media (max-width: 992px) {
    .hero-corner-logo {
        width: 150px;
        top: -40px;
        left: 10px;
    }
}