/* Prüfprotokoll-App im Stil von elektrocheckstuttgart.de (Tokens und Schriften von der Website des Kunden, Stand 28.10.2026) */
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Variable.subset.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/PublicSans-Variable.subset.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Regular.subset.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("fonts/SpaceMono-Bold.subset.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --kalkstein-100: #F2EFE8; --kalkstein-200: #E8E3D7;
  --graphite-900: #1A1A1A; --graphite-700: #333333; --graphite-500: #5A6066; --graphite-300: #9DA3A8;
  --spannung-red: #D9342B; --erde-green: #3F8F5A; --warn-amber: #C67A12;
  --grid-line: rgba(26, 26, 26, 0.06); --rule-line: rgba(26, 26, 26, 0.18);
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; font: 16px/1.55 var(--font-body); color: var(--graphite-900);
  background: #fff radial-gradient(circle, var(--grid-line) 1px, transparent 1px) 0 0 / 8px 8px;
}

/* Kopfzeile wie auf der Website: weiß, Haarlinie, Logo links */
.kopf { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--rule-line); padding: 10px 16px; }
.kopf a { display: inline-flex; align-items: center; gap: 12px; color: var(--graphite-900); text-decoration: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.kopf img { height: 30px; }

main { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: 31px; margin: 8px 0 4px; }
h2 { font-size: 25px; margin: 0 0 12px; }
h1 small, .liste small { display: block; font: 12px/1.6 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--graphite-500); margin-top: 6px; }
.hinweis { color: var(--graphite-500); font-size: 14px; margin: -4px 0 12px; }

/* Abschnitte als Kalkstein-Karten wie der Pflichten-Check der Website */
section, main > form.raster { background: var(--kalkstein-100); border: 1px solid var(--rule-line); border-radius: 4px; padding: 20px 16px; margin: 20px 0; }
section form.raster { margin: 12px 0 0; }
.raster { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--graphite-700); }
input, select, textarea { font: 16px var(--font-body); color: var(--graphite-900); padding: 10px 12px; min-height: 48px; width: 100%; background: #fff; border: 1px solid var(--graphite-500); border-radius: 2px; }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--graphite-900); outline-offset: 1px; }

/* Prüfpunkt: Frage + Antwortkacheln (wie die Optionen im Pflichten-Check) */
.punkt { background: #fff; border: 1px solid var(--rule-line); border-radius: 2px; margin: 10px 0; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.punkt legend { float: left; width: 100%; font-weight: 600; font-size: 15px; padding: 0 0 4px; grid-column: 1 / -1; }
.wahl { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border: 1px solid var(--graphite-500); border-radius: 2px; background: #fff; color: var(--graphite-900); font-size: 15px; cursor: pointer; transition: background-color 120ms, border-color 120ms; }
.wahl input { width: 22px; min-height: 22px; margin: 0; accent-color: var(--graphite-900); flex: none; }
.wahl:has(input:checked) { border: 2px solid var(--graphite-900); background: var(--kalkstein-200); font-weight: 600; }
.wahl:has(input[value="OK"]:checked) { border-color: var(--erde-green); }
.wahl:has(input[value="Nicht ok"]:checked) { border-color: var(--spannung-red); }

/* Messpunkte */
.mess { grid-template-columns: 1fr 1fr; }
.mess .wahl { grid-column: 1 / -1; }
.mess.aus { opacity: .55; }
.bew { grid-column: 1 / -1; font: 700 13px var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 10px; border-radius: 2px; background: var(--kalkstein-100); color: var(--graphite-700); justify-self: start; }
.bew.ja { background: #E5F1E9; color: var(--erde-green); }
.bew.nein { background: #FBE6E4; color: var(--spannung-red); }

/* Knöpfe: Graphit wie «Pflichten-Check starten» */
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; font: 600 15px var(--font-body); border-radius: 2px; cursor: pointer; text-decoration: none; transition: background-color 120ms, color 120ms; }
button { background: var(--graphite-900); color: #fff; border: 1px solid var(--graphite-900); }
button:hover { background: var(--graphite-700); }
.knopf, .zweit { background: #fff; color: var(--graphite-900); border: 1px solid var(--graphite-900); }
.knopf:hover, .zweit:hover { background: var(--kalkstein-200); }
.aktion { position: sticky; bottom: 0; z-index: 20; margin: 0 -16px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--rule-line); }
.aktion button { width: 100%; }
.pdfs { display: flex; flex-wrap: wrap; gap: 8px; }

.ok { background: #E5F1E9; color: var(--erde-green); border: 1px solid var(--erde-green); font-weight: 600; padding: 10px 12px; border-radius: 2px; }
.mangel { background: #fff; border: 1px solid var(--rule-line); border-left: 3px solid var(--spannung-red); padding: 10px 12px; margin: 8px 0; border-radius: 2px; }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fotos img { width: 120px; height: 90px; object-fit: cover; border-radius: 2px; border: 1px solid var(--rule-line); }
#sig { width: 100%; max-width: 600px; height: auto; aspect-ratio: 10 / 3; background: #fff; border: 1px dashed var(--graphite-500); border-radius: 2px; touch-action: none; display: block; margin-bottom: 8px; }
.sigklein { height: 40px; vertical-align: middle; }

.liste { list-style: none; padding: 0; margin: 0; }
.liste li { background: #fff; border: 1px solid var(--rule-line); border-radius: 2px; margin: 8px 0; padding: 12px 14px; }
.liste a { color: var(--graphite-900); font-weight: 600; text-decoration: none; }
.liste a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--graphite-900); outline-offset: 2px; }
@media (min-width: 720px) { .aktion { margin: 0; } .aktion button { width: auto; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.kopf { display: flex; align-items: center; justify-content: space-between; }
.kopf .nav { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
.knopf.aktiv { background: var(--graphite-900); color: #fff; }
.zahl { display: inline; font: 12px var(--font-mono); color: var(--graphite-500); margin-left: 8px; }
.katalog { margin: 0; padding-left: 22px; }
.katalog li { background: #fff; border: 1px solid var(--rule-line); border-radius: 2px; padding: 10px 12px; margin: 6px 0; }
.quelle { display: block; font: 11px/1.5 var(--font-mono); color: var(--graphite-500); margin-top: 4px; word-break: break-all; }
.kopf nav { display: flex; gap: 4px; }
.huelle { border: 0; padding: 0; margin: 0; min-width: 0; }
.huelle:disabled { opacity: .8; }
.snapshot { width: 100%; height: 75vh; border: 1px solid var(--graphite-500); background: #fff; margin: 12px 0; }
.gesperrt { background: var(--kalkstein-200); border: 1px solid var(--graphite-900); padding: 10px 12px; border-radius: 2px; font-weight: 600; }
.fehler { background: #FBE6E4; color: var(--spannung-red); border: 1px solid var(--spannung-red); padding: 10px 12px; border-radius: 2px; font-weight: 600; }
form.inline { display: inline-block; margin: 8px 8px 8px 0; }
.gefahr { background: var(--spannung-red); border-color: var(--spannung-red); }
.schmal { max-width: 420px; }
.log { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.log td, .log th { border: 1px solid var(--rule-line); padding: 4px 6px; text-align: left; }
.log tr.nok td { color: var(--spannung-red); }
.kopf { flex-wrap: wrap; gap: 4px 12px; }
.kopf nav { flex-wrap: wrap; gap: 0 2px; }
@media (max-width: 520px) { .kopf nav { width: 100%; justify-content: space-between; } .kopf .nav { padding: 0 4px; font-size: 11px; } }
.log { display: block; overflow-x: auto; }
