/* Sanftes Scrollen aktivieren */
html {
    scroll-behavior: smooth;
}

body {
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 20px;
    padding-top: 80px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    /* Pfad angepasst für den img-Ordner */
    background-image: url('../img/bg.png');
    background-size: cover;
    background-position: center;
    will-change: transform; 
}

/* Preloader / Seitenlade-Anzeige */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: #00ff00;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Optimierter, dauerhaft fixierter Navigations-Balken */
.content-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(5px);
    padding: 15px 0 20px 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
    box-shadow: 
        0 1px 0 0 rgba(255, 255, 255, 0.3) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.4),      
        0 8px 20px rgba(0, 255, 0, 0.15);        
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px; 
    display: grid;
    grid-template-columns: repeat(10, 1fr); 
    gap: 3px; 
    background: transparent;
    padding: 0 4px;
    box-sizing: border-box;
}

.progress-chunk {
    background: rgba(255, 255, 255, 0.1); 
    height: 100%;
    transition: background 0.15s ease;
}

.progress-chunk.active {
    background: #00ff00;
    box-shadow: 0 0 4px #00ff00; 
}

.content-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px dashed #fff;
    padding: 5px 12px;
    display: inline-block;
}
.content-nav a:hover {
    background: #fff;
    color: #000;
}
.artefakt-select {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    font-family: 'Courier New', monospace;
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
}
.artefakt-select option {
    background: #111;
    color: #fff;
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    z-index: 100;
    display: none; 
    border-radius: 5px;
}
.scroll-to-top:hover {
    background: #fff;
    color: #000;
}

.container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}
h1 {
    font-size: 3rem;
    text-transform: uppercase;
    border-bottom: 4px solid #fff;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: -2px;
}
.intro-text {
    background: #fff;
    color: #000;
    padding: 15px;
    font-weight: bold;
    margin-bottom: 40px;
    transform: rotate(-1deg);
    display: inline-block;
}
.gallery {
    display: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}
.flyer-item {
    background: #111;
    padding: 20px;
    border: 2px solid #fff;
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.5); 
    max-width: 100%;
    border-radius: 20px; 
    text-align: left; 
    scroll-margin-top: 100px; 
}
.flyer-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%) contrast(120%);
    border: 1px solid #444;
    border-radius: 10px; 
    display: block;
    margin: 0 auto;
}

/* ==========================================================
   VHS GLITCH HOVER (STATISCH & SPORADISCH)
========================================================== */

.flyer-item img:hover {
    cursor: crosshair;
    /* Die Animation läuft 4 Sekunden lang, wirkt dadurch unvorhersehbar */
    animation: vhs-sporadic-glitch 4s infinite;
}

@keyframes vhs-sporadic-glitch {
    /* --- Normaler Zustand für die meiste Zeit --- */
    0%, 15%, 18%, 45%, 49%, 75%, 78%, 100% {
        filter: grayscale(100%) contrast(120%);
        opacity: 1;
    }
    
    /* --- Glitch 1: Kurzer, knackiger Farb-Split (bei ca. 0.6 Sekunden) --- */
    16% {
        filter: grayscale(100%) contrast(150%) 
                drop-shadow(4px 0 0 rgba(255, 0, 0, 0.8)) 
                drop-shadow(-4px 0 0 rgba(0, 255, 255, 0.8));
    }
    17% {
        filter: grayscale(100%) contrast(180%) brightness(1.2) 
                drop-shadow(-3px 0 0 rgba(255, 0, 0, 0.9)) 
                drop-shadow(3px 0 0 rgba(0, 255, 255, 0.9));
    }

    /* --- Glitch 2: Heftigere Stromschwankung mit Invert (bei ca. 1.8 Sekunden) --- */
    46% {
        filter: grayscale(100%) contrast(200%) invert(10%) 
                drop-shadow(-5px 0 0 rgba(255, 0, 0, 0.8)) 
                drop-shadow(5px 0 0 rgba(0, 255, 255, 0.8));
    }
    47% {
        filter: grayscale(100%) contrast(120%) 
                drop-shadow(2px 0 0 rgba(255, 0, 0, 0.5)) 
                drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.5));
        opacity: 0.9;
    }
    48% {
        filter: grayscale(100%) contrast(180%) brightness(1.3)
                drop-shadow(4px 0 0 rgba(255, 0, 0, 0.9)) 
                drop-shadow(-4px 0 0 rgba(0, 255, 255, 0.9));
    }

    /* --- Glitch 3: Nur ein winziger Farb-Zucker (bei ca. 3 Sekunden) --- */
    76% {
        filter: grayscale(100%) contrast(150%) 
                drop-shadow(-3px 0 0 rgba(255, 0, 0, 0.7)) 
                drop-shadow(3px 0 0 rgba(0, 255, 255, 0.7));
    }
    77% {
        filter: grayscale(100%) contrast(130%) 
                drop-shadow(2px 0 0 rgba(255, 0, 0, 0.5)) 
                drop-shadow(-2px 0 0 rgba(0, 255, 255, 0.5));
    }
}

.flyer-item p {
    margin-top: 15px;
    font-size: 1.2rem;
    text-transform: uppercase;
    border-top: 1px dashed #fff;
    padding-top: 10px;
}
.history-section {
    margin-top: 60px;
    text-align: left;
    border-left: 5px solid #fff;
    padding-left: 20px;
    max-width: 700px;
    position: relative;
    scroll-margin-top: 100px;
}
.speech-controls {
    margin-bottom: 15px;
}
.speech-btn {
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-right: 5px;
    transition: all 0.3s ease;
}
.speech-btn:hover {
    background: #fff;
    color: #000;
}

.speech-btn.playing {
    color: #00ff00;
    border-color: #00ff00;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* ==========================================================
   FOOTER NAVIGATION (BACK TO FUTURE)
========================================================== */

.footer-nav {
    margin-top: 60px;
    background: transparent; /* Der weiße Kasten ist weg */
    padding: 20px 0;
    width: 100%;
    text-align: center;
}

.footer-nav a {
    background: #050505;
    color: #00ff00; /* Matrix-Grün */
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    text-decoration: none;
    border: 1px dashed #00ff00; /* Hacker-Terminal-Rahmen */
    padding: 12px 24px;
    display: inline-block;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
    box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1);
}

.footer-nav a:hover {
    background: #00ff00;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.6);
    text-shadow: none;
}
.legal {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
}
.legal a { color: #666; text-decoration: none; margin: 0 10px; }
.visitor-counter {
    margin-top: 20px;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff00;
    background: #222;
    padding: 5px 10px;
    border: 1px solid #444;
    display: inline-block;
    letter-spacing: 2px;
}
.visitor-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.copy { text-align: center; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* UNIVERSAL FOOTER VERIFY BADGE SYSTEM */
.footer-verify {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;    
  margin-bottom: 0.5rem; 
  clear: both;           
}

.footer-verify a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease;
}

.footer-verify img.verify-badge-inline {
  display: block;
  width: 90px;           
  height: auto;          
  max-width: 100%;       
}

.footer-verify a:hover {
  transform: scale(1.06); 
  filter: drop-shadow(0 0 12px rgba(255, 215, 106, 0.5));
}

.footer-verify a:focus-visible {
  transform: scale(1.06);
  filter: drop-shadow(0 0 12px rgba(255, 215, 106, 0.8));
}

/* ==========================================================
   CRT RÖHREN-MONITOR EFFEKT
========================================================== */

/* Abgedunkelte Ecken (Vignette) für das TV-Gefühl */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.9);
    pointer-events: none; /* Klicks gehen durch das Overlay hindurch */
    z-index: 900;
}

/* Die Scanlines und das leichte Flimmern */
.crt-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    animation: crt-flicker 0.15s infinite;
    opacity: 0.3; /* Dezent halten, sonst wird das Lesen anstrengend */
}

@keyframes crt-flicker {
    0% { opacity: 0.25; }
    50% { opacity: 0.3; }
    100% { opacity: 0.25; }
}

/* ==========================================================
   HARDWARE BEDIENFELD (TV-KNÖPFE)
========================================================== */

/* Platzhalter anpassen, da das Menü jetzt unten sitzt */
body {
    padding-top: 20px;
    padding-bottom: 120px; 
}

/* Das Chassis des Fernsehers unten am Bildschirm */
.content-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Dunkles, gebürstetes Plastik/Metall */
    background: linear-gradient(to bottom, #2a2a2a 0%, #111111 100%);
    border-top: 3px solid #444;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

/* Die klobigen TV-Knöpfe */
.content-nav a, .speech-btn {
    background: linear-gradient(to bottom, #444 0%, #222 100%);
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #111;
    border-top: 1px solid #666; /* Lichtkante oben */
    box-shadow: 0 4px 6px rgba(0,0,0,0.5), inset 0 -2px 5px rgba(0,0,0,0.5);
    text-shadow: 1px 1px 0px #000;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.1s ease;
}

/* Der Hover-Zustand (Finger liegt auf dem Knopf) */
.content-nav a:hover, .speech-btn:hover {
    background: linear-gradient(to bottom, #555 0%, #333 100%);
    color: #fff;
}

/* Der gedrückte Zustand (Sattes physisches Klicken) */
.content-nav a:active, .speech-btn:active {
    background: #111;
    border-top: 1px solid #000;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.8);
    transform: translateY(2px);
}

/* Das LED-Display (Der Artefakt-Selektor) */
.artefakt-select {
    background: #051405; /* Dunkelgrünes LCD-Display */
    color: #00ff00;      /* Matrix-Grün */
    border: 2px inset #222;
    font-family: 'Courier New', monospace;
    padding: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1) inset;
}

.artefakt-select option {
    background: #000;
    color: #00ff00;
}


.tv-header {
  background-color: #1a1a1a;
  color: white;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #000;
  font-family: Arial, sans-serif;
}

.tv-branding {
  font-size: 1.5rem;
  font-weight: bold;
  color: #888;
}

/* Der Container für das Display */
.digital-display {
  background-color: #050505;
  border: 4px solid #333;
  border-radius: 8px;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  /* Innerer Schatten für den Display-Tiefen-Effekt */
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 255, 0, 0.1);
  font-family: 'Share Tech Mono', monospace;
}

/* Das kleine "CH" neben der Nummer */
.channel-label {
  color: #333; /* Dunkel, als wäre es unbeleuchtet auf dem Display */
  font-size: 1.5rem;
  font-weight: bold;
}

/* Die fette Nummer selbst */
.channel-number {
  color: #0f0; /* Neon-Grün */
  font-size: 4.5rem; /* Richtig fett */
  line-height: 1;
  /* Der Leuchteffekt (Glow) */
  text-shadow: 
    0 0 5px #0f0, 
    0 0 15px #0f0, 
    0 0 30px #0f0;
}

/* Nur für die Test-Buttons */
.controls {
  text-align: center;
  margin-top: 30px;
}
.controls button {
  padding: 10px 20px;
  font-size: 1.2rem;
  cursor: pointer;
  margin: 0 10px;
}



.tv-panel {
  display: flex;
  justify-content: space-between; /* Oder center, je nach Design */
  align-items: center;
  /* ... restliches Styling von deinem alten .tv-header ... */
}

/* ==========================================================
   HARDWARE BEDIENFELD (TV-KNÖPFE & DISPLAY)
========================================================== */

body {
    padding-top: 20px;
    /* Etwas weniger Platz unten auf Desktop, da der Balken kompakter wird */
    padding-bottom: 90px; 
}

/* Das Chassis des Fernsehers unten am Bildschirm */
.content-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    /* Dunkles, gebürstetes Plastik/Metall */
    background: linear-gradient(to bottom, #2a2a2a 0%, #111111 100%);
    border-top: 3px solid #444;
    padding: 10px 15px; /* Padding deutlich reduziert */
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
    box-sizing: border-box; /* Verhindert, dass Padding die Breite sprengt */
}

/* Der Container für TV-Branding und Display */
.tv-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tv-branding {
    font-size: 1.2rem; /* Etwas kleiner gemacht */
    font-weight: bold;
    color: #888;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Der Container für das Display */
.digital-display {
    background-color: #050505;
    border: 3px solid #333; /* Rand etwas dünner */
    border-radius: 6px;
    padding: 5px 15px; /* Kompakter */
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 255, 0, 0.1);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
}

/* Das kleine "CH" neben der Nummer */
.channel-label {
    color: #333; 
    font-size: 1.1rem;
    font-weight: bold;
}

/* Die fette Nummer selbst */
.channel-number {
    color: #0f0; /* Neon-Grün */
    font-size: 2.8rem; /* Von riesigen 4.5rem auf 2.8rem verkleinert */
    line-height: 1;
    text-shadow: 0 0 5px #0f0, 0 0 15px #0f0; /* Glow leicht angepasst */
}

/* Das LED-Display (Der Artefakt-Selektor) */
.artefakt-select {
    background: #051405; 
    color: #00ff00;      
    border: 2px inset #222;
    font-family: 'Courier New', monospace;
    padding: 8px 12px; /* Etwas flacher gemacht */
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.1) inset;
    max-width: 100%;
}

.artefakt-select option {
    background: #000;
    color: #00ff00;
}

/* ==========================================================
   MOBILE OPTIMIERUNG (Media Queries für Smartphones)
========================================================== */

@media (max-width: 768px) {
    body {
        /* Mehr Platz nach unten, weil wir die Elemente auf Mobile stapeln */
        padding-bottom: 120px; 
    }

    .content-nav {
        padding: 8px 10px;
        gap: 10px;
        /* Auf dem Handy ordnen wir Display und Dropdown untereinander an */
        flex-direction: column; 
    }

    .tv-branding {
        /* Der Text "Spirelli Retro-TV" wird auf dem Handy ausgeblendet, um Platz zu sparen */
        display: none; 
    }

    .digital-display {
        padding: 2px 10px;
        border-width: 2px;
    }

    .channel-label {
        font-size: 0.9rem; /* Noch kleiner */
    }

    .channel-number {
        font-size: 2rem; /* Schön flach für das Handy */
    }

    .artefakt-select {
        width: 100%; /* Das Dropdown nutzt die volle Breite, das lässt sich auf Touchscreens besser tippen */
        font-size: 0.85rem;
        padding: 10px;
        text-align: center;
    }
}

/* Artefakt Anzeige */
#techno-artefakte {
    margin-top: 40px;
    margin-bottom: 60px;
}

.artefakt-title {
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    text-transform: uppercase;
    text-align: left;
}

.artefakt-meta {
    color: #666;
    font-size: 0.9em;
    margin-top: 20px;
}

/* 404 System Error */
.system-error {
    margin-top: 50px;
    text-align: center;
    color: red;
}

/* Container für Rechtstexte (Datenschutz, Impressum) */
.legal-page-container {
    text-align: left;
    max-width: 800px;
    margin: 40px auto 60px auto;
    padding: 30px;
    background: #050505;
    border: 1px solid #333;
    box-shadow: inset 0 0 15px #000;
    font-family: 'Courier New', monospace;
    color: #ccc;
    line-height: 1.6;
}

.legal-title {
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 10px;
    text-transform: uppercase;
    margin-top: 0;
}

/* Styling für Links innerhalb der Rechtstexte */
.legal-link {
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px dashed #00ff00;
}

.legal-link:hover {
    border-bottom-style: solid; /* Optionaler cooler Konsolen-Effekt beim Hovern */
}


/* Intro Text Container */
.intro-text {
    text-align: left; 
    max-width: 600px; 
    margin: 0 auto 50px auto; 
    padding: 25px; 
    background: #050505; 
    border: 1px solid #333; 
    box-shadow: inset 0 0 10px #000;
}

/* System-Meldungen im Terminal-Look */
.intro-text .terminal-msg {
    color: #00ff00; 
    font-weight: bold; 
    margin-bottom: 15px;
}

/* Normaler Fließtext */
.intro-text .body-text {
    color: #ccc; 
    line-height: 1.6;
}

/* Warnmeldung mit Animation */
.intro-text .warning-text {
    color: #ff3333; 
    font-weight: bold; 
    margin-top: 20px; 
    animation: pulse 2s infinite;
}

/* Keyframes für den Pulse-Effekt (falls du ihn noch nicht woanders definiert hast) */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}


/* ==========================================================
   NEUES HARDWARE-LAYOUT (LOGO LINKS, BUTTON RECHTS)
========================================================== */

/* Die Navigation auf 3 Zonen (Links, Mitte, Rechts) verteilen */
.content-nav {
    justify-content: space-between; /* Drückt die äußeren Elemente an den Rand */
    padding: 10px 30px; /* Etwas mehr Seitenabstand */
}

/* Container für die perfekte Zentrierung in den Zonen */
.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
}

.nav-center {
    gap: 15px; /* Abstand zwischen CH-Display und Dropdown */
}


/* --- LOGO (Links) - Authentischer Chrom-Look --- */
.spirelli-logo {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    
    /* Die Hardware-Umgebungsspiegelung: Heller Himmel, harter Bruch in der Mitte (Horizont), heller Boden */
    background: linear-gradient(
        to bottom, 
        #ffffff 0%,       /* Lichtkante oben */
        #b8c0c8 35%,      /* Grauer werdende obere Hälfte */
        #111111 50%,      /* HARTER BRUCH: Die dunkle Horizontlinie */
        #3a3a3a 52%,      /* Reflektion des dunklen Bodens direkt darunter */
        #9ba3ab 85%,      /* Heller werdender Boden nach unten */
        #ffffff 100%      /* Lichtkante unten */
    );
    
    /* Beschneidet den Verlauf auf die Buchstaben */
    -webkit-background-clip: text;
    background-clip: text;
    
    /* Macht die eigentliche Textfarbe unsichtbar, damit der Verlauf wirkt */
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    /* 3D-Stempel-Effekt: Schlagschatten für Tiefe und ein leichter heller Schein für die Kante */
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.9)) 
            drop-shadow(-1px -1px 0px rgba(255, 255, 255, 0.2));
            
    white-space: nowrap;
     /* border-bottom: 2px solid #333; - Dunklere, passendere Unterstreichung */
    padding-bottom: 4px;
}

/* --- ROTER POWER-BUTTON (Rechts) --- */
.power-btn {
    width: 45px;
    height: 45px;
    background: linear-gradient(to bottom, #ff3333 0%, #aa0000 100%);
    border: 2px solid #111;
    border-top: 2px solid #ff8888; /* Lichtkante oben */
    border-radius: 6px; /* Viereckig mit leicht weichen Kanten */
    box-shadow: 0 4px 6px rgba(0,0,0,0.8), inset 0 -2px 5px rgba(0,0,0,0.5);
    cursor: pointer;
    position: relative;
    transition: all 0.1s ease;
    outline: none;
}

/* Das typische Power-Symbol (Kreis mit Strich) rein mit CSS gezeichnet */
.power-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
}
.power-btn::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 12px;
    background: #fff;
    border-radius: 2px;
}

/* Hover & Klick-Effekte für den Button */
.power-btn:hover {
    background: linear-gradient(to bottom, #ff4d4d 0%, #cc0000 100%);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.6), 0 4px 6px rgba(0,0,0,0.8);
}

.power-btn:active {
    background: #880000;
    border-top: 2px solid #000;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.9);
    transform: translateY(2px); /* Knopf wird "reingedrückt" */
}

/* --- MOBILE ANPASSUNG --- */
@media (max-width: 900px) {
    .content-nav {
        /* Verhindert den Umbruch, hält Logo links und Power-Button rechts */
        flex-wrap: nowrap;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .nav-left {
        width: auto;
        margin-bottom: 0;
    }
    
    .spirelli-logo {
        font-size: 1.2rem;
    }

    /* Der mittlere Bereich (Display & Dropdown) wird zum Aufklapp-Menü */
    .nav-center {
        position: absolute;
        bottom: 100%; /* Positioniert das Menü direkt ÜBER der unteren Leiste */
        left: 0;
        width: 100%;
        background: linear-gradient(to bottom, #2a2a2a 0%, #111111 100%);
        border-top: 3px solid #444;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 -15px 25px rgba(0, 0, 0, 0.9);
        box-sizing: border-box;
        
        /* Standardmäßig auf dem Handy versteckt */
        display: none; 
    }

    /* Diese Klasse steuern wir gleich per JavaScript */
    .nav-center.mobile-open {
        display: flex;
    }
    
    /* Optische Anpassung für das Menü auf dem Handy */
    .digital-display {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .artefakt-select {
        width: 100%;
        text-align: center;
    }
}
/* Der Container, der den gesamten Inhalt umschließt, wird animiert */
body.tv-shutdown {
    background: #000;
    pointer-events: none; /* Verhindert weitere Klicks während der Animation */
}

/* Wir animieren alle sichtbaren Elemente weg, um den TV-Effekt zu erzeugen */
body.tv-shutdown .content-nav,
body.tv-shutdown .container,
body.tv-shutdown .crt-overlay {
    animation: crt-turn-off 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Die klassische "Bildschirm fällt zu einem Strich zusammen"-Animation */
@keyframes crt-turn-off {
    0% {
        transform: scale(1, 1.3) translate3d(0, 0, 0);
        filter: brightness(1);
    }
    60% {
        transform: scale(1, 0.001) translate3d(0, 0, 0);
        filter: brightness(10);
    }
    100% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: scale(0, 0.0001) translate3d(0, 0, 0);
        filter: brightness(0);
        opacity: 0;
    }
}



/* ========================================== */
/* ARTEFAKT 091 - SORA TV PLAYER              */
/* ========================================== */

.artefakt-091 { 
  width: 100%; 
  max-width: 800px; 
  margin: 0 auto; 
}

.channel-controls { 
  margin-bottom: 15px; 
  padding: 10px; 
  background: #222; 
  color: #00ffcc; 
  border-radius: 5px; 
}

.channel-controls select { 
  background: #111; 
  color: #00ffcc; 
  border: 1px solid #00ffcc; 
  padding: 5px 10px; 
  margin-left: 10px; 
  cursor: pointer; 
}

.tv-container { 
  position: relative; 
  width: 100%; 
  aspect-ratio: 16 / 9; 
  background: #000; 
  overflow: hidden; 
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.2); 
}

#sora-player { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.crt-overlay {
  position: absolute; 
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 3px 100%;
  z-index: 10; 
  pointer-events: none;
}
