/* =========================
   ROOT VARIABLES – Enterprise Level
========================= */
:root {
    /* Farben */
    --color-bg-card: rgba(20,20,20,0.75);
    --color-bg-footer: rgba(30,30,30,0.9);
    --color-bg-player: linear-gradient(135deg, rgba(17,17,17,1), rgba(34,34,34,1));
    --color-text: rgba(255,255,255,0.9);
    --color-text-secondary: rgba(200,200,255,0.9);
    --color-link: rgba(160,160,255,0.9);
    --color-link-hover: rgba(255,255,255,1);
    --color-live: red;
    --color-visitor: #ffd700;
    --color-visitor-icon: #ffdd57;
    --color-error: #ff6b6b;
    --color-btn-primary: rgba(255,82,82,0.9);
    --color-btn-primary-hover: rgba(255,82,82,1);
    --color-promo-title: rgba(247,247,247,1);
    --color-promo-link: #ad00ff;

    /* Radius */
    --radius-card: 20px;
    --radius-footer-card: 16px;
    --radius-modal: 16px;
    --radius-player-btn: 10px;
    --radius-dot: 50%;
    --radius-news: 8px;
    --radius-promo-card: 12px;

    /* Shadows */
    --shadow-card: 0 20px 40px rgba(0,0,0,0.4);
    --shadow-card-hover: 0 25px 50px rgba(0,0,0,0.5);
    --shadow-footer-card: 0 10px 25px rgba(0,0,0,0.5);
    --shadow-footer-card-hover: 0 15px 35px rgba(0,0,0,0.6);
    --shadow-player: 0 -5px 20px rgba(0,0,0,0.6);
    --shadow-image: 0 10px 25px rgba(0,0,0,0.4);

    /* Spacing */
    --gap-grid: 2rem;
    --padding-card: 1rem;
    --padding-footer-card: 1.5rem;
    --padding-dashboard: 2rem;
    --padding-promo-card: 1.5rem;

    /* Fonts */
    --font-size-h1: 2.3rem;
    --font-size-h2: 1.2rem;
    --font-size-h3: 1rem;
    --font-size-h4: 1.1rem;
    --font-size-body: 0.95rem;
    --font-size-small: 0.85rem;
    --font-size-promo-title: 1.5rem;
    --font-size-promo-name: 1.2rem;
    --font-size-promo-link: 0.9rem;
}

/* ===============================
   GLOBAL
==================================*/
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: url("../images/background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    overflow-x: hidden;
}

/* =========================
   Standard Card
========================= */
.card {
    background: var(--color-bg-card);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-card);
    padding: var(--padding-card);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-card);
    width: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}


/* ============================================================
   DESKTOP – HOLOGRAMM HEADER + OVERLAY
============================================================ */
@media (min-width: 769px) {
    .main-header {
        height: 420px;
        position: sticky;
        top: 0;
        z-index: 1000;
        overflow: hidden;
        position: relative;
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow:
            0 0 40px rgba(0, 180, 255, 0.25),
            inset 0 0 25px rgba(150, 0, 255, 0.25);
        transform-origin: top center;
        transform: perspective(700px) rotateX(3deg);
        animation: navHoloFloat 6s ease-in-out infinite;
        /* 🔥 FIX: Header bleibt IMMER 1375px breit */
        max-width: 1375px;
        margin: 0 auto;
        width: 100%;
    }
    @keyframes navHoloFloat {
        0%, 100% { transform: perspective(700px) rotateX(3deg) translateY(0); }
        50% { transform: perspective(700px) rotateX(2deg) translateY(-4px); }
    }
    /* 🔹 Overlay Grafik */
    .main-header::before {
        content: "";
        position: absolute;
        inset: 0;
        /* 🔥 FIX: Grafik füllt Header exakt aus */
        background: url("../images/nav_mockup.png") no-repeat center;
        background-size: 100% 100%;
        opacity: 1;
        pointer-events: none;
        z-index: 0;
    }
    /* 🔹 Glow Effekt */
    .main-header::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 30% 50%, rgba(255,0,255,0.25), transparent 70%);
        filter: blur(35px);
        animation: navGlow 7s ease-in-out infinite;
        z-index: 1;
    }
    @keyframes navGlow {
        0%, 100% { opacity: 0.35; transform: translateX(0); }
        50% { opacity: 0.75; transform: translateX(35px); }
    }
    /* 🔹 Navigation Container */
    .nav {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* 🔥 FIX: Keine 1920px mehr */
        width: 100%;
        max-width: 100%;
        padding-top: 180px;
        margin: 0 auto;
    }
    /* 🔹 Linke Fläche */
    .nav-left {
        width: 415px;
        display: flex;
        justify-content: space-between;
        list-style: none;
        margin-top: 2px;
        margin-bottom: 11px;
        padding-top: 0px;
        transform: translateX(78px);
    }
    /* 🔹 Rechte Fläche */
    .nav-right {
        width: 474px;
        display: flex;
        justify-content: space-between;
        list-style: none;
        padding-top: 0px;
        margin-bottom: 0px;
        transform: translateX(-71px) translateY(-7px);
    }
    /* 🔹 Logo Mitte */
    .nav-center {
        width: 260px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: -40px;
    }
    .nav-center a img {
        display: inline-block;
        transform: translateX(30px) translateY(-60px) !important;
    }
    .logo-img {
        height: 120px;
        width: auto;
        border-radius: 16px;
        transition: 0.3s ease;
    }
    .logo-img:hover {
        transform: scale(1.06) rotate(-1deg);
        box-shadow:
            0 0 15px rgba(0, 200, 255, 0.6),
            0 0 40px rgba(0, 200, 255, 0.35);
    }
    .logo-subtitle {
        margin-top: 10px;
        font-size: 20px;
        font-weight: 700;
        color: #00d1ff;
        text-shadow: 0 0 12px rgba(0, 200, 255, 0.6);
        text-align: center;
        transform: translateX(32px) translateY(68px);
    }
    .nav-left a,
    .nav-right a {
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        transition: 0.25s ease;
    }
    .nav-left a:hover,
    .nav-right a:hover {
        text-shadow: 0 0 15px rgba(0, 200, 255, 0.6);
    }
    .nav-toggle { display: none !important; }
}

/* ============================================================
   MOBILE – nutzt die vorhandenen nav-left / nav-right
============================================================ */
@media (max-width: 768px) {
    /* Hologramm aus */
    .main-header {
        background: rgba(20,20,20,0.9);
        backdrop-filter: blur(10px);
        height: auto;
        padding: 12px 15px;
        overflow: visible;
    }
    .main-header::before,
    .main-header::after {
        display: none;
    }
    /* Desktop-Layout aus */
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin: 0;
    }
    .nav-center {
        display: none;
    }
    .nav-left,
    .nav-right {
        display: none; /* werden durch Hamburger ersetzt */
    }
    /* Hamburger sichtbar */
    .nav-toggle {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
        margin-left: auto;
    }
    /* Mobile Menü – nutzt dieselben Links */
    .nav-mobile {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(20,20,20,0.95);
        padding: 12px;
        border-radius: 0 0 12px 12px;
        gap: 8px;
        margin-top: 10px;
    }
    .nav-mobile.open {
        display: flex;
    }
    .nav-mobile a {
        display: block;
        padding: 10px;
        border-radius: 6px;
        background: rgba(0,0,0,0.35);
        color: #fff;
        text-decoration: none;
    }
    .nav-mobile a:hover {
        background: rgba(0,192,255,0.25);
    }
}
@media (max-width: 768px) {
    .nav-left,
    .nav-right {
        display: none;
        flex-direction: column;
        gap: 8px;
        background: rgba(20,20,20,0.95);
        padding: 12px;
        border-radius: 0 0 12px 12px;
    }
    .nav-left.nav-open,
    .nav-right.nav-open {
        display: flex;
    }
}

/* ============================================================
   3D HOLOGRAMM FOOTER
============================================================ */
.dashboard-footer {
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 70px 2rem 2rem;   /* höher gesetzt */
    border-radius: 16px 16px 0 0;
    margin-top: 2rem;
    box-shadow:
        0 -25px 45px rgba(0, 180, 255, 0.35),
        inset 0 0 35px rgba(150, 0, 255, 0.35);
    transform-origin: bottom center;
    transform: perspective(900px) rotateX(-4deg);
    animation: footerFloat 7s ease-in-out infinite;
    color: #fff;
    font-size: 0.9rem;
}
@keyframes footerFloat {
    0%, 100% { transform: perspective(900px) rotateX(-4deg) translateY(0); }
    50% { transform: perspective(900px) rotateX(-2deg) translateY(4px); }
}
/* Scanlines */
.dashboard-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.04) 0px,
        rgba(255,255,255,0.04) 2px,
        transparent 3px,
        transparent 6px
    );
    animation: footerScan 6s linear infinite;
    z-index: 0;
}
@keyframes footerScan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}
/* Glow Layer */
.dashboard-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 70% 40%, rgba(255,0,255,0.35), transparent 70%);
    filter: blur(55px);
    animation: footerGlow 8s ease-in-out infinite;
    z-index: 0;
}
@keyframes footerGlow {
    0%, 100% { opacity: 0.35; transform: translateX(0); }
    50% { opacity: 0.75; transform: translateX(-35px); }
}
/* Overlay */
.footer-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: url('../images/footer_overlay.png') center top no-repeat;
    background-size: contain;   /* FIX: Grafik bleibt responsiv */
    mix-blend-mode: screen;
    animation: overlayPulse 6s ease-in-out infinite;
}
@keyframes overlayPulse {
    0%,100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* ============================================================
   FOOTER CONTAINER – SCHMALER + ZENTRIERT
============================================================ */
.footer-container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;          /* kompakter */
    max-width: 880px;     /* SCHMALER – passt zur Grafik */
    margin: 0 auto;
}
/* Spaltenzuordnung */
.footer-left      { grid-column: 1; }
.footer-center    { grid-column: 2; }
.footer-right     { grid-column: 3; }
.visitor-card     { grid-column: 4; }

/* ============================================================
   BOXEN – SCHMALER + KLEINER + HÖHER
============================================================ */
.footer-card,
.visitor-card {
    background: rgba(20 20 20 / 75%);
    backdrop-filter: blur(25px);
    border-radius: 16px;
    padding: 0.55rem;      /* kleiner */
    min-height: 130px;     /* etwas höher */
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 0 20px rgba(0, 180, 255, 0.25),
        inset 0 0 15px rgba(150, 0, 255, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    text-align: center;
    width: 100%;
    font-size: 0.72rem;    /* kleiner */
}
.footer-card:hover,
.visitor-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 0 35px rgba(0, 200, 255, 0.45),
        inset 0 0 25px rgba(150, 0, 255, 0.35);
}

/* ============================================================
   TEXT, LINKS, LOGO, ICONS
============================================================ */
.footer-card h4,
.visitor-card h4 {
    font-size: 0.82rem;    /* kleiner */
    margin-bottom: 0.5rem;
}
.footer-card a {
    color: #00d1ff;
    text-decoration: none;
    margin: 0 0.3rem;
    transition: 0.25s ease;
}
.footer-card a:hover {
    color: #b56bff;
    text-shadow: 0 0 10px rgba(0,200,255,0.8), 0 0 20px rgba(150,0,255,0.6);
}
.footer-logo {
    height: 30px;          /* kleiner */
    margin-bottom: 6px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 0 10px rgba(0,200,255,0.6));
}
.footer-right .social-link i {
    font-size: 1.15rem;    /* kleiner */
    margin-right: 0.3rem;
}
.visitor-card .visitor-icon {
    font-size: 1.35rem;    /* kleiner */
    margin-bottom: 0.3rem;
    color: #00d1ff;
}

/* ============================================================
   RATING TICKER – SICHTBAR ÜBER DEM OVERLAY
============================================================ */
#rating-ticker {
    width: 100%;
    max-width: 650px;
    background: rgba(0 0 0 / 45%);
    padding: 10px 0;
    overflow: hidden;
    margin: 45px auto 0;
    position: relative;
    z-index: 5;
}
#rating-ticker-inner {
    display: flex;
    gap: 30px;
    white-space: nowrap;
    will-change: transform;
}

/* ============================================================
   MOBILE VERSION – ULTRA KOMPAKT & SCHMAL
============================================================ */
@media (max-width: 768px) {

    /* Footer kompakt */
    .dashboard-footer {
        transform: none;
        animation: none;
        border-radius: 0;
        padding: 30px 1rem 1rem;
        width: 100% !important;
        background: #111;
        font-size: 0.8rem;
    }
    /* ALLE Grafiken & Effekte ausblenden */
    .footer-overlay,
    .dashboard-footer::before,
    .dashboard-footer::after {
        display: none !important;
        background: none !important;
        animation: none !important;
    }
    /* Container einspaltig */
    .footer-container {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 1fr !important;
        gap: 0.7rem !important;
        margin: 0 auto !important;
    }
    /* ⭐ FIX: Boxen untereinander */
    .footer-left,
    .footer-center,
    .footer-right,
    .visitor-card {
        grid-column: auto !important;
    }
    /* Boxen schmaler & kompakter */
    .footer-card,
    .visitor-card {
        width: 100% !important;
        max-width: 320px !important;   /* ⭐ SCHMALER */
        margin: 0 auto !important;     /* ⭐ ZENTRIERT */
        padding: 0.6rem !important;
        min-height: auto !important;
        transform: none !important;
        font-size: 0.75rem !important;
        border-radius: 12px !important;
    }
    /* Titel kompakter */
    .footer-card h4,
    .visitor-card h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.3rem !important;
    }
    /* Logo kompakt */
    .footer-logo {
        height: 28px !important;
        margin-bottom: 4px !important;
    }
    /* Icons kleiner */
    .footer-right .social-link i {
        font-size: 1rem !important;
    }
    .visitor-card .visitor-icon {
        font-size: 1.2rem !important;
    }
    /* Bewertungsticker kompakt */
    #rating-ticker {
        max-width: 95% !important;
        margin: 15px auto 0 !important;
        padding: 6px 0 !important;
        border-top-width: 1px !important;
        background: rgba(0,0,0,0.85) !important;
        position: relative !important;
        z-index: 5 !important;
    }
    #rating-ticker-inner {
        gap: 15px !important;
        font-size: 0.78rem !important;
    }
}

/* ===============================
   FOOTER
==================================*/
.footer {
    text-align: center;
    padding: 2rem;
    opacity: 0.8;
}

