/* Modul Resilia · Ressourcentafel Not-CSC (uebcon.org/UebConOne/WebApp/Resilia). Baut auf app.css auf (Tokens, Schriften, Glas-
   Karten, Knöpfe, Hell/Dunkel über data-theme bzw. Gerätevorgabe). Rollenfarben als Tokens; Farbe trägt nie allein Bedeutung –
   der Rollenname steht immer daneben. Keine style-Attribute (CSP): Farben hängen an Klassen .c-<rolle>. */
:root, [data-theme='light'] {
  --c-landrat: #2b6cb0; --c-polizei: #2f855a; --c-feuerwehr: #c0392b; --c-verwaltung: #b8860b; --c-bevoelkerungsschutz: #ffffff;
  --ring-bevoelkerungsschutz: #5b6674; --c-thw: #7c5cd6;
}
[data-theme='dark'] {
  --c-landrat: #6fa8e8; --c-polizei: #5fc08a; --c-feuerwehr: #ef7b6e; --c-verwaltung: #e8be4a; --c-bevoelkerungsschutz: #ffffff;
  --ring-bevoelkerungsschutz: #c9d1dc; --c-thw: #b39bf5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --c-landrat: #6fa8e8; --c-polizei: #5fc08a; --c-feuerwehr: #ef7b6e; --c-verwaltung: #e8be4a; --c-bevoelkerungsschutz: #ffffff;
    --ring-bevoelkerungsschutz: #c9d1dc; --c-thw: #b39bf5;
  }
}
.c-landrat { --c: var(--c-landrat); --ring: var(--c-landrat); }
.c-polizei { --c: var(--c-polizei); --ring: var(--c-polizei); }
.c-feuerwehr { --c: var(--c-feuerwehr); --ring: var(--c-feuerwehr); }
.c-verwaltung { --c: var(--c-verwaltung); --ring: var(--c-verwaltung); }
.c-bevoelkerungsschutz { --c: var(--c-bevoelkerungsschutz); --ring: var(--ring-bevoelkerungsschutz); }
.c-thw { --c: var(--c-thw); --ring: var(--c-thw); }

html, body { overflow-x: hidden; }
.rs-top { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; padding: 0.7rem 1rem; border-bottom: 1px solid var(--glass-border); background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); }
.rs-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.rs-brand img { flex: none; }
.rs-brand b { font-family: var(--font-display); display: block; line-height: 1.1; }
.rs-brand small { color: var(--color-text-muted); display: block; line-height: 1.1; }
.rs-top .row { gap: 0.4rem; }
.rs-page { max-width: 72rem; margin: 0 auto; padding: 1.2rem 1rem 3rem; display: flex; flex-direction: column; gap: 1.1rem; }
.rs-page h1 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0; text-wrap: balance; }
.rs-h2 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 0.6rem; }
.rs-lead { color: var(--color-text-muted); max-width: 72ch; margin: 0.4rem 0 0; }
.rs-foot { font-size: 0.8rem; color: var(--color-text-muted); max-width: 90ch; margin: 0 auto; padding: 0 1rem 2rem; }
.rs-foot p { margin: 0 0 0.4rem; }
.rs-page p { margin: 0; }
.rs-status { min-height: 1.3em; font-size: 0.86rem; color: var(--warn); }
.rs-panel { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border: 1px solid var(--glass-border); border-radius: var(--radius-lg); padding: 0.9rem 1rem; min-width: 0; }
.rs-empty { color: var(--color-text-muted); font-size: 0.88rem; }

/* Spielsitzungen */
.rs-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 11rem) auto; gap: 0.6rem; align-items: end; }
.rs-new .field { margin: 0; }
@media (max-width: 640px) { .rs-new { grid-template-columns: minmax(0, 1fr); } }
.rs-games { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.rs-games li { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; border-top: 1px solid var(--glass-border); padding-top: 0.5rem; }
.rs-games li:first-child { border-top: 0; padding-top: 0; }
.rs-games a { font-weight: 700; margin-right: auto; overflow-wrap: anywhere; min-width: 0; }

/* Legende */
.rs-legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.84rem; color: var(--color-text-muted); }
.rs-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.sw { width: 13px; height: 13px; border-radius: 50%; background: var(--c); border: 2px solid var(--ring, var(--c)); display: inline-block; flex: none; }
.sw.recv { background: transparent; border: 2px dashed var(--color-text-muted); }

/* Einspieler-Modul */
.rs-inject { display: flex; flex-direction: column; gap: 0.8rem; }
.inj-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; font-size: 0.8rem; color: var(--color-text-muted); align-items: center; font-variant-numeric: tabular-nums; }
.inj-meta .frist { color: var(--warn); font-weight: 700; }
.inj-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; text-wrap: balance; }
.inj-text { color: var(--color-text-muted); max-width: 80ch; }
.strip { display: flex; gap: 4px; flex-wrap: wrap; }
.sq { font-size: 0.8rem; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--glass-border); border-radius: 5px; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.sq.c { border-color: var(--color-primary); color: var(--color-primary); font-weight: 700; }
.sq.done { background: var(--color-surface-offset); color: var(--color-text); }
.sq.now { outline: 2px solid var(--warn); outline-offset: 1px; }
.rs-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rs-nav button { min-height: 40px; }
.rs-check { display: flex; gap: 0.5rem; align-items: center; font-size: 0.86rem; color: var(--color-text-muted); cursor: pointer; }
.rs-check input { margin: 0; }

/* Maßnahmenkarten */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 0.6rem; }
.meas { border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 0.7rem 0.8rem; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; background: var(--color-surface); }
.meas.csc { border-color: var(--color-primary); }
.meas-h { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.meas-h b { overflow-wrap: anywhere; min-width: 0; }
.badge-k { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; }
.csc .badge-k { color: var(--color-primary); font-weight: 700; }
.mdesc { color: var(--color-text-muted); font-size: 0.84rem; }
.slotrow { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.rs-page button.sb { font-size: 0.8rem; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; gap: 0.4rem; border-radius: var(--radius-sm); padding: 0.2rem 0.55rem; background: var(--color-surface); backdrop-filter: none; }
.rs-page button.sb:disabled { cursor: default; opacity: 1; }
.rs-page button.sb:disabled:hover { border-color: var(--glass-border); background: var(--color-surface); }
.rs-page button.sb.target { box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--c-thw); }
.rs-page button:focus-visible, .rs-page a:focus-visible, .rs-page input:focus-visible, .rs-top button:focus-visible, .rs-top a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.tag { font-size: 0.75rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.res { font-size: 0.84rem; }
.res.teil, .res.nicht, .lackline { color: var(--warn); }
.res.voll { color: var(--good); }
.lackline { font-size: 0.8rem; }

/* Punkte */
.dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid var(--ring, var(--c)); display: inline-block; position: relative; box-sizing: border-box; }
.sb .dot { width: 16px; height: 16px; }
.dot.open { background: transparent; }
.dot.pinned { box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--warn); }
.dot.lost, .dot.bk { background: transparent; border-style: dashed; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; line-height: 1; }
.dot.lost { border-color: var(--color-text-muted); color: var(--color-text-muted); }
.dot.bk { color: var(--ring, var(--c)); }
.dot.lost::before, .dot.bk::before { content: '\00d7'; }
.sb .dot.bk { font-size: 0.75rem; }

/* Hauptbereich: Konten links, Not-CSC/Joker/Protokoll rechts */
.rs-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 1.1rem; align-items: start; }
@media (max-width: 860px) { .rs-main { grid-template-columns: minmax(0, 1fr); } }
.rs-side { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
/* links unter den Konten: Protokoll und Ablauf nebeneinander (rechte Spalte bleibt kürzer) */
.rs-left { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.rs-logs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.1rem; align-items: start; }
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 0.7rem; }
.role { min-width: 0; }
.role.asked { border-color: var(--warn); }
.role-h { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.role-h small { font-size: 0.76rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.role.asked .role-h small { color: var(--warn); font-weight: 700; }
.konto { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.kl { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.5rem; }
.kl2 { font-size: 0.8rem; color: var(--warn); margin-top: 0.15rem; overflow-wrap: anywhere; }
.drow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 0.5rem 0; border-top: 1px solid var(--glass-border); font-size: 0.86rem; }
.drow:first-child { border-top: 0; padding-top: 0; }
.drow .dd { display: flex; gap: 5px; grid-row: 1; grid-column: 2; }
.drow .dd .dot { width: 16px; height: 16px; }
.drow .tag { grid-column: 1 / -1; }
.drow.wait .dn { color: var(--color-text-muted); }
.drow.full .dn { font-weight: 700; }
.rs-csc-status { margin-top: 0.7rem; font-size: 0.9rem; }
.meter { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.recv-box { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--glass-border); font-size: 0.86rem; color: var(--color-text-muted); }
.recv-box b { color: var(--color-text); }
.pool { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; min-height: 40px; padding: 8px; }
.rs-page button.joker { min-height: 40px; min-width: 40px; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--c-thw); border: 2px solid var(--c-thw); box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 5px var(--c-thw); backdrop-filter: none; }
.rs-page button.joker[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--color-surface), 0 0 0 6px var(--color-text); }
.rs-page button.joker:disabled { opacity: 0.6; }
.rs-hint { color: var(--color-text-muted); font-size: 0.82rem; margin-top: 0.5rem; }
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.86rem; }
.log li { border-top: 1px solid var(--glass-border); padding-top: 0.5rem; overflow-wrap: anywhere; }
.log li:first-child { border-top: 0; padding-top: 0; }
/* Protokoll und Ablauf: feste Höhe mit eigener Scrollleiste, damit die Seite nicht immer länger wird */
.log-scroll { max-height: min(22rem, 45vh); overflow-y: auto; overscroll-behavior: contain; padding-right: 0.4rem; scrollbar-gutter: stable; }
.log-scroll:focus-visible { outline: 2px solid var(--color-primary, currentColor); outline-offset: 2px; }
.log .h { font-size: 0.75rem; color: var(--color-text-muted); display: block; }
.log .fxs { display: block; margin-top: 0.15rem; color: var(--color-text-muted); }
.log .fxs span { display: block; }
.bilanz { border-top: 1px solid var(--glass-border); margin-top: 0.8rem; padding-top: 0.6rem; font-size: 0.88rem; }

/* Puls am leeren Platz im Joker-Auswahlmodus */
.sb.target .dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c-thw); opacity: 0; animation: rs-pulse 1.8s ease-out infinite; }
@keyframes rs-pulse { 0% { opacity: 0.7; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .sb.target .dot::after { animation: none; } }

@media print {
  .rs-top, .rs-nav, .rs-check, .pool, .rs-admin { display: none !important; }
}

/* Übersicht, Teilnahme, Editor */
.rs-new.rs-new-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 10rem) minmax(0, 1fr) auto; }
@media (max-width: 760px) { .rs-new.rs-new-4 { grid-template-columns: minmax(0, 1fr); } }
.rs-code { font-size: 1.3rem; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.rs-link { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; align-items: center; font-size: 0.86rem; overflow-wrap: anywhere; margin: 0.4rem 0; }
.rs-link span { min-width: 0; overflow-wrap: anywhere; }
.rs-tn select, .rs-ed-r select, .rs-ed-m select { width: auto; max-width: 100%; }
.rs-tn .rs-nav select { min-height: 36px; padding-block: 0.2rem; }
.rs-tn-who { display: inline-flex; align-items: center; gap: 0.4rem; margin-right: auto; min-width: 0; overflow-wrap: anywhere; }
.rs-me { margin: 0.3rem 0 0; font-weight: 700; color: var(--color-primary); }
.role.me { border-color: var(--color-primary); }
.rs-page button.sb.mine:not(:disabled) { border-color: var(--color-primary); }
.rs-join { max-width: 34rem; margin: 0 auto; width: 100%; }
.rs-join form { margin-top: 0.8rem; }
/* Hinweis zur Spielsitzung zwischen Code und Name: Abstand zu beiden Feldern, leer ohne Platzbedarf */
.rs-join #rs-game { margin: 0.1rem 0 1rem; }
.rs-join #rs-game:empty { display: none; }
/* Auswertung und Spielsitzung (Spielleitung): Zurücksetzen abgesetzt als Warnbereich, nicht neben den Maßnahmen */
.rs-admin .rs-nav { margin-top: 0.5rem; }
.rs-admin .btn { min-height: 40px; display: inline-flex; align-items: center; }
.rs-danger { margin-top: 1rem; padding: 0.6rem 0.8rem 0.8rem; border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent); border-radius: var(--radius-md); background: var(--bad-soft); }
.rs-danger .rs-hint { margin: 0 0 0.5rem; color: var(--color-text); }
.rs-danger button.danger { min-height: 40px; background: var(--color-surface); }
.rs-import { display: flex; flex-direction: column; gap: 0.3rem; }
.rs-import input[type='file'] { max-width: 100%; }
.rs-ed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); gap: 0 0.8rem; }
.rs-ed-r { min-width: 0; }
.rs-ed-r legend { font-family: var(--font-display); }
.rs-ed-m { border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 0.7rem 0.8rem; margin: 0 0 0.8rem; background: var(--color-surface); min-width: 0; }
.rs-ed-m.csc { border-color: var(--color-primary); }
.rs-ed-m .row.between { margin-bottom: 0.4rem; }
.rs-page .field label { display: block; }
.rs-page .field label > input, .rs-page .field label > select, .rs-page .field label > textarea { margin-top: 0.3rem; font-weight: 400; }
.rs-slots { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; padding: 0.6rem 0.8rem; margin-bottom: 0.9rem; background: transparent; }
.rs-slot-n { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.86rem; }
.rs-slot-n input { width: 4.2rem; min-height: 36px; padding: 0.2rem 0.4rem; }
.rs-ed-save ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }

/* Monitor der Übungsleitung: Steuerleiste mit großem Countdown (bleibt beim Scrollen oben) */
.rs-ctl { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.6rem 0.9rem; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.rs-ctl-no { font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-ctl-frist { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--color-primary); line-height: 1; }
.rs-ctl-frist.over { color: var(--bad); }
.rs-ctl-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.rs-ctl-tn .rs-ctl-frist { margin-left: auto; }
.rs-up { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.86rem; }
.rs-up li { display: flex; flex-direction: column; gap: 0.2rem; border-top: 1px solid var(--glass-border); padding-top: 0.5rem; overflow-wrap: anywhere; }
.rs-up li:first-child { border-top: 0; padding-top: 0; }
.rs-up-roles, .rs-cover { display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; font-size: 0.8rem; color: var(--color-text-muted); }
.rs-up-roles span, .rs-cover span { display: inline-flex; align-items: center; gap: 0.3rem; }
.rs-cover { margin: 0.5rem 0; }
.rs-cover .none { color: var(--warn); }
.rs-warn { color: var(--bad); font-weight: 700; font-size: 0.8rem; }
.sb-other { font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem; border: 1px dashed var(--color-text-faint); border-radius: var(--radius-sm); padding: 0.2rem 0.55rem; min-height: 40px; color: var(--color-text-muted); }
.sb-other .dot { width: 16px; height: 16px; }
.rs-none { text-align: left; padding: 0.4rem 0; }
.rs-ctl-plan { font-size: 0.82rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.rs-ctl-plan.late { color: var(--warn); font-weight: 700; }

/* Entscheidungen mit Folgen: gebundene Einheiten gestreift, Verstärkung/Ausfall als Zeilen */
.dot.bound { background: repeating-linear-gradient(45deg, var(--c) 0 3px, transparent 3px 6px); }
.kl3 { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.15rem; overflow-wrap: anywhere; }
.kl3.good { color: var(--good); }
.kl3.bad { color: var(--bad); }
.rs-bind { color: var(--warn); }
.rs-event { color: var(--color-primary); }
.rs-ed-fx { border: 1px dashed var(--glass-border); border-radius: var(--radius-md); padding: 0.5rem 0.7rem; margin: 0 0 0.8rem; }
.rs-ed-fx summary { cursor: pointer; font-weight: 700; font-size: 0.88rem; }
.rs-fx-block { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.rs-fx { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; width: 100%; }
.rs-fx select { width: auto; min-height: 36px; padding-block: 0.2rem; }
.rs-fx-n { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; }
.rs-fx-n input { width: 4.2rem; min-height: 36px; padding: 0.2rem 0.4rem; }
.rs-fx-t { flex: 1 1 14rem; min-height: 36px; }

/* ---- Not-CSC: Zeitleiste der Pflichtpunkte (alle Einspieler, Stand je Pflichtpunkt) ---- */
.csc-bar { display: flex; gap: 3px; margin: 0.5rem 0 0.7rem; }
.csc-bar .seg { flex: 1; height: 10px; border-radius: 3px; background: var(--color-surface-offset); border: 1px solid var(--input-border, var(--glass-border)); }
.csc-tl { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; align-items: end; }
.csc-tl li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; border-radius: 5px; font-variant-numeric: tabular-nums; }
.csc-tl .tl-t { height: 26px; font-size: 0.62rem; color: var(--color-text-muted); border-bottom: 3px solid var(--glass-border); }
.csc-tl .tl-t.done { border-bottom-color: var(--color-text-muted); }
.csc-tl .tl-t.now { border-bottom-color: var(--warn); color: var(--color-text); font-weight: 700; }
.csc-tl .tl-c { grid-column: span 2; height: 50px; padding: 2px 1px; border: 2px solid var(--input-border, var(--glass-border)); gap: 1px; }
.csc-tl .tl-n { font-size: 0.62rem; color: var(--color-text-muted); line-height: 1; }
.csc-tl .tl-i { font-weight: 800; font-size: 0.95rem; line-height: 1.1; }
.csc-tl .tl-r { font-size: 0.6rem; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-gedeckt.tl-c, .csc-bar .seg.st-gedeckt { background: var(--good-soft); border-color: var(--good); }
.st-gedeckt .tl-i, .csc-row.st-gedeckt .tl-i { color: var(--good); }
.st-ueberzogen.tl-c, .st-jetzt_ueberzogen.tl-c, .csc-bar .seg.st-ueberzogen, .csc-bar .seg.st-jetzt_ueberzogen { background: var(--bad-soft); border-color: var(--bad); }
.st-ueberzogen .tl-i, .st-jetzt_ueberzogen .tl-i { color: var(--bad); }
.st-jetzt.tl-c, .csc-bar .seg.st-jetzt { background: var(--warn-soft); border-color: var(--warn); }
.st-jetzt .tl-i { color: var(--warn-text, var(--warn)); }
.st-jetzt.tl-c, .st-jetzt_ueberzogen.tl-c { box-shadow: 0 0 0 2px var(--color-bg, transparent), 0 0 0 4px var(--warn); }
.st-kommt.tl-c { border-style: dashed; }
.csc-list { list-style: none; margin: 0; padding: 0; }
.csc-row { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: 2px 8px; align-items: start; padding: 0.45rem 0; border-top: 1px solid var(--glass-border); font-size: 0.86rem; }
.csc-row:first-child { border-top: 0; }
.csc-row .tl-i { text-align: center; font-weight: 800; }
.csc-row .cr-m { color: var(--color-text-muted); }
.csc-row .cr-s { font-size: 0.8rem; white-space: nowrap; }
.csc-row.st-ueberzogen .cr-s, .csc-row.st-jetzt_ueberzogen .cr-s { color: var(--bad); font-weight: 700; }
.csc-row .tag { grid-column: 2 / -1; justify-self: start; }
.csc-row .tag.warn { color: var(--warn-text, var(--warn)); border-color: var(--warn); }
.csc-rule { margin-top: 0.5rem; }

/* ---- Punkte zurückholen (Maßnahmen früherer Einspieler, Vorschau der Folgen) ---- */
.wd-list { list-style: none; margin: 0.4rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.wd-row { border: 1px solid var(--input-border, var(--glass-border)); border-radius: 10px; padding: 0.6rem 0.7rem; display: grid; gap: 0.35rem; }
.wd-t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.8rem; }
.wd-s { font-size: 0.82rem; color: var(--color-text-muted); }
.wd-p { margin: 0; font-size: 0.88rem; }
.wd-fx { margin: 0; padding-left: 1.1rem; font-size: 0.84rem; }
.wd-fx .fx-on { color: var(--bad); }
.wd-fx .fx-off { color: var(--warn-text, var(--warn)); }
.wd-row button { justify-self: start; min-height: 40px; }
#wdDetails > summary { cursor: pointer; list-style: none; }
#wdDetails > summary::-webkit-details-marker { display: none; }
#wdDetails > summary::before { content: '▸ '; color: var(--color-text-muted); }
#wdDetails[open] > summary::before { content: '▾ '; }
.rs-wd-sum { display: inline; }
.wd-o { display: grid; gap: 0.3rem; }
.wd-o + .wd-o { border-top: 1px dashed var(--glass-border); padding-top: 0.4rem; }

/* ---- Erklärvideo (public/resilia/erklaer.js): 16:9-Bühne mit Figur (Lotse) links, Inhalt rechts; skaliert über Container-Einheiten ---- */
html.ex-lock, html.ex-lock body { overflow: hidden; }
.ex-ov { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: color-mix(in srgb, var(--color-bg, #0b0f1a) 84%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ex-frame { width: min(100%, calc((100dvh - 6rem) * 16 / 9), 1500px); display: flex; flex-direction: column; gap: 0.6rem; }
.ex-caps .ex-frame { width: min(100%, calc((100dvh - 10rem) * 16 / 9), 1500px); }
.ex-stage { container-type: inline-size; position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--radius-lg, 16px); border: 1px solid var(--glass-border); background: radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, #ff8a1f 14%, var(--color-surface)) 0%, transparent 55%), radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--color-primary) 18%, var(--color-surface)) 0%, var(--color-surface) 62%); color: var(--color-text); display: grid; grid-template-columns: 27cqw 1fr; box-shadow: var(--shadow-lg, 0 20px 60px rgba(0,0,0,.35)); }
.ex-guide { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 1.6cqw 0 1cqw 1.6cqw; min-height: 0; }
.ex-main { padding: 3.4cqw 4cqw 3.4cqw 1.4cqw; display: flex; flex-direction: column; justify-content: center; gap: 2.2cqw; min-width: 0; }
.ex-wide .ex-main { padding-left: 2cqw; }
.ex-stage h2 { font-family: var(--font-display); font-size: 5.6cqw; line-height: 1.05; margin: 0; text-wrap: balance; }
.ex-stage h3 { font-family: var(--font-display); font-size: 2.5cqw; margin: 0; }
.ex-stage p { margin: 0; font-size: 2cqw; line-height: 1.35; }
.ex-stage ul { margin: 0; padding-left: 2.2cqw; font-size: 1.9cqw; line-height: 1.5; }
.ex-kicker, .ex-k { font-size: 1.6cqw !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-primary); display: inline-flex; align-items: center; gap: 0.8cqw; }
.ex-center { justify-content: center; text-align: center; align-self: center; }
.ex-ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.ex-inl { margin-right: 0.3em; }
.ex-pic { width: 6.4cqw; height: 6.4cqw; border-radius: 1.6cqw; display: grid; place-items: center; font-size: 4cqw; background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); }
.ex-pic.bad { background: color-mix(in srgb, var(--c-landrat) 16%, transparent); color: var(--c-landrat); }
.ex-pic.good { background: var(--good-soft); color: var(--good); }
.ex-pic.undo { background: var(--warn-soft); color: var(--warn-text, var(--warn)); }
.ex-pic.role { background: color-mix(in srgb, var(--ring) 16%, transparent); color: var(--ring); }
.ex-title { display: flex; flex-direction: column; gap: 1.8cqw; }
.ex-facts { display: flex; flex-wrap: wrap; gap: 1.2cqw 2.2cqw; font-size: 2.1cqw; color: var(--color-text-muted); }
.ex-facts span { display: inline-flex; align-items: center; gap: 0.7cqw; }
.ex-facts .ex-ico { color: var(--color-primary); font-size: 2.6cqw; }
.ex-fine { font-size: 1.4cqw !important; color: var(--color-text-muted); }
.ex-two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2cqw; }
.ex-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 1.6cqw; padding: 2.2cqw; display: flex; flex-direction: column; gap: 1.1cqw; min-width: 0; box-shadow: 0 1cqw 3cqw rgba(15, 17, 26, 0.08); }
.ex-card.c-landrat, .ex-card.c-polizei, .ex-card.c-feuerwehr, .ex-card.c-verwaltung, .ex-card.c-bevoelkerungsschutz { border-top: 0.6cqw solid var(--ring); }
.ex-goal { display: flex; align-items: center; justify-content: center; gap: 1.2cqw; text-align: center; font-size: 2.4cqw !important; padding: 1.2cqw 2cqw; border-radius: 4cqw; background: color-mix(in srgb, var(--color-primary) 10%, transparent); align-self: center; }
.ex-goal .ex-ico { font-size: 3.2cqw; color: var(--color-primary); }
.ex-goal b { color: var(--color-primary); }
.ex-blocks { display: flex; gap: 1cqw; }
.ex-blocks i { width: 4.4cqw; height: 4.4cqw; border-radius: 0.9cqw; background: var(--good-soft); border: 0.3cqw solid var(--good); }
.ex-roles { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.2cqw; }
.ex-role { background: var(--glass-bg); border: 1px solid var(--glass-border); border-top: 0.6cqw solid var(--ring); border-radius: 1.4cqw; padding: 1.4cqw 1.1cqw; display: flex; flex-direction: column; gap: 0.9cqw; align-items: center; text-align: center; min-width: 0; }
.ex-role .ex-pic { width: 6cqw; height: 6cqw; font-size: 3.6cqw; }
.ex-role b { font-size: 1.55cqw; hyphens: auto; -webkit-hyphens: auto; max-width: 100%; }
.ex-tag { font-size: 1.25cqw; padding: 0.2cqw 0.8cqw; border-radius: 1cqw; border: 1px solid var(--ring); }
.ex-acct { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25cqw; }
.ex-dot { width: 1.25cqw; height: 1.25cqw; border-radius: 50%; background: var(--c); border: 0.22cqw solid var(--ring, var(--c)); display: inline-block; box-sizing: border-box; }
.ex-row { display: flex; flex-wrap: wrap; gap: 1.2cqw; justify-content: center; }
.ex-chip { display: inline-flex; align-items: center; gap: 0.8cqw; font-size: 1.9cqw; padding: 0.8cqw 1.6cqw; border-radius: 3cqw; border: 1px solid var(--glass-border); background: var(--glass-bg); }
.ex-chip .ex-ico { font-size: 2.4cqw; }
.ex-chip.c-thw .ex-ico { color: var(--c-thw); }
.ex-chip.ok { border-color: var(--good); } .ex-chip.ok .ex-ico { color: var(--good); }
.ex-chip.bad { border-color: var(--bad); } .ex-chip.bad .ex-ico { color: var(--bad); }
.ex-inject { display: grid; grid-template-columns: 1.7fr 1fr; gap: 2.2cqw; align-items: center; }
.ex-slots { display: flex; gap: 1cqw; flex-wrap: wrap; }
.ex-slot { display: inline-flex; align-items: center; gap: 0.7cqw; font-size: 1.8cqw; padding: 0.7cqw 1.1cqw; border-radius: 3cqw; border: 0.25cqw dashed var(--ring); }
.ex-slot .ex-ico { color: var(--ring); font-size: 2.2cqw; }
.ex-fill { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; border: 0.25cqw solid var(--ring); box-sizing: border-box; }
.ex-pin, .ex-full { background: var(--c); }
.ex-talk { display: flex; align-items: center; gap: 0.8cqw; color: var(--color-primary); font-weight: 600; }
.ex-talk .ex-ico { font-size: 2.8cqw; }
.ex-res { display: flex; gap: 1cqw; align-items: flex-start; padding: 1.1cqw 1.4cqw; border-radius: 1.1cqw; background: var(--warn-soft); }
.ex-res .ex-ico { font-size: 2.6cqw; color: var(--warn-text, var(--warn)); }
.ex-side { display: flex; flex-direction: column; align-items: center; gap: 2cqw; }
.ex-clockw { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.ex-clock { position: relative; width: 13cqw; height: 13cqw; border-radius: 50%; border: 0.5cqw solid var(--warn); box-sizing: border-box; background: var(--glass-bg); }
.ex-clock::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.2cqw; height: 1.2cqw; margin: -0.6cqw 0 0 -0.6cqw; border-radius: 50%; background: var(--warn); }
.ex-clocklab { font-size: 2.1cqw !important; color: var(--color-text-muted); }
.ex-clocklab b { color: var(--color-text); font-variant-numeric: tabular-nums; }
.ex-hand { position: absolute; left: 50%; top: 14%; width: 0.5cqw; height: 36%; margin-left: -0.25cqw; background: var(--warn); border-radius: 0.4cqw; transform-origin: 50% 100%; animation: exSpin 4.5s linear both; }
.ex-stamp { display: inline-flex; align-items: center; gap: 0.8cqw; font-weight: 800; font-size: 2.1cqw; padding: 1cqw 1.8cqw; border: 0.4cqw solid var(--color-primary); color: var(--color-primary); border-radius: 1cqw; transform: rotate(-6deg); animation: exStamp .5s cubic-bezier(.2,1.6,.4,1) both; }
.ex-tl { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.5cqw; align-items: end; }
.ex-tl li { display: flex; flex-direction: column; align-items: center; gap: 0.4cqw; border-radius: 0.9cqw; }
.ex-tl small { font-size: 1.4cqw; color: var(--color-text-muted); }
.ex-tt { height: 5cqw; border-bottom: 0.4cqw solid var(--glass-border); justify-content: flex-end; }
.ex-tc { grid-column: span 2; padding: 0.8cqw 0.3cqw; border: 0.3cqw solid var(--ring); background: color-mix(in srgb, var(--ring) 7%, transparent); }
.ex-tc .ex-tci { color: var(--ring); font-size: 2.4cqw; }
.ex-tc b { font-size: 1.3cqw; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-mark { width: 3.6cqw; height: 3.6cqw; border-radius: 50%; border: 0.3cqw dashed var(--glass-border); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.2cqw; animation: exMark .5s ease both; }
.ex-mark.ok { --mk: var(--good); } .ex-mark.bad { --mk: var(--bad); }
.ex-mark.ok::after { content: '✓'; } .ex-mark.bad::after { content: '!'; }
.ex-flip { position: relative; height: 3.2cqw; font-size: 2.2cqw !important; font-weight: 700; }
.ex-flip span { position: absolute; inset: 0; }
.ex-was { color: var(--good); animation: exOut .6s ease both; } .ex-now { color: var(--warn-text, var(--warn)); animation: exIn .6s ease both; }
.ex-out { animation: exEmpty .8s ease both; }
.ex-ret { width: 3cqw; height: 3cqw; animation: exReturn 1s cubic-bezier(.3,1.4,.5,1) both; }
.ex-fx { color: var(--bad); font-weight: 600; display: flex; gap: 0.8cqw; align-items: flex-start; }
.ex-who { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.8cqw; }
.ex-who .ex-pic { width: 5.4cqw; height: 5.4cqw; font-size: 3.2cqw; }
/* Figur Resi (public/resilia/resi.js): Bild + Mund-Sprites; Gesten g-… bewegen die Figur, Stimmung mood-… färbt Haltung und Licht */
.resi { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.resi-move { position: relative; width: 100%; transform-origin: 50% 100%; z-index: 1; }
.resi-bob { position: relative; width: 100%; aspect-ratio: 2 / 3; transform-origin: 50% 100%; }
.resi-head, .resi-body { position: absolute; inset: 0; }
.resi-head img, img.resi-body { display: block; width: 100%; height: 100%; }
.resi-head { z-index: 1; }
img.resi-body { z-index: 2; transition: opacity .6s cubic-bezier(.4, 0, .2, 1); filter: drop-shadow(0 1.2cqw 1.6cqw rgba(15, 17, 26, 0.16)); }
img.resi-body.b { opacity: 0; }
.resi.show-b img.resi-body.b { opacity: 1; }
.resi.show-b img.resi-body.a { opacity: 0; }
.resi-head .resi-blink { position: absolute; inset: 0; display: none; }
.resi.blink .resi-blink { display: block; }
.resi-head .resi-mouth { position: absolute; width: 10.74%; height: auto; display: none; }
.resi.mouth-1 .m-1, .resi.mouth-2 .m-2 { display: block; }
.resi-shadow { position: absolute; bottom: 1.4%; left: 18%; width: 64%; height: 2.4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 17, 26, 0.22), transparent); }
[data-theme='dark'] .resi-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent); }
.resi.g-walk .resi-move { animation: rWalkIn 2.2s cubic-bezier(.25,.1,.25,1) both; }
.resi.g-walk-r .resi-move { animation: rWalkR 2.4s cubic-bezier(.45,.05,.35,1) both; }
.resi.g-walk-l .resi-move { animation: rWalkL 2.4s cubic-bezier(.45,.05,.35,1) both; }
.resi.g-sway .resi-move { animation: rSway 3s ease-in-out both; }
.resi.g-step .resi-move { animation: rStep 1.4s cubic-bezier(.45,.05,.35,1) both; }
.resi.g-finger .resi-move { animation: rFinger 1.3s cubic-bezier(.45,.05,.35,1) both; }
.resi.g-hips .resi-move { animation: rHips 4s ease-in-out infinite; }
.resi.g-lean .resi-move { animation: rLean 1.4s cubic-bezier(.45,.05,.35,1) both; }
.resi.g-present .resi-move { animation: rPresent 1.4s cubic-bezier(.45,.05,.35,1) both; }
.resi.g-nod .resi-move { animation: rNod 2.4s ease-in-out both; }
.resi.mood-angespannt img.resi-body { filter: drop-shadow(0 0 1.2cqw color-mix(in srgb, var(--warn) 40%, transparent)); }
.resi.mood-ernst img.resi-body { filter: drop-shadow(0 0 1.4cqw color-mix(in srgb, var(--bad) 35%, transparent)); }
.resi.mood-ernst .resi-move { translate: 0 0.6%; }
/* Laufen statt Hüpfen (Nutzervorgabe 16.10.2026): gleichmäßig ziehen, nur leichtes Gewichtverlagern, kaum Auf und Ab */
@keyframes rWalkIn { 0% { transform: translateX(-38%); } 20%, 60% { rotate: 0.8deg; translate: 0 -0.4%; } 40%, 80% { rotate: -0.8deg; translate: 0 0; } 100% { transform: none; rotate: 0deg; translate: 0 0; } }
@keyframes rWalkR { 0% { transform: translateX(-210%); } 20%, 60% { rotate: 0.8deg; translate: 0 -0.4%; } 40%, 80% { rotate: -0.8deg; translate: 0 0; } 100% { transform: none; rotate: 0deg; translate: 0 0; } }
@keyframes rWalkL { 0% { transform: translateX(210%); } 20%, 60% { rotate: -0.8deg; translate: 0 -0.4%; } 40%, 80% { rotate: 0.8deg; translate: 0 0; } 100% { transform: none; rotate: 0deg; translate: 0 0; } }
@keyframes rSway { 0%, 100% { transform: none; } 50% { transform: translateX(1.2%) rotate(0.9deg); } }
@keyframes rStep { from { transform: none; } to { transform: translateX(7%) scale(1.03); } }
@keyframes rFinger { 0% { transform: none; } 55% { transform: translateY(-1.6%) scale(1.04) rotate(-1.2deg); } 100% { transform: translateY(-0.8%) scale(1.03); } }
@keyframes rHips { 0%, 100% { transform: rotate(-0.8deg); } 50% { transform: rotate(0.8deg) translateX(0.8%); } }
@keyframes rLean { from { transform: none; } to { transform: rotate(3deg) translateX(3%); } }
@keyframes rPresent { from { transform: scale(0.97); } to { transform: scale(1.05) translateX(3%); } }
@keyframes rNod { 0%, 100% { transform: none; } 30% { transform: rotate(1deg); } 70% { transform: rotate(-0.6deg); } }
/* Erklärvideo: Bühnenseite wechseln (Resi rechts, Inhalt links) */
.ex-right { grid-template-columns: 1fr 27cqw; }
.ex-right .ex-guide { order: 2; padding: 1.6cqw 1.6cqw 1cqw 0; }
.ex-right .ex-main { padding: 3.4cqw 1.4cqw 3.4cqw 4cqw; }
/* Tafel: Resi fasst den verbuchten Einspieler zusammen (Sprechblase, Stimmung) */
.resi-say { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 0.8rem 1rem; align-items: end; container-type: inline-size; }
.resi-say .resi-fig { height: 15rem; display: flex; align-items: flex-end; }
.resi-say .resi { height: 100%; }
.resi-say .resi-move { width: auto; height: 100%; aspect-ratio: 2 / 3; }
.resi-say .resi-bob { height: 100%; width: auto; }
.resi-bubble { position: relative; align-self: center; background: var(--color-surface); border: 1px solid var(--glass-border); border-left: 5px solid var(--good); border-radius: 14px; padding: 0.8rem 1rem; box-shadow: var(--shadow-sm, 0 4px 16px rgba(0,0,0,.08)); }
.resi-bubble::before { content: ''; position: absolute; left: -12px; bottom: 1.6rem; border: 8px solid transparent; border-right-color: var(--glass-border); }
.resi-say.mood-angespannt .resi-bubble { border-left-color: var(--warn); }
.resi-say.mood-ernst .resi-bubble { border-left-color: var(--bad); }
.resi-bubble h3 { margin: 0 0 0.3rem; font-size: 1rem; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.resi-bubble p { margin: 0 0 0.35rem; }
.resi-bubble ul { margin: 0.2rem 0 0.4rem; padding-left: 1.1rem; }
.resi-mood { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.mood-angespannt .resi-mood { background: var(--warn-soft); color: var(--warn-text, var(--warn)); }
.mood-ernst .resi-mood { background: var(--bad-soft); color: var(--bad); }
.resi-tools { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.4rem; }
.resi-tools button { min-height: 40px; }
@container (max-width: 34rem) { .resi-say { grid-template-columns: 6.5rem 1fr; } .resi-say .resi-fig { height: 10rem; } }
/* Untertitel: nur auf Wunsch */
.ex-cap { display: none; margin: 0; text-align: center; font-size: clamp(1rem, 0.7rem + 0.8vw, 1.4rem); line-height: 1.4; color: var(--color-text); max-width: 90ch; align-self: center; }
.ex-caps .ex-cap { display: block; }
.ex-ctl { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.ex-ctl button { min-height: 40px; }
.ex-ctl button[aria-pressed='true'] { border-color: var(--color-primary); color: var(--color-primary); }
.ex-bar { flex: 1 1 10rem; height: 6px; border-radius: 3px; background: var(--glass-border); overflow: hidden; }
.ex-bar span { display: block; height: 100%; width: 0; background: var(--color-primary); }
.ex-time { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--color-text-muted); }
/* Animationen: erscheinen nach Verzögerung (animation-delay per Skript), Füllung „both“ = vorher unsichtbar */
.ex-in { animation: exIn .5s ease both; }
.ex-stage-wait { display: flex; align-items: center; justify-content: center; }
.ex-wait-text { font-size: 2cqw; color: var(--text-muted, var(--color-text)); }
.ex-pop { animation: exPop .45s cubic-bezier(.3,1.6,.5,1) both; }
.ex-pin { animation: exPin .7s cubic-bezier(.3,1.5,.5,1) both; }
.ex-paused *, .ex-paused *::before, .ex-paused *::after { animation-play-state: paused !important; }
@keyframes exIn { from { opacity: 0; transform: translateY(1.2cqw); } to { opacity: 1; transform: none; } }
@keyframes exOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes exPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
@keyframes exPin { from { opacity: 0; transform: translateY(-8cqw) scale(1.6); } to { opacity: 1; transform: none; } }
@keyframes exSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes exStamp { from { opacity: 0; transform: rotate(-6deg) scale(2.2); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes exMark { from { border-style: dashed; color: transparent; } to { border-style: solid; border-color: var(--mk); background: color-mix(in srgb, var(--mk) 18%, transparent); color: var(--mk); } }
@keyframes exEmpty { from { background: var(--c); } to { background: transparent; } }
@keyframes exReturn { from { opacity: 0; transform: translateX(-30cqw) scale(1.4); } to { opacity: 1; transform: none; } }
@keyframes exBlink { 0%, 93%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes exBob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-0.4%) rotate(0.6deg); } }
@media (prefers-reduced-motion: reduce) {
  .ex-main *, .ex-main *::after, .resi * { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 640px) {
  .ex-ov { padding: 0.5rem; align-items: flex-start; overflow-y: auto; }
  .ex-cap { font-size: 0.95rem; }
}
.rs-explain { justify-self: start; align-self: flex-start; margin-top: 0.6rem; }

/* Beamer-Ansicht (beamer.js, Nutzervorgabe 18.10.2026): für alle im Raum, groß und ohne Bedienelemente der Tafel */
.rs-beamer-link { margin-left: 0.5rem; }
body.rs-beamer-mode .rs-top, body.rs-beamer-mode #rs-foot-game { display: none; }
body.rs-beamer-mode .rs-page { max-width: none; padding: 1rem 1.4rem 0.4rem; }
body.rs-beamer-mode .rs-foot { padding-top: 0.2rem; font-size: 0.8rem; }
.bm { font-size: clamp(1rem, 1.25vw, 1.6rem); }
.bm-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.bm-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bm-title b { font-size: 1.5em; line-height: 1.1; }
.bm-title span { color: var(--color-text-muted); }
.bm-frist { font-size: 2.6em; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; color: var(--color-primary); }
.bm-frist.over { color: var(--bad); }
.bm-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 900px) { .bm-grid { grid-template-columns: minmax(0, 1fr); } }
.bm-inj h1 { font-size: 1.9em; margin: 0.1rem 0 0.4rem; line-height: 1.15; }
.bm-meta { margin: 0; color: var(--color-text-muted); }
.bm-text { font-size: 1.15em; line-height: 1.45; margin: 0 0 0.8rem; }
.bm-inj .rs-h2 { font-size: 0.8em; }
.bm-meas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15em), 1fr)); gap: 0.7rem; }
.bm-m { border: 1px solid var(--glass-border); border-radius: 12px; padding: 0.6rem 0.8rem; background: var(--color-surface); }
.bm-m.csc { border-color: var(--color-primary); }
.bm-m-t { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.bm-m p { margin: 0.25rem 0 0; color: var(--color-text-muted); }
.bm-m .bm-roles { color: var(--color-text); display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin-top: 0.45rem; }
.bm-role { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.bm-right { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.bm-resi { grid-template-columns: minmax(7rem, 12em) 1fr; }
.bm-resi .resi-fig { height: 18em; }
.bm-resi .resi-bubble { font-size: 1.05em; }
.bm-csc .meter { font-size: 2em; }
.bm-csc-n { margin: 0; }
.bm-recv { margin: 0.4rem 0 0; color: var(--color-text-muted); }
.bm-start { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; background: color-mix(in srgb, var(--color-bg, #000) 70%, transparent); backdrop-filter: blur(4px); }
.bm-start[hidden] { display: none; }
.bm-start .rs-panel { max-width: 34rem; }

/* Handy: volle Bildschirmbreite – schmale Seitenränder (Nutzervorgabe 18.10.2026) */
@media (max-width: 640px) { .rs-page { padding-inline: 0.5rem; } }
