:root {
  --bg: #f4f1ea; --ink: #1e2a22; --muted: #5f6b63; --green: #2e7d4f; --lgreen: #d9ebdc;
  --orange: #e8732a; --red: #c0392b; --card: #fff; --line: #dcd8cf;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.4; }
header { background: var(--ink); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; }
header .logo { width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 700; }
header h1 { font-size: 18px; margin: 0; flex: 1; }
header .netz { font-size: 13px; padding: 3px 8px; border-radius: 10px; background: #34453a; }
header .netz.off { background: var(--orange); }
main { padding: 14px; max-width: 640px; margin: 0 auto; }
.card { background: var(--card); border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card h2 { font-size: 19px; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 15px; }
.small { font-size: 13px; }
button, .btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 15px; font-size: 17px; font-weight: 600; background: var(--green); color: #fff; margin-top: 10px; text-align: center; text-decoration: none; }
button.sek, .btn.sek { background: #e7e3da; color: var(--ink); }
button.warn { background: var(--orange); }
button:disabled { background: #c9c5bc; color: #fff; }
input, select { width: 100%; padding: 12px; font-size: 17px; border-radius: 12px; border: 1px solid var(--line); margin-top: 6px; background: #fff; }
label { display: block; margin-top: 10px; font-weight: 600; font-size: 15px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.punkt { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.punkt:first-of-type { border-top: 0; }
.punkt .nr { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.punkt .nr.ok { background: var(--green); }
.punkt .txt { flex: 1; }
.punkt button { width: auto; margin: 0; padding: 10px 14px; font-size: 15px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; background: #e7e3da; }
.pill.ok { background: var(--lgreen); color: var(--green); }
.pill.no { background: #f6dcd8; color: var(--red); }
.gross { font-size: 44px; font-weight: 800; text-align: center; margin: 4px 0; }
.mitte { text-align: center; }
canvas.radar { width: 100%; max-width: 320px; aspect-ratio: 1; display: block; margin: 0 auto; }
.kamera { position: relative; background: #000; border-radius: 14px; overflow: hidden; }
.kamera video { width: 100%; display: block; max-height: 55vh; object-fit: cover; }
.kamera .rec { position: absolute; top: 10px; left: 10px; color: #fff; font-weight: 700; background: rgba(0,0,0,.5); padding: 4px 10px; border-radius: 10px; }
.kamera .rahmen { position: absolute; inset: 22% 18%; border: 4px solid rgba(255,255,255,.85); border-radius: 14px; }
.kamera .rahmen.ok { border-color: #4cd07d; }
.schritte { display: flex; gap: 6px; margin-bottom: 12px; }
.schritte span { flex: 1; height: 6px; border-radius: 3px; background: #d6d2c8; }
.schritte span.done { background: var(--green); }
.schritte span.akt { background: var(--orange); }
.zeile { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.zeile:first-child { border-top: 0; }
.zeile b { text-align: right; word-break: break-all; }
.siegel { text-align: center; padding: 10px 0; }
.siegel .kreis { width: 110px; height: 110px; border-radius: 50%; background: var(--lgreen); margin: 0 auto; display: grid; place-items: center; }
.hash { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; color: var(--muted); }
.hinweis { background: #fff4e6; border-left: 4px solid var(--orange); padding: 10px 12px; border-radius: 8px; font-size: 15px; margin-top: 10px; }
.fehler { background: #fbe5e2; border-left: 4px solid var(--red); padding: 10px 12px; border-radius: 8px; font-size: 15px; margin-top: 10px; }
.check { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.check .ic { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.check .ic.ok { background: var(--green); }
.check .ic.no { background: var(--red); }
nav.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
nav.tabs a { flex: 1; text-align: center; padding: 10px; border-radius: 12px; background: #e7e3da; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
nav.tabs a.akt { background: var(--ink); color: #fff; }
.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: #ddd; }
@media print { header, nav, .noprint { display: none !important; } body { background: #fff; } }

/* Feldmodus: groß, kontrastreich, handschuhtauglich */
body.feld { font-size: 20px; background: #fff; }
body.feld button, body.feld .btn { padding: 22px; font-size: 21px; border-radius: 16px; }
body.feld .muted { color: #2a332d; }
body.feld .card { box-shadow: 0 0 0 2px #1e2a22; }
body.feld .gross { font-size: 60px; }
body.feld input, body.feld select { font-size: 20px; padding: 16px; }

footer.rechtlich { text-align: center; font-size: 13px; color: var(--muted, #666); padding: 18px 16px 28px; }
footer.rechtlich a { color: inherit; }
.rechtstext h3 { font-size: 16px; margin: 18px 0 6px; }
.rechtstext p { line-height: 1.5; }
.datenhinweis { font-size: 13px; }
