[hidden]{display:none!important}
*{box-sizing:border-box}body{margin:0;font:15px/1.4 system-ui,sans-serif;background:#0f1115;color:#eee}
.knopf{background:#2b6cff;color:#fff;border:0;border-radius:8px;padding:.55em 1em;cursor:pointer;font:inherit;text-decoration:none;display:inline-block}
.knopf.leise{background:#2a2f3a}.knopf.rot{background:#d22}.knopf.an{outline:2px solid #4f4}.knopf.gross{font-size:1.15em;padding:.8em 1.4em}
.mini{background:#333;color:#eee;border:0;border-radius:4px;margin-left:3px;cursor:pointer}
input,select{background:#1c2029;color:#eee;border:1px solid #333;border-radius:6px;padding:.45em;font:inherit}
.zuschauer{display:grid;grid-template-columns:1fr 340px;height:100dvh}
.buehne-rahmen{position:relative;display:flex;flex-direction:column;min-height:0}
.buehne{position:relative;flex:1;display:grid;gap:6px;background:#000;min-height:240px}
.kachel{position:relative;overflow:hidden;background:#111}.kachel video{width:100%;height:100%;object-fit:contain}
.layout-sprecher{grid-template-columns:1fr}.layout-sprecher .folien{display:none}
.layout-folien{grid-template-columns:1fr}.layout-folien .kamera{position:absolute;right:12px;bottom:12px;width:24%;z-index:2;border-radius:8px}
.layout-nebeneinander{grid-template-columns:1fr 1fr}
.layout-einspieler .kamera,.layout-einspieler .folien,.layout-einspieler .gast{display:none}
.layout-sprecher .einspieler,.layout-folien .einspieler,.layout-nebeneinander .einspieler{display:none}
.seite{display:flex;flex-direction:column;border-left:1px solid #222;min-height:0}
.chat{flex:1;overflow:auto;padding:8px}.msg{margin:4px 0}.msg.privat{opacity:.7;font-style:italic}.msg.frage b{color:#fc6}.msg.team b{color:#6cf}
.chatform{display:flex;flex-wrap:wrap;gap:4px;padding:8px}.chatform input{flex:1;min-width:0}
.cta{display:flex;align-items:center;gap:16px;justify-content:center;flex-wrap:wrap;background:#ffd84d;color:#111;padding:12px;font-weight:600}
.cta-uhr{font-variant-numeric:tabular-nums}
.umfrage,.handout{background:#1c2029;padding:12px}.umfrage .knopf{margin:4px}
.warteraum{position:fixed;inset:0;z-index:10;background:#0f1115;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}
.live .warteraum{display:none}.countdown{font-size:4em;font-variant-numeric:tabular-nums}
.studio .leiste{display:flex;gap:8px;padding:8px;background:#161a22;align-items:center}
.studio-raster{display:grid;grid-template-columns:1fr 380px;gap:10px;padding:10px}.studio .buehne{height:56vh}
.reihe{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0;align-items:center}.steuer input{width:100%;margin:3px 0}.chat.mod{max-height:30vh;background:#161a22}
@media (max-width:800px){.zuschauer{grid-template-columns:1fr;grid-template-rows:auto 1fr;height:auto}.buehne{min-height:56vw}.seite{border:0;height:50vh}.studio-raster{grid-template-columns:1fr}.chatform select{flex-basis:100%}}
.weiche{position:relative;margin:0 8px;background:#1c2029;border:1px solid #2b6cff;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}
.weiche[hidden]{display:none}.weiche .klein{font-size:.85em;opacity:.8}
.modus{background:#2a2f3a;color:#eee;border:0;border-radius:6px;padding:.45em .6em;font:inherit;cursor:pointer}.modus[data-modus=team]{background:#145}
.msg.team_antwort b{color:#7f7}
.faden{border:1px solid #333;border-radius:8px;padding:8px;margin:8px 0}.faden h4{margin:0 0 6px}
.umzug{z-index:20}.live .umzug:not([hidden]){display:flex}.klein{font-size:.85em;opacity:.8}

/* Lauf 13: mehrere Moderatoren. Namensschild je Kachel, zweite Kamera ueber der ersten (PiP), nur ein Buehnen-Bildschirm */
.namensschild{position:absolute;left:6px;bottom:6px;background:rgba(0,0,0,.65);color:#fff;padding:1px 7px;border-radius:4px;font-size:.8em;z-index:3}
.kachel.spricht{outline:3px solid #4f4;outline-offset:-3px}
.layout-folien .kamera{aspect-ratio:16/9;transform:translateY(calc(var(--i,0) * -108%))}
.layout-sprecher{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:1fr}
.buehne .nebenschirm{display:none}
.team-leiste{display:flex;gap:6px;flex-wrap:wrap;padding:4px 10px;background:#12151c}
.modchip{background:#2a2f3a;border-radius:12px;padding:2px 10px;font-size:.9em}.modchip.spricht{background:#1d5a2a}
.ueb-marke{color:#fc6;font-size:.85em}.ueb-marke.fremd{color:#f88}

/* Ton-Knopf (Lauf 12): gross, ueber dem Bild, auch im Live-Zustand */
.tonan{position:fixed;left:50%;top:40%;transform:translate(-50%,-50%);z-index:30;font-size:1.4em;padding:.9em 1.6em;box-shadow:0 4px 24px rgba(0,0,0,.5)}


/* 21.11.2026 Handy: Hochformat = Bild oben fest in 16:9, Chat füllt den Rest und scrollt selbst; 16px im Eingabefeld,
   sonst zoomt iOS beim Tippen; Querformat = Bild groß, Chat schmal rechts. Hinweisleiste oben, schließbar. */
@media (max-width:800px) and (orientation:portrait){
  .zuschauer{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);height:100dvh}
  .zuschauer .buehne{flex:none;aspect-ratio:16/9;min-height:0}
  .zuschauer .seite{height:auto;min-height:0;border-top:1px solid #222}
  .zuschauer .cta{padding:8px;gap:8px}
  .zuschauer #frageknopf,.zuschauer #hand{margin:0 8px 6px}
  .zuschauer .layout-folien .kamera{width:30%;right:6px;bottom:6px}
}
@media (max-height:500px) and (orientation:landscape){
  .zuschauer{grid-template-columns:1fr 260px;grid-template-rows:none;height:100dvh}
  .zuschauer .seite{height:100dvh;border-left:1px solid #222}
}
.zuschauer .chatform input{font-size:16px}
.hinweis{position:fixed;left:8px;right:8px;top:calc(8px + env(safe-area-inset-top));z-index:25;background:#1c2029;color:#eee;
  border:1px solid #2b6cff;border-radius:10px;padding:10px 40px 10px 12px;box-shadow:0 4px 18px rgba(0,0,0,.5);max-width:560px;margin:0 auto}
.hinweiszu{position:absolute;right:6px;top:6px;background:#2a2f3a;color:#eee;border:0;border-radius:6px;width:28px;height:28px;cursor:pointer}

/* Lauf 18 (18.11.2026): Studio-Politur fuer Gerhard. Sendestand gross oben, Vorschau beschriftet, aktive Szene markiert,
   laufende Einblendungen sichtbar, "Im Raum" als Studio-Abzeichen (Zuschauer sehen keine Zahl) */
.sendestand{padding:10px 14px;font-weight:700;font-size:1.1em;text-align:center}
.sendestand.warte{background:#3a3220;color:#ffd84d}.sendestand.live{background:#d22;color:#fff}.sendestand.umzug{background:#7a1fa2;color:#fff}
.sendestand .klein{font-weight:400;opacity:.9;margin-left:8px}
.imraum{margin-left:auto;background:#2a2f3a;border-radius:12px;padding:3px 12px}
.vorschau-titel{font-size:.9em;opacity:.85;margin:0 0 4px}.vorschau-titel span{color:#4f4}
.knopf.szene.aktiv{background:#1d5a2a;outline:2px solid #4f4}
.steuer h3 .aktiv-marke{font-size:.75em;background:#1d5a2a;border-radius:8px;padding:1px 8px;margin-left:6px;font-weight:400}

.schirmvorschau{margin:6px 8px;display:flex;flex-direction:column;gap:4px}.schirmvorschau video{width:100%;max-height:180px;object-fit:contain;background:#000;border:1px solid #2b6cff;border-radius:6px}
