/* HMV – drei Vorspanne für Harrymount Video. Entwurf vom 2026-11-28.
   Ein Röhrenfernseher im dunklen Wohnzimmer, darunter ein Videorekorder mit drei Kassetten. Das Bild wird in der
   Auflösung von damals gezeichnet (C16 320 × 200 mit Rahmen, Amiga 320 × 256) und pixelig vergrößert; darüber liegen
   Zeilen und Wölbung der Röhre. Um das Gerät herum gilt das Licht des Besuchers (Abend oder Tag) wie in der Hütte. */

@font-face { font-family: "Nunito"; src: url("../../assets/schrift/nunito-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --raum: #0c0f1e; --text: #e3e6f3; --leise: #a5acc8; --linie: #2a3150; --verweis: #8fd3ff; --leiste: #121733;
  --gehaeuse: #2b2a2e; --gehaeuse-hell: #3d3b41; --rekorder: #1c1c20; --led: #7dff9a; --kassette: #151517;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-licht="abend"]) { --raum: #e8e6e1; --text: #1d2030; --leise: #4b5068; --linie: #c9c6be; --verweis: #0b5fa5; --leiste: #dcd9d2; color-scheme: light; }
}
:root[data-licht="tag"] { --raum: #e8e6e1; --text: #1d2030; --leise: #4b5068; --linie: #c9c6be; --verweis: #0b5fa5; --leiste: #dcd9d2; color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--raum); color: var(--text); }
body { font: 16px/1.6 Nunito, system-ui, sans-serif; min-height: 100vh; }
a { color: var(--verweis); }

.leiste { display: flex; align-items: center; gap: 1rem; padding: .45rem 1rem; background: var(--leiste); border-bottom: 1px solid var(--linie); min-height: 2.6rem; }
.leiste a { text-decoration: none; white-space: nowrap; }
.leiste a:hover, .leiste a:focus-visible { text-decoration: underline; }
.leiste p { margin: 0; flex: 1; text-align: center; color: var(--leise); font-size: .9rem; }
@media (max-width: 640px) { .leiste p span { display: none; } }
html.eingebettet .leiste { display: none; }

.buehne { max-width: 1100px; margin: 0 auto; padding: clamp(14px, 2.6vw, 34px) 16px 56px; }
.vorspann { max-width: 44rem; margin: 0 0 clamp(16px, 2.6vw, 28px); }
.vorspann h1 { margin: 0 0 .35rem; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.1; }
.vorspann h1 span { display: block; font-size: .5em; font-weight: 600; color: var(--leise); letter-spacing: .02em; }
.vorspann p { margin: 0; }
.ohne-skript { margin: 0 0 2rem; }
.ohne-skript img { max-width: 100%; height: auto; border-radius: 6px; }
.ohne-skript figcaption { font-size: .9rem; color: var(--leise); margin-top: .4rem; }

/* ---------- Gerät: Fernseher und Rekorder ---------- */
.geraet { display: grid; gap: 18px; justify-items: center; }
.fernseher { width: min(100%, 860px, calc((100vh - 120px) * 1.25)); background: linear-gradient(160deg, var(--gehaeuse-hell), var(--gehaeuse) 45%, #1d1c20); border-radius: 26px; padding: clamp(12px, 2.6vw, 30px) clamp(12px, 2.6vw, 30px) 10px; box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 rgba(255,255,255,.12); }
.fernseher__glas { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 22px / 26px; overflow: hidden; box-shadow: inset 0 0 0 3px #111, 0 0 0 2px #0a0a0c; }
.fernseher__glas canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; filter: saturate(1.12) contrast(1.05); }
.fernseher__glas::before { /* Zeilen der Röhre */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px); mix-blend-mode: multiply; }
.fernseher__glas::after { /* Wölbung und Spiegelung */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,0) 62%, rgba(0,0,0,.55) 100%), linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,0) 40%); }
.fernseher__marke { margin: 6px 4px 0; display: flex; justify-content: flex-end; font: 700 .72rem/1.6 Nunito, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #8d8a93; }

.rekorder { width: min(100%, 860px); background: linear-gradient(#26262b, var(--rekorder)); border-radius: 10px; padding: 14px clamp(12px, 2vw, 20px) 16px; color: #d8d8de; box-shadow: 0 24px 40px -28px #000, inset 0 1px 0 rgba(255,255,255,.08); display: grid; gap: 12px; }
.kassetten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kassette { font: inherit; cursor: pointer; color: #e8e8ec; background: var(--kassette); border: 1px solid #000; border-radius: 4px; padding: 7px 8px 8px; text-align: left; display: grid; gap: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); position: relative; }
.kassette::before { content: ""; display: block; height: 6px; margin: 0 0 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #2c2c30 0 6px, #3a3a40 6px 8px); }
.kassette b { font-size: .95rem; letter-spacing: .06em; background: #f2eedf; color: #1a1a1a; border-radius: 2px; padding: 1px 6px; justify-self: start; font-family: "Courier New", monospace; }
.kassette span { font-size: .8rem; color: #a9a9b3; overflow-wrap: anywhere; hyphens: manual; }
.kassette[aria-pressed="true"] { outline: 2px solid var(--led); outline-offset: 2px; }
.kassette:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.laufwerk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.taste { font: 600 .9rem/1 Nunito, sans-serif; cursor: pointer; color: #e8e8ec; background: linear-gradient(#3b3b42, #2a2a30); border: 1px solid #000; border-radius: 5px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.taste:active, .taste[aria-pressed="true"] { background: linear-gradient(#24242a, #303036); box-shadow: inset 0 2px 4px rgba(0,0,0,.6); }
.taste:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.taste i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--led); }
#spielen[aria-pressed="true"] i { width: 10px; height: 12px; border: 0; border-left: 3px solid var(--led); border-right: 3px solid var(--led); }
.taste i.zurueck { border-width: 6px 10px 6px 0; border-color: transparent #e8e8ec transparent transparent; box-shadow: -3px 0 0 0 #e8e8ec; margin-left: 3px; }
.taste i.note { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--led); }
.zaehler { margin-left: auto; font: 700 1.05rem/1 "Courier New", monospace; color: var(--led); background: #050806; border: 1px solid #000; border-radius: 4px; padding: 7px 10px; letter-spacing: .08em; text-shadow: 0 0 6px rgba(125,255,154,.6); min-width: 9.5ch; text-align: center; }
.spule { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #a9a9b3; }
.spule input { flex: 1; accent-color: var(--led); min-width: 0; }
.geschehen { margin: 0; min-height: 3.2em; font-size: .95rem; color: #d8d8de; }

/* ---------- Die Aufnahmen ---------- */
.vergleich { margin-top: clamp(28px, 4vw, 48px); }
.vergleich h2 { margin: 0 0 .3rem; font-size: 1.35rem; }
.vergleich > p { margin: 0 0 1rem; max-width: 44rem; color: var(--leise); }
.streifen { display: grid; gap: 18px; }
.streifen figure { margin: 0; }
.streifen figcaption { font-size: .9rem; color: var(--leise); margin-bottom: .35rem; }
.streifen ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.streifen img { display: block; width: 100%; height: auto; border-radius: 4px; }
@media (max-width: 560px) { .streifen ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.treue { margin-top: 1.2rem; max-width: 44rem; }
.treue summary { cursor: pointer; color: var(--verweis); }
.treue p { margin: .5rem 0 0; }

/* Breite Schirme: Rekorder neben den Fernseher, damit Bild und Tasten zugleich zu sehen sind */
@media (min-width: 1000px) {
  .buehne { max-width: 1240px; }
  .geraet { grid-template-columns: minmax(0, 1fr) 290px; align-items: start; justify-items: stretch; }
  .fernseher { width: min(100%, calc((100vh - 120px) * 1.25)); justify-self: end; }
  .rekorder { width: 100%; }
  .kassetten { grid-template-columns: 1fr; }
  .kassette { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
  .kassette::before { grid-column: 1 / -1; }
  .zaehler { margin-left: 0; }
}

/* ---------- Und heute: der Studio-Vorspann (heute.js) – breites Kinobild ohne Röhre ---------- */
.heute { margin-top: clamp(40px, 7vw, 90px); padding-top: clamp(24px, 4vw, 44px); border-top: 1px solid var(--linie); }
.heute h2 { margin: 0 0 .4rem; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.1; }
.heute > p { margin: 0 0 1.1rem; max-width: 46rem; }
.heute__rahmen { position: relative; aspect-ratio: 2.35 / 1; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 80px -44px #000, 0 0 0 1px rgba(255,255,255,.06); }
.heute__rahmen canvas, .heute__bild { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.heute__rahmen canvas { display: none; }
.heute--bereit .heute__rahmen canvas { display: block; }
.heute--bereit .heute__bild { display: none; }
.heute__rahmen:fullscreen { border-radius: 0; display: grid; place-items: center; aspect-ratio: auto; }
.heute__rahmen:fullscreen canvas { position: static; width: 100vw; height: auto; max-height: 100vh; object-fit: contain; }
.heute__start { position: absolute; inset: 0; margin: auto; width: clamp(56px, 8vw, 84px); height: clamp(56px, 8vw, 84px); border-radius: 50%; border: 1px solid rgba(255,235,190,.7); background: rgba(10,12,24,.45); cursor: pointer; display: none; place-items: center; backdrop-filter: blur(4px); }
.heute__start i { width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #ffe9b8; margin-left: 5px; }
.heute__start:hover, .heute__start:focus-visible { background: rgba(10,12,24,.7); outline: 2px solid #ffe9b8; outline-offset: 3px; }
.heute--bereit .heute__start { display: grid; }
.heute--bereit.heute--laeuft .heute__start { display: none; }
.heute__tasten { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px clamp(10px, 2vw, 16px); background: linear-gradient(#26262b, var(--rekorder)); border-radius: 8px; color: #d8d8de; }
.heute--bereit .heute__tasten { display: flex; }
.heute__tasten .spule { flex: 1 1 180px; }
.heute__tasten .zaehler { margin-left: 0; }
.taste i.rahmen { width: 12px; height: 9px; border: 2px solid #e8e8ec; border-radius: 1px; }
.heute__hinweis { margin: .7rem 0 0; font-size: .9rem; color: var(--leise); }
.heute--bereit .heute__hinweis { display: none; }
.fassung { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: #a9a9b3; }
.fassung select { font: 600 .9rem/1 Nunito, sans-serif; color: #e8e8ec; background: #2a2a30; border: 1px solid #000; border-radius: 5px; padding: 8px 8px; }
.fassung select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#heute-ton[aria-pressed="false"] i.note { background: #6a6a72; }
