/* Schulungs-Werkstatt · Aufnahme-Seite. Look: Board „A + B · Regiepult mit Teleprompter-Glas“.
   Dunkles Studio, Emerald-Licht von oben, Glasscheibe mit Linse dahinter, Pult mit rotem Knopf. */

:root {
  color-scheme: dark;
  --grund: #070b0a;
  --grund-mitte: #0b1614;
  --grund-licht: #123a31;
  --text: #e6efec;
  --text-leise: #9cbdb3;
  --text-sehr-leise: #7f9a93;
  --emerald: #10b981;
  --emerald-hell: #34d399;
  --teal: #14b8a6;
  --teal-hell: #5eead4;
  --mint: #c9f5e4;
  --rot: #e5432f;
  --rot-hell: #ff8a7a;
  --rot-tief: #a5231a;
  --tally: #ff4d3a;
  --bernstein: #fbbf24;
  --bernstein-text: #fde68a;
  --linie: rgba(255, 255, 255, .07);
  --flaeche: rgba(255, 255, 255, .03);
  --flaeche-hoch: linear-gradient(180deg, #22302d, #172220);
  --flaeche-hover: linear-gradient(180deg, #2b3b37, #1c2a27);
  --pult: linear-gradient(180deg, #16211f, #0c1312);
  --glas-flaeche: linear-gradient(180deg, rgba(167, 243, 208, .12), rgba(167, 243, 208, .03) 40%, rgba(5, 12, 10, .62));
  --glas-rand: rgba(167, 243, 208, .22);
  --gehaeuse: #10201c;
  --schatten-1: 0 1px 1px rgba(0, 0, 0, .4), 0 10px 24px rgba(0, 0, 0, .45), 0 30px 80px rgba(0, 0, 0, .35);
  --schatten-knopf: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 6px 14px rgba(0, 0, 0, .45);
  --radius: 14px;
  --rand: 36px;
  --schrift: "Schibsted Grotesk", system-ui, sans-serif;
  --schrift-lesen: "Atkinson Hyperlegible", system-ui, sans-serif;
  --dauer-kurz: .18s;
  --dauer: .45s;
  --kurve: cubic-bezier(.2, .8, .2, 1);
  --glas-kipp: 8deg;
  --versatz-x: 0px;
  --versatz-y: 0px;
}

* { box-sizing: border-box; }
html { background: var(--grund); overflow-x: clip; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
/* Der Raum: ein fester Verlauf hinter allem (kein background-attachment, damit Scrollen ruhig bleibt). */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 70% at 50% -10%, var(--grund-licht) 0%, var(--grund-mitte) 45%, var(--grund) 100%);
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 19px; font-weight: 700; color: var(--text-leise); }
h3 { font-size: 17px; font-weight: 700; color: var(--text-leise); }
a { color: var(--teal-hell); }
small { font-size: 16px; color: var(--text-leise); }
kbd { font: inherit; font-size: 15px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); color: var(--text-leise); margin-left: 6px; }
.knopf-gruen kbd { color: #d1fae5; border-color: rgba(255, 255, 255, .55); }
:focus-visible { outline: 3px solid var(--teal-hell); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Szene: Licht und Korn ---------- */
.szene-licht {
  position: fixed; left: 50%; top: -220px; width: min(900px, 70vw); height: 680px;
  translate: calc(-50% + var(--versatz-x)) var(--versatz-y);
  background: radial-gradient(50% 50% at 50% 30%, rgba(16, 185, 129, .3), rgba(20, 184, 166, .08) 60%, transparent 75%);
  pointer-events: none; z-index: 0; opacity: .75;
  animation: licht-atmen 7s ease-in-out infinite;
  transition: opacity .35s var(--kurve);
}
.korn { position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .06; background-image: url("/img/korn.svg"); background-size: 240px 240px; }
@keyframes licht-atmen { 0%, 100% { opacity: .6; } 50% { opacity: .9; } }
/* Signatur-Moment: im Countdown wird es dunkel, danach zündet das Studiolicht. */
body.zaehlt .szene-licht { animation: none; opacity: .12; }
body.licht-an .szene-licht { animation: licht-zuenden 1s var(--kurve) 1 both, licht-atmen 7s 1s ease-in-out infinite; }
@keyframes licht-zuenden { 0% { opacity: .12; } 55% { opacity: 1; } 100% { opacity: .78; } }
body.pausiert .szene-licht { animation: none; opacity: .3; }

/* ---------- Kopf ---------- */
.kopf {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding: 16px var(--rand); border-bottom: 1px solid var(--linie);
}
.kopf-titel { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.kopf-unter { font-size: 16px; color: var(--text-leise); }
.kopf h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.kopf-zeit { display: flex; align-items: baseline; gap: 10px; }
.zeit { font-size: 38px; font-weight: 700; font-variant-numeric: tabular-nums; color: #fff; }
.zeit-ziel { font-size: 17px; color: var(--text-leise); }
body[data-ansicht="fertig"] .zeit-ziel { display: none; }
.zustand { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; font-size: 17px; font-weight: 700; }
.zustand::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: currentColor; }
.zustand[data-art="laeuft"] { color: #ffb4a8; background: rgba(229, 67, 47, .16); }
.zustand[data-art="laeuft"]::before { background: var(--tally); box-shadow: 0 0 10px var(--tally); }
.zustand[data-art="pause"] { color: var(--bernstein-text); background: rgba(251, 191, 36, .14); }
.zustand[data-art="bereit"] { color: var(--mint); background: rgba(16, 185, 129, .14); }
.sicherung {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; max-width: 520px;
  background: var(--flaeche); border: 1px solid var(--linie); font-size: 17px; color: var(--text-leise);
  transition: background var(--dauer) var(--kurve), border-color var(--dauer) var(--kurve);
}
.sicherung-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sicherung .haken { opacity: 0; }
.sicherung[data-zustand="ok"] { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .35); color: var(--mint); }
.sicherung[data-zustand="ok"] .sicherung-icon { stroke: var(--emerald-hell); }
.sicherung[data-zustand="ok"] .haken { opacity: 1; }
.sicherung[data-zustand="warten"] { color: var(--mint); }
.sicherung[data-zustand="weg"] { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .45); color: var(--bernstein-text); }
.bewegung-knopf { min-height: 44px; min-width: 10.5em; padding: 0 14px; font-size: 16px; color: var(--text-leise); }

.nur-mac { position: relative; z-index: 1; margin: 24px var(--rand) 0; padding: 16px 18px; border-radius: var(--radius); background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45); color: var(--bernstein-text); }

/* ---------- Bausteine ---------- */
.ansicht { position: relative; z-index: 1; flex: 1; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.knopf {
  min-height: 52px; padding: 0 20px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14); background: var(--flaeche-hoch); color: var(--text);
  font: 600 17px var(--schrift); cursor: pointer; box-shadow: var(--schatten-knopf);
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  transition: transform var(--dauer-kurz) var(--kurve), box-shadow var(--dauer-kurz) var(--kurve), border-color var(--dauer-kurz);
}
.knopf:hover { background: var(--flaeche-hover); border-color: rgba(255, 255, 255, .3); }
.knopf:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 2px 6px rgba(0, 0, 0, .5); }
.knopf:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.knopf-gruen { border-color: rgba(52, 211, 153, .5); background: linear-gradient(180deg, #0f8a63, #0b6b4d); color: #fff; font-weight: 700; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 20px rgba(16, 185, 129, .3); }
.knopf-gruen:hover { background: linear-gradient(180deg, #12a074, #0d7a58); }
.knopf-leise { background: transparent; box-shadow: none; }
.knopf-leise:hover { background: rgba(255, 255, 255, .05); }
.knopf-rund { width: 52px; padding: 0; font-size: 24px; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; }
.klein { font-size: 16px; color: var(--text-leise); margin: 0; }
.meldung { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .45); color: var(--bernstein-text); }

.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld > span, .feld > label { font-size: 16px; color: var(--text-leise); }
.feld-reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 16px; }
input[type="text"], textarea {
  width: 100%; font: 17px/1.5 var(--schrift); color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  padding: 12px 14px; box-shadow: inset 0 8px 18px rgba(0, 0, 0, .35);
}
input[type="text"] { min-height: 52px; }
input::placeholder, textarea::placeholder { color: var(--text-sehr-leise); }
input[type="text"]:focus, textarea:focus { border-color: rgba(94, 234, 212, .6); outline: none; box-shadow: inset 0 8px 18px rgba(0, 0, 0, .35), 0 0 0 3px rgba(94, 234, 212, .3); }
/* Das Skript liegt schon hier auf einer Glasscheibe – wie später im Teleprompter. */
.glas-feld { position: relative; border-radius: 16px; padding: 3px; background: var(--glas-flaeche); border: 1px solid var(--glas-rand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 18px 40px rgba(0, 0, 0, .45), 0 30px 70px rgba(16, 185, 129, .1); }
.glas-feld textarea { display: block; resize: vertical; min-height: 240px; font-family: var(--schrift-lesen); font-size: 18px; background: rgba(4, 10, 9, .55); border-color: transparent; border-radius: 13px; }

.skript-zeile { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hilfe { flex: 1 1 280px; color: var(--text-leise); font-size: 17px; }
.hilfe summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--teal-hell); }
.hilfe p { margin: 6px 0; }

/* ---------- Szenenliste ---------- */
.szenen-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.szene {
  width: 100%; text-align: left; padding: 12px 14px; border-radius: var(--radius);
  background: var(--flaeche); border: 1px solid rgba(255, 255, 255, .06); color: var(--text-sehr-leise); font: inherit;
  transition: background var(--dauer) var(--kurve), border-color var(--dauer) var(--kurve), box-shadow var(--dauer) var(--kurve), transform var(--dauer) var(--kurve);
}
button.szene { cursor: pointer; min-height: 44px; }
button.szene:hover { border-color: rgba(255, 255, 255, .18); }
.szene-art { display: block; font-size: 16px; }
.szene-titel { display: block; font-size: 17px; margin-top: 2px; color: #c2d4ce; }
.szene[data-zustand="aktiv"] {
  background: linear-gradient(180deg, rgba(16, 185, 129, .22), rgba(20, 184, 166, .08));
  border-color: rgba(52, 211, 153, .5); transform: translateX(4px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 10px 30px rgba(16, 185, 129, .18);
}
.szene[data-zustand="aktiv"] .szene-art { color: #a7f3d0; }
.szene[data-zustand="aktiv"] .szene-titel { color: #fff; font-weight: 700; }
.szene[data-zustand="danach"] { border-style: dashed; border-color: rgba(255, 255, 255, .14); }
.szene[data-zustand="vorbei"] .szene-titel { color: var(--text-sehr-leise); }
.leer-hinweis { margin: 0; color: var(--text-sehr-leise); }

/* ---------- Vorbereiten ---------- */
.vorbereiten {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px 36px;
  padding: 28px var(--rand) 0; align-content: start;
}
.fortsetzen { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .07); }
.fortsetzen h2 { color: var(--bernstein-text); flex: 1 0 100%; }
.fortsetzen p { margin: 0; flex: 1 1 360px; }
.vor-skript, .vor-geraete { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.szenen-vorschau { display: flex; flex-direction: column; gap: 10px; }
.geraete-paar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.geraet { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.geraet .knopf { width: 100%; }
.monitor {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 40% 35%, #1d2b28, #0b1312);
  box-shadow: 0 0 0 6px var(--gehaeuse), 0 0 0 7px rgba(255, 255, 255, .06), var(--schatten-1);
  margin: 7px;
}
.monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b1312; }
.monitor video:not([data-an]) { display: none; }
.monitor-kamera video { object-fit: cover; transform: scaleX(-1); }
.monitor-leer { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-sehr-leise); font-size: 16px; text-align: center; padding: 8px; }
.monitor video[data-an] + .monitor-leer { display: none; }

.pegel-zeile { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); }
.pegel { display: flex; align-items: flex-end; gap: 5px; height: 34px; width: 82px; flex: none; }
.pegel span { flex: 1; height: 100%; border-radius: 3px; background: linear-gradient(0deg, var(--emerald), var(--teal-hell)); transform-origin: bottom; transform: scaleY(max(.22, var(--h, .22))); transition: transform 80ms linear; }
.pegel-text { font-size: 17px; color: var(--mint); }
.pegel-zeile[data-zustand="leise"] .pegel-text, .pegel-zeile[data-zustand="laut"] .pegel-text { color: var(--bernstein-text); }

.check { border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px 16px 10px; margin: 0; display: flex; flex-direction: column; gap: 4px; background: var(--flaeche); }
.check legend { padding: 0 6px; font-weight: 700; color: var(--text-leise); }
.check label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--emerald); flex: none; }

/* ---------- Pult ---------- */
.pult {
  grid-column: 1 / -1; position: relative; margin-top: 26px;
  margin-inline: calc(var(--rand) * -1); padding: 18px var(--rand) 22px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px;
  background: var(--pult); border-top: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .04), 0 -20px 40px rgba(0, 0, 0, .4);
}
.pult-klebend { position: sticky; bottom: 0; z-index: 5; }
.start-hinweis { margin: 0; flex: 1 1 260px; max-width: 560px; color: var(--text-leise); text-align: right; }
.aufnahme-knopf {
  position: relative; min-width: 88px; height: 88px; padding: 0 30px 0 26px; border-radius: 44px; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 14px; color: #fff; font: 800 19px var(--schrift);
  background: radial-gradient(circle at 30% 25%, var(--rot-hell), var(--rot) 55%, var(--rot-tief));
  box-shadow: 0 0 0 8px #1c2725, 0 0 0 9px rgba(255, 255, 255, .08), 0 14px 30px rgba(229, 67, 47, .45), 0 2px 0 rgba(255, 255, 255, .35) inset;
  transition: transform var(--dauer-kurz) var(--kurve);
}
.aufnahme-knopf:hover { transform: translateY(1px); }
.aufnahme-knopf:active { transform: translateY(2px) scale(.98); }
/* Gesperrt: Lampe aus, nicht schmutzig grau. */
.aufnahme-knopf:disabled { cursor: not-allowed; transform: none; color: rgba(255, 255, 255, .6); background: radial-gradient(circle at 30% 25%, #5a2a24, #3a1714 60%, #22100d); box-shadow: 0 0 0 8px #1c2725, 0 0 0 9px rgba(255, 255, 255, .06), 0 2px 0 rgba(255, 255, 255, .1) inset; }
.aufnahme-knopf:disabled .aufnahme-knopf-punkt { background: rgba(255, 255, 255, .35); box-shadow: none; }
.aufnahme-knopf-punkt { width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, .6); }
.aufnahme-knopf.laeuft { width: 88px; padding: 0; justify-content: center; border-radius: 50%; }
.aufnahme-knopf svg { width: 30px; height: 30px; fill: #fff; }
.aufnahme-knopf .icon-weiter, .aufnahme-knopf.pausiert .icon-pause { display: none; }
.aufnahme-knopf.pausiert .icon-weiter { display: block; }
/* Pausiert: ein heller „Weiter“-Knopf, nicht noch ein zweites Grün neben „Nächste Szene“. */
.aufnahme-knopf.pausiert { background: radial-gradient(circle at 30% 25%, #ffffff, #d7efe7 55%, #9fbfb5); box-shadow: 0 0 0 8px #1c2725, 0 0 0 9px rgba(255, 255, 255, .1), 0 14px 30px rgba(201, 245, 228, .25), 0 2px 0 rgba(255, 255, 255, .6) inset; }
.aufnahme-knopf.pausiert svg { fill: #0b2a22; }
.knopf-mitte { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.knopf-beschriftung { font-size: 16px; color: var(--text-leise); }
.pult-links, .pult-rechts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex: 1 1 0; }
.pult-links { justify-content: flex-start; }
.pult-rechts { justify-content: flex-end; }
.tempo-gruppe { display: inline-flex; align-items: center; gap: 8px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--linie); }
.tempo { min-width: 9.5em; text-align: center; font-size: 17px; color: var(--text-leise); font-variant-numeric: tabular-nums; }
.rueckfrage {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px;
  padding: 14px var(--rand); background: linear-gradient(180deg, #1d2a27, #111a18); border-top: 1px solid rgba(251, 191, 36, .45);
}
.rueckfrage p { margin: 0; font-size: 19px; font-weight: 700; color: #fff; }

/* ---------- Aufnahme: ein Schirm, nichts zum Scrollen ---------- */
body[data-ansicht="aufnahme"] { height: 100dvh; min-height: 0; }
.aufnahme {
  min-height: 0; display: grid;
  grid-template-columns: minmax(200px, 230px) minmax(0, 1fr) minmax(220px, 260px);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 22px 28px; padding: 22px var(--rand) 0; overflow: auto;
}
.szenen-leiste { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; overflow: auto; }
.buehne { position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; perspective: 1400px; overflow-x: clip; padding: 0 10px 18px; }
.linse {
  position: absolute; top: 0; left: 50%; width: 70px; height: 70px; margin-left: -35px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 38% 34%, #4f8f7e 0%, #173a32 30%, #050a09 62%);
  box-shadow: 0 0 0 6px var(--gehaeuse), 0 0 0 7px rgba(255, 255, 255, .08), 0 0 40px rgba(16, 185, 129, .3);
  translate: calc(var(--versatz-x) * -.4) 0;
}
.linse::before { content: ""; position: absolute; left: 18px; top: 14px; width: 14px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .35); filter: blur(1px); rotate: -25deg; }
.linse::after { content: ""; position: absolute; top: -16px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #3a1714; transition: background var(--dauer), box-shadow var(--dauer); }
body.nimmt-auf .linse::after { background: var(--tally); box-shadow: 0 0 12px var(--tally), 0 0 28px rgba(255, 77, 58, .6); }
body.nimmt-auf.pausiert .linse::after { background: var(--bernstein); box-shadow: 0 0 10px rgba(251, 191, 36, .6); }
.glas {
  position: relative; z-index: 1; margin-top: 36px; flex: 1; min-height: 260px;
  transform: rotateX(var(--glas-kipp)) translate3d(var(--versatz-x), 0, 0); transform-origin: 50% 0;
  border-radius: 22px; overflow: hidden;
  background: var(--glas-flaeche); border: 1px solid var(--glas-rand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(0, 0, 0, .5), 0 20px 50px rgba(0, 0, 0, .55), 0 50px 110px rgba(16, 185, 129, .18);
  transition: box-shadow var(--dauer) var(--kurve), border-color var(--dauer);
}
/* Ruhender Rahmen: Text taucht oben und unten weich aus dem Glas auf, statt hart abgeschnitten zu werden. */
.glas::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(12, 26, 22, .92) 0, transparent 16%, transparent 80%, rgba(5, 12, 10, .92) 100%); }
body.nimmt-auf .glas { border-color: rgba(167, 243, 208, .32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 1px 2px rgba(0, 0, 0, .5), 0 20px 50px rgba(0, 0, 0, .55), 0 50px 130px rgba(16, 185, 129, .3); }
.glas-glanz { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .09), transparent); transform: translateX(-120%); pointer-events: none; z-index: 3; }
body.licht-an .glas-glanz { animation: glanz 1.6s var(--kurve) .2s 1 forwards; }
@keyframes glanz { to { transform: translateX(300%); } }
.lesemarke { position: absolute; left: 14px; top: 36%; width: 0; height: 0; translate: 0 -50%; border: 10px solid transparent; border-left-color: var(--emerald-hell); filter: drop-shadow(0 0 6px rgba(52, 211, 153, .7)); z-index: 3; }
.glas-inhalt { position: absolute; left: 0; right: 0; top: 0; padding: 0 56px 0 52px; font-family: var(--schrift-lesen); will-change: transform; z-index: 1; transition: opacity .3s; }
.glas-inhalt p { margin: 0 0 20px; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.3; color: rgba(230, 239, 236, .58); transform: scale(.94); transform-origin: left center; transition: color .3s, transform .3s var(--kurve), text-shadow .3s; }
.glas-inhalt p.aktiv {
  color: #fff; font-weight: 700; transform: none; text-shadow: 0 0 30px rgba(16, 185, 129, .3);
  background: linear-gradient(90deg, rgba(16, 185, 129, .3), rgba(20, 184, 166, .3)) no-repeat 0 0 / var(--fortschritt, 0%) 100%;
  border-radius: 8px; box-shadow: -10px 0 0 transparent;
}
.glas-inhalt p.gelesen { color: rgba(230, 239, 236, .28); }
.glas-inhalt p.regie { font-family: var(--schrift); font-size: 20px; color: var(--teal-hell); display: flex; gap: 10px; align-items: center; transform: none; }
.glas-inhalt p.regie::before { content: ""; width: 20px; height: 20px; flex: none; background: url("/img/regie.svg") center / contain no-repeat; }
.glas-inhalt p.naechste, .glas-inhalt p.ende { font-family: var(--schrift); font-size: 19px; color: var(--text-leise); transform: none; }
.glas-inhalt p.naechste { border-top: 1px solid var(--linie); padding-top: 18px; margin-top: 36px; }
body.zaehlt .glas-inhalt { opacity: 0; }
body.pausiert .glas-inhalt { opacity: .45; }
.pause-schild { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 4; padding: 12px 20px; border-radius: 12px; font-size: 20px; font-weight: 700; color: var(--bernstein-text); background: rgba(20, 16, 6, .85); border: 1px solid rgba(251, 191, 36, .5); box-shadow: var(--schatten-1); white-space: nowrap; }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; font-size: 150px; font-weight: 800; color: #fff; background: rgba(5, 10, 9, .86); text-shadow: 0 0 60px rgba(16, 185, 129, .6); }
.countdown span { animation: zahl .9s var(--kurve) 1 both; }
@keyframes zahl { from { opacity: 0; transform: scale(1.4); } to { opacity: 1; transform: scale(1); } }

.kontrolle { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; overflow: auto; }
.kontrolle > * { flex-shrink: 0; }
.monitor-live { aspect-ratio: 16 / 9; }
.monitor-live video { background: #f4f7f6; }
.monitor-live .blase { position: absolute; inset: auto 8px 8px auto; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; transform: scaleX(-1); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); background: #1d2b28; }
.geprueft { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.geprueft li { display: flex; gap: 10px; align-items: center; }
.geprueft li::before { content: ""; width: 20px; height: 20px; flex: none; background: url("/img/haken.svg") center / contain no-repeat; }
.pult-aufnahme { grid-row: 2; margin-top: 0; }

/* ---------- Fertig ---------- */
.fertig { display: grid; place-items: start center; padding: 40px var(--rand); }
.fertig-buehne { position: relative; width: min(640px, 100%); padding-top: 36px; }
.linse-fertig { top: 0; }
.fertig-karte { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; padding: 30px 28px 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), var(--schatten-1); background: var(--glas-flaeche); border-color: var(--glas-rand); }
body.alles-gesichert .linse-fertig::after { background: var(--emerald-hell); box-shadow: 0 0 12px var(--emerald-hell), 0 0 28px rgba(52, 211, 153, .6); }
.fertig-karte[data-zustand="weg"] { border-color: rgba(251, 191, 36, .5); }
.fertig-karte h2 { font-size: 26px; color: #fff; }
.fertig-karte[data-zustand="weg"] h2 { color: var(--bernstein-text); }
.fertig-karte p { margin: 0; }
.fertig-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fertig-liste li { display: grid; grid-template-columns: 22px max-content minmax(0, 1fr); align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--linie); }
.fertig-liste .stand { color: var(--text-leise); font-size: 17px; text-align: right; }
.punkt { width: 14px; height: 14px; border-radius: 50%; background: var(--text-sehr-leise); }
.fertig-liste li[data-zustand="laeuft"] .punkt { background: var(--teal-hell); box-shadow: 0 0 0 4px rgba(94, 234, 212, .15); }
.fertig-liste li[data-zustand="ok"] .punkt { background: var(--emerald-hell); box-shadow: 0 0 12px rgba(52, 211, 153, .7); }
.fertig-liste li[data-zustand="ok"] .stand { color: var(--mint); }
.fertig-liste li[data-zustand="leer"] .stand, .fertig-liste li[data-zustand="weg"] .stand { color: var(--bernstein-text); }
.fertig-liste li[data-zustand="weg"] .punkt { background: var(--bernstein); }
.fertig-kopie { display: flex; flex-direction: column; gap: 12px; color: var(--text-leise); }

/* ---------- Anmelden ---------- */
.anmelden { display: grid; place-items: center; padding: 48px var(--rand); min-height: 100dvh; }
.anmelde-karte h1 { font-size: 28px; font-weight: 800; color: #fff; }
.anmelde-karte .knopf { width: 100%; margin-top: 4px; }
input[type="email"], input[type="password"] {
  width: 100%; min-height: 52px; font: 17px/1.5 var(--schrift); color: var(--text);
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px;
  padding: 12px 14px; box-shadow: inset 0 8px 18px rgba(0, 0, 0, .35);
}
input[type="email"]:focus, input[type="password"]:focus { border-color: rgba(94, 234, 212, .6); outline: none; box-shadow: inset 0 8px 18px rgba(0, 0, 0, .35), 0 0 0 3px rgba(94, 234, 212, .3); }
.abmelden-knopf { min-height: 44px; padding: 0 12px; font-size: 15px; color: var(--text-leise); }

/* ---------- Breiten ---------- */
@media (max-width: 1320px) {
  .kopf { flex-wrap: nowrap; gap: 14px; }
  .kopf-titel { flex: 1 1 auto; }
  .kopf h1 { font-size: 22px; }
  .kopf-unter { display: none; }
  .zeit { font-size: 32px; }
  .sicherung { max-width: 360px; font-size: 16px; }
  .bewegung-knopf { min-width: 0; font-size: 15px; padding: 0 10px; }
  .pult-aufnahme { gap: 12px 16px; }
  .pult-aufnahme .knopf { padding: 0 14px; }
  .tempo { min-width: 7.5em; }
  .zeit-ziel { display: none; }
}
@media (max-width: 1180px) {
  .aufnahme { grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); grid-template-rows: auto minmax(0, 1fr) auto; }
  .szenen-leiste { grid-column: 1 / -1; overflow: visible; }
  .szenen-leiste h2 { display: none; }
  .szenen-leiste .szenen-liste { flex-direction: row; overflow-x: auto; padding: 6px 2px 10px; }
  .szenen-leiste .szenen-liste li { flex: 0 0 auto; max-width: 240px; }
  .szenen-leiste .szene { padding: 8px 12px; }
  .szene-art { white-space: nowrap; }
  .szene[data-zustand="aktiv"] { transform: none; }
  .pult-aufnahme { grid-row: 3; }
  .pult-links, .pult-rechts { flex: 0 1 auto; }
  .knopf-beschriftung { display: none; }
  .kontrolle .geprueft, .kontrolle .klein { display: none; }
}
@media (max-width: 1000px) {
  .kopf { flex-wrap: wrap; }
}
@media (max-width: 900px) {
  :root { --rand: 16px; --glas-kipp: 4deg; }
  .vorbereiten, .aufnahme { grid-template-columns: minmax(0, 1fr); }
  body[data-ansicht="aufnahme"] { height: auto; }
  .aufnahme { grid-template-rows: none; overflow: visible; }
  .glas { min-height: 380px; }
  .pult-aufnahme { grid-row: auto; }
  .start-hinweis { text-align: center; }
  .glas-inhalt { padding: 0 20px 0 40px; }
  .zeit { font-size: 32px; }
  .feld-reihe, .geraete-paar { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .fertig-liste li { grid-template-columns: 22px minmax(0, 1fr); }
  .fertig-liste .stand { grid-column: 2; text-align: left; }
}

/* ---------- Ruhe ---------- */
body.still .szene-licht, body.still .glas-glanz { animation: none; }
body.still .glas, body.still .linse, body.still .szene-licht { translate: none; }
body.still .glas { transform: rotateX(var(--glas-kipp)); }
@media (prefers-reduced-motion: reduce) {
  .szene-licht, .glas-glanz, .countdown span { animation: none !important; }
  .glas, .linse, .szene-licht { translate: none; }
  .glas { transform: rotateX(var(--glas-kipp)); }
  .szene[data-zustand="aktiv"] { transform: none; }
  * { transition-duration: .01ms !important; }
}
