/* === LOKALE SCHRIFTEN / DSGVO-SAFE (V6.04) === */

/* 1. REGULAR (Standard) */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Inconsolata-Regular.woff2') format('woff2');
}

/* 2. MEDIUM (Die elegante Mitte - Empfehlung für Credits) */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/Inconsolata-Medium.woff2') format('woff2');
}

/* 3. SEMIBOLD (Kräftig, aber nicht klobig) */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/Inconsolata-SemiBold.woff2') format('woff2');
}

/* 4. BOLD (Maximaler Impact) */
@font-face {
  font-family: 'Inconsolata';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/Inconsolata-Bold.woff2') format('woff2');
}

/* Bebas Neue */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  src: local(''),
       url('fonts/BebasNeue-Regular.woff2') format('woff2'); /* Pfad ggf. an deinen Dateinamen anpassen */
}

/* Danach folgt dein normaler :root Block... */

:root {
            --video-h: 87vh; 
            --bg-color: #252525;    
            --ndw-red: #db2b23;     
            --gold-beige: #b4a587;  
            --gold-light: #F4E5BF; 
            --frame-gap: 20px;
            --groesse: 11.2%; --oben: 45.8%; --links-pos: 26.5%; --rechts-pos: 26.9%;
        }

        html, body { margin: 0; padding: 0; height: 100%; background: var(--bg-color); font-family: 'Inconsolata', monospace; overflow: hidden; }
        
        /* SECTIONS */
        #section-splash {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            z-index: 2000; background: var(--bg-color);
        }

        #section-main {
            display: none; flex-direction: column; align-items: center;
            width: 100%; min-height: 100vh;
            padding: var(--frame-gap); box-sizing: border-box;
            overflow-y: auto;
        }

html, body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

        /* SPLASH ELEMENTS */
        .wrapper { display: flex; gap: 20px; align-items: center; justify-content: center; margin-bottom: 4vw; pointer-events: none; }
        .face-box { width: calc(125vw / 7); flex-shrink: 0; }
        .face-tracker { width: 100%; background: transparent !important; display: flex; align-items: center; justify-content: center; }
        #shuffle-link { text-decoration: none; cursor: pointer; display: block; transition: transform 0.2s ease; }
        /* === SPLASH SCREEN TEXT DICKER (V6.13) === */
#shuffle-container {
    color: var(--gold-beige);
    font-size: 1.5vw; 
    font-weight: 600; 
    text-align: center; 
    text-transform: uppercase;
    max-width: 85vw; 
    line-height: 1.2; 
    letter-spacing: 0.05em; 
    
    /* === NEU V6.99: PLATZ FÜR 2 ZEILEN RESERVIEREN === */
    min-height: 2.5em; /* Vorher 1.5em. Verhindert das Springen der Bilder! */
    display: flex; 
    align-items: flex-start; 
    justify-content: center;
    white-space: pre-line;
}

        /* MAIN ELEMENTS */
        .container { width: 100%; max-width: calc(var(--video-h) * 1.3333); display: flex; flex-direction: column; gap: var(--frame-gap); }

        /* --- KINO-CONTAINER & VOLLBILD (V5.35) --- */
        .video-section { 
            position: relative; 
            width: 100%; 
            background-color: #000; 
            overflow: hidden; 
            aspect-ratio: 4 / 3; 
            max-height: 100vh;
            margin: 0 auto;
        }
        
        .typo-overlay { position: absolute; top: 40px; left: 40px; width: 40%; z-index: 50; opacity: 0; pointer-events: none; display: block; }
        .fade-in-delayed { animation: typoFade 10s forwards; animation-delay: 2s; }
        @keyframes typoFade { from { opacity: 0; } to { opacity: 1; } }
        
        video { width: 100%; height: 100%; object-fit: contain; display: block; }
        video:fullscreen { object-fit: contain !important; background: #000; }
        video:-webkit-full-screen { object-fit: contain !important; background: #000; }

        /* === DER PERFEKTE 4:3 WRAPPER (V5.73) === */
        .video-inner {
            position: relative; 
            width: 100%;
            height: 100%;
            margin: auto; 
            aspect-ratio: 4 / 3;
            max-width: calc(100vh * (4 / 3));
            max-height: calc(100vw * (3 / 4));
        }

        /* === ON-SCREEN BUTTONS RETRO (V5.65) === */
        .os-btn {
            position: absolute;
            bottom: 30px;
            height: 25px; 
            width: auto;
            z-index: 100;
            cursor: pointer;
            opacity: 0; 
            transition: opacity 0.3s ease;
        }
        .os-left { left: 30px; }
        .os-right { right: 30px; }

        /* GRID & TILES */
        .bento-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--frame-gap); width: 100%; }
        .tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px; box-sizing: border-box; }
        h2 { font-family: 'Bebas Neue', sans-serif; font-weight: 400; text-transform: uppercase; font-size: 4rem; margin: 0; line-height: 0.85; position: relative; z-index: 10; }
        .tile-archive h2, .tile-connect h2, .tile-merch h2 { font-size: 3rem; }

        .tile-video-info { grid-column: span 4; background-color: #000; color: var(--ndw-red); min-height: 300px; }
        .tile-tv { grid-column: span 2; background-color: var(--ndw-red); display: flex; justify-content: center; align-items: center; padding: 0; }
        .tile-player { grid-column: span 3; background-color: var(--ndw-red); padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
        .tile-music-info { grid-column: span 3; background-color: var(--gold-beige); color: #000; }
        .tile-archive { grid-column: span 2; background-color: #000; height: 250px; cursor: pointer; color: var(--gold-beige); justify-content: space-between; }
        .tile-connect { grid-column: span 2; background-color: var(--gold-beige); height: 250px; cursor: pointer; color: #000; }
        .tile-merch { grid-column: span 2; background-color: var(--ndw-red); height: 250px; cursor: pointer; color: #000; }
        .tile-archive img, .tile-connect img, .tile-merch img { position: absolute; top: 0; right: 0; height: 100%; object-fit: cover; opacity: 1; pointer-events: none; }
        
        .tile-video-info img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom right; z-index: 30; pointer-events: none; }

        .legal-wrapper { margin-top: auto; position: relative; z-index: 20; display: flex; gap: 10px; align-items: center; }
        .inner-legal-link { color: var(--gold-beige); font-size: 0.8rem; letter-spacing: 1px; text-decoration: none; opacity: 0.7; }
        .version-tag { color: var(--gold-beige); font-size: 0.8rem; opacity: 0.4; border: 1px solid var(--gold-beige); padding: 2px 4px; border-radius: 2px; }

        /* LISTS */
        .playlist, .social-list { list-style: none; padding: 0; margin: 20px 0 0 0; position: relative; z-index: 20; }
        .playlist-item, .social-item { padding: 4px 8px; padding-left: 0; cursor: pointer; font-weight: 600; transition: 0.2s; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; font-size: 1rem; text-decoration: none; color: inherit; }
        .social-item { color: #000; } 
        .tile-video-info .playlist-item.active { background-color: var(--ndw-red); color: #000 !important; text-shadow: none; }
        .tile-video-info .playlist-item:not(.active) { color: var(--ndw-red); }
        .tile-music-info .playlist-item.active { background-color: #000; color: var(--gold-beige) !important; }
        .tile-music-info .playlist-item:not(.active) { color: #000; }

        .tile-video-info h2 { font-size: 5rem; margin-bottom: 8px; }
        .tile-music-info h2 { font-size: 3.5rem; }
        .tile-video-info .playlist-item { font-size: 1.2rem; margin-bottom: 8px; }
        .tile-music-info .playlist-item { font-size: 1rem; margin-bottom: 4px; }

/* === SUBTILE CREDITS (V6.11) === */
.video-credits { 
    margin-top: auto; 
    position: relative; 
    z-index: 20; 
    color: var(--ndw-red); 
    font-size: 0.8rem; 
    letter-spacing: 1px; 
    line-height: 1.4; 
    opacity: 0.8; 
    pointer-events: none; 
    font-weight: bold; /* <-- Das macht die Schrift kräftiger */
}

        /* PLAYER UI */
        .player-wrapper { position: relative; width: 100%; max-width: 400px; display: flex; flex-direction: column; align-items: center; }
        .cassette-body { position: relative; width: 100%; }
        .tape-shell { width: 100%; height: auto; aspect-ratio: 1074/692; z-index: 10; position: relative; filter: var(--shadow-filter); pointer-events: none; object-fit: contain; }
        .reel-img { position: absolute; width: var(--groesse); top: var(--oben); z-index: 5; transform: translateY(-50%); }
        .pos-left { left: var(--links-pos); } .pos-right { right: var(--rechts-pos); }
        .controls { display: flex; gap: 2px; background: #000; padding: 3px; border-radius: 2px; margin-bottom: 15px; width: 78%; z-index: 20; }
        .tape-btn { flex: 1; height: 26px; background: linear-gradient(to bottom, var(--gold-light), var(--gold-beige)); border: 1px solid rgba(0,0,0,0.3); cursor: pointer; display: flex; justify-content: center; align-items: center; }
        .tape-btn svg { width: 18px; height: 18px; fill: #222; }
        .active-state { background: #968153 !important; transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }
        
        @keyframes spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(-360deg); } }
        .playing { animation: spin linear infinite; }
        .fast-forward { animation: spin 0.2s linear infinite !important; }
        #reel1.playing { animation-duration: 4.5s; }
        #reel2.playing { animation-duration: 3.2s; }

        /* HOVER TEXT */
        .hover-container { margin-top: 20px; position: relative; z-index: 20; pointer-events: none; }
        .hover-line { 
            font-family: 'Inconsolata', monospace; 
            font-size: 1rem; 
            color: var(--gold-beige); 
            line-height: 1.2; 
            opacity: 0; 
            transform: translateY(5px); 
            transition: opacity 0.3s ease, transform 0.3s ease; 
            margin-bottom: 4px; 
            font-weight: 600; 
            padding: 0 8px 0 0; 
        }
        .tile-merch .hover-line { color: #000; }
        .hover-line.visible { opacity: 1; transform: translateY(0); }

        /* OVERLAYS */
        .overlay-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(37, 37, 37, 0.9); z-index: 3000; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: 0.4s; }
        .overlay-container.active { opacity: 1; pointer-events: all; }
        .overlay-content { flex: 1; display: flex; flex-direction: column; padding: 50px; box-sizing: border-box; position: relative; overflow: hidden; }
        .btn-close-circle { background: none; border: none; cursor: pointer; width: 30px; height: 30px; transition: transform 0.2s; padding: 0; display: flex; justify-content: center; align-items: center; }
        .btn-close-circle circle, .btn-close-circle path { stroke: var(--gold-beige); }
        .btn-close-circle svg { width: 30px; height: 30px; display: block; }

        /* =========================================================
           SCAN GALERIE / BILDER-VIEWER (V6.03)
           ========================================================= */
        .scan-wrapper { flex: 1; width: 100%; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; cursor: grab; }
        .scan-wrapper:active { cursor: grabbing; }
        .scan-img { max-width: 90%; max-height: 80vh; object-fit: contain; transform-origin: center center; transition: transform 0.1s linear; user-select: none; }
        
        .scan-header { 
            width: 100%; 
            margin: 0 auto 20px auto; 
            display: flex; 
            justify-content: center; 
            align-items: flex-start; 
            position: relative; /* Anker für Zähler und X-Button */
            z-index: 100; 
            min-height: 30px; 
        }

        .scan-header .btn-close-circle {
            position: absolute;
            right: 0;
            top: 0;
            margin: 0; 
        }

        /* === V6.95: ARCHIV TEXT-SYNC & SAFARI FIX === */

/* 1. Beide Elemente absolut identisch zwingen */
.scan-counter, #scan-caption {
    font-family: 'Inconsolata', monospace !important;
    font-size: 1rem !important; 
    color: var(--gold-beige) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important; 
    -webkit-text-size-adjust: 100% !important; /* Hier ist die Magie gegen das iOS-Aufblasen! */
    margin: 0 !important; 
}

/* 2. Spezifische Positionen wiederherstellen */
.scan-counter {
    position: absolute;
    left: 0;
    top: 0;
}

#scan-caption {
    padding: 0 60px !important; 
    text-align: center;
}
    

       /* === V6.45: NAV BASE === */
        .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gold-beige); font-size: 3rem; cursor: pointer; padding: 20px; z-index: 100; opacity: 1; transition: transform 0.2s ease, color 0.2s ease; }
        .nav-prev { left: 20px; } 
        .nav-next { right: 20px; }

        /* === V6.38: PERFEKTE MITTE FÜR ARCHIV-PFEILE === */
        #press-overlay .nav-btn {
            top: calc(50% + 25px); /* Gleicht die 50px vom Header genau aus */
        }

/* === V6.46: MERCH-OVERLAY PFEILE ZENTRIEREN & BEFREIEN === */
        #merch-overlay .nav-btn {
            top: calc(50% + 15px); /* Gleicht die 30px des Close-Buttons exakt aus */
        }
        
        /* Nur für Desktop: Pfeile weiter an den Bildschirmrand schieben */
        @media (min-width: 769px) {
            #merch-overlay .nav-prev { left: 20px; }  /* Vorher 20px */
            #merch-overlay .nav-next { right: 20px; } /* Vorher 20px */
        }

        /* =========================================================
           MERCH KARUSSELL (V5.42)
           ========================================================= */
        .merch-track { 
            display: flex; 
            width: 100%; 
            height: 100%; 
            overflow-x: auto; 
            scroll-snap-type: x mandatory; 
            gap: 0; 
            align-items: center; 
            scrollbar-width: none; 
        }
        .merch-track::-webkit-scrollbar { display: none; } 

        .product-triptych { 
            min-width: 100%; 
            display: grid; 
            grid-template-columns: 1fr 1fr 1fr; 
            gap: 20px; 
            scroll-snap-align: center; 
            padding: 0 50px; 
            box-sizing: border-box; 
        }
        .triptych-tile { background: #000; aspect-ratio: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
        .triptych-tile img { width: 100%; height: 100%; object-fit: cover; }
        .merch-info-box { background-color: var(--gold-beige); color: #000; padding: 40px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
       /* NEU V6.91: Eigene Regel für den Merch-Fließtext */
.merch-info-box p {
    font-family: 'Inconsolata', monospace; /* Zur Sicherheit */
    font-weight: 600; /* Regular für optimale Lesbarkeit, hier könntest du auch 500 für Medium testen */
    font-size: 1rem; /* Hier kannst du ihn z. B. auf 0.9rem verkleinern */
    line-height: 1.5; /* Etwas mehr Luft zwischen den Zeilen wirkt deutlich edler */
    margin: 15px 0; /* Sorgt für sauberen Abstand zum Titel und Preis */
}
        .merch-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 5vw, 2.5rem); margin: 0; line-height: 0.85; overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; hyphens: auto; }
        .merch-price { font-size: 1rem; font-weight: bold; text-align: right; }

        /* Legal */
        .legal-box { width: 100%; max-width: 600px; background-color: var(--gold-beige); color: #000; padding: 0; margin: auto; line-height: 1.6; position: relative; max-height: 80vh; display: flex; flex-direction: column; }
        .legal-header { padding: 40px 40px 20px 40px; flex-shrink: 0; display: flex; justify-content: space-between; }
        .legal-header h2 { font-size: 3rem; margin-bottom: 0; border-bottom: none; width: 100%; }
        #legal-text-container { padding: 0 40px 40px 40px; overflow-y: auto; }
        .legal-box .btn-close-circle circle, .legal-box .btn-close-circle path { stroke: #000; }

        /* Stecker Logik */
        .tile-connect { position: relative; overflow: hidden; }
        .plug-img { position: absolute; top: 0; right: 0; height: 100%; object-fit: cover; pointer-events: none; transition: none; width: auto; }
        .img-open { opacity: 0.8 !important; display: block; }
        .img-closed { opacity: 0 !important; display: block; }

        /* Bild Fade-Effekte */
        .tile-merch img { transition: opacity 0.4s ease; }
        .tile-archive img { transition: opacity 0.4s ease; object-fit: contain !important; opacity: 0.7; }

        /* === HOVER NUR FÜR ECHTE MÄUSE (V5.53) === */
        @media (hover: hover) {
            #shuffle-link:hover { transform: scale(1.03); }
            /* === LEUCHTENDER HOVER-TEXT (V5.54) === */
            .playlist-item:hover, .social-item:hover { 
                opacity: 1; 
                color: var(--gold-light) !important; 
            }
            .btn-close-circle:hover { transform: rotate(90deg); }
/* === V6.45: PFEILE WEICHEN AUS UND WERDEN HELLER === */
            .nav-btn:hover { color: var(--gold-light); }
            .nav-prev:hover { transform: translateY(-50%) translateX(-6px); }
            .nav-next:hover { transform: translateY(-50%) translateX(6px); }
            .tile-connect:hover .img-open { opacity: 0 !important; }
            .tile-connect:hover .img-closed { opacity: 0.8 !important; }
            .tile-merch:hover img { opacity: 0 !important; }
            .tile-archive:hover img { opacity: 0 !important; }
            
            /* Die neuen On-Screen Buttons einblenden */
            .video-inner:hover .os-btn { opacity: 1; }
        }

        /* Fallback für Touch-Geräte: Buttons immer leicht sichtbar */
        @media (hover: none) { 
            .os-btn { opacity: 0.0; } 
        }

        @media (max-width: 768px) { 
            /* === MOBILE EDGE-TO-EDGE (V5.95) === */
            #section-main { 
                padding-left: 0 !important; 
                padding-right: 0 !important; 
            }

            /* === MOBILE FULLSCREEN HIDE (V5.96) === */
            #btn-fullscreen, 
            #os-btn-fullscreen, 
            .os-btn.os-right { 
                display: none !important; 
            }

            /* === NEU V6.93: PLAY-TOGGLE PROZENTUAL VERKLEINERN === */
            .os-btn.os-left {
                height: 6%; /* Die gesuchte Prozentzahl! Skaliert jetzt perfekt mit. */
                left: 15px; /* Etwas näher an den Rand gerückt für den Handy-Look */
                bottom: 15px; 
            }

            /* === MOBILE WUNSCH-REIHENFOLGE (V5.51) === */
            .bento-grid { display: contents; } 
            #player-container  { order: 1; } 
            .tile-player       { order: 2; } 
            .tile-video-info   { order: 3; } 
            .tile-music-info   { order: 4; } 
            .tile-tv           { order: 5; } 
            .tile-archive      { order: 6; } 
            .tile-connect      { order: 7; } 
            .tile-merch        { order: 8; }

            .tile { grid-column: span 1 !important; } 
            .typo-overlay { width: 70%; left: 20px; top: 20px; } 
            .hover-container { display: none; } 
            .product-triptych { grid-template-columns: 1fr; overflow-y: auto; padding: 10px; } 
            
            .video-section { height: auto !important; aspect-ratio: 4 / 3; width: 100%; }
            .video-section video { object-fit: contain; }
            .face-box { width: 42vw; }
           #shuffle-container { 
    font-size: 1rem; 
    line-height: 1.1; 
    max-width: 80vw; 
    min-height: 3.5em; /* Sorgt dafür, dass die Bilder auch beim 3-Zeiler stillstehen */
}
            .wrapper { margin-bottom: 30px; gap: 10px; }

            .product-triptych { grid-template-columns: 1fr !important; display: flex !important; flex-direction: column !important; align-items: center !important; gap: 20px !important; height: 100% !important; overflow-y: auto !important; padding: 90px 20px 60px 20px !important; box-sizing: border-box; }
            .triptych-tile, .merch-info-box { width: 85vw !important; max-width: 350px !important; aspect-ratio: 1 / 1 !important; box-sizing: border-box !important; flex-shrink: 0 !important; margin: 0 !important; grid-column: auto !important; height: auto !important; min-height: 0 !important; }
            .merch-info-box { display: flex !important; flex-direction: column !important; justify-content: space-between !important; padding: 30px !important; overflow-y: auto !important; order: -1 !important; }

            .tile-video-info { position: relative !important; min-height: auto !important; }
            .tile-video-info img { position: absolute !important; top: 0 !important; left: 0 !important; height: 100% !important; object-fit: contain !important; opacity: 0.7 !important; z-index: 1 !important; pointer-events: none; }
            .tile-video-info h2, .tile-video-info .playlist { position: relative; z-index: 2; max-width: 100% !important; text-shadow: 1px 1px 10px rgba(0,0,0, 0.8); }
           /* === V7.10: HEADLINES AUF DEM HANDY ALLE EINHEITLICH === */
            .tile-video-info h2, .tile-music-info h2 { 
                font-size: 3rem !important; 
            }
            .tile-video-info h2 { 
                margin-bottom: 15px !important; 
            }
            .tile-video-info .playlist-item { font-size: 1rem !important; margin-bottom: 8px !important; }
            .video-credits { display: none !important; }

           /* === V6.41: SVGs AUF DEM HANDY MAXIMAL AN DEN RAND === */
            .nav-btn {
                padding: 15px 2px; /* Klickfläche bleibt hoch, wird aber seitlich extrem schmal */
            }
            .nav-prev { 
                left: 0px; /* Schiebt den Pfeil noch weiter aus dem Bildfeld */
            }
            .nav-next { 
                right: 0px; /* Schiebt den Pfeil noch weiter aus dem Bildfeld */
            }

   /* === V6.76: ARCHIV-PFEILE AUF DEM HANDY POSITIONIEREN === */
            #press-overlay .nav-prev {
                left: -10px;  /* Gleicher Minus-Wert wie beim Merch (z.B. -5px oder -10px) */
            }
            #press-overlay .nav-next {
                right: -10px; /* Gleicher Minus-Wert wie beim Merch (z.B. -5px oder -10px) */
            }         

            /* === V6.60: MERCH OVERLAY BEFREIUNG === */
            
            /* 1. Den äußeren Käfig sprengen (keine 50px Ränder mehr!) */
            .overlay-content { 
                padding: 20px 15px !important; 
            }
            
            /* 2. Dem Stapel volle Breite geben */
            .product-triptych { 
                padding: 20px 0 40px 0 !important; /* Oben Platz fürs X, an den Seiten 0! */
                width: 100% !important;
            }
            
            /* 3. Kacheln maximal ausdehnen */
            .triptych-tile, .merch-info-box { 
                width: 90% !important; 
                max-width: 500px !important; /* Die winzigen 350px sind Geschichte */
            }
            
            /* 4. Der Textbox Raum zum Atmen geben */
            .merch-info-box {
                aspect-ratio: 1 / 1 !important; /* Zwingt die Box zurück ins Quadrat */
                padding: 25px 20px !important; /* Innenabstand für Lesbarkeit optimiert */
            }

            /* === V6.63: MERCH-PFEILE AUF DEM HANDY POSITIONIEREN === */
            #merch-overlay .nav-prev {
                left: -10px;  /* Spiel mit diesem Wert! (z.B. -10px oder 5px) */
            }
            #merch-overlay .nav-next {
                right: -10px; /* Spiel mit diesem Wert! (z.B. -10px oder 5px) */
            }
        }

        /* === SOCIAL HOVER TEXT PLATZHALTER (V6.14) === */

/* Textfarbe auf Schwarz setzen (wegen beigem Hintergrund) */
.tile-connect .hover-line { 
    color: #000; 
}

/* Die Einblend-Animation beim Hovern der Kachel */
@media (hover: hover) {
    .tile-connect:hover .hover-line {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Der coole Treppen-Effekt (Verzögerung pro Zeile) */
    .tile-connect:hover .hover-line:nth-child(1) { transition-delay: 0.1s; }
    .tile-connect:hover .hover-line:nth-child(2) { transition-delay: 0.2s; }
    .tile-connect:hover .hover-line:nth-child(3) { transition-delay: 0.3s; }
}

/* === LOGO VS TYPO GRÖSSEN (V6.26) === */
.typo-overlay.logo-mode { 
    width: 6%; 
}

/* Anpassung für Handys, damit die 4% dort nicht komplett verschwinden */
@media (max-width: 768px) {
    .typo-overlay.logo-mode { 
        width: 10%; /* Hier kannst du den Wert für Smartphones anpassen */
    }
}

/* === SLIDESHOW LOGO WEISS (V6.28) === */
.slideshow-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 6%;
    z-index: 60; /* Muss über den Slides liegen (die haben 50 & 51) */
    opacity: 0.3; /* Hier steuerst du die Transparenz (0.0 bis 1.0) */
    pointer-events: none;
    display: none; /* Ist am Anfang unsichtbar */
}

/* Anpassung für Handys */
@media (max-width: 768px) {
    .slideshow-logo { 
        width: 10%; 
        left: 20px; 
        top: 20px; 
    }

    /* === V6.73: SOCIAL HOVER CONTAINER AUF HANDY WIEDER ERLAUBEN === */
            .tile-connect .hover-container { 
                display: block !important; /* Holt den unsichtbaren Container zurück */
            }

   /* === V6.75: TOUCH-HOVER FÜR DIE STECKER-BILDER === */
            .tile-connect.is-touched .img-open { opacity: 0 !important; }
            .tile-connect.is-touched .img-closed { opacity: 0.8 !important; }         
}

/* === V6.92: SAFARI SCROLLBAR FIX (SCHWARZER ANFASSER) === */
        
/* 1. Standard-Scrollbar für die ganze Seite (Webkit) */
::-webkit-scrollbar {
    -webkit-appearance: none; 
    width: 10px; 
    height: 10px;
}
::-webkit-scrollbar-track {
    background-color: var(--bg-color); 
}
::-webkit-scrollbar-thumb {
    background-color: #000; /* <-- HIER: Der Haupt-Anfasser ist jetzt schwarz */
    border-radius: 0px; 
    border: 1px solid var(--bg-color); 
}

/* 2. Extra-Anpassung für die beige Impressum-Box */
#legal-text-container::-webkit-scrollbar {
    -webkit-appearance: none;
}
#legal-text-container::-webkit-scrollbar-track {
    background-color: transparent; 
}
#legal-text-container::-webkit-scrollbar-thumb {
    background-color: #000; /* Bleibt schwarz, da es auf Beige super aussieht */
    border: none;
}

/* 3. Standard CSS3 (Firefox & ganz neue Safari-Versionen) */
* {
    scrollbar-width: thin;
    scrollbar-color: #000 var(--bg-color); /* <-- HIER: Firefox & Co. jetzt auch schwarz auf grau */
}
#legal-text-container {
    scrollbar-color: #000 transparent;
}

/* === V7.48: ZITATE POSITIONIERUNG FIX === */
.quotes-layer {
    position: absolute;
    top: 80px; /* <--- Wieder zurück auf 80px (deine grüne Linie) */
    bottom: 20px;
    left: 34px;
    right: 100px; 
    overflow: hidden; 
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 10;
    mix-blend-mode: multiply;
    
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.quotes-track {
    display: flex;
    flex-direction: column;
    gap: 20px; /* <--- Ohne padding-top! */
    animation: scrollUpText linear infinite; 
}

/* === DER FIX: Hover-Ausblendung nur für Bildschirme mit echter Maus === */
@media (hover: hover) {
    .tile-connect:hover .quotes-layer {
        opacity: 0 !important;
    }
}

/* Die Touch-Klasse fürs Handy (wird vom JS nach 4 Sekunden weggenommen) */
.tile-connect.is-touched .quotes-layer {
    opacity: 0 !important;
}

.quote-line {
    font-family: 'Inconsolata', monospace;
    color: #000; 
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.2;
    opacity: .3;
    font-weight: 700; 
    white-space: pre-wrap; /* <--- FIX: Zwingt den Browser, alle Leerzeichen zu respektieren */
}

@keyframes scrollUpText {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

/* === V7.50: PERFORMANCE FIX (ZITATE PAUSIEREN BEI OVERLAYS) === */
.overlay-container.active ~ .container .quotes-layer {
    opacity: 0 !important;
    visibility: hidden; /* Nimmt das Element komplett aus der Grafikberechnung */
}

.overlay-container.active ~ .container .quotes-track {
    animation-play-state: paused !important; /* Friert das Fließband sofort ein */
}

/* === V7.52: LINKS IN VERBINDEN-KACHEL AKTIVIEREN === */
#hover-connect {
    pointer-events: auto !important;
}

/* === V7.54: HOVER-FARBE NUR FÜR AKTIVE LINKS === */
#hover-connect .hover-line {
    /* Standard-Mauszeiger für normale Textzeilen (Insta, TikTok) */
    cursor: default; 
}

#hover-connect a {
    /* Sanfter Farbübergang und Klick-Hand NUR für echte Links (YouTube) */
    transition: color 0.2s ease;
    cursor: pointer; 
}

#hover-connect a:hover {
    /* Gold-Light Farbe NUR, wenn man über den Link fährt */
    color: var(--gold-light) !important;
}