/* Layout: eine Frage pro Bildschirm, große Antwortkacheln zum Antippen, Fortschritt oben wie Furchen auf dem Acker */
:root {
  --bg: #f4f6ef;
  --surface: #ffffff;
  --fg: #1f2a17;
  --muted: #5b6650;
  --line: #d7dccb;
  --accent: #4d6b2f;
  --accent-ink: #ffffff;
  --straw: #c9a227;
  --chosen: #e6eed9;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151a11; --surface: #1e2518; --fg: #e8eddf; --muted: #a3ae95; --line: #36402c;
    --accent: #8fb35e; --accent-ink: #13180f; --straw: #e0bd4f; --chosen: #2a3620; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151a11; --surface: #1e2518; --fg: #e8eddf; --muted: #a3ae95; --line: #36402c;
  --accent: #8fb35e; --accent-ink: #13180f; --straw: #e0bd4f; --chosen: #2a3620; color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 18px; line-height: 1.5;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 40px;
}
.wrap { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
header { display: flex; flex-direction: column; gap: 10px; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.furchen { display: grid; grid-template-columns: repeat(var(--n, 20), 1fr); gap: 3px; }
.furchen span { height: 8px; border-radius: 2px; background: var(--line); }
.furchen span.done { background: var(--accent); }
.furchen span.now { background: var(--straw); }
.stand { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; text-wrap: balance; margin: 0; }
h1 { font-size: 40px; }
h2 { font-size: 30px; }
.teil { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
p { margin: 0; max-width: 62ch; }
.hinweis { color: var(--muted); font-size: 16px; }
.optionen { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 12px 16px;
  background: var(--surface); color: var(--fg); border: 2px solid var(--line); border-radius: 10px;
  font: inherit; text-align: left; cursor: pointer;
}
.opt:hover { border-color: var(--accent); }
.opt:focus-visible, .btn:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid var(--straw); outline-offset: 2px; }
.opt .mark { flex: none; width: 24px; height: 24px; border: 2px solid var(--muted); border-radius: 50%; display: grid; place-items: center; }
.opt.multi .mark { border-radius: 5px; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--chosen); }
.opt[aria-pressed="true"] .mark { border-color: var(--accent); background: var(--accent); }
.opt[aria-pressed="true"] .mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.opt.multi[aria-pressed="true"] .mark::after { width: 10px; height: 6px; border-radius: 0; background: none; border-left: 3px solid var(--accent-ink); border-bottom: 3px solid var(--accent-ink); transform: rotate(-45deg) translate(1px,-1px); }
label.feld { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--muted); }
textarea, input[type="text"] {
  width: 100%; font: inherit; color: var(--fg); background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 96px; resize: vertical; }
.knoepfe { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font: inherit; font-weight: 600; min-height: 54px; padding: 12px 22px; border-radius: 10px; cursor: pointer;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); flex: 1 1 auto;
}
.btn.leise { background: transparent; color: var(--accent); flex: 0 1 auto; }
.btn[disabled] { opacity: .45; cursor: default; }
.ueberspringen { background: none; border: none; color: var(--muted); font: inherit; font-size: 16px; text-decoration: underline; cursor: pointer; align-self: flex-start; padding: 4px 0; }
.karte { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.liste { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
pre.zusammenfassung { white-space: pre-wrap; word-break: break-word; font: 15px/1.45 var(--font-body); margin: 0; max-height: 50vh; overflow: auto; }
.meldung { font-size: 16px; color: var(--accent); min-height: 1.5em; }
@media (prefers-reduced-motion: no-preference) { .frage { animation: rein .18s ease-out; } @keyframes rein { from { transform: translateY(6px); } to { transform: none; } } }
.danke { display: flex; flex-direction: column; gap: 12px; }
.einwilligung { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.einwilligung input { width: 24px; height: 24px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.fehler { color: #a23b2a; }
.versteckt { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
footer { font-size: 15px; color: var(--muted); display: flex; gap: 16px; }
footer a, .karte a { color: var(--accent); }
.wrap.breit { max-width: none; }
.tabelle { overflow-x: auto; }
table.auswertung { border-collapse: collapse; font-size: 15px; }
table.auswertung th, table.auswertung td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; text-align: left; }
table.auswertung form { display: inline; }
h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; margin: 0; }
div.opt { cursor: default; }
.gruppe { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.gruppe:first-child { margin-top: 0; }
