/* -------------------------------------------------- */
/* LOKALE SCHRIFTARTEN (Roboto)                       */
/* -------------------------------------------------- */

/* Roboto Regular (400) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Super Modern */
         url('fonts/roboto-v30-latin-regular.woff') format('woff');  /* Ältere Browser */
    font-display: swap; /* Text wird sofort gezeigt, Schrift tauscht sich dann aus */
}

/* Roboto Bold (700) */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/roboto-v30-latin-700.woff2') format('woff2'), 
         url('fonts/roboto-v30-latin-700.woff') format('woff'); 
    font-display: swap;
}

/* Grundlegende Seiten-Einstellungen */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: #111;
    overflow: hidden;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* -------------------------------------------------- */
/* EBENE 1: AMBILIGHT (Hintergrund)                   */
/* -------------------------------------------------- */
#ambilight-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ganz hinten */
    overflow: hidden;
    opacity: 0.6; /* Helligkeit des Effekts steuern */
    pointer-events: none; /* Klicks gehen durch */
}

#player-ambilight {
    width: 100%;
    height: 100%;
    transform: scale(1.5); /* Video stark vergrößern */
    filter: blur(60px) saturate(150%); /* Stark weichzeichnen & Farben verstärken */
}

/* -------------------------------------------------- */
/* EBENE 2: HAUPT-VIDEO (Vordergrund)                 */
/* -------------------------------------------------- */
#tv-container {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Wir zentrieren das Video und lassen Platz für den Rand */
    transform: translate(-50%, -50%);
    width: 90%;  /* Nicht ganz vollflächig, damit man das Ambilight sieht */
    height: 90%;
    z-index: 10; /* Vor dem Ambilight */
    
    /* Deine gewünschte Abrundung */
    border-radius: 10px; 
    
    /* Wichtig: Damit die Ecken auch beim Video rund bleiben */
    overflow: hidden; 
    
    /* Ein Schatten, damit es sich vom Leuchten abhebt */
    box-shadow: 0 0 30px rgba(0,0,0,0.8); 
    
    pointer-events: none; /* Keine Steuerung möglich */
}

#player-main {
    width: 100%;
    height: 100%;
    border: 0;
}

/* -------------------------------------------------- */
/* UI ELEMENTE (Startscreen, Logo, Text)              */
/* -------------------------------------------------- */
#start-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 100;
    display: flex; justify-content: center; align-items: center; flex-direction: column; color: white;
}

/* Das große Logo auf dem Startscreen */
.start-logo {
    width: 250px; /* Soll 250px sein */
    max-width: 80%;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.1));
}

/* Der Container für den Text */
.intro-text {
    max-width: 600px;
    padding: 0 20px;
    margin-bottom: 40px;
    text-align: center;
}

/* Der Haupt-Intro-Text */
.intro-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #dddddd; /* Helles Grau */
    margin-bottom: 15px;
}

/* Der rechtliche Hinweis (etwas kleiner und dunkler) */
.intro-text .legal-notice {
    font-size: 12px;
    color: #777777; /* Dunkleres Grau */
    margin-top: 10px;
}

button {
    padding: 15px 40px; font-size: 18px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; background: #ff0000; color: white; border: none; border-radius: 50px;
    transition: transform 0.2s;
}
button:hover { transform: scale(1.05); background: #cc0000; }

#logo {
    position: absolute; 
    top: 30px; 
    right: 40px; 
    z-index: 50;
    
    width: 100px; /* HIER GEÄNDERT auf 100px */
    
    opacity: 1; /* Habe es etwas sichtbarer gemacht (0.9), da es jetzt kleiner ist */
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

#program-info {
    position: absolute; bottom: 8%; left: 8%; z-index: 50;
    color: rgba(255,255,255,0.9);
    font-size: 24px; font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    display: none;
}
#program-info span {
    display: block; font-size: 14px; color: rgba(255,255,255,0.6); text-transform: uppercase; margin-bottom: 5px;
}

/* -------------------------------------------------- */
/* FOOTER LINKS (Impressum / Datenschutz)             */
/* -------------------------------------------------- */
#footer-links {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    /* HIER GEÄNDERT: Von 60 auf 200 */
    /* Damit liegen die Links ÜBER dem Startscreen (100) und dem Video */
    z-index: 200; 
    
    pointer-events: auto; 
}

#footer-links a {
    color: rgba(255, 255, 255, 0.6); /* Dezent grau/transparent */
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase; /* Macht IMPRINT statt Imprint */
    letter-spacing: 1px;
    margin: 0 10px;
    transition: color 0.3s ease;
    font-family: sans-serif;
}

#footer-links a:hover {
    color: #ffffff; /* Beim Drüberfahren weiß */
    text-shadow: 0 0 5px rgba(255,255,255,1);
}

/* Kleiner Trennpunkt zwischen den Links */
.separator {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* -------------------------------------------------- */
/* ERROR / COOLDOWN OVERLAY                           */
/* -------------------------------------------------- */
#error-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: none; /* Standardmäßig unsichtbar */
    justify-content: center;
    align-items: center;
    z-index: 80; /* Über Video (10), unter Startscreen (100) */
    background: rgba(0, 0, 0, 0.85); /* Dunkler Hintergrund */
}

.error-content {
    text-align: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.5;
    border: 1px solid #e62117; /* Roter Rahmen passend zum Design */
    padding: 30px 50px;
    background: #111;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(230, 33, 23, 0.3);
}

/* Kleiner Blink-Effekt für das Warn-Symbol */
.blink {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
    animation: blinker 2s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0.3; }
}

/* -------------------------------------------------- */
/* HEADLINE (H1) OBEN                                 */
/* -------------------------------------------------- */
#tv-headline {
    position: absolute;
    top: 20px; /* Abstand von oben */
    left: 0;
    width: 100%;
    
    /* Text Ausrichtung */
    text-align: center;
    margin: 0; /* Browser-Standard überschreiben */
    
    /* Design (wie Footer) */
    font-family: 'Roboto', sans-serif;
    font-size: 16px; /* Dezent, nicht zu riesig */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px; /* Etwas breiter gesperrt wirkt edel */
    color: rgba(255, 255, 255, 0.3); /* Transparentes Weiß */
    
    /* Ebene */
    z-index: 200; /* Über dem Video */
    pointer-events: auto; /* Wichtig für den Mouseover-Text */
    cursor: help; /* Maus wird zum Fragezeichen */
    
    transition: all 0.3s ease;
}

#tv-headline:hover {
    color: #ffffff; /* Leuchtet weiß beim Drüberfahren */
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
    transform: scale(1.05); /* Ganz leichtes Vergrößern */
}

/* Anpassung für sehr kleine Handys, damit es nicht ins Logo rutscht */
@media (max-width: 600px) {
    #tv-headline {
        font-size: 12px;
        top: 15px;
        letter-spacing: 1px;
        width: 70%; /* Platz lassen für das Logo rechts */
        left: 15%; /* Zentrieren im verfügbaren Raum */
    }
}