/* Moderationspult, Bühne: 16:9-Fläche mit Rand, Größen in Container-Einheiten, Farben als Variablen aus buehne.js */
@font-face{font-family:'Ubuntu';font-weight:400;font-style:normal;font-display:swap;src:url('../../docs/_shared/fonts/ubuntu_regular.woff') format('woff');}
@font-face{font-family:'Ubuntu';font-weight:700;font-style:normal;font-display:swap;src:url('../../docs/_shared/fonts/ubuntu_bold.woff') format('woff');}
html,body{margin:0;height:100%;background:#000;overflow:hidden;}
body{display:flex;align-items:center;justify-content:center;font-family:'Ubuntu','Trebuchet MS',Arial,sans-serif;}
.b-flaeche{--haus:#C00000;--auf-haus:#FFFFFF;--grund:#F5F1EC;--text:#221F1D;--ring:#C00000;--ring-grund:rgba(34,31,29,.1);--knapp:#C00000;--auf-ring:#FFFFFF;--band:#C00000;--auf-band:#FFFFFF;
  position:relative;width:min(100vw,177.78vh);height:min(100vh,56.25vw);container-type:size;overflow:hidden;background:var(--grund);color:var(--text);
  display:flex;flex-direction:column;}
.b-timer,.b-ruhe,.b-tafel,.b-regeln,.b-programm,.b-frage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;}
[hidden]{display:none !important;}

/* Timer */
.b-aufschrift{margin:0 0 3cqh;font-size:7cqh;font-weight:700;line-height:1.1;text-align:center;max-width:86cqw;}
.b-uhr{position:relative;width:52cqh;height:52cqh;}
.b-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);}
.b-ring circle{fill:none;stroke-width:12;}
.b-ring-grund{stroke:var(--ring-grund);}
.b-ring-lauf{stroke:var(--ring);stroke-linecap:round;stroke-dasharray:1000;stroke-dashoffset:0;transition:stroke-dashoffset .25s linear,stroke .3s;}
.b-ziffern{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;font-size:13cqh;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.02em;}
.b-weiter{margin:3cqh 0 0;min-height:5.5cqh;font-size:4.6cqh;line-height:1.2;text-align:center;}
.b-timer.knapp .b-ziffern{color:var(--knapp);}
.b-timer.knapp .b-ring-lauf{stroke:var(--knapp);animation:b-puls 1.6s ease-in-out infinite;}
.b-timer.ende .b-ziffern{color:var(--knapp);font-size:7cqh;line-height:1.15;text-align:center;white-space:pre-line;}
.b-timer.ende .b-ring-lauf{stroke:var(--knapp);stroke-dashoffset:0 !important;animation:b-puls 1.6s ease-in-out infinite;}
.b-timer.leer .b-ring-lauf{opacity:0;}
@keyframes b-puls{50%{opacity:.45;}}

/* Gemeinsam: kleine Zeile über Tafeln, Überschrift */
.b-eyebrow{margin:0 0 2.4cqh;font-size:3.4cqh;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ring);max-width:86cqw;text-align:center;}
.b-eyebrow:empty{display:none;}
.b-kopf{margin:0 0 4cqh;font-size:7.4cqh;font-weight:700;line-height:1.1;}

/* Tafel */
.b-tafel{padding:0 7cqw;text-align:center;}
.b-tafel-t{margin:0;text-wrap:balance;font-size:12cqh;font-weight:700;line-height:1.08;max-width:86cqw;overflow-wrap:break-word;hyphens:auto;}
.b-tafel-t.mittel{font-size:9.4cqh;}
.b-tafel-t.lang{font-size:7.2cqh;}
.b-tafel-u{margin:3.6cqh 0 0;text-wrap:balance;font-size:4.8cqh;line-height:1.3;max-width:76cqw;}
.b-tafel-u:empty{display:none;}

/* Spielregeln */
.b-regel-liste{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--spalten,1),auto);gap:3cqh 6cqw;}
.b-regel-liste li{display:flex;align-items:center;gap:2.4cqh;font-size:var(--regel-gr,4.6cqh);line-height:1.2;max-width:40cqw;}
.b-regel-liste.eins li{max-width:80cqw;}
.b-regel-liste svg{flex:0 0 auto;width:1.7em;height:1.7em;padding:.35em;border-radius:50%;background:var(--ring-grund);color:var(--ring);}

/* Programm */
.b-punkte{list-style:none;margin:0;padding:0;width:min(78cqw,120cqh);font-size:var(--punkt-gr,4.4cqh);}
.b-punkte li{display:grid;grid-template-columns:5.2em minmax(0,1fr);gap:1em;align-items:baseline;padding:.38em .8em;border-radius:.4em;line-height:1.2;}
.b-punkte .zeit{font-variant-numeric:tabular-nums;font-weight:700;}
.b-punkte .was{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.b-punkte li.vorbei{opacity:.5;}
.b-punkte li.jetzt{background:var(--ring);color:var(--auf-ring);font-weight:700;}
.b-punkte li.ohne-zeit{grid-template-columns:minmax(0,1fr);}

/* Programmleiste im Farbband */
.b-leiste{flex:1;min-width:0;display:flex;align-items:baseline;gap:3cqw;font-size:3.4cqh;white-space:nowrap;overflow:hidden;}
.b-leiste-jetzt{font-weight:700;overflow:hidden;text-overflow:ellipsis;}
.b-leiste-dann{opacity:.85;overflow:hidden;text-overflow:ellipsis;}
.b-band.mit-leiste .b-org{display:none;}

/* Frage */
.b-frage{padding:0 8cqw;text-align:center;}
.b-frage-t{margin:0;text-wrap:balance;font-size:8.4cqh;font-weight:700;line-height:1.15;max-width:84cqw;overflow-wrap:break-word;hyphens:auto;}
.b-frage-t.mittel{font-size:7cqh;}
.b-frage-t.lang{font-size:5.6cqh;}
.b-frage-zeit{margin:4cqh 0 0;min-height:5cqh;font-size:4.4cqh;font-weight:700;color:var(--ring);font-variant-numeric:tabular-nums;}

/* Ruhebild */
.b-ruhe-logo{max-width:56cqw;max-height:42cqh;object-fit:contain;}
.b-ruhe-logo.feld{background:#fff;padding:4cqh 5cqh;border-radius:2.4cqh;box-shadow:0 1cqh 4cqh rgba(0,0,0,.12);}
.b-ruhe-org{margin:5cqh 0 0;font-size:6cqh;font-weight:700;text-align:center;max-width:86cqw;line-height:1.15;}
.b-ruhe-logo:not([hidden]) + .b-ruhe-org{font-size:4.2cqh;font-weight:400;}

/* Farbband unten */
.b-band{flex:0 0 11cqh;display:flex;align-items:center;justify-content:space-between;gap:4cqw;padding:0 5cqw;background:var(--band);color:var(--auf-band);box-sizing:border-box;}
.b-org{font-size:3.6cqh;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.b-logo{display:flex;align-items:center;height:7.4cqh;}
.b-logo img{max-height:100%;max-width:26cqw;object-fit:contain;}
.b-logo.feld{background:#fff;padding:1cqh 1.6cqh;border-radius:1.2cqh;height:6cqh;}
.b-flaeche.ruhe .b-band{display:none;}

.b-warte{position:absolute;inset:0;margin:0;display:flex;align-items:center;justify-content:center;background:#221F1D;color:#F5F1EC;font-size:4cqh;}

@media (prefers-reduced-motion:reduce){
  .b-ring-lauf{transition:none;}
  .b-timer.knapp .b-ring-lauf,.b-timer.ende .b-ring-lauf{animation:none;}
}
