:root {
  --akzent: #f18e00; --akzent-text: #9a5300; --akzent-hell: #ffedd5; --text: #1f2937; --grau: #6b7280; --bg: #f5f5f4; --karte: #fff;
  --rand: #d1d5db; --fehler: #b91c1c; --ok: #15803d; --blau: #1d4ed8; --gruen: #15803d; --gelb: #fef3c7;
  --abstand: 14px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.45; }
main { max-width: 640px; margin: 0 auto; padding: calc(var(--abstand) + env(safe-area-inset-top)) var(--abstand) calc(96px + env(safe-area-inset-bottom)); }
h1 { font-size: 1.5rem; margin: 0 0 .5rem; } h2 { font-size: 1.1rem; margin: .8rem 0 .4rem; }
p { margin: .4rem 0; }
.klein { font-size: .85rem; color: var(--grau); } .gross { font-size: 1.6rem; font-weight: 700; }
.karte { background: var(--karte); border-radius: 16px; padding: var(--abstand); margin-bottom: var(--abstand); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.klein-karte { padding: 10px var(--abstand); }
.kopf { display: flex; justify-content: space-around; text-align: center; }
.leer { color: var(--grau); }
button, input, select, textarea { font: inherit; }
button { min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--rand); background: #fff; color: var(--text); cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primaer + .sekundaer { margin-top: 10px; }
.primaer { background: var(--akzent); color: #111; border-color: var(--akzent); font-weight: 600; }
.sekundaer { background: #fff; }
.gefahr { color: var(--fehler); border-color: var(--fehler); }
.primaer.gefahr { background: var(--fehler); color: #fff; }
.betont { box-shadow: 0 0 0 3px var(--akzent-hell); border-width: 2px; }
.klein-btn { min-height: 44px; padding: 6px 12px; }
.link { border: 0; background: none; color: var(--akzent-text); text-decoration: underline; margin-top: 8px; }
label { display: block; margin: .6rem 0; font-weight: 600; font-size: .95rem; }
label.zeile { font-weight: 400; display: flex; gap: 10px; align-items: center; min-height: 44px; }
input[type=text], input:not([type]), input[type=number], input[type=email], input[type=date], select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 1px solid var(--rand); border-radius: 10px; background: #fff; }
input[type=checkbox], input[type=radio] { width: 22px; height: 22px; }
textarea { min-height: 90px; }
fieldset { border: 1px solid var(--rand); border-radius: 12px; margin: .8rem 0; }
.zwei { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; } .zwei > button { flex: 1 1 120px; }
.zeile-sp { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fach-zeile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f1; }
.fach-zeile > div { flex: 1; }
.marke { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--akzent-hell); color: #7c4100; font-weight: 600; }
progress { width: 100%; height: 12px; accent-color: var(--akzent); }
.umschalter { display: flex; gap: 6px; } .umschalter button[aria-pressed=true] { background: var(--akzent); color: #111; border-color: var(--akzent); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--rand); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; border: 0; border-radius: 0; display: flex; flex-direction: column; align-items: center; font-size: .72rem; min-height: 56px; background: none; }
.tabs button span { font-size: 1.3rem; } .tabs button[aria-current=page] { color: var(--akzent-text); font-weight: 700; box-shadow: inset 0 3px 0 var(--akzent); }
.hinweis { background: var(--gelb); border-radius: 12px; padding: 10px 12px; margin-bottom: var(--abstand); }
.hinweis.ok { background: #dcfce7; } .hinweis.warn { background: #fee2e2; }
.fehler { color: var(--fehler); font-weight: 600; } .ok-text { color: var(--ok); font-weight: 600; }
.lernkarte { border-left: 10px solid var(--rand); padding: 18px; }
.typ-tippen { border-left-color: var(--blau); } .typ-sagen { border-left-color: var(--gruen); }
.klein-karte.typ-tippen, .klein-karte.typ-sagen { border-left-width: 6px; border-left-style: solid; }
.frage { font-size: 1.35rem; font-weight: 700; margin: 12px 0; white-space: pre-wrap; }
.antwort { background: var(--akzent-hell); border-radius: 12px; padding: 12px; margin: 12px 0; font-size: 1.15rem; white-space: pre-wrap; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(24px + env(safe-area-inset-bottom)); background: #111827; color: #fff; padding: 10px 16px; border-radius: 99px; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: .08em; text-align: center; background: var(--akzent-hell); padding: 14px; border-radius: 12px; user-select: all; }
.bericht { white-space: pre-wrap; background: #f3f4f6; padding: 10px; border-radius: 10px; font-size: .9rem; }
.abz.gesperrt { color: var(--grau); }
.menue { display: grid; gap: 10px; } .menue button, .menue a.knopf { text-align: left; padding: 14px; }
.menue a.knopf { display: block; min-height: 44px; border-radius: 12px; border: 1px solid var(--rand); background: #fff; color: var(--text); text-decoration: none; box-sizing: border-box; }
.rechtstext h3 { font-size: 1rem; margin: 1em 0 .2em; }
.gitter { display: grid; gap: 4px; } .gz { display: grid; grid-template-columns: 26px repeat(5, 1fr); gap: 4px; align-items: center; font-size: .8rem; text-align: center; }
.gz select { margin: 0; padding: 6px 2px; font-size: .8rem; min-width: 0; }
.datei input { margin-top: 6px; }
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dialog { background: #fff; border-radius: 16px; padding: 18px; max-width: 420px; width: 100%; }
hr { border: 0; border-top: 1px solid var(--rand); margin: 18px 0; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rein .25s ease-out; } @keyframes rein { from { opacity: 0; transform: translate(-50%, 8px); } } }
.nur-lesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
select, summary { min-height: 44px; }
summary { display: flex; align-items: center; cursor: pointer; }
.gz { grid-template-columns: 26px repeat(5, minmax(0, 1fr)); }
.gz select { min-height: 44px; font-size: .75rem; padding: 4px 0; }
.klein, .leer { color: #4b5563; }

.rechtliches { text-align: center; font-size: .8rem; color: #4b5563; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); }
.rechtliches a { color: inherit; min-height: 44px; display: inline-block; line-height: 44px; }
.rechtstext { max-width: 720px; margin: 0 auto; padding: var(--abstand); line-height: 1.5; }
.rechtstext h1 { margin-top: 0; }
.rechtstext h2 { font-size: 1.1rem; margin-top: 1.5em; }
