/* Prüf-App Leergut: Claus-Marke (Blau, Gelb, Lato) nach Apple Human Interface Guidelines, Web-Übertragung.
   Aufbau: Seitenleiste links (Desktop), Kopfleiste (Handy), Inhalt. Beleg: dunkle Bühne mit Scan, helle Scheibe mit dem Wert.
   Leichtgewichtig für alte Rechner: kein Weichzeichner auf großen Flächen, Zoom nur per transform, keine Bibliotheken.
   Ältere Browser: keine :has()- oder color-mix()-Abhängigkeit, dvh mit vh-Fallback. */
@font-face { font-family: "Lato"; src: url(fonts/Lato-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(fonts/Lato-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url(fonts/Lato-Black.ttf); font-weight: 900; font-display: swap; }

:root {
  --blau: #0081c9; --blau-knopf: #0077b8; --blau-knopf-text: #fff; --blau-text: #006195; --blau-hauch: #e6f2fa;
  --gelb: #fec800; --gelb-hauch: #fff6d1; --gelb-text: #6b4e00;
  --tinte: #1d1d1f; --grau: #6e6e73; --kapsel-text: #5c5c61; --linie: rgba(60,60,67,.14);
  --flaeche: #f5f5f7; --leiste: #ececf0; --papier: #fff; --feld: #fff; --dezent: #f0f0f3; --dezent2: #e4e4e8;
  --gut: #1f7a44; --gut-hauch: #e7f5ec; --warn: #b3261e; --warn-hauch: #fbebe9; --amber: #8a5a00; --amber-hauch: #fff2cf;
  --buehne: #1a1b1f; --scheibe: rgba(255,255,255,.94);
  --radius: 14px; --radius-k: 10px;
  --schatten: 0 1px 2px rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.04);
  --fokus: 0 0 0 4px rgba(0,129,201,.35);
}
@media (prefers-color-scheme: dark) {
  :root { --blau: #3ea6e8; --blau-knopf: #3ea6e8; --blau-knopf-text: #001424; --blau-text: #6fc0f0; --blau-hauch: #10283a;
    --gelb-hauch: #3a2e10; --gelb-text: #f0c060; --tinte: #f5f5f7; --grau: #a1a1a6; --kapsel-text: #c7c7cc; --linie: rgba(84,84,88,.6);
    --flaeche: #000; --leiste: #141416; --papier: #1c1c1e; --feld: #2c2c2e; --dezent: #232326; --dezent2: #2c2c2e;
    --gut: #5fd38a; --gut-hauch: #15301e; --warn: #ff7b70; --warn-hauch: #3a1c1a; --amber: #f0c060; --amber-hauch: #3a2e10;
    --buehne: #0c0c0e; --scheibe: rgba(28,28,30,.96); --schatten: none; color-scheme: dark; }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; font-size: 106.25%; }  /* 17 px Body wie HIG, skaliert mit der Systemschrift */
body { margin: 0; background: var(--flaeche); color: var(--tinte); font: 400 1rem/1.47 "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.65rem; font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.27; letter-spacing: -.012em; }
h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
a { color: var(--blau-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .15em; }
:focus-visible { outline: none; box-shadow: var(--fokus); border-radius: var(--radius-k); }
main:focus { outline: none; box-shadow: none; }
@media (forced-colors: active) { :focus-visible, input:focus, select:focus { outline: 3px solid Highlight; outline-offset: 2px; } }
::selection { background: rgba(0,129,201,.28); }
input, textarea { caret-color: var(--blau); }
code { font: 500 .92em/1 ui-monospace, "SF Mono", Menlo, monospace; }
.leise { color: var(--grau); font-size: .88rem; }
.klein { font-size: .8rem; color: var(--grau); }
.gut { color: var(--gut); } .warn { color: var(--warn); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.erklaerung { text-transform: none; letter-spacing: 0; }
.abstand { margin-bottom: 1rem; } .nowrap { white-space: nowrap; } .mittig { text-align: center; } .knopf.breit { justify-content: center; }
.abschnittstitel { margin: 1.75rem 0 .75rem; } .hinweiskarte { display: grid; gap: 1rem; max-width: 34rem; }
.sprung { position: absolute; left: 1rem; top: -3rem; z-index: 40; background: var(--blau-knopf); color: var(--blau-knopf-text); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; }
.sprung:focus { top: .6rem; text-decoration: none; }

/* Aufbau: Seitenleiste links, Inhalt rechts */
body { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
body.frei, body.anmeldung { display: block; }
.seitenleiste { position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--leiste); padding: 1.3rem .85rem 1rem; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; border-right: 1px solid var(--linie); }
.seitenleiste .logo { display: block; padding: 0 .5rem; }
.seitenleiste .logo img { height: 26px; width: auto; display: block; }
.seitenleiste nav { display: grid; gap: .15rem; align-content: start; overflow-y: auto; }
.seitenleiste h2 { font-size: .74rem; font-weight: 700; color: var(--grau); text-transform: uppercase; letter-spacing: .05em; margin: .9rem .6rem .35rem; }
.seitenleiste nav a, .seitenleiste nav .zeile { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: var(--radius-k); font-size: .94rem; color: var(--tinte); }
.seitenleiste nav a:hover { background: var(--dezent2); text-decoration: none; }
.seitenleiste nav a[aria-current] { background: var(--blau-knopf); color: var(--blau-knopf-text); font-weight: 700; }
.seitenleiste nav i { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--grau); background: var(--dezent2); padding: .1rem .55rem; border-radius: 999px; min-width: 1.6rem; text-align: center; }
.seitenleiste nav a[aria-current] i { background: rgba(255,255,255,.22); color: inherit; }
.seitenleiste nav .zeile { color: var(--grau); font-size: .88rem; padding: .3rem .7rem; }
.seitenleiste nav .zeile i { background: transparent; font-weight: 700; color: var(--tinte); }
.seitenleiste .ich { display: grid; gap: .5rem; padding: 0 .3rem; }
.person { display: inline-flex; align-items: center; gap: .55rem; color: var(--tinte); font-size: .94rem; font-weight: 500; padding: .3rem .4rem; border-radius: var(--radius-k); }
.person:hover { text-decoration: none; background: var(--dezent2); }
.person i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--blau); color: #fff; font-weight: 700; font-size: .78rem; display: grid; place-items: center; flex: none; }
.kopfleiste { display: none; }
main { padding: 1.75rem 2.25rem 6rem; min-width: 0; }
.eng { max-width: 52rem; }

/* Werkzeugleiste oben: Titel, Suche, Hauptaktion */
.werkzeuge { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.werkzeuge h1 { margin-right: auto; }
.suche { position: relative; }
.suche input { width: 15rem; max-width: 100%; padding-left: 2.1rem; background: var(--dezent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") .7rem center no-repeat; border-color: transparent; border-radius: 999px; }
.stand { display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--grau); font-size: .88rem; margin: 0 0 .9rem; }
.stand b { color: var(--tinte); font-size: 1.1rem; font-weight: 900; margin-right: .25rem; }
.stand .rechts { margin-left: auto; }
.nur-mobil { display: none !important; }

/* Knöpfe: Kapseln, Druck auf :active */
.knopf { display: inline-flex; align-items: center; gap: .4rem; font: 700 .88rem/1 inherit; padding: .7rem 1.05rem; border-radius: 999px; border: 0; background: var(--dezent2); color: var(--tinte); cursor: pointer; text-decoration: none; transition: transform .1s ease, background .15s ease; }
.knopf:hover { text-decoration: none; filter: brightness(.96); }
.knopf:active { transform: scale(.97); }
.knopf.haupt { background: var(--blau-knopf); color: var(--blau-knopf-text); }
.knopf.haupt:hover { filter: brightness(.92); }
.knopf.leise { padding: .45rem .8rem; font-size: .8rem; }
.knopf.gefahr { color: var(--warn); }
.knopf[disabled] { opacity: .45; cursor: not-allowed; }
.knopf kbd { font: 700 .7rem/1 inherit; border: 1px solid rgba(127,127,127,.45); border-radius: 5px; padding: .15rem .3rem; margin-left: .2rem; }
form.inline { display: inline; }

/* Rückmeldung */
.toast { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 2rem); display: flex; align-items: center; gap: .8rem; background: var(--tinte); color: var(--flaeche); font-size: .88rem; font-weight: 700; padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px; box-shadow: 0 8px 30px rgba(0,0,0,.25); animation: toast 6s ease forwards; }
.toast .rueck { font: 700 .82rem/1 inherit; color: var(--tinte); background: var(--flaeche); border: 0; border-radius: 999px; padding: .45rem .8rem; cursor: pointer; }
.toast:hover, .toast:focus-within { animation-play-state: paused; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -8px); } 5%, 90% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -8px); visibility: hidden; } }

/* Karten, Listen */
.karte { background: var(--papier); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1rem 1.1rem; }
.kopfzeile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.reiter { display: inline-flex; background: var(--dezent2); border-radius: 999px; padding: 3px; margin: 0 0 .75rem; max-width: 100%; overflow-x: auto; }
.reiter a { padding: .4rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--kapsel-text); white-space: nowrap; }
.reiter a:hover { text-decoration: none; color: var(--tinte); }
.reiter a[aria-current] { background: var(--papier); color: var(--tinte); font-weight: 700; box-shadow: var(--schatten); }
.reiter span { margin-left: .35rem; color: var(--grau); font-weight: 400; }
.liste { background: var(--papier); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
table { width: 100%; border-collapse: collapse; background: var(--papier); font-size: .94rem; }
th { text-align: left; font-size: .8rem; font-weight: 700; color: var(--grau); padding: .7rem 1rem; border-bottom: 1px solid var(--linie); }
td { padding: .7rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
td:first-child { white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--dezent); }
td a b { color: var(--blau-text); }
td.pfeil { width: 2rem; text-align: right; }
td.pfeil a { color: var(--grau); font-size: 1.3rem; line-height: 1; }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; line-height: 1.1; }
.chip.gelb { background: var(--gelb); color: #1d1d1f; } .chip.gut { background: var(--gut-hauch); color: var(--gut); } .chip.blau { background: var(--blau-hauch); color: var(--blau-text); } .chip.warn { background: var(--warn-hauch); color: var(--warn); } .chip.grau { background: var(--dezent2); color: var(--kapsel-text); }
.leer { color: var(--grau); font-size: .88rem; padding: 1rem; }
.fertig { display: grid; justify-items: center; gap: .35rem; padding: 2rem 1rem; text-align: center; }
.fertig .haken { width: 56px; height: 56px; border-radius: 50%; background: var(--gut-hauch); color: var(--gut); font-size: 1.65rem; font-weight: 900; display: grid; place-items: center; animation: pop .45s cubic-bezier(.16,1,.3,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Formulare */
label { display: grid; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--grau); }
input, select { font: 400 1rem/1.3 inherit; color: var(--tinte); padding: .6rem .7rem; border: 1px solid var(--linie); border-radius: var(--radius-k); background: var(--feld); min-width: 0; }
input:focus, select:focus { border-color: var(--blau); box-shadow: var(--fokus); outline: none; }
input.gelb { border-color: var(--gelb); background: var(--gelb-hauch); }
input.gross { font-size: 1.53rem; font-weight: 900; text-align: center; padding: .4rem; }
input.geprueft { border-color: var(--gut); box-shadow: 0 0 0 3px var(--gut-hauch); }
.passfeld { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; align-items: stretch; }
.passfeld .zeigen { font: 700 .8rem/1 inherit; color: var(--blau-text); background: var(--dezent2); border: 0; border-radius: var(--radius-k); padding: 0 .8rem; cursor: pointer; }
.passfeld .zeigen[aria-pressed=true] { background: var(--blau-hauch); }
.hinweis { padding: .7rem 1rem; border-radius: var(--radius-k); font-size: .88rem; margin-bottom: 1rem; }
.hinweis.warn { background: var(--warn-hauch); color: var(--warn); }
.hinweis.amber { background: var(--amber-hauch); color: var(--amber); }
.hinweiszeile { margin-bottom: 1rem; }

/* Anmelden, Einladung, Passwort */
body.anmeldung main { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 2rem 1rem; }
.anmelden { width: min(100%, 24rem); display: grid; gap: 1rem; padding: 1.75rem 1.5rem; }
.anmelden img { height: 44px; width: auto; justify-self: start; }
.anmelden h1 { font-size: 1.3rem; }

/* Benutzer */
.einladen { display: grid; grid-template-columns: 1fr 1.4fr auto auto; gap: .6rem; align-items: end; }
.einladung .link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; margin-top: .5rem; }
.einladung .link input { font-size: .82rem; }

/* Beleg: Kopf */
.pruefkopf .fortschritt { color: var(--grau); font-size: .88rem; }
.pruefkopf .aktionen { display: flex; gap: .5rem; flex-wrap: wrap; }
.balken { height: 4px; border-radius: 999px; background: var(--dezent2); margin: -.25rem 0 1rem; overflow: hidden; }
.balken span { display: block; height: 100%; width: 100%; background: var(--blau); border-radius: 999px; transform-origin: left; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.segment { display: inline-flex; background: var(--dezent2); border-radius: 999px; padding: 3px; }
.segment button { border: 0; background: transparent; color: var(--kapsel-text); font: inherit; font-size: .84rem; font-weight: 500; padding: .4rem .85rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.segment button[aria-pressed=true] { background: var(--papier); color: var(--tinte); font-weight: 700; box-shadow: var(--schatten); }
body.fokus-offen .pruefkopf .aktionen, body.fokus-offen .hinweiszeile { display: none; }

/* Beleg: Bühne (Schritt für Schritt) */
.buehne { position: relative; background: var(--buehne); border-radius: var(--radius); overflow: hidden; height: calc(100vh - 11rem); height: calc(100dvh - 11rem); min-height: 30rem; }
button.lupe { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; }
.lupe.nah { cursor: zoom-out; }
.lupe.laedt .blatt { opacity: 0; }
.lupe.laedt::after { content: "Scan lädt …"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: .88rem; }
.blatt { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; transition: transform .26s cubic-bezier(.2,.8,.2,1); }
.blatt img { width: 100%; display: block; background: #fff; }
.marke { position: absolute; border: 2px solid var(--gelb); border-radius: 3px; box-shadow: 0 0 0 100vmax rgba(10,10,12,.5); pointer-events: none; }
.pillen { position: absolute; left: 1.25rem; top: 1.25rem; display: flex; gap: .5rem; pointer-events: none; }
.pille { background: rgba(255,255,255,.14); color: #fff; font-size: .84rem; font-weight: 700; padding: .45rem .85rem; border-radius: 999px; }
.pille.leise { background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); font-weight: 400; }
.tasten { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--grau); margin-top: .5rem; }
.tasten kbd { font: 700 .7rem/1 inherit; border: 1px solid var(--linie); border-radius: 5px; padding: .15rem .35rem; color: var(--tinte); }
.tasten.hell { position: absolute; left: 1.25rem; bottom: 1.1rem; right: calc(min(26rem, 46%) + 2.5rem); color: rgba(255,255,255,.6); pointer-events: none; }
.tasten.hell kbd { color: #fff; border-color: rgba(255,255,255,.35); }
.scheibe { position: absolute; right: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: min(26rem, 46%); background: var(--scheibe); border-radius: 18px; padding: 1.2rem 1.4rem; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .75rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.scheibe header { display: flex; align-items: center; gap: 1rem; font-size: .88rem; color: var(--grau); }
.scheibe header .schritt { font-weight: 700; color: var(--tinte); white-space: nowrap; }
.scheibe header .balken.klein { flex: 1; margin: 0; height: 4px; }
.scheibe .wert { display: grid; justify-items: center; align-content: center; gap: .55rem; text-align: center; }
.scheibe .was { font-size: .94rem; color: var(--grau); display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; justify-content: center; }
.scheibe .was b { color: var(--tinte); }
.scheibe .was .bew:not(:empty)::before { content: "· "; }
.scheibe .wert input { width: min(100%, 13rem); text-align: center; font-size: 3.4rem; font-weight: 900; padding: .25rem .5rem; border-radius: 18px; border: 2px solid var(--blau); background: var(--papier); color: var(--tinte); letter-spacing: .02em; box-shadow: 0 0 0 5px rgba(0,129,201,.16); }
.scheibe .wert input[inputmode=text] { font-size: 2.1rem; letter-spacing: 0; width: min(100%, 16rem); }
.scheibe .wert input:focus { outline: 0; box-shadow: 0 0 0 5px rgba(0,129,201,.3); }
.scheibe .wert input::placeholder { color: var(--grau); font-weight: 400; font-size: 1.4rem; letter-spacing: 0; }
.vorschlaege { display: flex; gap: .4rem; justify-content: center; align-items: center; flex-wrap: wrap; min-height: 2.2rem; }
.vorschlaege button { font: 700 .9rem/1 inherit; padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--linie); background: var(--papier); color: var(--tinte); cursor: pointer; }
.vorschlaege button[aria-pressed=true] { border-color: var(--blau); background: var(--blau-hauch); color: var(--blau-text); }
.vorschlaege small { color: var(--grau); font-size: .8rem; }
.zusammenfassung { list-style: none; margin: 0; padding: 0; overflow: auto; display: grid; gap: .3rem; align-content: start; }
.zusammenfassung li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .8rem; background: var(--dezent); border-radius: var(--radius-k); font-size: .92rem; }
.zusammenfassung li b { font-size: 1.05rem; }
.zusammenfassung li.leer b { color: var(--grau); font-weight: 400; }
.zusammenfassung li.still { background: transparent; color: var(--grau); font-size: .85rem; padding: .25rem .8rem; }
.zusammenfassung h4 { font-size: .8rem; color: var(--grau); margin: .5rem .8rem 0; font-weight: 700; }
.scheibe footer { display: flex; gap: .5rem; }
.scheibe footer .knopf.haupt { flex: 1; justify-content: center; font-size: 1.05rem; min-height: 3rem; }
.scheibe footer .knopf:disabled { opacity: .35; }

/* Beleg: Formular */
.pruefung { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.scan { background: var(--papier); border-radius: var(--radius); box-shadow: var(--schatten); padding: .6rem; position: sticky; top: 1rem; margin: 0; }
.scan img { width: 100%; display: block; border-radius: 10px; }
.scan figcaption { font-size: .8rem; color: var(--grau); padding: .4rem .3rem 0; display: flex; justify-content: space-between; }
form.werte { display: grid; gap: .75rem; }
.abschnitt { font-size: .8rem; font-weight: 700; color: var(--grau); text-transform: uppercase; letter-spacing: .04em; margin: .25rem 0 -.25rem; display: flex; align-items: baseline; gap: .5rem; }
.abschnitt .klein { font-weight: 400; }
.zeile { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 7.5rem 6.5rem; gap: .6rem; align-items: end; }
.gelbzeile { background: var(--papier); border: 2px solid var(--gelb); border-radius: var(--radius); padding: .7rem .8rem; box-shadow: var(--schatten); }
.gelbzeile small { font-weight: 400; color: var(--grau); font-size: .74rem; }
.kasten { display: grid; place-items: center; height: 3.6rem; width: 6.5rem; border: 1px solid var(--linie); border-radius: var(--radius-k); background: #fff; overflow: hidden; }
.kasten img { height: 100%; width: 100%; object-fit: contain; display: block; }
.kasten.leer { font-size: 1.18rem; background: var(--feld); color: var(--grau); }
.block { background: var(--papier); border-radius: var(--radius); box-shadow: var(--schatten); padding: .5rem 1rem; }
.block > summary { cursor: pointer; padding: .5rem 0; list-style: none; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; font-size: .88rem; }
.block > summary::before { content: "›"; color: var(--grau); font-size: 1.18rem; line-height: 1; transition: transform .15s ease; }
.block[open] > summary::before { transform: rotate(90deg); }
.block > summary::-webkit-details-marker { display: none; }
.block .zeile { margin: .6rem 0; }
.block .zeile:not(:last-child) { padding-bottom: .6rem; border-bottom: 1px solid var(--linie); }
.streifen { width: 100%; display: block; border: 1px solid var(--linie); border-radius: 8px; background: #fff; margin: .5rem 0; }
.kopf { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; margin: .5rem 0; }
.block label.breit { margin: .5rem 0; }

/* Handy und Tablet */
@media (max-width: 860px) {
  body { display: block; }
  .seitenleiste { display: none; }
  .kopfleiste { display: flex; align-items: center; gap: .6rem; height: 52px; padding: 0 1rem; background: var(--leiste); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 20; }
  .kopfleiste .logo img { height: 24px; display: block; }
  .kopfleiste nav { display: flex; gap: .15rem; margin-left: .5rem; }
  .kopfleiste nav a { font-size: .88rem; font-weight: 500; color: var(--grau); padding: .4rem .7rem; border-radius: 999px; }
  .kopfleiste nav a[aria-current] { color: var(--tinte); background: var(--dezent2); font-weight: 700; }
  .kopfleiste .rechts { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
  main { padding: 1rem 1rem 6rem; }
  .nur-mobil { display: inline-flex !important; }
  .werkzeuge h1 { font-size: 1.4rem; flex-basis: 100%; }
  .suche { flex: 1; } .suche input { width: 100%; }
  .stand .rechts { margin-left: 0; }
  table, thead, tbody, tr, td { display: block; } thead { display: none; }
  tr { border-bottom: 1px solid var(--linie); padding: .5rem 0; position: relative; } td { border: 0; padding: .15rem 1rem; } td:empty { display: none; }
  td.pfeil { position: absolute; right: .5rem; top: .8rem; }
  #belege td:nth-child(6) { display: none; }
  td a { display: inline-block; min-height: 44px; line-height: 44px; }
  .pruefung { grid-template-columns: 1fr; } .scan { position: static; order: 2; }
  .zeile { grid-template-columns: 6.5rem 1fr; }
  .pruefkopf .aktionen { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--leiste); border-top: 1px solid var(--linie); z-index: 20; flex-wrap: nowrap; }
  .pruefkopf .aktionen .knopf.haupt { flex: 1; justify-content: center; min-height: 3rem; }
  .pruefkopf .aktionen .nebensache, .tasten, .pruefkopf .fortschritt { display: none; }
  .segment { order: 5; }
  .buehne { height: auto; min-height: 0; background: transparent; border-radius: 0; overflow: visible; display: grid; gap: .75rem; }
  button.lupe { position: relative; height: 38vh; height: 38dvh; min-height: 13rem; border-radius: var(--radius); background: var(--buehne); }
  .pillen, .tasten.hell { display: none; }
  .scheibe { position: static; width: auto; box-shadow: var(--schatten); padding: 1rem 1rem calc(1rem + 4.2rem); }
  .scheibe footer { position: fixed; left: 0; right: 0; bottom: 0; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--leiste); border-top: 1px solid var(--linie); z-index: 21; }
  .toast { top: auto; bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
  .einladen { grid-template-columns: 1fr; }
}
@media (min-width: 861px) and (max-width: 1100px) { body { grid-template-columns: 12.5rem minmax(0, 1fr); } .scheibe { width: 48%; } }

/* HIG: Trefferflächen 44 pt auf Touch-Geräten, Hover nur bei Maus, Barrierefreiheit */
@media (pointer: coarse) {
  .knopf, .knopf.leise, input, select, .reiter a, .kopfleiste nav a, .person, .segment button, .vorschlaege button, .toast .rueck, .seitenleiste nav a { min-height: 44px; }
  .block > summary { min-height: 44px; align-content: center; }
  .kasten { height: 4rem; }
}
@media (hover: none) { .knopf:hover, tbody tr:hover td { filter: none; background: inherit; } }
@media (prefers-reduced-motion: reduce) { .knopf, .knopf:active, .block > summary::before, .blatt, .balken span { transition: none; } .knopf:active { transform: none; } .toast { animation: none; } .fertig .haken { animation: none; } }
@media (prefers-contrast: more) { :root { --linie: rgba(60,60,67,.5); --grau: #4a4a4f; } }
@media print { .seitenleiste, .kopfleiste, .pruefkopf .aktionen, .toast, .buehne { display: none; } body { display: block; background: #fff; } }
