@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/ahn-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/ahn-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/ahn-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/ahn-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --paper: #EBEFF3;
  --surface: #FFFFFF;
  --surface-2: #F4F6F9;
  --ink: #17212B;
  --ink-2: #4B5967;
  --ink-3: #6E7C8B;
  --line: #D3DAE1;
  --line-2: #E4E9EE;
  --brand: #1D4E89;
  --brand-2: #163D6C;
  --brand-wash: #E6EEF7;
  --marker: #FFE14D;
  --redact: #17212B;
  --ok: #1E7346;
  --ok-wash: #E4F3EA;
  --bad: #B3261E;
  --bad-wash: #FBEAE8;
  --radius: 12px;
  --radius-sm: 8px;
  --top: 64px;
  --bottom: 76px;
  --toc-w: 300px;
  --font: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip:focus { top: 12px; }
.ico { display: inline-grid; place-items: center; flex: none; }
.ico svg { width: 100%; height: 100%; }

/* Rahmen */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-title { font-weight: 800; font-size: 1.0625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 28px; height: 22px; border-radius: 5px; background: var(--brand); position: relative; flex: none; display: inline-block; }
.brand-mark::after { content: ""; position: absolute; left: 5px; right: 5px; top: 8px; height: 5px; background: var(--marker); }
.progress { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.progress-text { font-size: .875rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.progress-track { width: clamp(80px, 18vw, 220px); height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s ease; }
.icon-btn { width: 40px; height: 40px; display: none; place-items: center; padding: 0; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; }

.layout { position: fixed; top: var(--top); bottom: var(--bottom); left: 0; right: 0; display: grid; grid-template-columns: var(--toc-w) 1fr; }
.toc { overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 12px 32px; }
.scrim { position: fixed; inset: var(--top) 0 var(--bottom) 0; background: rgba(23, 33, 43, .35); z-index: 20; }
.stage { overflow-y: auto; padding: 48px clamp(16px, 5vw, 72px) 80px; outline: none; }

.navbar {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom); z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 0 20px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.navbar .btn { min-width: 9rem; }
.nav-info { text-align: center; display: grid; gap: 0; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; line-height: 1.35; }
.nav-hint { font-size: .875rem; color: var(--ink-3); }

body.is-start .toc, body.is-start .navbar, body.is-start .menu-btn, body.is-start .progress { display: none; }
body.is-start .layout { grid-template-columns: 1fr; bottom: 0; }
body.is-start .stage { padding-top: 24px; padding-bottom: 40px; }

/* Buttons */
.btn {
  font-size: 1rem; font-weight: 700; line-height: 1.1;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-2); }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--brand); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: 16px 28px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 14px; font-size: .9375rem; }

/* Inhaltsverzeichnis */
.toc-head { font-size: .9375rem; font-weight: 700; color: var(--ink-3); margin: 0 10px 10px; }
.toc-list, .toc-pages { list-style: none; margin: 0; padding: 0; }
.toc-ch { margin-bottom: 2px; }
.toc-ch-btn {
  width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 10px; border: 0; background: none; font-size: 1rem; font-weight: 700; line-height: 1.3;
  text-align: left; color: var(--ink); border-radius: var(--radius-sm); cursor: pointer;
}
.toc-ch-btn:hover:not(:disabled) { background: var(--surface-2); }
.toc-ch-btn:disabled { color: var(--ink-3); cursor: not-allowed; }
.toc-ch-btn > .ico { width: 16px; height: 16px; color: var(--ink-3); }
.toc-num {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .875rem; font-weight: 800; border: 2px solid var(--line); color: var(--ink-2); background: var(--surface);
}
.toc-num .ico { width: 16px; height: 16px; }
.toc-ch.is-open > .toc-ch-btn { background: var(--brand-wash); }
.toc-ch.is-open .toc-num { border-color: var(--brand); background: var(--brand); color: #fff; }
.toc-ch.is-done .toc-num { border-color: var(--ok); background: var(--ok); color: #fff; }
.toc-pages { margin: 4px 0 10px 24px; border-left: 2px solid var(--line-2); padding-left: 8px; }
.toc-page {
  width: 100%; display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: center;
  padding: 7px 10px; border: 0; background: none; font-size: .9375rem; line-height: 1.35;
  text-align: left; color: var(--ink-2); border-radius: 6px; cursor: pointer;
}
.toc-page:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
.toc-page:disabled { color: var(--ink-3); cursor: not-allowed; }
.toc-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink-3); }
.toc-page.is-done .toc-dot { background: var(--ok); border-color: var(--ok); }
.toc-page.is-current { color: var(--ink); font-weight: 700; }
.toc-page.is-current .toc-dot { border-color: var(--ink); background: var(--marker); }
.toc-test { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }

/* Seite */
.page { max-width: 46rem; }
.page-wide { max-width: 62rem; }
:where(.page p, .page h1, .page h2, .page ul, .page ol, .page figure) { margin: 0; }
.page > * + * { margin-top: 24px; }
.page > .kicker + h1, .page > .kicker + .qdots { margin-top: 8px; }
.page > * + h2 { margin-top: 40px; }
.page > h2 + * { margin-top: 10px; }
.kicker { font-size: .9375rem; font-weight: 700; color: var(--ink-3); }
.page h1 { font-size: clamp(1.875rem, 3.2vw, 2.375rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; outline: none; }
.page h2 { font-size: 1.375rem; line-height: 1.3; font-weight: 700; }
.lead { font-size: 1.3125rem; line-height: 1.5; }
.muted { color: var(--ink-2); font-size: 1rem; }
mark { background: linear-gradient(transparent 56%, var(--marker) 56%, var(--marker) 92%, transparent 92%); color: inherit; padding: 0 .08em; }
a { color: var(--brand); text-underline-offset: 3px; }

/* Hinweisboxen */
.callout { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 1.0625rem; }
.callout-mark { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; line-height: 1; }
.callout-law .callout-mark { background: var(--brand); color: #fff; }
.callout-info .callout-mark { background: var(--brand-wash); color: var(--brand); }
.callout-warn .callout-mark { background: var(--marker); color: var(--ink); }
.callout-title { font-weight: 800; margin-bottom: 4px !important; }

/* Karten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.card { text-align: left; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1000px; min-height: 220px; color: inherit; font-size: 1rem; line-height: 1.5; border-radius: var(--radius); }
.card-inner { display: grid; height: 100%; transition: transform .55s cubic-bezier(.3, .7, .3, 1); transform-style: preserve-3d; }
.card-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.card-front { background: var(--brand); color: #fff; justify-content: space-between; }
.card-title { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.card-title::after { content: ""; display: block; width: 44px; height: 6px; background: var(--marker); margin-top: 14px; }
.card-turn { display: flex; align-items: center; gap: 8px; font-size: .9375rem; opacity: .85; }
.card-turn .ico { width: 18px; height: 18px; }
.card-back { background: var(--surface); border: 2px solid var(--brand); transform: rotateY(180deg); gap: 8px; }
.card-back-title { font-weight: 800; color: var(--brand); }
.card.is-flipped .card-inner { transform: rotateY(180deg); }
.card:hover .card-front { background: var(--brand-2); }

/* Akkordeon */
.accordion { border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 44px 16px 2px; font-weight: 700; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.acc[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.acc summary:hover { color: var(--brand); }
.acc-body { padding: 0 2px 18px; color: var(--ink-2); font-size: 1.0625rem; }

/* Ablauf */
.steps { list-style: none; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 60px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand); color: var(--brand); font-weight: 800; display: grid; place-items: center;
}
.steps li::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.step-title { font-weight: 800; padding-top: 6px; }
.steps p + p { color: var(--ink-2); font-size: 1.0625rem; }

/* Tabelle */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.45; }
caption { text-align: left; font-weight: 800; padding: 16px 18px 6px; }
th, td { text-align: left; vertical-align: top; padding: 12px 18px; border-top: 1px solid var(--line-2); }
thead th { font-size: .9375rem; color: var(--ink-2); }
tbody th { font-weight: 700; white-space: nowrap; }

/* Geschwärzter Datensatz */
.redact > * + * { margin-top: 10px; }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 16px !important; }
.record-head { padding: 12px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 800; font-size: .9375rem; color: var(--ink-2); }
.record-rows { margin: 0; }
.record-row { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.record-row:first-child { border-top: 0; }
.record-row dt { color: var(--ink-2); font-size: 1rem; padding-top: 2px; }
.record-row dd { margin: 0; }
.redacted { font-size: 1.0625rem; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; position: relative; cursor: pointer; text-align: left; line-height: 1.5; }
.redacted-bar { position: absolute; inset: -1px -6px; background: var(--redact); border-radius: 2px; transform-origin: right center; transition: transform .45s cubic-bezier(.7, 0, .2, 1), background .15s; }
.redacted:hover .redacted-bar { background: #33414F; }
.redacted.is-open { cursor: default; }
.redacted.is-open .redacted-bar { transform: scaleX(0); }
.record-note { margin-top: 6px !important; font-size: 1rem; color: var(--ink-2); }

/* Szenario & E-Mail */
.scenario { padding: 2px 0 2px 20px; border-left: 5px solid var(--marker); }
.persona { font-weight: 800; }
.scenario p + p { margin-top: 6px; }
.email { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.email-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.email-subject { font-weight: 800; font-size: 1.125rem; margin-bottom: 6px !important; }
.email-k { display: inline-block; width: 3rem; color: var(--ink-3); }
.email-body { padding: 18px 20px 22px; }
.fake-link { display: inline-block; background: #0F6CBD; color: #fff; padding: 9px 16px; border-radius: 4px; cursor: pointer; font-weight: 700; }
.email-note { padding: 12px 20px; background: var(--marker); font-weight: 700; }

/* Fragen */
.check { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q-prompt { font-weight: 800; font-size: 1.1875rem; line-height: 1.4; padding: 0; margin-bottom: 14px; }
.q-hint { margin: -4px 0 12px !important; color: var(--ink-2); font-size: 1rem; }
.opts { display: grid; gap: 10px; }
.opts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 26rem; }
.opt {
  position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start;
  padding: 13px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface); font-size: 1.0625rem; line-height: 1.45; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: #9FB1C4; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-mark { width: 22px; height: 22px; margin-top: 1px; border: 2px solid #8796A6; border-radius: 50%; background: #fff; }
input[type="checkbox"] + .opt-mark { border-radius: 5px; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-wash); }
.opt input[type="radio"]:checked + .opt-mark { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }
.opt input[type="checkbox"]:checked + .opt-mark { border-color: var(--brand); background: var(--brand) var(--check-white) center / 16px no-repeat; }
.opt input:focus-visible + .opt-mark { outline: 3px solid var(--brand); outline-offset: 3px; }
.q.is-locked .opt { cursor: default; }
.q.is-locked .opt:hover { border-color: var(--line); }
.q .opt.is-correct { border-color: var(--ok); background: var(--ok-wash); }
.q .opt.is-missed { border-style: dashed; }
.q .opt.is-wrong { border-color: var(--bad); background: var(--bad-wash); }
.q .opt.is-correct input:checked + .opt-mark { border-color: var(--ok); background-color: var(--ok); }
.q .opt.is-wrong input:checked + .opt-mark { border-color: var(--bad); background-color: var(--bad); }
.match { display: grid; gap: 10px; }
.match-row { display: grid; grid-template-columns: 1fr minmax(12rem, 17rem); gap: 8px 16px; align-items: center; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); }
.match-left { font-size: 1.0625rem; line-height: 1.4; }
select {
  font-size: 1rem; width: 100%; padding: 10px 36px 10px 12px; border: 2px solid var(--line); border-radius: 6px; color: var(--ink); cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2317212B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center / 18px;
  appearance: none; -webkit-appearance: none;
}
select:focus { border-color: var(--brand); }
select:disabled { cursor: default; opacity: 1; color: var(--ink); }
.match-row.is-correct { border-color: var(--ok); background: var(--ok-wash); }
.match-row.is-wrong { border-color: var(--bad); background: var(--bad-wash); }
.match-fix { grid-column: 1 / -1; font-size: .9375rem; font-weight: 700; color: var(--bad); }
.q-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.fb { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); border-left: 5px solid; font-size: 1.0625rem; }
.fb-ok { background: var(--ok-wash); border-color: var(--ok); }
.fb-bad { background: var(--bad-wash); border-color: var(--bad); }
.fb p + p { margin-top: 8px; }
.fb-title { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.fb-title .ico { width: 22px; height: 22px; }
.fb-ok .fb-title { color: var(--ok); }
.fb-bad .fb-title { color: var(--bad); }
.fb-more { color: var(--ink-2); }

/* Zuordnen */
.sort > * + * { margin-top: 14px; }
.sort-pool { display: flex; flex-wrap: wrap; gap: 10px; min-height: 70px; padding: 14px; border: 2px dashed #B9C4CF; border-radius: var(--radius); background: var(--surface-2); }
.sort-pool.is-empty::before { content: "Alle Karten sind zugeordnet."; color: var(--ink-3); font-size: 1rem; align-self: center; }
.sort-zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sort-zone { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 200px; transition: border-color .15s, background .15s; }
.zone-head { display: flex; align-items: center; gap: 10px; min-height: 3.75rem; font-weight: 800; font-size: 1rem; line-height: 1.3; text-align: left; padding: 12px 14px; background: none; border: 0; border-bottom: 1px solid var(--line-2); cursor: pointer; color: var(--ink); }
.zone-sw { width: 26px; height: 10px; border-radius: 2px; flex: none; border: 2px solid var(--ink-3); }
.zone-1 .zone-sw { background: var(--marker); border-color: #E3C42F; }
.zone-2 .zone-sw { background: var(--redact); border-color: var(--redact); }
.zone-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; flex: 1; }
.sort.has-selection .sort-zone, .sort.has-selection .sort-pool { border-color: var(--brand); }
.sort-zone.is-over, .sort-pool.is-over { background: var(--brand-wash); border-color: var(--brand); }
.chip {
  font-size: 1rem; line-height: 1.35; text-align: left; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: grab; box-shadow: 0 2px 0 var(--line-2);
}
.chip:hover:not(:disabled) { border-color: #9FB1C4; }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-wash); box-shadow: 0 0 0 3px rgba(29, 78, 137, .2); }
.chip.is-dragging { opacity: .45; }
.chip:disabled { cursor: default; color: var(--ink); }
.chip.is-correct { border-color: var(--ok); background: var(--ok-wash); }
.chip.is-wrong { border-color: var(--bad); background: var(--bad-wash); }
.chip-fix { display: block; margin-top: 6px; font-size: .875rem; font-weight: 700; color: var(--bad); }

/* Suchbild */
.hs > * + * { margin-top: 14px; }
.hs-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hs-count { font-weight: 800; }
.hs-scene { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #DCE4EC; }
.hs-scene svg { display: block; width: 100%; height: auto; }
.hs-spot { position: absolute; background: transparent; border: 0; padding: 0; cursor: pointer; border-radius: 10px; }
.hs-spot:hover { box-shadow: inset 0 0 0 2px rgba(29, 78, 137, .35); }
.hs-spot:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.hs-spot.is-found { box-shadow: inset 0 0 0 3px var(--ok); }
.hs-spot.is-found::after {
  content: ""; position: absolute; bottom: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ok) var(--check-white) center / 16px no-repeat; box-shadow: 0 0 0 3px #fff;
}
.hs-spot.is-hint { animation: hint 1.2s ease-out 2; }
@keyframes hint {
  0% { box-shadow: inset 0 0 0 0 rgba(255, 225, 77, 0); }
  35% { box-shadow: inset 0 0 0 5px var(--marker); }
  100% { box-shadow: inset 0 0 0 0 rgba(255, 225, 77, 0); }
}
.hs-panel { min-height: 96px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--line); font-size: 1.0625rem; }
.hs-panel.is-risk { border-left-color: var(--bad); }
.hs-panel.is-safe { border-left-color: var(--ok); }
.hs-panel p + p { margin-top: 4px; }
.hs-title { font-weight: 800; }
.hs-all { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ok); margin-top: 10px !important; }
.hs-all .ico { width: 22px; height: 22px; }

/* Abschluss */
.summary { list-style: none; padding: 0; display: grid; gap: 14px; }
.summary li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; }
.summary .ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--ok-wash); color: var(--ok); }
.sources ul { padding-left: 1.2em; margin: 8px 0 0; font-size: 1rem; }
.sources li + li { margin-top: 4px; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--radius); background: var(--brand); color: #fff; }
.cta-title { font-weight: 800; font-size: 1.25rem; }
.cta .btn-primary { background: #fff; color: var(--brand); }
.cta .btn-primary:hover:not(:disabled) { background: var(--marker); color: var(--ink); }
.cta-note { flex-basis: 100%; font-size: .9375rem; opacity: .9; }
.video video { width: 100%; border-radius: var(--radius); background: var(--ink); display: block; }
.video figcaption { font-size: .9375rem; color: var(--ink-2); margin-top: 8px; }
.video { margin-left: 0; margin-right: 0; }

/* Test */
.qdots { list-style: none; display: flex; gap: 6px; padding: 0; }
.qdots li { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.qdots .is-answered { background: #9FB6D0; }
.qdots .is-current { background: var(--brand); }
.test-q .q-prompt { font-size: clamp(1.375rem, 2.4vw, 1.625rem); line-height: 1.3; margin-bottom: 22px; }
.score { display: flex; align-items: center; gap: 22px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid; flex-wrap: wrap; }
.score.is-pass { border-left-color: var(--ok); }
.score.is-fail { border-left-color: var(--bad); }
.score-num { font-size: 3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.is-pass .score-num { color: var(--ok); }
.is-fail .score-num { color: var(--bad); }
.score-text { font-size: 1.0625rem; color: var(--ink-2); }
.review { list-style: none; padding: 0; display: grid; gap: 12px; }
.review-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; font-size: 1rem; }
.review-item p + p { margin-top: 6px; }
.review-q { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
.review-q .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; color: #fff; }
.is-ok .review-q .ico { background: var(--ok); }
.is-bad .review-q .ico { background: var(--bad); }
.review-a, .review-x { padding-left: 34px; }
.review-k { color: var(--ink-3); }
.review-x { color: var(--ink-2); }

/* Startseite */
.start {
  min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1180px; margin: 0 auto; padding: clamp(8px, 3vw, 32px) 0;
}
.start h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.start-sub { font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); margin: 18px 0 0; max-width: 34rem; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 24px 0 0; }
.facts dt { font-size: .875rem; color: var(--ink-3); font-weight: 700; }
.facts dd { margin: 0; font-weight: 800; font-size: 1.0625rem; }
.goals-title { font-size: 1.125rem; margin: 26px 0 8px; }
.goals { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 1.0625rem; line-height: 1.5; }
.goals li { padding-left: 30px; position: relative; }
.goals li::before { content: ""; position: absolute; left: 0; top: .6em; width: 18px; height: 8px; background: var(--marker); }
.name-field { margin-top: 26px; display: grid; gap: 6px; max-width: 24rem; }
.name-field label { font-weight: 700; font-size: 1rem; }
input[type="text"] { font-size: 1.0625rem; padding: 12px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
input[type="text"]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(29, 78, 137, .2); }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.sheet {
  background: var(--surface); border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgba(23, 33, 43, .45); padding: 28px 30px 30px;
  transform: rotate(-2deg); max-width: 30rem; width: 100%; justify-self: center;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 3px solid var(--ink); margin-bottom: 6px; }
.sheet-title { font-weight: 800; font-size: 1.375rem; }
.sheet-id { font-size: .9375rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sheet-rows { margin: 0; }
.sheet-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 1rem; }
.sheet-row dt { color: var(--ink-3); }
.sheet-row dd { margin: 0; position: relative; justify-self: start; font-weight: 700; }
.sheet-bar {
  position: absolute; inset: -1px -5px; background: var(--redact); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  animation: redact .55s cubic-bezier(.7, 0, .2, 1) forwards; animation-delay: calc(.6s + var(--i) * .22s);
}
@keyframes redact { to { transform: scaleX(1); } }

/* Zertifikat. Die Urkunde selbst liegt in zertifikat.html und wird in einem
   iframe geladen - sie bringt eigene Schriften und eigene Masse in Millimetern
   mit, die sich mit dem CSS des WBT sonst ins Gehege kaemen. */
/* Testhilfe, vor der Veroeffentlichung mit SKIP in app.js entfernen. */
.btn-skip { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-skip:hover:not(:disabled) { background: #8E1E18; border-color: #8E1E18; }

.cert-bar { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.cert-bar .name-field { margin-top: 26px; flex: 1 1 18rem; }
.cert-frame {
  display: block; width: 100%; max-width: 620px; margin: 0 auto;
  aspect-ratio: 210 / 297; border: 1px solid var(--line); border-radius: 4px;
  background: #fff; box-shadow: 0 30px 60px -36px rgba(23, 33, 43, .4);
}

/* Responsive */
@media (min-width: 961px) { .scrim { display: none !important; } }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .toc { position: fixed; top: var(--top); bottom: var(--bottom); left: 0; width: min(320px, 86vw); z-index: 25; transform: translateX(-105%); transition: transform .25s ease; box-shadow: 0 0 40px rgba(23, 33, 43, .2); }
  body.toc-open .toc { transform: none; }
  .menu-btn { display: inline-grid; }
  .start { grid-template-columns: 1fr; }
  .start-visual { max-width: 30rem; }
}
@media (max-width: 760px) {
  .sort-zones { grid-template-columns: 1fr; }
  .sort-zone { min-height: 110px; }
  .match-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --bottom: 70px; }
  body { font-size: 1.0625rem; }
  .topbar { padding: 0 12px; gap: 10px; }
  .progress-track { display: none; }
  .navbar { padding: 0 12px; gap: 8px; }
  .navbar .btn { min-width: 0; padding: 12px 14px; }
  .nav-hint { display: none; }
  .stage { padding: 28px 16px 48px; }
  .lead { font-size: 1.1875rem; }
  .record-row { grid-template-columns: 1fr; gap: 4px; }
  .check { padding: 18px; }
  .callout { grid-template-columns: 1fr; gap: 10px; }
  .sheet { padding: 22px 20px; }
  .sheet-row { grid-template-columns: 7rem 1fr; }
  .cert-frame { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}

/* Druck */
/* Der Knopf druckt das iframe direkt, dann gilt das @page aus zertifikat.html.
   Diese Regeln fangen nur den Fall ab, dass jemand stattdessen Strg+P auf der
   WBT-Seite drueckt: Dann soll wenigstens das Zertifikat allein aufs Blatt und
   nicht die halbe Oberflaeche. */
@media print {
  @page { size: A4 portrait; margin: 0; }
  body { background: #fff; }
  body * { visibility: hidden !important; }
  .cert-frame { visibility: visible !important; }
  .layout, .stage { position: static; overflow: visible; }
  .cert-frame {
    position: fixed; left: 0; top: 0; width: 210mm; height: 297mm; max-width: none;
    aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
