/* ==========================================================
   Schnittpunkt – Design-System
   Layout-Idee: ruhige Flächen auf Millimeterpapier-Gitter,
   je Fach eine Signalfarbe (Mathe violett, Physik orange,
   fächerübergreifend grün). Alle Seiten nutzen diese Datei.
   ========================================================== */
:root {
  --bg: #F3F5FB;
  --surface: #FFFFFF;
  --surface-2: #E9EDF8;
  --ink: #11152B;
  --ink-2: #454C6E;
  --line: #D3D9EE;
  --grid: rgba(17, 21, 43, .09);

  --mathe: #5B3FF5;        --mathe-soft: #E7E3FF;        --mathe-ink: #4A30DC;
  --physik: #D2480C;       --physik-soft: #FFE6DB;       --physik-ink: #A93A06;
  --uebergreifend: #07806A; --uebergreifend-soft: #D3F3EA; --uebergreifend-ink: #06705C;

  --good: #12805C; --good-soft: #D6F3E7;
  --bad: #C62F3E;  --bad-soft: #FDE1E4;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(17, 21, 43, .06), 0 8px 24px rgba(17, 21, 43, .06);

  --accent: var(--mathe); --accent-soft: var(--mathe-soft); --accent-ink: var(--mathe-ink);

  --f-display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-mono: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0F23; --surface: #141935; --surface-2: #1D2347; --ink: #EDEFFF; --ink-2: #A6ADD4; --line: #2A3262;
    --grid: rgba(255, 255, 255, .09);
    --mathe: #8C7AFF;        --mathe-soft: #251F55;        --mathe-ink: #B3A6FF;
    --physik: #FF8548;       --physik-soft: #3B2113;       --physik-ink: #FFA77C;
    --uebergreifend: #2DD4A8; --uebergreifend-soft: #0F3A31; --uebergreifend-ink: #5CE6C2;
    --good: #3DDC9A; --good-soft: #0F3A2B; --bad: #FF7A86; --bad-soft: #44181F;
    --on-accent: #0B0F23;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0F23; --surface: #141935; --surface-2: #1D2347; --ink: #EDEFFF; --ink-2: #A6ADD4; --line: #2A3262;
  --grid: rgba(255, 255, 255, .09);
  --mathe: #8C7AFF;        --mathe-soft: #251F55;        --mathe-ink: #B3A6FF;
  --physik: #FF8548;       --physik-soft: #3B2113;       --physik-ink: #FFA77C;
  --uebergreifend: #2DD4A8; --uebergreifend-soft: #0F3A31; --uebergreifend-ink: #5CE6C2;
  --good: #3DDC9A; --good-soft: #0F3A2B; --bad: #FF7A86; --bad-soft: #44181F;
  --on-accent: #0B0F23;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

/* Fachfarben: Klasse auf <body> oder auf einer Karte */
.fach-mathe         { --accent: var(--mathe);         --accent-soft: var(--mathe-soft);         --accent-ink: var(--mathe-ink); }
.fach-physik        { --accent: var(--physik);        --accent-soft: var(--physik-soft);        --accent-ink: var(--physik-ink); }
.fach-uebergreifend { --accent: var(--uebergreifend); --accent-soft: var(--uebergreifend-soft); --accent-ink: var(--uebergreifend-ink); }

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.012em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent-ink); }
sub, sup { line-height: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.ico { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Kopf und Fuß ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.2rem var(--f-display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { flex: 1; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .9rem; padding: 22px 0; margin-top: 40px; }
.site-footer .container { display: grid; gap: 4px; }

/* ---------- Seitenaufbau (alle Unterseiten) ---------- */
.page-main { padding-top: 28px; padding-bottom: 24px; display: grid; gap: 40px; }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.page-head { display: grid; gap: 14px; max-width: 760px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.sec { display: grid; gap: 14px; }
.sec > h2 { display: flex; align-items: center; gap: 12px; }
.sec > h2::before { content: ''; width: 28px; height: 6px; border-radius: 3px; background: var(--accent); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.badge.fach { background: var(--accent-soft); color: var(--accent-ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 18px 20px; }

.callout { border-left: 5px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; }
.callout > strong:first-child { display: block; color: var(--accent-ink); font: 700 .8rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.callout ul { margin: 0; padding-left: 1.2em; }
.formula { font: 700 clamp(1.4rem, 4vw, 2rem) var(--f-display); color: var(--accent-ink); text-align: center; padding: 18px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.formula small { display: block; font: 500 .9rem var(--f-body); color: var(--ink-2); margin-top: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two > * { padding: 16px 18px; }
.two h3 { margin-bottom: 6px; }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }

.tasks { margin: 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 10px; }
.tasks li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px 12px; }
.tasks li::before { content: counter(t); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font: 800 .95rem var(--f-display); display: grid; place-items: center; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
details > summary { cursor: pointer; font-weight: 700; color: var(--accent-ink); }
details[open] > summary { margin-bottom: 8px; }

table.tbl { border-collapse: collapse; width: 100%; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--ink-2); font-size: .8rem; text-transform: none; letter-spacing: .02em; }
.scroll-x { overflow-x: auto; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--f-body); cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
kbd { font: 600 .72rem var(--f-mono); padding: 1px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.btn.primary kbd { background: rgba(255, 255, 255, .22); border-color: transparent; color: inherit; }

/* ---------- Simulationen (einheitliche Steuerung) ---------- */
.sim { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr); gap: 16px; align-items: start; }
.sim-view, .sim-side { padding: 14px; }
.sim-view canvas { display: block; width: 100%; border-radius: 10px; }
.sim-view canvas + canvas { margin-top: 12px; }
.sim-side { display: grid; gap: 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sim-note { margin-top: 10px; font-size: .92rem; color: var(--ink-2); }
.ctl { display: grid; gap: 2px; margin-bottom: 12px; }
.ctl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ctl-top label { font-weight: 700; }
.ctl output { font: 600 .95rem var(--f-mono); color: var(--accent-ink); white-space: nowrap; }
input[type="range"] { width: 100%; margin: 0; height: 28px; accent-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; cursor: pointer; font-weight: 600; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.readouts { margin: 10px 0 0; border-top: 1px solid var(--line); }
.ro { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.ro dt { color: var(--ink-2); }
.ro dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: var(--surface-2); color: var(--ink-2); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--accent-soft); color: var(--accent-ink); }
.group-label { font: 700 .78rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 6px 0 8px; }
@media (max-width: 820px) { .sim { grid-template-columns: 1fr; } }

/* ---------- Prüfen (Quiz) ---------- */
.quiz { display: grid; gap: 16px; }
.q { padding: 18px 20px; display: grid; gap: 12px; }
.q-top { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 700; font-size: .85rem; }
.q-nr { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-display); }
.q-text { font-size: 1.1rem; font-weight: 600; }
.q canvas { width: 100%; max-width: 420px; border-radius: 10px; border: 1px solid var(--line); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.opt { text-align: left; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 1.02rem var(--f-body); cursor: pointer; }
.opt:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.opt:disabled { cursor: default; }
.opt.ok { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.opt.no { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.explain { border-radius: 12px; padding: 12px 16px; background: var(--surface-2); font-size: .98rem; }
.explain strong { display: block; margin-bottom: 2px; }
.result { padding: 22px; display: grid; gap: 10px; border: 2px solid var(--accent); }
.result .score { font: 800 2.6rem var(--f-display); color: var(--accent-ink); }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }

/* ---------- Weitere Themen ---------- */
.related-grid, .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
a.pg { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px 22px; text-decoration: none; color: var(--ink); position: relative; overflow: hidden; }
a.pg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
a.pg:hover { border-color: var(--accent); transform: translateY(-3px); }
a.pg { transition: transform .15s, border-color .15s; }
a.pg h3 { font-size: 1.25rem; }
a.pg p { color: var(--ink-2); font-size: .95rem; flex: 1; }
.pg-foot { display: flex; justify-content: space-between; align-items: center; color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.pg-foot .typ { display: inline-flex; align-items: center; gap: 7px; }
.badge.neu { background: var(--accent); color: var(--on-accent); }

/* ---------- Startseite ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; opacity: .55; }
.hero-in { position: relative; padding: 56px 20px 48px; display: grid; gap: 22px; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 52ch; }
.search { position: relative; max-width: 620px; }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; stroke: var(--ink-2); fill: none; stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; padding: 16px 64px 16px 48px; font: 600 1.1rem var(--f-body); color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.search input::placeholder { color: var(--ink-2); font-weight: 500; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }
.search kbd { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.filters { display: grid; gap: 12px; padding: 22px 0 6px; }
.frow { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: start; }
.flabel { font: 700 .78rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding-top: 9px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.plain { --accent: var(--ink); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .92rem var(--f-body); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip .n { font-weight: 500; opacity: .75; font-size: .85em; }
.chip.zero { opacity: .5; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.chip[aria-pressed="true"] .dot { background: var(--on-accent); }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 18px; color: var(--ink-2); font-weight: 600; min-height: 56px; }
.linkbtn { background: none; border: 0; padding: 4px 0; font: 700 .92rem var(--f-body); color: var(--accent-ink); cursor: pointer; text-decoration: underline; }
.linkbtn[hidden] { display: none; }
.empty { padding: 36px 24px; text-align: center; color: var(--ink-2); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) {
  .frow { grid-template-columns: 1fr; gap: 4px; }
  .flabel { padding-top: 0; }
  .hero-in { padding: 36px 20px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  a.pg:hover { transform: none; }
}

/* ---------- Üben ---------- */
.ans { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ans input[type="text"] { width: 150px; padding: 10px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); font: 700 1.1rem var(--f-mono); }
.ans input[type="text"]:focus { outline: none; border-color: var(--accent); }
.ans .unit { font-weight: 700; color: var(--ink-2); }
.hints { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.explain.ok { background: var(--good-soft); color: var(--good); }
.explain.warn { background: var(--accent-soft); color: var(--ink); }
.tally { color: var(--ink-2); font-weight: 600; font-size: .92rem; }

/* Formeln: Brüche als Brüche, Indizes tiefgestellt (siehe js/core.js) */
sub { font-size: .72em; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .12em; line-height: 1.25; font-weight: inherit; }
.frac > .n { padding: 0 .28em .1em; border-bottom: 1.4px solid currentColor; }
.frac > .d { padding: .1em .28em 0; }

/* lange Anzeigewerte (Zahlwörter u. ä.) dürfen umbrechen */
.sim-side, .sim-view { min-width: 0; }
.readouts dd { overflow-wrap: anywhere; text-align: right; }

/* ---------- Arbeitsblatt (Üben-Seiten) ---------- */
#ws-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(20,22,35,.6); overflow: auto; padding: 16px; }
#ws-modal[hidden] { display: none; }
.ws-panel { max-width: 860px; margin: 0 auto; background: var(--bg, #fff); border-radius: 14px; padding: 14px; }
.ws-ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 8px; }
.ws-ctl select { font: inherit; padding: 2px 6px; }
.ws-hint { font-size: 13px; opacity: .75; margin-bottom: 10px; }
#ws-prevwrap { overflow: hidden; background: #cfd3de; border-radius: 8px; padding: 4px; }
#ws-sheet { width: 794px; height: 1122px; box-sizing: border-box; padding: 40px 44px 30px; background: #fff; color: #111; font: 13.5px/1.35 'Figtree', Arial, sans-serif; display: flex; flex-direction: column; transform-origin: top left; box-shadow: 0 2px 10px rgba(0,0,0,.25); overflow: hidden; }
#ws-sheet .ws-head { border-bottom: 2px solid #111; padding-bottom: 6px; margin-bottom: 8px; }
#ws-sheet .ws-title { font-weight: 800; font-size: 1.5em; line-height: 1.2; }
#ws-sheet .ws-meta { margin-top: 6px; font-size: .95em; }
#ws-sheet .ws-line { display: inline-block; border-bottom: 1px solid #111; width: 170px; height: 1em; vertical-align: baseline; margin-right: 10px; }
#ws-sheet .ws-line.s { width: 80px; }
#ws-sheet .ws-line.m { width: 110px; }
#ws-sheet .ws-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
#ws-sheet .ws-sec { flex: 1 1 auto; display: flex; flex-direction: column; min-height: auto; }
#ws-sheet .ws-sec h3 { margin: 0 0 4px; font-size: 1.05em; background: #e8eaf2; padding: 2px 8px; border-radius: 4px; }
#ws-sheet .ws-star { color: #b8860b; letter-spacing: 2px; }
#ws-sheet .ws-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(min-content, 1fr); gap: 6px 18px; }
#ws-sheet .ws-task { border: 1px dashed #b5b9c6; border-radius: 4px; padding: 4px 7px; display: flex; flex-direction: column; justify-content: space-between; min-height: min-content; }
#ws-sheet .ws-opts { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 3px; font-size: .95em; }
#ws-sheet .ws-ans { margin-top: auto; text-align: right; padding-top: 14px; font-size: .95em; }
#ws-sheet .ws-sol { font-size: .8em; border-top: 1px solid #111; margin-top: 6px; padding-top: 4px; }
#ws-sheet .ws-foot { font-size: .7em; text-align: right; color: #555; margin-top: 3px; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.ws-printing > *:not(#ws-modal) { display: none !important; }
  body.ws-printing #ws-modal { position: static; background: none; padding: 0; overflow: visible; display: block; }
  body.ws-printing .ws-panel { padding: 0; margin: 0; max-width: none; background: none; }
  body.ws-printing .ws-ctl, body.ws-printing .ws-hint { display: none !important; }
  body.ws-printing #ws-prevwrap { height: auto !important; padding: 0; background: none; overflow: visible; }
  body.ws-printing #ws-sheet { transform: none !important; box-shadow: none; width: 210mm; height: 296mm; page-break-after: avoid; break-after: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Leistungskontrolle (Prüfen-Seiten) ---------- */
#ws-sheet .lk-meta2 { display: flex; flex-wrap: wrap; gap: 4px 30px; margin-top: 6px; font-size: .95em; }
#ws-sheet .lk-sec { display: flex; flex-direction: column; }
#ws-sheet .lk-sec.grow { flex: 1 1 auto; }
#ws-sheet .lk-sec h3 { margin: 0 0 4px; font-size: 1.05em; background: #e8eaf2; padding: 2px 8px; border-radius: 4px; }
#ws-sheet .lk-sec h3 small { font-weight: 600; font-size: .78em; opacity: .8; }
#ws-sheet .lk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
#ws-sheet .lk-q, #ws-sheet .lk-q2 { border: 1px dashed #b5b9c6; border-radius: 4px; padding: 4px 7px; }
#ws-sheet .lk-q2 { flex: 1 1 auto; display: flex; flex-direction: column; margin-bottom: 6px; }
#ws-sheet .lk-opts > div, #ws-sheet .lk-opts2 > div { margin-top: 2px; padding-left: 1.4em; text-indent: -1.4em; }
#ws-sheet .lk-opts2 { columns: 2; column-gap: 18px; }
#ws-sheet .lk-opts2 > div { break-inside: avoid; }
#ws-sheet .lk-why { flex: 1 1 auto; display: flex; flex-direction: column; margin-top: 4px; }
#ws-sheet .lk-wl { font-size: .9em; }
#ws-sheet .lk-why .ln { flex: 1 1 0; min-height: 20px; border-bottom: 1px solid #777; }
#ws-sheet .lk-solt { margin-top: 3px; font-style: italic; border-left: 3px solid #2f9e5a; padding-left: 8px; }
@media print { body.ws-printing #ws-sheet .lk-why .ln { border-bottom-color: #555; } }
#ws-sheet .lk-hint { font-size: .88em; opacity: .75; }

/* ---------- Konto, Sperre, Preise ---------- */
.nav a.acct { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.site-footer .legal a { color: inherit; }
.konto { max-width: 980px; margin: 0 auto; padding: 8px 0 30px; }
.konto h1 { margin: 10px 0 6px; }
.konto .lead { color: var(--ink-2); margin: 0 0 18px; }
.note-box { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; }
.note-box.warn { border-color: #e0832a; }
.note-box.ok { border-color: #2f9e5a; }
.konto form.login { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.konto input[type=email] { flex: 1 1 240px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.konto .btn.big { padding: 10px 18px; font-size: 1rem; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0; }
.plan { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.plan h3 { margin: 0; }
.plan .price { font-size: 1.8rem; font-weight: 800; }
.plan .price small { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.plan ul { margin: 4px 0 8px; padding-left: 1.2em; color: var(--ink-2); }
.plan .btn { align-self: flex-start; }
.switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 6px 0 0; }
.switch button { border: 0; background: transparent; color: var(--ink); padding: 6px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.switch button[aria-pressed=true] { background: var(--accent); color: var(--on-accent); }
.consent { display: grid; gap: 8px; margin: 8px 0 14px; font-size: .95rem; }
.consent label { display: flex; gap: 8px; align-items: flex-start; }
.konto details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; background: var(--surface); margin: 12px 0; }
.konto details summary { cursor: pointer; font-weight: 700; }
.legal-page { max-width: 780px; margin: 0 auto; padding: 8px 0 30px; }
.legal-page h2 { margin-top: 24px; }
.legal-page .todo { background: #fff3cd; color: #5c4400; padding: 2px 6px; border-radius: 4px; }
.nav a + a { margin-left: 14px; }
.konto h2 { margin: 28px 0 8px; }
.konto form.login { margin-bottom: 10px; }
.note-small { color: var(--ink-2); font-size: .9rem; margin-top: 8px; }


/* ---------- QR-Code teilen ---------- */
.qr-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink-2); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; margin-left: 14px; }
.qr-btn:hover { color: var(--ink); border-color: var(--ink-2); }
@media (max-width: 560px) { .qr-btn span { display: none; } .qr-btn { padding: 6px 9px; } }
.qr-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(10, 14, 30, .6); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.qr-box { position: relative; background: var(--surface, #fff); color: var(--ink); border-radius: 18px; padding: 22px 26px 20px; max-width: 560px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.qr-box h2 { margin: 0 28px 4px; font-size: 1.25rem; }
.qr-sub { margin: 0 0 12px; color: var(--ink-2); font-size: .95rem; }
.qr-img { width: min(70vh, 100%, 440px); margin: 0 auto; background: #fff; border-radius: 10px; }
.qr-img svg { display: block; width: 100%; height: auto; }
.qr-title { margin-top: 10px; font-weight: 700; }
.qr-url { font-size: .85rem; color: var(--ink-2); word-break: break-all; margin-top: 2px; }
.qr-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.qr-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--ink-2); }
@media print {
  body.qr-printing > *:not(.qr-overlay) { display: none !important; }
  body.qr-printing .qr-overlay { position: static; background: none; padding: 0; display: block; }
  body.qr-printing .qr-box { box-shadow: none; max-width: none; padding: 0; color: #000; }
  body.qr-printing .qr-img { width: 14cm; }
  body.qr-printing .qr-actions, body.qr-printing .qr-close { display: none; }
}
.nav { display: flex; align-items: center; }
.nav a, .qr-btn { white-space: nowrap; }
@media (max-width: 560px) { .nav a:not(.acct) { display: none; } .nav .qr-btn { margin-left: 0; } .nav a.acct { margin-left: 8px; } }
.konto form.login input { flex: 1 1 240px; max-width: 420px; padding: 12px 14px; font: inherit; font-size: 1.05rem; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); color: var(--ink); }
.konto form.login input:focus { outline: 2px solid #5b3df5; outline-offset: 1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Klassen-Quiz ---------- */
.quiz-main, .play-main { max-width: 1100px; margin: 0 auto; padding: 8px 0 40px; }
.qs-sec { margin: 18px 0; }
.qs-sec h2 { margin: 0 0 8px; }
.qs-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 8px; }
.qs-filter label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.qs-filter label.grow { flex: 1 1 220px; }
.qs-filter select, .qs-filter input { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); color: var(--ink); }
.qs-list { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); }
.qs-row { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.qs-row:last-child { border-bottom: 0; }
.qs-row:hover { background: rgba(91, 61, 245, .06); }
.qs-t { flex: 1; font-weight: 600; }
.qs-m { color: var(--ink-2); font-size: .85rem; white-space: nowrap; }
.qp-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.card.qp { position: relative; padding: 12px 44px 12px 14px; }
.qp-x { position: absolute; top: 8px; right: 8px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; color: var(--ink-2); }
.qp-x:hover { color: #c0392b; }
.qp-t { font-weight: 700; margin-bottom: 6px; }
.qp-o { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 12px; font-size: .95rem; }
.qp-o li.right { color: #1f7a45; font-weight: 700; }
.pq-opt, .hq-opt { --c: #888; }
.c0 { --c: #e21b3c; } .c1 { --c: #1368ce; } .c2 { --c: #d89e00; } .c3 { --c: #26890c; }
.host-lobby { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 22px 28px; }
@media (max-width: 760px) { .host-lobby { grid-template-columns: 1fr; } }
.hl-step { color: var(--ink-2); font-weight: 600; margin-top: 6px; }
.hl-url { font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 800; }
.hl-pin { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-size: clamp(3.2rem, 9vw, 6.5rem); font-weight: 800; letter-spacing: .12em; line-height: 1.05; color: #5b3df5; }
.hl-qr { width: min(46vh, 320px); min-width: 200px; }
.hl-qr svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.hl-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; font-size: 1.1rem; }
.hl-names { display: flex; flex-wrap: wrap; gap: 6px; }
.hl-chip { border: 1px solid var(--line); background: var(--surface, #fff); border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.hl-chip:hover { border-color: #c0392b; color: #c0392b; }
.hq-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--ink-2); margin: 4px 0 8px; font-size: 1.05rem; }
.hq-time { font-size: 1.6rem; color: var(--ink); min-width: 4ch; text-align: right; }
.pq-bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.pq-bar > div { height: 100%; background: #5b3df5; width: 100%; transition: width .25s linear; }
.hq-q { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3.2vw, 2.4rem); line-height: 1.25; margin: 14px 0 18px; }
.hq-opts, .pq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .hq-opts, .pq-opts { grid-template-columns: 1fr; } }
.hq-opt, .pq-opt { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-radius: 12px; background: var(--c); color: #fff; font: inherit; font-weight: 700; font-size: clamp(1rem, 2.2vw, 1.5rem); text-align: left; border: 3px solid transparent; position: relative; }
.c2.hq-opt, .c2.pq-opt { color: #1a1a1a; }
.pq-opt { cursor: pointer; min-height: 72px; }
.pq-opt:disabled { cursor: default; opacity: .55; }
.pq-opt.chosen { opacity: 1; border-color: #111; box-shadow: 0 0 0 3px rgba(0, 0, 0, .25); }
.pq-sh { font-size: 1.5em; line-height: 1; flex: none; width: 1.3em; text-align: center; }
.pq-tx { flex: 1; }
.hq-opt.dim { opacity: .3; }
.hq-opt.right { outline: 5px solid #111; outline-offset: 2px; }
.hq-n { font-size: 1.6em; font-weight: 800; }
.hq-cd { position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 40, .82); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-size: 22vw; font-weight: 800; }
.hq-cd[hidden] { display: none; }
.board { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.board li { display: flex; gap: 12px; align-items: center; padding: 9px 14px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.board li.me { border-color: #5b3df5; background: rgba(91, 61, 245, .08); }
.board .b-r { width: 2.2ch; font-weight: 800; color: var(--ink-2); }
.board .b-n { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.board .b-s { font-variant-numeric: tabular-nums; font-weight: 800; }
.board.big li { font-size: 1.2rem; padding: 12px 16px; }
.board.big li:nth-child(1) { background: #fff6d6; border-color: #e6b800; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 22px 0; min-height: 230px; }
.pod { width: min(30%, 220px); text-align: center; }
.pod-n { font-weight: 800; font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; }
.pod-s { color: var(--ink-2); font-weight: 700; margin-bottom: 4px; }
.pod-b { border-radius: 10px 10px 0 0; color: #fff; font-size: 2.4rem; font-weight: 800; padding-top: 8px; }
.pod.p1 .pod-b { height: 150px; background: #e6b800; } .pod.p2 .pod-b { height: 110px; background: #8b95a5; } .pod.p3 .pod-b { height: 80px; background: #b87333; }
/* Schülerseite */
.play-main { max-width: 640px; }
.play-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 12px 0; }
.play-card.center { text-align: center; }
.play-form { display: grid; gap: 8px; }
.play-form label { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.play-form input { font: inherit; font-size: 1.4rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface, #fff); color: var(--ink); text-align: center; }
.play-top { display: flex; justify-content: space-between; font-weight: 800; padding: 6px 4px; }
.play-big { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-size: 2rem; font-weight: 800; margin: 6px 0; }
.play-sub { color: var(--ink-2); font-weight: 600; margin: 0 0 8px; }
.play-wait { text-align: center; color: var(--ink-2); font-weight: 600; margin: 10px 0 0; }
.pq-q { font-weight: 700; font-size: 1.2rem; line-height: 1.35; margin: 4px 0 14px; }
.countdown { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-size: 7rem; font-weight: 800; color: #5b3df5; line-height: 1; margin: 10px 0; }
.rev-icon { font-size: 3.4rem; line-height: 1; }
.rev-ok .rev-icon, .rev-ok h1 { color: #1f7a45; } .rev-no .rev-icon, .rev-no h1 { color: #c0392b; }
.play-rank { font-weight: 800; font-size: 1.2rem; margin: 10px 0 4px; }
.streak { color: #b86a00; font-weight: 700; }
.netbar { position: fixed; left: 0; right: 0; bottom: 0; background: #c0392b; color: #fff; text-align: center; padding: 8px; font-weight: 700; z-index: 90; }
@media print { .quiz-main .toolbar, .site-header, .site-footer { display: none !important; } }

/* ---------- Lehrer-Präsentation ---------- */
.pp-start { margin: 10px 0 2px; }
body.pp-open { overflow: hidden; }
.pp { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font-family: var(--f-body); overflow: hidden;
  background-image: radial-gradient(900px 520px at 100% 0%, var(--accent-soft), transparent 70%), radial-gradient(700px 420px at 0% 100%, var(--accent-soft), transparent 75%); }
.pp-stage { flex: 1; min-height: 0; overflow-y: auto; display: flex; align-items: safe center; justify-content: center; padding: clamp(18px, 4vh, 56px) clamp(20px, 6vw, 96px) 0; }
.pp-slide { width: 100%; max-width: 1280px; max-height: 100%; animation: pp-in .38s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes pp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pp-slide { animation: none; } }
.pp-label { display: inline-block; font-weight: 700; font-size: clamp(.85rem, 1.5vw, 1.15rem); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: .35em .9em; border-radius: 999px; margin-bottom: clamp(14px, 3vh, 30px); }
.pp-num { opacity: .7; margin-left: .4em; }
.pp h1, .pp h2 { font-family: var(--f-display); line-height: 1.08; margin: 0; }
.pp-title-in, .pp-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: center; }
.pp-title-in h1 { font-size: clamp(2rem, 5.4vw, 4.6rem); letter-spacing: -.02em; }
.pp-kicker { font-weight: 700; color: var(--accent-ink); font-size: clamp(1rem, 1.8vw, 1.4rem); margin-bottom: .7em; }
.pp-lead { font-size: clamp(1.05rem, 2vw, 1.6rem); color: var(--ink-2); margin: .9em 0 0; line-height: 1.4; }
.pp-pic { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(8px, 1.4vw, 18px); }
.pp-pic img { display: block; width: 100%; height: auto; max-height: 56vh; object-fit: contain; border-radius: 12px; }
.pp-deco { aspect-ratio: 1; max-height: 50vh; margin: auto; width: 100%; border-radius: 50%; background: conic-gradient(from 210deg, var(--accent), var(--accent-soft), var(--accent)); opacity: .85;
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%); mask: radial-gradient(circle, transparent 38%, #000 39%); }
.pp-hook { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4.6vw, 3.8rem); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.pp-hook::before { content: "?"; display: block; font-size: 2.2em; line-height: .8; color: var(--accent); opacity: .35; margin-bottom: .1em; }
.pp-sub { font-size: clamp(1rem, 1.8vw, 1.4rem); color: var(--ink-2); margin-top: 1.4em; }
.pp-goal, .pp-know { font-size: clamp(1.4rem, 3.3vw, 2.7rem); line-height: 1.32; margin: 0; font-weight: 500; }
.pp-know + .pp-next, .pp-next { margin-top: .8em; }
.pp-know { padding-left: clamp(16px, 2.4vw, 32px); border-left: 8px solid var(--accent); }
.pp b { color: var(--accent-ink); font-weight: 800; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 .08em; }
.pp-formula { margin: 0 auto; max-width: 100%; text-align: center; font-size: clamp(1.8rem, 5.2vw, 4.4rem); background: var(--surface); border: 2px solid var(--accent); border-radius: 22px; padding: clamp(22px, 5vh, 56px) clamp(14px, 3vw, 40px); box-shadow: var(--shadow); line-height: 1.4; }
.pp-formula small { display: block; margin-top: .6em; font-size: .36em; color: var(--ink-2); }
.pp-tasks { margin: 0; padding-left: 1.3em; font-size: clamp(1.05rem, 2.1vw, 1.75rem); line-height: 1.32; }
.pp-tasks.long { font-size: clamp(.95rem, 1.75vw, 1.45rem); }
.pp-tasks li { margin-bottom: .6em; }
.pp-tasks li::marker { color: var(--accent); font-weight: 800; }
.pp-two:not(:has(.pp-pic)) { grid-template-columns: 1fr; }
.pp-s-end { text-align: center; }
.pp-end-h { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: .5em !important; }
.pp-qrs { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 80px); justify-content: center; align-items: flex-start; }
.pp-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: clamp(1rem, 1.9vw, 1.5rem); }
.pp-qr span { color: var(--ink-2); font-size: .8em; }
.pp-qr-img { background: #fff; padding: 14px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); width: clamp(150px, 26vh, 300px); }
.pp-qr-img svg { display: block; width: 100%; height: auto; }
.pp-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(14px, 3vw, 36px) 6px; }
.pp-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; padding: 0; cursor: pointer; }
.pp-dot.done { background: var(--accent-soft); } .pp-dot.on { background: var(--accent); transform: scale(1.25); }
.pp-ctl { display: flex; align-items: center; gap: 8px; }
.pp-count { font-variant-numeric: tabular-nums; color: var(--ink-2); min-width: 4.5em; text-align: center; }
.pp-b { font: inherit; font-weight: 700; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.pp-b.pp-t { font-size: .95rem; }
.pp-b:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.pp-b:disabled { opacity: .35; cursor: default; }
.pp-b[data-a=next] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pp-foot { text-align: center; font-size: .8rem; color: var(--ink-2); padding: 0 0 8px; }
@media (max-width: 760px) { .pp-dots { display: none; } .pp-bar { justify-content: center; } .pp-stage { padding-left: 16px; padding-right: 16px; } .pp-title-in, .pp-two { grid-template-columns: 1fr; } .pp-pic img { max-height: 30vh; } .pp-deco { max-height: 24vh; } .pp-count { display: none; } }
@media print { .pp { display: none !important; } }

/* ---------- Stimmungsbild ---------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); text-decoration: underline; cursor: pointer; font: inherit; }
.st-setup label { display: block; margin: 6px 0; }
.st-topic, .st-q textarea, .st-q input[type=text], .st-two input, .st-items textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); box-sizing: border-box; }
.st-topic { font-size: 1.2rem; }
.st-q { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: var(--surface-2, transparent); }
.st-qh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.st-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--accent-soft); color: var(--accent-ink); padding: 2px 9px; border-radius: 99px; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.st-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.st-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.st-pin { font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.st-label { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 12px; border-radius: 99px; margin-bottom: 10px; }
.st-lobby { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; padding: 10px 0 20px; }
.st-lobby h1 { margin: 0 0 .3em; font-size: clamp(1.8rem, 4vw, 3rem); }
.st-big { font-size: clamp(1.1rem, 2vw, 1.6rem); line-height: 1.5; }
.st-pinbig { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-weight: 800; font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: .12em; color: var(--accent-ink); }
.st-qr svg { width: 100%; max-width: 320px; height: auto; background: #fff; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.st-res { margin: 18px 0 30px; break-inside: avoid; }
.st-res h2 { margin: 0 0 .5em; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.25; }
.st-qt { font-size: clamp(1.5rem, 3.2vw, 2.6rem) !important; }
.st-count { margin: .2em 0 6px; color: var(--ink-2); font-size: 1.1rem; }
.st-prog { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.st-prog > div { height: 100%; background: var(--accent); transition: width .4s; }
.st-empty { color: var(--ink-2); font-style: italic; padding: 24px 0; }
.st-cloud { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .1em .6em; padding: 18px 8px; min-height: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; line-height: 1.15; }
.st-w { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-weight: 800; display: inline-block; }
.st-w sup { font-size: .35em; opacity: .6; margin-left: 2px; }
.st-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; height: 240px; align-items: end; padding: 10px 0 0; }
.st-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.st-bar { width: 100%; max-width: 110px; border-radius: 10px 10px 0 0; transition: height .4s; }
.st-cn { font-weight: 800; font-size: 1.3rem; } .st-cl { font-weight: 800; font-size: 1.4rem; color: var(--ink-2); }
.st-sc-lab { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); font-size: .95rem; margin-top: 6px; }
.st-avg { margin: 12px 0 0; color: var(--ink-2); font-size: 1.05rem; }
.st-rk { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-rk li { display: grid; grid-template-columns: 2.2rem 1fr 4.5rem; gap: 10px; align-items: center; }
.st-rp { font-weight: 800; font-size: 1.4rem; text-align: center; color: var(--ink-2); }
.st-rb { position: relative; background: var(--surface-2, var(--line)); border-radius: 10px; overflow: hidden; min-height: 2.6rem; display: flex; align-items: center; }
.st-rf { position: absolute; inset: 0 auto 0 0; opacity: .45; transition: width .4s; }
.st-rt { position: relative; padding: 6px 12px; font-weight: 700; color: var(--ink); }
.st-ra { font-variant-numeric: tabular-nums; color: var(--ink-2); text-align: right; }
.st-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.st-note { position: relative; background: #fff8c9; color: #222; padding: 14px 34px 14px 14px; border-radius: 6px; box-shadow: 0 2px 6px rgba(0,0,0,.15); font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.st-x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #777; }
.st-x:hover { color: #c0392b; }
/* Schülerseite */
.st-words { display: grid; gap: 8px; margin: 8px 0 14px; }
.st-in, .st-ta { width: 100%; font: inherit; font-size: 1.15rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); box-sizing: border-box; }
.st-ta { resize: vertical; min-height: 7em; }
.st-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 4px; }
.st-sc { font: inherit; font-weight: 800; font-size: 1.8rem; padding: 18px 0; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.st-sc.chosen { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-rank { list-style: none; margin: 8px 0 14px; padding: 0; display: grid; gap: 8px; }
.st-rank li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.st-pos { font-weight: 800; width: 1.6em; text-align: center; color: var(--ink-2); }
.st-it { flex: 1; font-weight: 600; }
.st-mv { font: inherit; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); cursor: pointer; color: var(--ink); }
.st-mv:disabled { opacity: .3; cursor: default; }
@media (max-width: 760px) { .st-lobby { grid-template-columns: 1fr; } .st-two { grid-template-columns: 1fr; } .st-bars { height: 180px; } }
@media print {
  #site-header, #site-footer, .st-nav, .netbar { display: none !important; }
  .st-top { border: 0; } .st-note { box-shadow: none; border: 1px solid #ccc; }
  .st-rf, .st-bar, .st-note { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Klassenbingo */
.bg-top { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding: 8px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; color: var(--ink-2); font-weight: 600; }
.bg-top b { color: var(--ink); }
.bg-task { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; text-align: center; margin: 0 0 14px; }
.bg-q { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-weight: 800; font-size: clamp(2.4rem, 9vw, 6.5rem); line-height: 1.15; overflow-wrap: anywhere; }
.bg-a { font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-weight: 800; font-size: clamp(2rem, 7vw, 4.5rem); color: #5b3df5; min-height: 1.3em; margin-top: 8px; }
.bg-hide { color: var(--line); }
.bg-timer { margin: 14px auto 0; max-width: 520px; font-weight: 700; color: var(--ink-2); }
.bg-code { letter-spacing: .06em; }
.bg-check { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; }
.bg-check input { font: inherit; font-size: 1.2rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface, #fff); color: var(--ink); flex: 1 1 260px; }
.bg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bg-chip { font-weight: 800; font-size: 1.3rem; padding: 6px 14px; border-radius: 12px; background: rgba(91, 61, 245, .1); color: #3b2bb0; font-variant-numeric: tabular-nums; }
.bs-grid { display: grid; gap: 8px; margin: 12px 0; }
.bs-cell { font: inherit; font-family: 'Bricolage Grotesque', Figtree, sans-serif; font-weight: 800; font-size: clamp(1.3rem, 6.5vw, 2.4rem); aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--line); background: var(--surface, #fff); color: var(--ink); cursor: pointer; padding: 0; position: relative; -webkit-tap-highlight-color: transparent; }
.bs-cell.on { background: #5b3df5; border-color: #5b3df5; color: #fff; }
.bs-cell.win { background: #2f9e5a; border-color: #1f7a45; color: #fff; }
.bs-n5 .bs-cell { font-size: clamp(1.1rem, 5vw, 1.9rem); }
.bs-banner { text-align: center; background: #fff6d6; border: 2px solid #e6b800; border-radius: 16px; padding: 14px; margin: 10px 0; }
.bs-banner .play-big { color: #b86a00; }
#bingo-print { display: none; }
.bp-sheet { page-break-after: always; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 88mm; gap: 6mm 8mm; }
.bp-sheet:last-child { page-break-after: auto; }
.bp-card { border: 2px solid #222; border-radius: 6px; padding: 4mm; display: flex; flex-direction: column; color: #000; background: #fff; }
.bp-h { font-weight: 800; font-size: 12pt; text-align: center; margin-bottom: 2mm; }
.bp-grid { display: grid; flex: 1; border-top: 1px solid #222; border-left: 1px solid #222; }
.bp-cell { border-right: 1px solid #222; border-bottom: 1px solid #222; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17pt; }
.bp-n5 .bp-cell { font-size: 13pt; } .bp-n3 .bp-cell { font-size: 22pt; }
.bp-f { font-size: 8pt; text-align: center; margin-top: 2mm; color: #444; }
.bp-listpage { display: block; color: #000; }
.bp-listpage h1 { font-size: 16pt; margin: 0 0 2mm; } .bp-listpage p { font-size: 9pt; margin: 0 0 4mm; }
.bp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm; }
.bp-tbl { border-collapse: collapse; width: 100%; font-size: 10pt; }
.bp-tbl th, .bp-tbl td { border-bottom: 1px solid #bbb; padding: 1.2mm 2mm; text-align: left; }
@media print { body.bingo-printing > *:not(#bingo-print) { display: none !important; } body.bingo-printing #bingo-print { display: block; } @page { size: A4; margin: 8mm; } }
