/* freddy.berlin – ruhiges digitales Schulheft
   Schriften: Montserrat und Familjen Grotesk, SIL Open Font License 1.1 (siehe fonts/) */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Latin Extended für polnische Buchstaben (ą ć ę ł ń ó ś ź ż) */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-latin-ext-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #141415;
  --paper: #F1F0EC;
  --sheet: #FFFFFF;
  --muted: #5D5D63;
  --line: #6B6A66;
  --line-soft: #D9D7D0;
  --cyan: #00BFFF;
  --cyan-soft: #D6F3FF;
  --green: #A4FA5B;
  --green-soft: #EAFDD8;
  --orange: #FF8C00;
  --orange-soft: #FFE8CC;
  --radius: 14px;
  --head: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Familjen Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --tap: 48px;
  --crowd-h: clamp(84px, 15vh, 140px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem; /* 18 px */
  line-height: 1.5;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: var(--head);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(1.5rem, 4.6vw, 2rem); font-weight: 750; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 0.9em; }

.visually-hidden {
  position: absolute !important;
  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: 0.5rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--cyan);
  border-radius: 6px;
}
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
[tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }

/* ---------- Kopfzeile ---------- */
.topbar {
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}
.topbar__inner {
  max-width: 40rem; margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px;
}
/* Wortmarke nach DORO-Logik: FREDDY_ mit Cursor-Balken auf der Grundlinie, daneben die Adresse */
.wordmark {
  display: inline-flex; align-items: center; gap: 0.9rem;
  background: none; border: 0; padding: 0.35rem 0.2rem; margin: 0;
  color: var(--ink); cursor: pointer; min-height: var(--tap);
  text-align: left;
}
.wordmark__logo {
  font-family: var(--head); font-weight: 900;
  font-size: 1.45rem; line-height: 1; letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark__bar {
  display: inline-block; width: 0.55em; height: 0.19em;
  margin-left: 0.04em; background: var(--cyan);
  vertical-align: baseline;
}
.wordmark__url {
  font-family: var(--head); font-weight: 400;
  font-size: 0.9rem; line-height: 1.1; color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 26rem) {
  .has-tools .wordmark__url { display: none; }
}
@media (max-width: 23.5rem) {
  .wordmark__url { display: none; }
}
@media (max-width: 22rem) {
  .topbar__inner { padding-left: 0.75rem; padding-right: 0.75rem; gap: 0.5rem; }
  .wordmark__logo { font-size: 1.25rem; }
  .flag { min-width: 40px; padding: 0 4px; }
  .topbar__tools .btn { padding-left: 0.85rem; padding-right: 0.85rem; }
}
.topbar__right { display: flex; align-items: center; gap: 0.4rem; }
.topbar__tools { display: flex; gap: 0.5rem; }
.topbar { position: relative; z-index: 2; }

/* Sprachwahl mit Flaggen */
.langs { display: flex; gap: 2px; }
.flag {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 48px; padding: 0 6px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.flag svg { display: block; outline: 1px solid var(--ink); border-radius: 2px; }
.flag:hover { background: var(--sheet); }
.flag[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 7px; right: 7px; bottom: 5px;
  height: 4px; background: var(--cyan);
}

/* ---------- Seite ---------- */
.page {
  position: relative; z-index: 1;
  max-width: 40rem; margin: 0 auto;
  padding: 1.5rem 1rem calc(var(--crowd-h) + 2.5rem);
}
.page:focus { outline: none; }
.loading { color: var(--muted); }

.eyebrow {
  font-family: var(--head);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
.muted { color: var(--muted); }
.small { font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.6rem 1.2rem;
  font: 600 1.05rem/1.25 var(--body);
  color: var(--ink);
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--cyan-soft); }
.btn--primary { background: var(--cyan); font-family: var(--head); font-weight: 700; }
.btn--primary:hover { background: #33CCFF; }
.btn--quiet { background: transparent; border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-left: 0.6rem; padding-right: 0.6rem; }
.btn--quiet:hover { background: var(--sheet); border-color: var(--line-soft); }
.btn--block { width: 100%; }
.btn[aria-pressed="true"] { background: var(--orange-soft); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.row--end { justify-content: flex-end; }

/* ---------- Startkarte ---------- */
.startcard {
  position: relative;
  background:
    linear-gradient(90deg, transparent 2.1rem, var(--cyan) 2.1rem, var(--cyan) calc(2.1rem + 2px), transparent calc(2.1rem + 2px)),
    repeating-linear-gradient(180deg, transparent 0 2.15rem, #E7E5DE 2.15rem calc(2.15rem + 1px)),
    var(--sheet);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.3rem 3rem;
  margin-bottom: 1.5rem;
}
.startcard__lupe { position: absolute; right: 1rem; top: 1rem; width: 44px; height: 44px; }
.startcard h1 { padding-right: 3rem; }
.resume {
  background: var(--cyan-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.resume p { margin: 0 0 0.6rem; }

.sizepick { border: 0; padding: 0; margin: 0.2rem 0 0; }
.sizepick legend { font-weight: 600; margin-bottom: 0.4rem; }
.sizepick__opts { display: flex; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: var(--tap);
  padding: 0.5rem 1rem; border: 2px solid var(--line); border-radius: 999px;
  background: var(--sheet); cursor: pointer; font-weight: 600;
}
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip input:checked + span::before { content: "✓ "; white-space: pre; }
.chip input:focus-visible + span, .kbd .chip input:focus + span { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--cyan); }

.footnote {
  margin-top: 2.5rem; padding: 0.9rem 1rem;
  background: rgba(241, 240, 236, .94);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  font-size: 1rem; color: var(--muted);
}
.footnote .btn[aria-pressed] { background: transparent; }

/* ---------- Fußball: Spielfeld, Anzeigetafel ---------- */
.pitch {
  background:
    repeating-linear-gradient(90deg, #A4FA5B 0 44px, #97EE4C 44px 88px);
  padding: 1.5rem 1.3rem 1.4rem;
  overflow: hidden;
}
.pitch::before {           /* Seitenlinien */
  content: ""; position: absolute; inset: 10px;
  border: 3px solid rgba(255,255,255,.85); border-radius: 8px;
  pointer-events: none;
}
.pitch::after {            /* Mittelkreis */
  content: ""; position: absolute; width: 150px; height: 150px;
  right: -60px; top: 50%; margin-top: -75px;
  border: 3px solid rgba(255,255,255,.85); border-radius: 50%;
  pointer-events: none;
}
.pitch > * { position: relative; z-index: 1; }
.pitch .eyebrow { color: var(--ink); }
.pitch__date { font-weight: 600; }
.fixture {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem;
  background: var(--ink); color: var(--paper);
  font: 800 1.05rem/1 var(--head); letter-spacing: 0.04em;
  padding: 0.65rem 1rem; border-radius: 10px; margin: 0.2rem 0 1rem;
}
.fixture__vs { color: var(--cyan); font-weight: 700; text-transform: none; }
.season { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.season .ball { width: 32px; height: 32px; flex: none; }
.ball { display: inline-block; }

.board {
  position: relative;
  background:
    radial-gradient(circle, rgba(255,255,255,.07) 1.2px, transparent 1.6px) 0 0 / 7px 7px,
    var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  border: 4px solid #2A2A2D;
  box-shadow: 0 0 0 2px var(--ink);
  padding: 0.85rem 0.9rem 0.75rem;
  margin-bottom: 1.1rem;
  text-align: center;
}
.board__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0.6rem; }
.board__team { font: 800 clamp(0.95rem, 4.2vw, 1.25rem)/1 var(--head); letter-spacing: 0.06em; white-space: nowrap; }
.board__team--home { text-align: right; }
.board__team--away { text-align: left; }
.board__bar { display: inline-block; width: 0.55em; height: 0.19em; background: var(--cyan); margin-left: 0.05em; }
.board__score {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: #000; border-radius: 8px; padding: 0.15rem 0.6rem;
  font: 800 clamp(2.2rem, 10vw, 3rem)/1.1 var(--head);
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0,191,255,.55);
}
.board__colon { color: var(--paper); text-shadow: none; padding-bottom: 0.15em; }
.board__info { margin: 0.5rem 0 0; font-size: 0.95rem; color: #D9D9DC; }
.board__goal {
  margin: 0.55rem auto 0; display: inline-block;
  background: var(--green); color: var(--ink);
  font: 900 1.1rem/1 var(--head); letter-spacing: 0.12em;
  padding: 0.35rem 0.9rem; border-radius: 6px;
}
.board.is-final .board__score { font-size: clamp(2.6rem, 12vw, 3.6rem); }

@media (prefers-reduced-motion: no-preference) {
  .board.is-goal .board__digit--home { display: inline-block; animation: goal-pop .7s cubic-bezier(.2,.75,.15,1) both; }
  .board.is-goal .board__goal { animation: goal-blink 1.2s steps(2, jump-none) 2; }
  .board.is-goal { animation: goal-flash 1.2s ease-out 1; }
}
@keyframes goal-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); } }
@keyframes goal-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes goal-flash { 0% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 10px rgba(164,250,91,.9); } 100% { box-shadow: 0 0 0 2px var(--ink), 0 0 0 0 rgba(164,250,91,0); } }

/* ---------- Zuschauer im Hintergrund, Laola bei jedem Tor ---------- */
.crowd {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--crowd-h);
  z-index: 0; pointer-events: none; overflow: hidden;
}
.crowd__stand {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, #E2E0D9 0 34%, #D9D7CF 34% 36%, #E6E4DE 36% 62%, #DCDAD3 62% 64%, #EAE8E2 64% 100%);
  border-top: 3px solid #D0CEC6;
}
.fan {
  position: absolute; width: 16px; height: 30px;
  transform: scale(var(--s)); transform-origin: bottom center;
}
.fan__in { position: absolute; inset: 0; transform-origin: bottom center; }
.fan__in::before {             /* Kopf */
  content: ""; position: absolute; left: 2.5px; top: 0;
  width: 11px; height: 11px; border-radius: 50%; background: var(--skin);
}
.fan__in::after {              /* Körper */
  content: ""; position: absolute; left: 0; bottom: 0; width: 16px; height: 19px;
  border-radius: 8px 8px 2px 2px; background: var(--shirt);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 21, .14);
}
.fan__arm {
  position: absolute; bottom: 13px; width: 4px; height: 13px; border-radius: 2px;
  background: var(--shirt); box-shadow: inset 0 0 0 1px rgba(20, 20, 21, .14);
  opacity: 0; transform-origin: bottom center;
}
.fan__arm--l { left: 0; transform: rotate(-24deg); }
.fan__arm--r { right: 0; transform: rotate(24deg); }

@media (prefers-reduced-motion: no-preference) {
  .crowd:not(.crowd--still) .fan--idle { animation: fan-bob 2.8s ease-in-out var(--d) infinite; }
  .crowd.is-wave .fan__in { animation: fan-wave .95s cubic-bezier(.3,.7,.3,1) calc(var(--x) * 1ms) 1 both; }
  .crowd.is-wave .fan__arm { animation: fan-arms .95s ease-out calc(var(--x) * 1ms) 1 both; }
}
@keyframes fan-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
@keyframes fan-wave {
  0% { transform: translateY(0) scaleY(1); }
  35% { transform: translateY(-11px) scaleY(1.06); }
  70% { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(0); }
}
@keyframes fan-arms {
  0% { opacity: 0; }
  15%, 60% { opacity: 1; }
  100% { opacity: 0; }
}
@media print { .crowd { display: none; } }

/* ---------- Themen (Register) ---------- */
.topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.tab {
  position: relative;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: 4px var(--radius) var(--radius) var(--radius);
  padding: 1rem 1rem 1rem;
  margin-top: 0.9rem;
}
.tab__index {
  position: absolute; top: -1.05rem; left: -2px;
  font: 700 0.8rem/1 var(--head);
  background: var(--cyan); color: var(--ink);
  border: 2px solid var(--ink); border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 0.3rem 0.7rem 0.25rem;
}
.tab--mixed .tab__index { background: var(--ink); color: var(--paper); }
.tab h2 { margin-bottom: 0.15rem; }
.tab__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.4rem 0 0.8rem; }
.badge {
  display: inline-block; font-size: 0.9rem; font-weight: 600;
  padding: 0.1rem 0.6rem; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper);
}
.badge--done { background: var(--green); }
.badge--mark { background: var(--orange); }

/* ---------- Frage ---------- */
.qhead { margin-bottom: 1rem; }
.qhead__line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.qhead__topic { font-weight: 600; }
.qhead__count { font-family: var(--head); font-weight: 700; }
.steps { display: flex; gap: 6px; margin-top: 0.5rem; }
.steps span { flex: 1; height: 8px; border-radius: 4px; background: var(--line-soft); }
.steps .is-done { background: var(--ink); }
.steps .is-skip { background: repeating-linear-gradient(45deg, var(--ink) 0 3px, var(--line-soft) 3px 6px); }
.steps .is-now { background: var(--cyan); outline: 2px solid var(--ink); outline-offset: -2px; }

.question { border: 0; padding: 0; margin: 0; min-width: 0; }
.question legend { padding: 0; margin-bottom: 1rem; width: 100%; }
.question legend h1 { font-size: clamp(1.3rem, 4.2vw, 1.6rem); font-weight: 700; margin: 0; }

.options { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.option {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start;
  min-height: 56px;
  padding: 0.85rem 1rem;
  background: var(--sheet);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.option:hover { border-color: var(--ink); }
.option input {
  width: 1.35rem; height: 1.35rem; margin: 0.12rem 0 0;
  accent-color: var(--ink);
}
.option:has(input:checked) { border-color: var(--ink); border-width: 3px; padding: calc(0.85rem - 1px) calc(1rem - 1px); }
.option:has(input:focus-visible), .kbd .option:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 7px var(--cyan); }
.option input:focus-visible { outline: none; box-shadow: none; }
.option__text { display: block; }
.option__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.tag { font-size: 0.9rem; font-weight: 700; padding: 0.05rem 0.55rem; border-radius: 999px; border: 1.5px solid var(--ink); }
.tag--right { background: var(--green); }
.tag--mine { background: var(--orange); }
.is-checked .option { cursor: default; }
.is-checked .option:hover { border-color: var(--line); }
.option.is-right { background: var(--green-soft); border-color: var(--ink); border-width: 3px; padding: calc(0.85rem - 1px) calc(1rem - 1px); }
.option.is-wrong { background: var(--orange-soft); border-color: var(--ink); border-style: dashed; }

.msg { margin: 0.75rem 0 0; font-weight: 600; }
.hint {
  margin-top: 1rem; padding: 0.8rem 1rem;
  border-left: 4px solid var(--cyan);
  background: var(--sheet); border-radius: 0 10px 10px 0;
}
.hint strong { font-family: var(--head); }

.feedback {
  margin-top: 1.1rem; padding: 1rem 1.1rem;
  background: var(--sheet);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.feedback h2 { margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.feedback--right h2::before { content: "✓"; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); font-size: 1rem; }
.feedback--wrong h2::before { content: "→"; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); font-size: 1rem; }
.feedback p:last-child { margin-bottom: 0; }
.bookref { font-size: 1rem; color: var(--muted); }

.actions { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; }
.actions__secondary { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; }

details.lookup {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.75rem;
}
details.lookup summary {
  cursor: pointer; font-weight: 600;
  min-height: var(--tap); display: flex; align-items: center;
  list-style-position: inside;
}
.facts { margin: 0.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.facts li { background: var(--sheet); border-radius: 10px; padding: 0.7rem 0.9rem; border: 1px solid var(--line-soft); }
.facts ol { margin: 0.3rem 0 0; padding-left: 1.4rem; }

/* ---------- Abschluss / Probe ---------- */
.result { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.result__mark { flex: none; width: 56px; height: 56px; }
.tally { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.4rem; }
.tally li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0.9rem; background: var(--sheet); border-radius: 10px; border: 1px solid var(--line-soft); }
.tally b { font-family: var(--head); }

.probe {
  background: var(--sheet); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 1.1rem; margin-bottom: 1rem;
}
.operator { display: inline-block; font-weight: 700; background: var(--cyan-soft); border: 1.5px solid var(--ink); border-radius: 10px; padding: 0.2rem 0.6rem; margin-bottom: 0.6rem; }
.keywords { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.keywords li { padding: 0.2rem 0.75rem; border: 1.5px dashed var(--ink); border-radius: 999px; }
.answer { margin-top: 0.9rem; padding: 0.9rem 1rem; background: var(--green-soft); border-left: 4px solid var(--ink); border-radius: 0 10px 10px 0; }

.notice { padding: 0.9rem 1rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--orange-soft); margin-bottom: 1rem; }
.notice p:last-child { margin-bottom: 0; }

.report { font-size: 1rem; }
.report table { border-collapse: collapse; width: 100%; margin-bottom: 1rem; }
.report th, .report td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.report .err { color: #8A1C00; font-weight: 600; }

@media (min-width: 40rem) {
  .page { padding-top: 2.5rem; }
  .startcard { padding: 1.8rem 1.8rem 1.6rem 3.4rem; }
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .option, .chip span { transition: background-color .15s ease, border-color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .option.is-right, .option:has(input:checked) { border: 3px solid CanvasText; }
  .steps .is-now, .steps .is-done { background: CanvasText; }
}
