/* GVZH Live: Ergänzungen zum gemeinsamen Design-System (gvzh.css).
   Folieninhalte, Umfragen, Übungen, Cockpit und Dashboard. */
:root {
  --f1: #1641C8; --f2: #B85600; --f3: #0B7A5B; --f4: #8A2BA6;
  --st-ok: #0F9D4E; --st-ok2: #7BC79A; --st-bad: #E8590C; --st-sol: #8A4FD8; --st-skip: #9AA3B5; --st-open: #D3D9E6;
  --star: #F2A900;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --f1: #9DB6FF; --f2: #FFB570; --f3: #5FE0B8; --f4: #DDA4FF; --st-ok2: #2E7A51; --st-open: #2B3550; --st-sol: #A982F0; }
}
:root[data-theme="dark"] { --f1: #9DB6FF; --f2: #FFB570; --f3: #5FE0B8; --f4: #DDA4FF; --st-ok2: #2E7A51; --st-open: #2B3550; --st-sol: #A982F0; }

body { overflow-x: hidden; }
.f1 { color: var(--f1); font-weight: 700; }
.f2 { color: var(--f2); font-weight: 700; }
.f3 { color: var(--f3); font-weight: 700; }
.f4 { color: var(--f4); font-weight: 700; }
.katex .f1, .katex .f2, .katex .f3, .katex .f4 { font-weight: inherit; }
.katex { font-size: 1.08em; }
.katex-display { margin: .6em 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.stern { color: var(--star); letter-spacing: -1px; white-space: nowrap; }

/* ---------- Folieninhalt ---------- */
.inhalt { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); line-height: 1.5; text-wrap: pretty; }
.inhalt > :first-child { margin-top: 0; }
.inhalt > :last-child { margin-bottom: 0; }
.inhalt p { margin: 0 0 .7em; }
.inhalt ul, .inhalt ol { margin: 0 0 .7em; padding-left: 1.3em; }
.inhalt li { margin-bottom: .25em; }
.inhalt h3 { font-size: 1.2em; margin: 1em 0 .4em; }
.inhalt img, .inhalt svg { max-width: 100%; height: auto; }
.merke, .beispiel, .achtung, .tipp {
  position: relative; border-radius: var(--r-sm); padding: 14px 16px 12px; margin: 0 0 .9em;
}
.merke::before, .beispiel::before, .achtung::before, .tipp::before {
  display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; margin-bottom: 4px;
}
.merke { background: var(--gv-blue-soft); border-left: 5px solid var(--gv-blue); }
.merke::before { content: 'Merke'; color: var(--gv-blue-ink); }
.beispiel { background: var(--surface-2); border-left: 5px solid var(--muted); }
.beispiel::before { content: 'Beispiel'; color: var(--muted); }
.achtung { background: var(--bad-soft); border-left: 5px solid var(--bad); }
.achtung::before { content: 'Achtung, typischer Fehler'; color: var(--bad); }
.tipp { background: color-mix(in srgb, var(--hl) 22%, var(--surface)); border-left: 5px solid var(--hl); }
.tipp::before { content: 'Tipp'; color: var(--ink); }
.merke > :last-child, .beispiel > :last-child, .achtung > :last-child, .tipp > :last-child { margin-bottom: 0; }
.zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: .9em; }
.zwei > div > :last-child { margin-bottom: 0; }
.tabwrap { overflow-x: auto; max-width: 100%; margin: 0 0 .9em; }
table.wt { border-collapse: collapse; margin: 0 0 .9em; font-variant-numeric: tabular-nums; background: var(--surface); }
.tabwrap table.wt { margin: 0; }
table.wt th, table.wt td { border: 2px solid var(--line); padding: 6px 14px; text-align: center; min-width: 3.2em; }
table.wt th { background: var(--surface-2); font-weight: 700; text-align: left; }
table.wt caption { caption-side: top; text-align: left; font-weight: 700; padding-bottom: 4px; }
.wt-op { color: var(--gv-orange-ink); font-weight: 700; font-size: .92em; }
.schritt { border-radius: var(--r-sm); transition: box-shadow 1.6s ease; }
.schritt-neu { animation: gv-pop .35s ease both; box-shadow: 0 0 0 4px color-mix(in srgb, var(--hl) 70%, transparent); }
.schritte-rest { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 700; margin-top: 6px; }
.schritte-rest i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }

.folie-titel { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.8rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 14px; }
.folie-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.titelfolie { text-align: center; padding: clamp(20px, 6vh, 70px) 10px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.titelfolie img { width: 84px; height: 84px; border-radius: 14px; }
.titelfolie h1 { margin: 0; font-weight: 800; font-size: clamp(2.2rem, 1.2rem + 4.5vw, 4.6rem); line-height: .95; letter-spacing: -0.04em; }
.titelfolie h1 em { font-style: normal; color: var(--gv-blue); }
.titelfolie p.unter { margin: 0; font-size: 1.15rem; color: var(--muted); font-weight: 700; }
.frage { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 16px; text-wrap: pretty; }

/* ---------- Umfrage ---------- */
.optionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.option {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; text-align: left;
  padding: 14px 16px; border-radius: var(--r-card); border: 3px solid var(--line); background: var(--surface);
  font-size: clamp(1.02rem, .9rem + .5vw, 1.35rem); font-weight: 700; line-height: 1.25; min-width: 0; overflow: hidden; isolation: isolate;
}
button.option { cursor: pointer; transition: border-color .15s, transform .12s; }
button.option:hover:not(:disabled) { border-color: var(--gv-blue); }
button.option:active:not(:disabled) { transform: scale(.985); }
button.option:disabled { cursor: default; }
.option .key {
  flex: none; width: 2em; height: 2em; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; background: var(--a1);
}
.option:nth-child(2) .key { background: var(--a2); }
.option:nth-child(3) .key { background: var(--a3); }
.option:nth-child(4) .key { background: var(--a4); }
.option:nth-child(5) .key { background: var(--t5); }
.option:nth-child(6) .key { background: var(--t6); }
.option .txt { min-width: 0; overflow-wrap: anywhere; }
.option .bar { position: absolute; inset: 0 auto 0 0; width: 0; z-index: -1; background: var(--gv-blue-soft); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.option .pct { grid-column: 2; font-family: var(--font-display); font-size: .95em; color: var(--gv-blue-ink); font-variant-numeric: tabular-nums; }
.option.gewaehlt { border-color: var(--gv-blue); box-shadow: 0 0 0 3px var(--gv-blue-soft); padding-top: 26px; }
.option.gewaehlt::after { content: '✓ deine Wahl'; position: absolute; top: 6px; right: 10px; font-size: .72rem; font-weight: 800; color: var(--gv-blue-ink); }
.option.richtig { border-color: var(--ok); background: var(--ok-soft); }
.option.richtig .bar { background: color-mix(in srgb, var(--ok) 25%, transparent); }
.option.falsch-gewaehlt { border-color: var(--bad); }
.option.blass { opacity: .55; }
.hinweiszeile { margin-top: 12px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hinweiszeile.ok { color: var(--ok); }
.erklaerung { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ok-soft); }
.erklaerung.falsch { background: var(--bad-soft); }
.erklaerung > :last-child { margin-bottom: 0; }
.erklaerung b.kopf { display: block; margin-bottom: 4px; }

/* Ergebnisbalken (Lehrperson und freigegeben bei Kindern) */
.balken { display: flex; flex-direction: column; gap: 10px; }
.balken-zeile { display: grid; grid-template-columns: 2em minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.balken-zeile .key { width: 2em; height: 2em; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--a1); font-family: var(--font-display); }
.balken-zeile:nth-child(2) .key { background: var(--a2); }
.balken-zeile:nth-child(3) .key { background: var(--a3); }
.balken-zeile:nth-child(4) .key { background: var(--a4); }
.balken-zeile:nth-child(5) .key { background: var(--t5); }
.balken-zeile:nth-child(6) .key { background: var(--t6); }
.balken-mitte { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.balken-text { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.balken-spur { position: relative; height: 16px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.balken-spur span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gv-blue); border-radius: 8px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.balken-zeile.richtig .balken-text { color: var(--ok); }
.balken-zeile:nth-child(2) .balken-spur span { background: var(--a2); }
.balken-zeile:nth-child(3) .balken-spur span { background: var(--a3); }
.balken-zeile:nth-child(4) .balken-spur span { background: var(--a4); }
.balken-zeile:nth-child(5) .balken-spur span { background: var(--t5); }
.balken-zeile:nth-child(6) .balken-spur span { background: var(--t6); }
.balken-zahl { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }
.balken-zahl small { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--muted); font-weight: 700; }
.balken-zeile.richtig .balken-spur { box-shadow: 0 0 0 2px var(--ok); }
.balken-namen { grid-column: 2 / 4; font-size: .82rem; color: var(--muted); margin-top: -4px; }

/* ---------- Kurzantwort / Eingabe ---------- */
.eingabe { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.eingabe-feld { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0; }
.eingabe-feld input {
  flex: 1; min-width: 0; font-size: 1.3rem; font-weight: 700; padding: 12px 14px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: var(--surface); font-variant-numeric: tabular-nums;
}
.eingabe-feld input:focus { border-color: var(--gv-blue); outline: none; box-shadow: 0 0 0 3px var(--gv-blue-soft); }
.eingabe-feld .einheit { font-weight: 700; font-size: 1.15rem; color: var(--muted); white-space: nowrap; }
.vorschau:empty { display: none; }
.vorschau { min-height: 1.8em; margin-top: 6px; color: var(--muted); font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.vorschau .katex { color: var(--ink); font-size: 1.15em; }
.rueck { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 700; display: flex; gap: 10px; align-items: flex-start; }
.rueck .ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem; }
.rueck.ok { background: var(--ok-soft); }
.rueck.ok .ico { background: var(--ok); }
.rueck.falsch { background: var(--bad-soft); }
.rueck.falsch .ico { background: var(--bad); }
.rueck.form { background: color-mix(in srgb, var(--hl) 25%, var(--surface)); }
.rueck.form .ico { background: var(--gv-orange); }
.rueck.info { background: var(--surface-2); font-weight: 400; }
.rueck.info .ico { background: var(--muted); }
.rueck > div { min-width: 0; }
.rueck small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }

/* ---------- Übungen ---------- */
.ue { display: grid; grid-template-columns: minmax(200px, 270px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ue-liste { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 8px; }
.ue-liste-kopf { display: flex; flex-direction: column; gap: 6px; padding: 4px 2px 6px; }
.ue-liste-kopf b { font-family: var(--font-display); font-size: 1.15rem; }
.fortschritt { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.fortschritt span { display: block; height: 100%; width: 0; background: var(--ok); border-radius: 5px; transition: width .5s ease; }
.ue-nr {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left;
  padding: 9px 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); cursor: pointer; min-width: 0;
}
.ue-nr:hover { border-color: var(--gv-blue); }
.ue-nr[aria-current="true"] { border-color: var(--gv-blue); background: var(--gv-blue-soft); }
.ue-nr .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 2px solid var(--line); font-variant-numeric: tabular-nums; }
.ue-nr .t { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ue-nr .t b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ue-nr .t small { color: var(--muted); font-size: .8rem; }
.ue-nr[data-s="richtig"] .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.ue-nr[data-s="falsch"] .n { background: var(--bad-soft); border-color: var(--st-bad); color: var(--st-bad); }
.ue-nr[data-s="loesung"] .n { background: color-mix(in srgb, var(--st-sol) 18%, var(--surface)); border-color: var(--st-sol); color: var(--st-sol); }
.ue-nr .ico { font-size: .85rem; color: var(--muted); }
.aufgabe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.aufgabe-kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.aufgabe-kopf h2 { margin: 0; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 800; }
.aufgabe-kopf .stern { font-size: 1.2rem; }
.aufgabe-kopf .chip:not(.chip-ex) { margin-left: auto; }
.teil { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.teil-frage { display: flex; gap: 8px; font-size: 1.08rem; }
.teil-frage b { flex: none; }
.teil.geloest .eingabe-feld input { border-color: var(--ok); background: var(--ok-soft); }
.hilfe { display: flex; flex-direction: column; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; }
.hilfe-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.hilfe-box { border-radius: var(--r-sm); padding: 12px 14px; }
.hilfe-box.tipps { background: color-mix(in srgb, var(--hl) 20%, var(--surface)); }
.hilfe-box.weg { background: color-mix(in srgb, var(--st-sol) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--st-sol) 35%, transparent); }
.hilfe-box h3 { margin: 0 0 6px; font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.hilfe-box ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.hilfe-box li { animation: gv-pop .3s ease both; }
.nav-unten { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.papier-hinweis { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: var(--gv-blue-soft); color: var(--gv-blue-ink); font-weight: 700; font-size: .95rem; }
.papier-hinweis svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.geschafft { text-align: center; padding: 26px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.geschafft h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 800; }

/* Konfetti beim richtigen Resultat */
.konfetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.konfetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: konfetti 1.1s ease-out forwards; }
@keyframes konfetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}

/* ---------- Schüler-App ---------- */
.app { min-height: 100%; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; padding-bottom: 28px; }
.kopf { display: flex; align-items: center; gap: 10px; padding-block: 10px; flex-wrap: wrap; position: relative; }
.kopf .gv-brand { margin-right: auto; }
.namechip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 700; }
.namechip .ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gv-blue); color: var(--on-blue); font-weight: 800; font-size: .9rem; }
.verbindung { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.verbindung::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.verbindung.weg { color: var(--bad); }
.verbindung.weg::before { background: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.timerchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1rem; }
.timerchip.knapp { background: var(--bad); color: #fff; }
.timerchip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.reiter { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; width: fit-content; max-width: 100%; margin-bottom: 14px; }
.reiter button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 9px 16px; font-weight: 700; cursor: pointer; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.reiter button[aria-pressed="true"] { background: var(--gv-blue); color: var(--on-blue); }
.reiter .badge { min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; display: inline-grid; place-items: center; font-size: .78rem; background: var(--gv-orange); color: #1A1206; }
.buehne { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(16px, 3vw, 34px); min-width: 0; }
.buehne.flach { background: transparent; border: 0; padding: 0; }
.toast {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; z-index: 90;
  transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow);
}
.toast.an { opacity: 1; transform: translateX(-50%) translateY(0); }
.einstieg { flex: 1; display: grid; place-items: center; padding-block: 24px; }
.einstieg-karte { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.einstieg-karte h1 { margin: 0; font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); line-height: .98; letter-spacing: -0.035em; }
.einstieg-karte h1 em { font-style: normal; color: var(--gv-blue); }
.einstieg-karte .gross input { font-size: 1.35rem; padding: 14px 16px; border-width: 2px; background: var(--surface); }
.live-wahl { display: flex; flex-direction: column; gap: 8px; }
.live-karte { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); }
.live-karte:has(input:checked) { border-color: var(--gv-blue); background: var(--gv-blue-soft); }
.live-karte input { accent-color: var(--gv-blue); width: 20px; height: 20px; }
.live-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 60%, transparent); animation: puls 1.6s infinite; flex: none; }
@keyframes puls { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.warten { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.warten svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lader { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--gv-blue); animation: dreh 0.9s linear infinite; flex: none; }
@keyframes dreh { to { transform: rotate(360deg); } }
.fehlertext { color: var(--bad); font-weight: 700; margin: 0; }
.vorschauleiste { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 10px; margin-top: 16px; background: var(--ink); color: var(--bg); border-radius: var(--r-card); }
.vorschauleiste .btn-ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 40%, transparent); }

/* ---------- Lehrperson ---------- */
.lp { min-height: 100%; display: flex; flex-direction: column; }
.lp-kopf { display: flex; align-items: center; gap: 10px; padding-block: 10px; flex-wrap: wrap; }
.lp-kopf .gv-brand { margin-right: auto; }
.lp-seite { max-width: 1280px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding-bottom: 40px; }
.lp-seite h2.abschnitt { margin: 0; font-size: .9rem; font-family: var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lektionen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.lektion-karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.lektion-karte h3 { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.05; }
.lektion-karte p { margin: 0; color: var(--muted); }
.lektion-karte .zahlen { display: flex; gap: 6px; flex-wrap: wrap; }
.lektion-karte .knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.sitzungen { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); }
.sitzungen th, .sitzungen td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sitzungen th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.sitzungen tr:last-child td { border-bottom: 0; }
.sitzungen .akt { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tabelle-scroll { overflow-x: auto; border-radius: var(--r-card); }
.statuschip { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .8rem; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.statuschip.live { background: var(--bad-soft); color: var(--bad); }

/* Cockpit */
.ck { height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-bottom: 12px; }
.ck-kopf { display: flex; align-items: center; gap: 8px; padding-block: 8px; flex-wrap: wrap; }
.ck-kopf .gv-brand { margin-right: auto; }
.ck-kopf .live-code { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; padding: 6px 12px; border-radius: var(--r-pill); background: var(--bad-soft); color: var(--bad); }
.ck-kopf .live-code.aus { background: var(--surface-2); color: var(--muted); }
.ck-kopf .zaehler { font-weight: 800; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); }
.ck-haupt { display: grid; grid-template-columns: 230px minmax(0, 1fr) clamp(320px, 28vw, 440px); gap: 12px; min-height: 0; }
.ck.praes .ck-haupt { grid-template-columns: minmax(0, 1fr); }
.ck.praes .ck-folien, .ck.praes .ck-panel { display: none; }
.ck-folien { overflow: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 4px; min-height: 0; }
.ck-folie { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 12px; border: 2px solid transparent; background: transparent; cursor: pointer; font-size: .92rem; }
.ck-folie:hover { background: var(--surface); }
.ck-folie[aria-current="true"] { border-color: var(--gv-blue); background: var(--surface); }
.ck-folie .nr { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.ck-folie svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.ck-folie[data-typ="umfrage"] svg, .ck-folie[data-typ="blitz"] svg { color: var(--gv-orange); }
.ck-folie[data-typ="uebung"] svg { color: var(--ok); }
.ck-folie .tt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.ck-folie .tt small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.ck-mitte { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; min-height: 0; min-width: 0; }
.ck-buehne { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 2.6vw, 40px); min-height: 0; }
.ck-steuer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px; }
.ck-steuer .trenner { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
.ck-steuer .rechts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ck-steuer .info { color: var(--muted); font-weight: 700; font-size: .9rem; }
.ck-panel { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.ck-panel > * { flex-shrink: 0; }
.ck-panel .matrix-wrap { max-height: none; }
.ck-panel h3 { margin: 0; font-size: 1.1rem; font-weight: 800; }
.panel-kopf { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.btn.an { background: var(--gv-blue-soft); border-color: var(--gv-blue); color: var(--gv-blue-ink); }
.knopfgruppe { display: inline-flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: var(--r-pill); }
.knopfgruppe button { border: 0; background: transparent; padding: 6px 10px; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; font-size: .88rem; }
.knopfgruppe button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.kinderliste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.kinderliste li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.kinderliste .punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.kinderliste .punkt.weg { background: var(--line); }
.kinderliste .wo { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.kinderliste button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 6px; }
.kinderliste button:hover { background: var(--bad-soft); color: var(--bad); }
.blitzgruppen { display: flex; flex-direction: column; gap: 6px; }
.blitzgruppe { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.blitzgruppe .ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; background: var(--muted); }
.blitzgruppe.ok .ico { background: var(--ok); }
.blitzgruppe.nein .ico { background: var(--bad); }
.blitzgruppe .w { font-weight: 800; font-size: 1.1rem; min-width: 0; overflow-wrap: anywhere; }
.blitzgruppe .w small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.blitzgruppe .n { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.kennzahl { display: flex; gap: 10px; flex-wrap: wrap; }
.kennzahl div { flex: 1 1 90px; background: var(--surface-2); border-radius: 12px; padding: 8px 10px; }
.kennzahl b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.kennzahl span { font-size: .78rem; color: var(--muted); font-weight: 700; }

/* Dashboard-Matrix */
.db { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.db-leiste { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.legende { display: flex; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); font-weight: 700; }
.legende span { display: inline-flex; gap: 6px; align-items: center; }
.legende i { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; font-style: normal; font-size: .7rem; color: #fff; }
.matrix-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); max-height: 100%; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.matrix th, .matrix td { padding: 4px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix thead th { position: sticky; top: 0; background: var(--surface); z-index: 2; font-weight: 800; vertical-align: bottom; padding-top: 8px; }
.matrix thead th .stern { display: block; font-size: .7rem; }
.matrix thead th small { display: block; font-weight: 400; color: var(--muted); font-size: .7rem; }
.matrix th.name, .matrix td.name { position: sticky; left: 0; background: var(--surface); z-index: 1; text-align: left; padding: 6px 10px; min-width: 150px; max-width: 220px; }
.matrix thead th.name { z-index: 3; }
.matrix td.name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.matrix td.name small { color: var(--muted); font-size: .76rem; display: flex; gap: 6px; align-items: center; }
.matrix td.name .fortschritt { height: 6px; margin-top: 3px; }
.matrix td.name .warn { color: var(--bad); font-weight: 800; }
.matrix .grp th { background: var(--surface-2); text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.zelle {
  width: 40px; height: 34px; border-radius: 8px; display: grid; place-items: center; border: 0; cursor: pointer; position: relative;
  background: var(--surface-2); color: var(--muted); font-weight: 800; font-size: .82rem; font-variant-numeric: tabular-nums; margin: 0 auto;
}
.zelle[data-s="leer"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--st-open); cursor: default; }
.zelle[data-s="offen"] { background: transparent; box-shadow: inset 0 0 0 2px var(--gv-blue); color: var(--gv-blue); }
.zelle[data-s="richtig"] { background: var(--st-ok); color: #fff; }
.zelle[data-s="richtig2"] { background: var(--st-ok2); color: #0B3A20; }
.zelle[data-s="falsch"] { background: var(--st-bad); color: #fff; }
.zelle[data-s="loesung"] { background: var(--st-sol); color: #fff; }
.zelle[data-s="loesung-ok"] { background: repeating-linear-gradient(135deg, var(--st-sol) 0 6px, color-mix(in srgb, var(--st-sol) 70%, #fff) 6px 12px); color: #fff; }
.zelle[data-s="skip"] { background: var(--surface-2); color: var(--st-skip); box-shadow: inset 0 0 0 1.5px var(--st-skip); }
.zelle .tdot { position: absolute; top: 2px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.zelle.hier { outline: 3px solid var(--ink); outline-offset: 1px; }
.matrix tfoot td { position: sticky; bottom: 0; background: var(--surface-2); font-size: .75rem; font-weight: 700; color: var(--muted); padding: 6px 2px; }
.matrix tfoot td.name { background: var(--surface-2); }
.quote { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 3px auto 2px; width: 34px; }
.quote span { display: block; height: 100%; background: var(--ok); }
.einblick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.einblick-karte { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.einblick-karte b { font-size: .95rem; }
.einblick-karte p { margin: 0; font-size: .9rem; color: var(--muted); }
.einblick-karte.rot { border-left: 5px solid var(--bad); }
.einblick-karte.gelb { border-left: 5px solid var(--gv-orange); }
.einblick-karte.gruen { border-left: 5px solid var(--ok); }
.einblick-karte.violett { border-left: 5px solid var(--st-sol); }
.detail-verlauf { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.detail-verlauf li { display: flex; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.detail-verlauf li.ok { background: var(--ok-soft); }
.detail-verlauf li.nein { background: var(--bad-soft); }
.detail-verlauf time { margin-left: auto; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.leer { color: var(--muted); text-align: center; padding: 22px 10px; }
.login-karte { width: min(440px, 100%); margin: 8vh auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.login-karte h1 { margin: 0; font-weight: 800; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; }
.ck-reiter { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: var(--r-pill); }
.ck-reiter button { border: 0; background: transparent; padding: 7px 14px; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; color: var(--muted); }
.ck-reiter button[aria-pressed="true"] { background: var(--gv-blue); color: var(--on-blue); }
.ck-db { min-height: 0; overflow: auto; }
.timerwahl { display: inline-flex; gap: 6px; align-items: center; }
.timerwahl select { width: auto; padding: 8px 10px; }

/* ---------- Folienfläche: festes Layout, nur skaliert ---------- */
.flaeche { position: relative; width: 100%; overflow: hidden; }
.flaeche-innen { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.flaeche-inhalt { padding-bottom: 70px; }
.flaeche-innen .inhalt { font-size: 19px; line-height: 1.5; }
.flaeche-innen .folie-titel { font-size: 36px; }
.flaeche-innen .frage { font-size: 26px; }
.flaeche-innen .titelfolie { padding: 36px 10px 10px; }
.flaeche-innen .titelfolie h1 { font-size: 60px; }
.flaeche-innen .titelfolie p.unter { font-size: 19px; }
.flaeche-innen .zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flaeche-innen .aufgabe { padding: 22px; }
.flaeche-innen .aufgabe-kopf h2 { font-size: 26px; }
.flaeche-innen .hilfe-box li { animation: none; }
.tinte-ebene { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.strich { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.strich.w-stift { stroke-width: 3.5; }
.strich.w-leucht { stroke-width: 22; opacity: .42; mix-blend-mode: multiply; }
.t-blau { stroke: #1F5BFF; } .t-rot { stroke: #E0362B; } .t-gruen { stroke: #0F9D4E; } .t-dunkel { stroke: var(--ink); }
.t-gelb { stroke: #FFD43B; } .t-hgruen { stroke: #4ADE80; } .t-pink { stroke: #FF6FB5; }
.laser-spur { fill: none; stroke: #FF2D2D; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.laser-punkt { fill: #FF2D2D; stroke: #fff; stroke-width: 3; opacity: 0; filter: drop-shadow(0 0 8px rgba(255, 45, 45, .9)); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .strich.w-leucht { mix-blend-mode: normal; opacity: .32; }
  :root:not([data-theme="light"]) .t-blau { stroke: #7EA2FF; }
}
:root[data-theme="dark"] .strich.w-leucht { mix-blend-mode: normal; opacity: .32; }
.tinte-fang { position: absolute; inset: 0; z-index: 5; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.tinte-fang[data-stift="1"] { touch-action: pan-y pinch-zoom; }

/* Werkzeugleiste der Lehrperson */
.ck-werkzeuge { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 6px 8px; }
.wz { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--ink); }
.wz svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wz[aria-pressed="true"] { border-color: var(--gv-blue); background: var(--gv-blue-soft); color: var(--gv-blue-ink); }
.wz span { display: none; }
.wz[aria-pressed="true"] span, .ck.praes .wz span { display: inline; }
.wz:disabled { opacity: .4; cursor: default; }
.wz-farben { display: inline-flex; gap: 4px; padding: 0 4px; }
.wz-farbe { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.wz-farbe[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.wz-trenner { width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }
.wz-hinweis { color: var(--muted); font-size: .85rem; font-weight: 700; }

/* Rückblick der Kinder */
.rueckblick { display: flex; flex-direction: column; gap: 14px; }
.rueckblick-karte { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(12px, 2.4vw, 24px); }
.rueckblick-karte > .eyebrow { margin-bottom: 8px; }
.rueckblick-zusatz { margin-top: 10px; }

@media (max-width: 1100px) {
  .ck { height: auto; }
  .ck-haupt { grid-template-columns: minmax(0, 1fr); }
  .ck-folien { flex-direction: row; overflow-x: auto; }
  .ck-folie { min-width: 180px; }
  .ck-buehne { min-height: 50vh; }
}
@media (max-width: 760px) {
  .optionen { grid-template-columns: minmax(0, 1fr); }
  .ue { grid-template-columns: minmax(0, 1fr); }
  .ue-liste { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .ue-liste-kopf { display: none; }
  .ue-nr { grid-template-columns: 34px; padding: 6px; flex: none; }
  .ue-nr .t, .ue-nr .ico { display: none; }
  .zwei { grid-template-columns: minmax(0, 1fr); }
  .kopf .gv-brand-txt small { display: none; }
  .namechip span.nm { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Interaktive Grafiken (widgets.js) ---------- */
.widget { position: relative; margin: 6px 0 16px; }
.wg { background: var(--surface-2); border: 2px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.widget.von-lp .wg { border-color: var(--gv-orange); box-shadow: 0 0 0 4px var(--gv-orange-soft); }
.widget.von-lp::after { content: '👀 Deine Lehrperson zeigt'; position: absolute; top: -12px; right: 14px; background: var(--gv-orange); color: #1A1206; font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.wg-kopf { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wg-satz { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.wg-situation { font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--muted); }
.wg-stepper { display: inline-flex; align-items: center; gap: 8px; }
.wg-stepper input[type=range] { width: 170px; accent-color: var(--gv-blue); }
.wg-knopf { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-size: 22px; font-weight: 800; line-height: 1; cursor: pointer; color: var(--ink); }
.wg-knopf:hover { border-color: var(--gv-blue); }
.wg-regler { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wg-label { font-weight: 800; font-size: 15px; }
.wg-zwei { display: grid; grid-template-columns: 300fr 340fr; gap: 10px; align-items: start; }
.wg-zwei-breit { grid-template-columns: 420fr 200fr; }
.wg-svg { width: 100%; height: auto; display: block; background: var(--surface); border-radius: 12px; border: 1px solid var(--line); font-family: var(--font-body); }
.wg-klick { cursor: pointer; }
.wg-unten { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.wg-tab { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.wg-wt { margin: 0; font-size: 17px; }
.wg-wt td { min-width: 3.4em; }
.wg-merk { display: flex; flex-direction: column; gap: 3px; font-size: 15px; color: var(--muted); font-weight: 700; }
.wg-merk b { color: var(--ink); }
.wg-schalter { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 15px; cursor: pointer; }
.wg-schalter input { width: 20px; height: 20px; accent-color: var(--gv-blue); }
.wg-gitter { stroke: var(--line); stroke-width: 1; }
.wg-achse { stroke: var(--ink); stroke-width: 2; }
.wg-tick { fill: var(--muted); font-size: 11px; font-weight: 700; }
.wg-achsname { fill: var(--ink); font-size: 12px; font-weight: 800; }
.wg-punkt { fill: var(--gv-blue); stroke: var(--surface); stroke-width: 2; transition: r .2s; }
.wg-punkt.blass { opacity: .35; }
.wg-punkt.zwei { fill: var(--gv-orange); }
.wg-null { fill: none; stroke: var(--ok); stroke-width: 3; }
.wg-gerade { fill: none; stroke: var(--gv-blue); stroke-width: 2.5; stroke-dasharray: 7 5; opacity: .8; }
.wg-gerade.wg-voll { stroke-dasharray: none; stroke-width: 3; opacity: 1; }
.wg-hilfslinie { stroke: var(--gv-blue); stroke-width: 1.5; stroke-dasharray: 4 4; }
.wg-hilfslinie.zwei { stroke: var(--gv-orange); }
.wg-wert { fill: var(--ink); font-size: 13px; font-weight: 800; }
.wg-pfeil { fill: none; stroke: var(--gv-orange); stroke-width: 2.5; }
.wg-produkt { fill: color-mix(in srgb, var(--gv-orange) 18%, transparent); stroke: var(--gv-orange); stroke-width: 1.5; stroke-dasharray: 4 3; }
.wg-theke { fill: var(--gv-orange-soft); stroke: var(--line); }
.wg-gipfeli path:first-child { fill: #E8A33D; stroke: #A65300; stroke-width: 2; }
.wg-gipfeli .wg-rille { fill: none; stroke: #A65300; stroke-width: 2; stroke-linecap: round; }
.wg-gipfeli { opacity: .16; transition: opacity .25s, transform .25s; }
.wg-gipfeli.an { opacity: 1; }
.wg-k { transition: transform .55s cubic-bezier(.3, .8, .3, 1); stroke: var(--surface); stroke-width: 1; }
.wg-kopf-figur { fill: var(--gv-orange); }
.wg-koerper { fill: var(--gv-blue-ink); }
.wg-reiter { display: flex; gap: 6px; flex-wrap: wrap; }
.wg-reiter button { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--ink); }
.wg-reiter button[aria-pressed="true"] { border-color: var(--gv-blue); background: var(--gv-blue-soft); color: var(--gv-blue-ink); }
.wg-seite { display: flex; flex-direction: column; gap: 10px; }
.wg-seite input[type=range] { width: 100%; accent-color: var(--gv-blue); }
.wg-ablesen { font-size: 18px; display: flex; flex-direction: column; gap: 4px; }
.wg-test { border: 0; border-radius: 999px; padding: 10px 14px; font-weight: 800; font-size: 16px; background: var(--gv-orange); color: #1A1206; cursor: pointer; }
.wg-urteil { font-size: 15px; }
.wg-befund { padding: 10px 12px; border-radius: 12px; font-size: 16px; line-height: 1.3; }
.wg-befund.ok { background: var(--ok-soft); }
.wg-befund.nein { background: var(--bad-soft); }
.wg-befund small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
/* Regler und Knöpfe der Grafiken bleiben bedienbar, auch wenn ein Zeichenwerkzeug aktiv ist */
.wg-kopf, .wg-reiter, .wg-seite, .wg-schalter { position: relative; z-index: 6; }
/* Gleichungs-Waage */
.wg-waage { cursor: default; }
.wg-staender { fill: var(--surface-2); stroke: var(--muted); stroke-width: 2; }
.wg-balken { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.wg-balken rect { fill: var(--muted); }
.wg-balken circle { fill: var(--ink); }
.wg-schale { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.wg-teller { fill: var(--ink); opacity: .75; }
.wg-teil { cursor: pointer; }
.wg-teil:hover { filter: brightness(1.15) drop-shadow(0 0 4px rgba(0, 0, 0, .25)); }
.wg-sack path { fill: var(--gv-blue); stroke: var(--gv-blue-ink); stroke-width: 1.5; }
.wg-sack text { fill: #fff; font-weight: 800; font-size: 16px; font-family: var(--font-display); }
.wg-gewicht rect { fill: var(--gv-orange); stroke: var(--gv-orange-ink); stroke-width: 1.5; }
.wg-gewicht text { fill: #1A1206; font-weight: 800; font-size: 12px; }
.wg-zeiger { font-size: 26px; font-weight: 800; font-family: var(--font-display); }
.wg-zeiger.ok { fill: var(--ok); }
.wg-zeiger.kipp { fill: var(--bad); }
.wg-gleichung { text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.01em; }
.wg-status { min-height: 46px; }
.wg-aktionen { gap: 8px; }
.wg-aktion { border: 2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ink); }
.wg-aktion:hover:not(:disabled) { border-color: var(--gv-blue); }
.wg-aktion:disabled { opacity: .4; cursor: default; }
.wg-aktion.leise { background: transparent; }
.wg-log { margin: 0; padding-left: 24px; font-size: 18px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.wg-log:empty { display: none; }
.wg-aktionen, .wg-log { position: relative; z-index: 6; }
.wg-waage .wg-teil { pointer-events: auto; }
.wg-waage { position: relative; z-index: 6; }

/* Nachschau-Link mit QR-Code auf der ersten und letzten Folie */
.nachschau-box { display: flex; gap: 18px; align-items: center; margin-top: 16px; padding: 14px 18px; border-radius: var(--r-card); background: var(--gv-blue-soft); border: 2px solid color-mix(in srgb, var(--gv-blue) 35%, transparent); }
.nachschau-qr { flex: none; width: 112px; height: 112px; background: #fff; color: #0E1630; border-radius: 10px; padding: 4px; }
.nachschau-qr svg { width: 100%; height: 100%; display: block; }
.nachschau-text { margin: 4px 0; }
.nachschau-link { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); color: var(--gv-blue-ink); letter-spacing: -0.01em; overflow-wrap: anywhere; }
@media (max-width: 520px) { .nachschau-box { flex-direction: column; align-items: flex-start; } }
.nachschau-band { display: flex; gap: 14px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--gv-blue-soft); border: 2px solid color-mix(in srgb, var(--gv-blue) 35%, transparent); font-size: 15px; line-height: 1.35; }
.nachschau-band .nachschau-qr { width: 84px; height: 84px; }
.nachschau-band .nachschau-link { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--gv-blue-ink); letter-spacing: -0.01em; margin-top: 2px; }
.flaeche-innen .nachschau-band + .titelfolie { padding-top: 18px; }
