/* IPFLIX – Jenseits des Bildschirms. Die Oberfläche des Players ist die Bühne; Farben, Radien und Schriften stammen
   aus dem Player (app/app.css), damit er wiedererkennbar bleibt. */
:root {
  --bg: #050307; --fg: #f7f3f9; --muted: #a49cab; --dim: #6e6675; --akzent: #4f6bff; --hell: #8ea0ff;
  --linie: rgba(255, 255, 255, 0.09); --radius: 14px;
  --anzeige: 'Manrope', 'Inter', system-ui, sans-serif; --text: 'Inter', system-ui, -apple-system, sans-serif;
  --rand: clamp(16px, 4.2vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
p { margin: 0; }
.sprung { position: fixed; left: 12px; top: -60px; z-index: 50; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
.sprung:focus { top: 12px; }

/* Der Text liegt für Vorlesegeräte und Suchmaschinen im Dokument; sichtbar erzählt ihn die Bühne. */
main { position: relative; height: 2400vh; }
main section { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.buehne { position: fixed; inset: 0; overflow: hidden; perspective: 1600px; perspective-origin: 50% 42%; contain: strict; }
.licht { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(90px) saturate(1.25); opacity: 0.5; transform: scale(1.1); will-change: opacity; transition: background-image 0.8s linear; }
.buehne::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 30; background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%); }

/* ----- Akt 1: Wort und Player ----- */
.wort { position: absolute; left: 0; right: 0; top: 9vh; text-align: center; font-family: var(--anzeige); font-weight: 800; font-size: clamp(54px, 13.2vw, 250px); line-height: 0.88; letter-spacing: -0.055em; color: var(--fg); white-space: nowrap; will-change: transform, opacity; }
.wort .z { display: block; }
.wort .z:nth-child(2) { color: transparent; -webkit-text-stroke: 1px rgba(247, 243, 249, 0.42); font-size: 0.74em; letter-spacing: -0.045em; }
.wort .b { display: inline-block; will-change: transform, opacity; }

.player { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; overflow: hidden; background: var(--bg); transform-origin: 50% 50%; will-change: transform, border-radius; box-shadow: 0 60px 140px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.player canvas, .ersatzbild { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ersatzbild { background-size: cover; background-position: center; display: none; }
html.ohne-webgl .ersatzbild { display: block; } html.ohne-webgl .player canvas { display: none; }
.schleier { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 3, 7, 0.86) 0%, rgba(5, 3, 7, 0.5) 34%, rgba(5, 3, 7, 0) 62%), linear-gradient(0deg, rgba(5, 3, 7, 0.96) 0%, rgba(5, 3, 7, 0.55) 22%, rgba(5, 3, 7, 0) 48%), linear-gradient(180deg, rgba(5, 3, 7, 0.6) 0%, rgba(5, 3, 7, 0) 16%); }

.leiste { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--rand); will-change: opacity; }
.pille { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(26, 18, 32, 0.55); border: 1px solid var(--linie); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-size: 14px; font-weight: 500; }
.pille span { position: relative; padding: 9px 18px; color: var(--muted); transition: color 0.3s; }
.pille span.an { color: #0b0810; }
.pille b { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 60px; border-radius: 999px; background: #f7f3f9; will-change: transform, width; }
.rechts { display: flex; gap: 10px; align-items: center; }
.lupe, .profil { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: var(--fg); font-size: 13px; font-weight: 700; }
.profil { background: linear-gradient(135deg, #ff8a4a, #4f6bff); border-radius: 10px; }

.held { position: absolute; left: var(--rand); bottom: 36vh; width: min(620px, 78vw); will-change: opacity, transform; }
.vorzeile { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--fg); }
.vorzeile i { width: 24px; height: 2px; background: currentColor; opacity: 0.7; }
.h-titel { margin-top: 14px; font-family: var(--anzeige); font-weight: 800; font-size: clamp(44px, 6.6vw, 112px); line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance; }
.h-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.h-meta b { color: #ffd166; font-weight: 600; } .h-meta u { text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 5px; padding: 1px 6px; font-size: 11.5px; color: var(--fg); }
.h-text { margin-top: 14px; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; color: rgba(247, 243, 249, 0.82); max-width: 54ch; }
.h-knoepfe { margin-top: 24px; display: flex; gap: 10px; align-items: center; }
.kn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(26, 18, 32, 0.5); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.kn.voll { background: #f7f3f9; color: #0b0810; border-color: transparent; } .kn.rund { width: 46px; padding: 0; justify-content: center; font-size: 20px; font-weight: 400; }
.punkte { position: absolute; right: var(--rand); bottom: 37vh; display: flex; gap: 8px; }
.punkte i { width: 30px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: background 0.3s; } .punkte i.an { background: #fff; }
.reihe { position: absolute; left: var(--rand); font-family: var(--anzeige); font-weight: 700; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.01em; will-change: opacity; }
.reihe span { font-family: var(--text); font-weight: 500; font-size: 13px; color: var(--hell); margin-left: 10px; }
.schiene { position: absolute; left: 0; top: 0; }

/* ----- Titel: ein Element je Titel, zwei Gesichter (Plakat und Senderzeile) ----- */
.titel-ebene { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.t { position: absolute; left: 0; top: 0; overflow: hidden; border-radius: var(--radius); background: #0c0810; will-change: transform, width, height, opacity; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); pointer-events: auto; }
.t img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.t .quer { opacity: 0; }
.t .plakat { position: absolute; inset: 0; will-change: opacity; }
.t .plakat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(3, 2, 5, 0.92) 0%, rgba(3, 2, 5, 0.35) 34%, rgba(3, 2, 5, 0) 58%), linear-gradient(180deg, rgba(3, 2, 5, 0.45) 0%, rgba(3, 2, 5, 0) 22%); }
.t .schrift { position: absolute; left: 9%; right: 9%; bottom: 8%; z-index: 2; text-align: center; container-type: inline-size; }
.t .schrift strong { display: block; font-weight: 400; font-size: 17cqw; line-height: 0.95; text-wrap: balance; }
.t .schrift em { display: block; margin-top: 7cqw; font-style: normal; font-size: 4.6cqw; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(247, 243, 249, 0.72); }
.t .oben { position: absolute; left: 0; right: 0; top: 6%; z-index: 2; text-align: center; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(247, 243, 249, 0.7); container-type: inline-size; }
.t .oben span { font-size: 4.2cqw; }
/* Titelschriften je Genre – jede Key-Art hat ihren eigenen Schriftzug */
.s-horizont .schrift strong, .s-faehre .schrift strong { font-family: 'Instrument Serif', serif; font-size: 22cqw !important; letter-spacing: -0.02em; }
.s-stadt .schrift strong, .s-linie9 .schrift strong { font-family: 'Unbounded', sans-serif; font-weight: 800 !important; font-size: 13cqw !important; letter-spacing: -0.03em; text-transform: uppercase; }
.s-orbit .schrift strong, .s-signal .schrift strong { font-family: 'Orbitron', sans-serif; font-weight: 700 !important; font-size: 19cqw !important; letter-spacing: 0.16em; text-transform: uppercase; }
.s-echo .schrift strong, .s-polarlicht .schrift strong { font-family: 'Cinzel', serif; font-weight: 600 !important; font-size: 13.5cqw !important; letter-spacing: 0.06em; text-transform: uppercase; }
.s-nachtzug .schrift strong, .s-sandsturm .schrift strong { font-family: 'Bebas Neue', sans-serif; font-size: 27cqw !important; letter-spacing: 0.03em; }
.s-magenta .schrift strong { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 25cqw !important; color: #ff9bd6; }
.s-tiefblau .schrift strong, .s-kalteslicht .schrift strong { font-family: 'Manrope', sans-serif; font-weight: 800 !important; font-size: 15cqw !important; letter-spacing: -0.04em; }

.t .zeile { position: absolute; inset: 0; display: grid; grid-template-columns: 34px 46px 1fr; align-items: center; gap: 14px; padding: 0 18px 0 10px; opacity: 0; will-change: opacity; background: #0c0810; }
.t .zeile .nr { text-align: center; font-size: 14px; color: var(--dim); }
.t .zeile .kurz { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: #4b4f66; font-size: 12px; font-weight: 700; }
.t .zeile .was { min-width: 0; }
.t .zeile strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t .zeile .gang { display: block; height: 3px; margin: 7px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.t .zeile .gang i { display: block; height: 100%; background: var(--akzent); border-radius: 3px; }
.t .zeile small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t .zeile small b { color: var(--fg); font-weight: 500; }
.t.gewaehlt .zeile { background: #131a33; }
.t .marke { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 7px; background: rgba(5, 3, 7, 0.7); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; opacity: 0; }
.t .marke i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d5e; }

/* ----- Titelansicht (ein Plakat füllt das Bild) ----- */
.fokus-text { position: absolute; left: var(--rand); bottom: 12vh; width: min(760px, 86vw); opacity: 0; will-change: opacity, transform; pointer-events: none; }
.f-titel { margin-top: 14px; font-family: 'Cinzel', serif; font-weight: 600; font-size: clamp(40px, 7.2vw, 128px); line-height: 0.96; letter-spacing: 0.02em; text-transform: uppercase; text-wrap: balance; }

/* ----- Live-TV ----- */
.live { position: absolute; inset: 0; opacity: 0; pointer-events: none; will-change: opacity; }
.l-reiter, .l-filter { position: absolute; left: var(--rand); display: flex; gap: 6px; font-size: 14px; font-weight: 500; }
.l-reiter { top: 96px; padding: 5px; border-radius: 999px; border: 1px solid var(--linie); background: rgba(26, 18, 32, 0.55); }
.l-reiter span { padding: 8px 17px; border-radius: 999px; color: var(--muted); } .l-reiter .an { background: #f7f3f9; color: #0b0810; }
.l-filter { top: 164px; font-size: 12.5px; }
.l-filter span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--linie); color: var(--fg); background: rgba(26, 18, 32, 0.5); } .l-filter .an { background: #f7f3f9; color: #0b0810; }
.l-info { position: absolute; }
.l-sender { display: flex; gap: 12px; align-items: center; }
.l-sender b { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #4b4f66; font-size: 12px; }
.l-sender strong { display: block; font-size: 15px; } .l-sender em { font-style: normal; font-size: 12px; color: var(--muted); }
.l-jetzt { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; } .l-jetzt i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d5e; }
.l-titel { margin-top: 8px; font-family: var(--anzeige); font-weight: 800; font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -0.035em; line-height: 1; }
.l-zeit { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.l-balken { margin-top: 12px; width: 300px; max-width: 70%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); } .l-balken i { display: block; width: 58%; height: 100%; border-radius: 3px; background: var(--akzent); }

/* ----- Rahmen der Seite ----- */
.kopf { position: absolute; left: 0; right: 0; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 24px var(--rand); will-change: opacity; }
.kopf img { display: block; }
.oeffnen { color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(247, 243, 249, 0.24); background: rgba(10, 8, 14, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.oeffnen:hover { border-color: rgba(247, 243, 249, 0.6); } .oeffnen:focus-visible, .kopf a:focus-visible { outline: 2px solid var(--hell); outline-offset: 4px; }
.wink { position: absolute; left: 50%; bottom: 3.2vh; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.06em; color: rgba(247, 243, 249, 0.6); }
.wink i { width: 1px; height: 26px; background: currentColor; }
.zeilen p { position: fixed; z-index: 35; left: 50%; bottom: 4.2vh; transform: translateX(-50%); white-space: nowrap; padding: 11px 22px; border-radius: 999px; background: rgba(12, 8, 16, 0.62); border: 1px solid var(--linie); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); font-family: var(--anzeige); font-weight: 600; font-size: clamp(14px, 1.25vw, 19px); letter-spacing: -0.01em; opacity: 0; visibility: hidden; pointer-events: none; }
.zeilen br { display: none; }
.fussnote { position: fixed; z-index: 35; left: var(--rand); bottom: 1.2vh; font-size: 11.5px; color: var(--dim); opacity: 0; pointer-events: none; }

/* ----- Hochformat ----- */
@media (max-aspect-ratio: 4/5) {
  .wort { top: 12vh; font-size: 21vw; white-space: normal; line-height: 0.9; }
  .wort .z:nth-child(2) { font-size: 0.6em; }
  .pille span:nth-child(n+5) { display: none; } .pille { font-size: 13px; } .pille span { padding: 8px 13px; }
  .leiste img { width: 70px; height: auto; } .lupe { display: none; }
  .held { bottom: 40vh; } .h-text { display: none; } .kn { height: 42px; padding: 0 18px; font-size: 13.5px; }
  .punkte { display: none; }
  .l-reiter { top: 74px; font-size: 12.5px; } .l-reiter span { padding: 7px 12px; } .l-filter { display: none; }
  .t .zeile { grid-template-columns: 22px 38px 1fr; gap: 10px; padding: 0 12px 0 6px; } .t .zeile .kurz { width: 38px; height: 38px; }
  .l-info .h-knoepfe, .l-zeit, .l-sender { display: none; } .l-jetzt { margin-top: 0; }
  .zeilen p { font-size: 13px; padding: 9px 16px; bottom: 5vh; }
  .fussnote { font-size: 10px; right: var(--rand); }
}
@media (prefers-reduced-motion: reduce) { .licht { transition: none; } }

/* ----- Zeichen auf den Plakaten ----- */
.t .zeichen { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.62; mix-blend-mode: screen; pointer-events: none; }
/* ----- Hero: schwarzer Grund, die Fläche spiegelt sich ----- */
.spiegel { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; background-size: cover; background-position: center; transform-origin: 50% 50%; filter: blur(7px) saturate(1.1); -webkit-mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.18) 34%, transparent 62%); mask-image: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.18) 34%, transparent 62%); will-change: transform, opacity; pointer-events: none; }
.boden { position: absolute; left: 0; right: 0; bottom: 0; height: 38vh; background: linear-gradient(0deg, rgba(5, 3, 7, 0.96) 0%, rgba(5, 3, 7, 0) 100%); pointer-events: none; }
/* ----- Programmführer ----- */
.t .spur { position: absolute; inset: 0; display: grid; grid-template-columns: 30px 40px 1fr; align-items: center; gap: 12px; padding-left: 10px; opacity: 0; background: #0a0810; will-change: opacity; }
.t .spur .nr { text-align: center; font-size: 13px; color: var(--dim); }
.t .spur .kurz { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; background: #4b4f66; font-size: 11.5px; font-weight: 700; }
.t .spur .sn { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t .spur .bahn { position: absolute; left: var(--epg-links, 250px); right: 0; top: 4px; bottom: 4px; }
.t .spur .bl { position: absolute; top: 0; bottom: 0; padding: 7px 12px; border-radius: 9px; background: #151a2e; overflow: hidden; }
.t .spur .bl b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t .spur .bl small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.t .spur .bl.laeuft { background: #1c2340; box-shadow: inset 0 0 0 1px rgba(142, 160, 255, 0.28); }
.t .spur .bl i { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--akzent); }
.epg-kopf { position: absolute; display: flex; opacity: 0; font-size: 12.5px; color: var(--muted); z-index: 27; pointer-events: none; }
.epg-kopf span { flex: 1; padding-left: 10px; border-left: 1px solid var(--linie); height: 22px; }
.epg-jetzt { position: absolute; width: 2px; background: #f7f3f9; border-radius: 2px; z-index: 28; opacity: 0; pointer-events: none; box-shadow: 0 0 18px rgba(142, 160, 255, 0.7); }
.epg-jetzt b { position: absolute; left: 50%; transform: translateX(-50%); top: -52px; padding: 3px 9px; border-radius: 999px; background: #f7f3f9; color: #0b0810 !important; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--hell); }
@media (max-aspect-ratio: 4/5) {
  .t .spur { grid-template-columns: 0 38px 0; gap: 6px; padding-left: 8px; } .t .spur .nr, .t .spur .sn { display: none; }
  .t .spur .bl { padding: 6px 8px; } .t .spur .bl b { font-size: 12px; } .t .spur .bl small { font-size: 10px; }
  .epg-kopf span:nth-child(even) { visibility: hidden; }
}

/* ----- Suche nach Stimmung ----- */
.suche { position: absolute; left: var(--rand); right: var(--rand); top: 92px; opacity: 0; visibility: hidden; z-index: 27; pointer-events: none; }
.s-feld { display: flex; align-items: center; gap: 16px; height: 62px; padding: 0 22px; border-radius: 16px; border: 1.5px solid rgba(247, 243, 249, 0.85); background: rgba(20, 18, 24, 0.9); font-size: clamp(18px, 1.7vw, 25px); font-weight: 500; color: var(--fg); }
.s-feld svg { color: var(--muted); flex: none; } .s-feld span { white-space: pre; min-height: 1em; }
.s-chips { margin-top: 16px; display: flex; gap: 8px; flex-wrap: nowrap; overflow: hidden; font-size: 12.5px; }
.s-chips span { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linie); background: rgba(26, 18, 32, 0.6); color: var(--fg); transition: background 0.25s, color 0.25s; }
.s-chips span.an { background: #f7f3f9; color: #0b0810; }
.s-kopf { margin-top: 22px; font-family: var(--anzeige); font-weight: 700; font-size: 17px; } .s-kopf i { font-style: normal; color: var(--hell); margin-right: 6px; }
.lupe { transition: background 0.25s, color 0.25s; } .lupe.an { background: #f7f3f9; color: #0b0810; }
@media (max-aspect-ratio: 4/5) { .suche { top: 76px; } .s-feld { height: 52px; font-size: 17px; padding: 0 16px; gap: 12px; } .s-chips { margin-top: 12px; } .s-kopf { margin-top: 16px; font-size: 15px; } }

/* ----- Geräte: ein Rahmen wechselt die Form ----- */
.geraete { position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 29; pointer-events: none; perspective: 1800px; }
.geraet { position: absolute; left: 0; top: 0; background: linear-gradient(145deg, #3a3940 0%, #121116 38%, #08070a 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 50px 120px rgba(0, 0, 0, 0.8), 0 0 140px rgba(120, 110, 190, 0.16); will-change: transform, width, height; }
.g-schirm { position: relative; width: 100%; height: 100%; overflow: hidden; background: #050307; container-type: size; }
.g-schirm::after { content: ''; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 26%, transparent 42%); pointer-events: none; }
.g-fuss { position: absolute; height: 12px; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #1c1b20, #0a090c); box-shadow: 0 14px 0 -9px #17161b, 0 1px 0 rgba(255, 255, 255, 0.08) inset; }
.g-basis { position: absolute; height: 16px; border-radius: 3px 3px 14px 14px; background: linear-gradient(180deg, #55545c 0%, #2a2930 18%, #131217 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 30px 60px rgba(0, 0, 0, 0.7); }
.g-schein { position: absolute; height: 120px; background: radial-gradient(50% 60% at 50% 0%, rgba(160, 140, 220, 0.2), transparent 70%); filter: blur(10px); }
.g-wort { position: absolute; left: 0; right: 0; top: 8.5vh; text-align: center; font-family: var(--anzeige); font-weight: 800; font-size: clamp(28px, 4.2vw, 76px); letter-spacing: -0.045em; line-height: 1; }
.mini { position: absolute; inset: 0; will-change: opacity; }
.mini > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-schleier { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 3, 7, 0.82) 0%, rgba(5, 3, 7, 0) 60%), linear-gradient(0deg, rgba(5, 3, 7, 0.95) 0%, rgba(5, 3, 7, 0) 46%); }
.m-leiste { position: absolute; left: 4cqw; right: 4cqw; top: 3.2cqw; display: flex; align-items: center; gap: 4cqw; }
.m-leiste img { width: 9cqw; height: auto; }
.m-pille { display: flex; gap: 0.4cqw; padding: 0.5cqw; border-radius: 99px; background: rgba(26, 18, 32, 0.6); border: 1px solid var(--linie); font-size: 1.35cqw; font-weight: 500; margin: 0 auto; transform: translateX(-6.5cqw); }
.m-pille b, .m-pille i { padding: 0.8cqw 1.7cqw; border-radius: 99px; font-style: normal; color: var(--muted); font-weight: 500; } .m-pille b { background: #f7f3f9; color: #0b0810; }
.m-held { position: absolute; left: 4cqw; bottom: 30cqh; }
.m-held em { display: block; font-style: normal; font-size: 1.4cqw; font-weight: 600; }
.m-held strong { display: block; margin-top: 1cqw; font-family: var(--anzeige); font-weight: 800; font-size: 8cqw; letter-spacing: -0.04em; line-height: 0.95; }
.m-held span { display: block; margin-top: 1.4cqw; font-size: 1.25cqw; color: var(--muted); }
.m-held u { display: inline-block; margin-top: 2cqw; text-decoration: none; padding: 1.1cqw 2.4cqw; border-radius: 99px; background: #f7f3f9; color: #0b0810; font-size: 1.4cqw; font-weight: 600; }
.m-schiene { position: absolute; left: 4cqw; right: 0; bottom: -8cqh; display: flex; gap: 1.4cqw; }
.m-schiene img { width: 11.5cqw; aspect-ratio: 2/3; object-fit: cover; border-radius: 1cqw; flex: none; }
.mini.hoch .m-leiste img { width: 22cqw; } .mini.hoch .m-pille { font-size: 3.4cqw; transform: none; margin: 0 0 0 auto; padding: 1.2cqw; } .mini.hoch .m-pille b, .mini.hoch .m-pille i { padding: 1.8cqw 3.4cqw; } .mini.hoch .m-pille i:nth-child(n+3) { display: none; }
.mini.hoch .m-leiste { top: 9cqw; left: 6cqw; right: 6cqw; }
.mini.hoch .m-schleier { background: linear-gradient(0deg, rgba(5, 3, 7, 0.96) 0%, rgba(5, 3, 7, 0.4) 44%, rgba(5, 3, 7, 0) 70%); }
.mini.hoch .m-held { left: 6cqw; bottom: 30cqh; } .mini.hoch .m-held em { font-size: 3.4cqw; } .mini.hoch .m-held strong { font-size: 17cqw; margin-top: 2cqw; } .mini.hoch .m-held span { font-size: 3.2cqw; margin-top: 3cqw; } .mini.hoch .m-held u { font-size: 3.6cqw; padding: 2.8cqw 6cqw; margin-top: 4.5cqw; }
.mini.hoch .m-schiene { left: 6cqw; bottom: 3cqh; gap: 3cqw; } .mini.hoch .m-schiene img { width: 27cqw; border-radius: 2.4cqw; }
/* ----- Finale ----- */
.finale { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 45; width: min(760px, 88vw); text-align: center; opacity: 0; visibility: hidden; }
.finale img { width: clamp(220px, 34vw, 520px); height: auto; display: block; margin: 0 auto; }
.fin-satz { margin-top: 3.2vh; font-family: var(--anzeige); font-weight: 800; font-size: clamp(26px, 3.6vw, 60px); letter-spacing: -0.04em; line-height: 1; }
.fin-knopf { display: inline-flex; align-items: center; height: 58px; padding: 0 38px; margin-top: 4.4vh; border-radius: 999px; background: #f7f3f9; color: #0b0810; font-size: 17px; font-weight: 700; text-decoration: none; transition: transform 0.25s cubic-bezier(0.2, 0.75, 0.2, 1), box-shadow 0.25s; box-shadow: 0 0 0 0 rgba(142, 160, 255, 0); }
.fin-knopf:hover { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(142, 160, 255, 0.16); } .fin-knopf:focus-visible { outline: 3px solid var(--hell); outline-offset: 5px; }
.fin-klein { margin-top: 2.6vh; font-size: 13.5px; color: var(--muted); }
@media (max-aspect-ratio: 4/5) { .g-wort { top: 12vh; font-size: 9.4vw; } .fin-knopf { height: 52px; padding: 0 30px; font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .fin-knopf { transition: none; } }

/* ----- Geräte, zweite Fassung: Metallkante, Glas, Spiegelung auf dem Boden, Licht von oben ----- */
.geraet { background: linear-gradient(160deg, #6c6b74 0%, #2a2930 14%, #0c0b0f 46%, #1d1c22 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 1.5px rgba(0, 0, 0, 0.9), inset 0 2px 1px rgba(255, 255, 255, 0.35), 0 70px 140px rgba(0, 0, 0, 0.85), 0 0 160px rgba(196, 144, 102, 0.14); -webkit-box-reflect: below 10px linear-gradient(transparent 62%, rgba(0, 0, 0, 0.28)); transform-style: preserve-3d; }
.g-glanz { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.g-glanz b { position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.07) 42%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.05) 58%, transparent 100%); transform: translate3d(-30%, 0, 0); will-change: transform; }
.g-insel { position: absolute; left: 50%; top: 14px; width: 26%; height: 4.2%; max-height: 22px; transform: translateX(-50%); border-radius: 99px; background: #000; opacity: 0; transition: opacity 0.3s; }
.geraet[data-art="telefon"] .g-insel { opacity: 1; }
.geraet[data-art="telefon"]::before { content: ''; position: absolute; right: -3px; top: 24%; width: 3px; height: 13%; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, #2a2930, #55545c); }
.g-licht { position: absolute; left: 50%; top: -10vh; width: 110vw; height: 120vh; transform: translateX(-50%); background: radial-gradient(42% 46% at 50% 44%, rgba(196, 144, 102, 0.16) 0%, rgba(120, 100, 190, 0.07) 46%, transparent 72%), linear-gradient(0deg, rgba(22, 18, 28, 0.9) 0%, rgba(12, 9, 16, 0.5) 20%, transparent 34%); }
.g-fuss { height: 26px; border-radius: 0; background: none; box-shadow: none; }
.g-fuss::before { content: ''; position: absolute; left: 44%; right: 44%; top: 0; height: 18px; background: linear-gradient(90deg, #0c0b0f, #3a3940 50%, #0c0b0f); }
.g-fuss::after { content: ''; position: absolute; left: 0; right: 0; top: 18px; height: 7px; border-radius: 3px 3px 6px 6px; background: linear-gradient(180deg, #6c6b74 0%, #24232a 30%, #0c0b0f 100%); box-shadow: 0 18px 30px rgba(0, 0, 0, 0.7); }
.g-basis { height: 22px; border-radius: 2px 2px 18px 18px / 2px 2px 14px 14px; background: linear-gradient(180deg, #8a8992 0%, #4a4951 12%, #1c1b20 60%, #0c0b0f 100%); }
.g-basis::after { content: ''; position: absolute; left: 42%; right: 42%; top: 0; height: 6px; border-radius: 0 0 8px 8px; background: #101014; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12); }
.finale .spaet { opacity: 0; will-change: opacity, transform; }

.messung { position: fixed; left: 12px; bottom: 12px; z-index: 60; margin: 0; padding: 10px 12px; font: 12px/1.5 ui-monospace, monospace; color: #f7f3f9; background: rgba(0, 0, 0, 0.78); border-radius: 8px; white-space: pre; user-select: all; }

/* ----- Selbstschutz (buehne.js): Effekte stufenweise abschalten, wenn das Gerät nicht mitkommt ----- */
html.sparsam .licht { filter: none; opacity: 0 !important; }
html.sparsam .spiegel { filter: none; }
html.sparsam .pille, html.sparsam .oeffnen, html.sparsam .zeilen p { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 14, 24, 0.92); }
html.sparsam .geraet { -webkit-box-reflect: unset; }
html.sparsam .g-schein { filter: none; }
html.sparsam2 .t, html.sparsam2 .player { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
html.sparsam2 .t .zeichen { mix-blend-mode: normal; opacity: 0.4; }
html.sparsam2 .spiegel { display: none; }

/* ----- Geräte, dritte Fassung: gerenderte Produktaufnahmen (scripts/erlebnis/geraete.py) ----- */
.aufnahme { position: absolute; left: 50%; top: 59%; width: min(80vw, 118vh); height: auto; margin: 0; translate: -50% -50%; opacity: 0; will-change: transform, opacity; -webkit-mask-image: radial-gradient(72% 78% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(72% 78% at 50% 50%, #000 62%, transparent 100%); }
.aufnahme.hochkant { width: auto; height: min(80vh, 150vw); top: 58%; }
@media (max-aspect-ratio: 4/5) { .aufnahme { width: 112vw; top: 54%; } .aufnahme.hochkant { width: auto; height: 74vh; top: 57%; } }

.g-wort { z-index: 2; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8); }

/* Aufnahmen laufen weich ins Schwarz der Seite aus (die Wand hinter dem Fernseher soll nicht als Rechteck stehen) */
.aufnahme { -webkit-mask-image: radial-gradient(58% 62% at 50% 52%, #000 44%, transparent 90%); mask-image: radial-gradient(58% 62% at 50% 52%, #000 44%, transparent 90%); }

/* Hochformat: Fernseher und Laptop grösser, die Maske lässt die Geräte selbst unberührt */
@media (max-aspect-ratio: 4/5) {
  .aufnahme { width: 124vw; top: 52%; margin-left: 5vw; -webkit-mask-image: radial-gradient(56% 50% at 46% 50%, #000 60%, transparent 98%); mask-image: radial-gradient(56% 50% at 46% 50%, #000 60%, transparent 98%); }
  .aufnahme.hochkant { width: auto; height: 76vh; top: 57%; margin-left: 0; }
  .wink { bottom: 1.4vh; font-size: 11px; } .wink i { height: 14px; }
}
/* Querformat: Maske etwas weiter, damit die Ränder des Fernsehers nicht abdunkeln */
@media (min-aspect-ratio: 4/5) { .aufnahme { -webkit-mask-image: radial-gradient(64% 66% at 50% 52%, #000 56%, transparent 94%); mask-image: radial-gradient(64% 66% at 50% 52%, #000 56%, transparent 94%); } }

/* ----- Fuss im Finale: Wege zu Preisen, Download, Fragen und den rechtlichen Seiten ----- */
.fin-fuss { margin-top: 3.4vh; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 13px; }
.fin-fuss a { color: var(--muted); text-decoration: none; padding: 6px 2px; } .fin-fuss a:hover { color: var(--fg); } .fin-fuss a:focus-visible { outline: 2px solid var(--hell); outline-offset: 3px; border-radius: 4px; }

/* ----- Abnahme ----- */
/* Fernseher an der Wand: die Aufnahme läuft nach allen vier Seiten ins Schwarz aus, das Gerät selbst bleibt unberührt */
.aufnahme.wand { -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 20%, #000 82%, transparent 97%), linear-gradient(180deg, transparent 3%, #000 17%, #000 84%, transparent 98%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 4%, #000 20%, #000 82%, transparent 97%), linear-gradient(180deg, transparent 3%, #000 17%, #000 84%, transparent 98%); mask-composite: intersect; }
/* Kopf der Website: dunkler Verlauf dahinter, damit Marke und Knopf nie auf einem Plakat stehen */
.kopf::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: -1; background: linear-gradient(180deg, rgba(5, 3, 7, 0.92) 0%, rgba(5, 3, 7, 0.6) 55%, rgba(5, 3, 7, 0) 100%); pointer-events: none; }
/* Hinweis «Scrollen» als kleine Marke wie die Bildunterschriften */
.wink { bottom: 2.6vh; padding: 8px 16px; border-radius: 999px; background: rgba(12, 8, 16, 0.62); border: 1px solid var(--linie); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: rgba(247, 243, 249, 0.8); }
.wink i { width: 14px; height: 1px; }
html.sparsam .wink { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 14, 24, 0.92); }
@media (max-aspect-ratio: 4/5) {
  .wink { bottom: 1.6vh; } .wink i { height: 1px; }
  .epg-jetzt b { top: auto; bottom: -30px; }
  .fin-fuss { gap: 4px 16px; font-size: 12.5px; }
}

/* Finale: zweiter Knopf, Wege zu den Informationsseiten, Rechtszeile */
.fin-satz { text-wrap: balance; }
.fin-knoepfe { margin-top: 4vh; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; } .fin-knoepfe .fin-knopf { margin-top: 0; }
.fin-zweit { display: inline-flex; align-items: center; height: 58px; padding: 0 30px; border-radius: 999px; border: 1px solid rgba(247, 243, 249, 0.26); color: var(--fg); text-decoration: none; font-size: 16px; font-weight: 600; } .fin-zweit:hover { border-color: rgba(247, 243, 249, 0.6); } .fin-zweit:focus-visible { outline: 3px solid var(--hell); outline-offset: 5px; }
.fin-recht { margin-top: 1.6vh; font-size: 11.5px; color: var(--dim); }
@media (max-width: 700px) { .fin-zweit, .fin-knoepfe .fin-knopf { height: 50px; padding: 0 24px; font-size: 15px; } }
