/* i-kfz Händlerportal – ruhig und seriös (Design-Schema i-kfz.digital: Dunkelblau, Source Sans 3).
   Nur diese Farben: #0b2d52 #163d68 #1b2733 #5b6b7c #dfe5ec #eef3f8 #f4f6f9 #1f5fa8 #1f7a4d #ffbf47 #b42318 #b45309 #fff */

@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3-latin.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "ikfz-plate"; src: url("/fonts/GlNummernschildMtl.woff2") format("woff2"); font-display: swap; }

:root {
  --nacht: #0b2d52;
  --nacht-2: #163d68;
  --tinte: #1b2733;
  --grau: #5b6b7c;
  --linie: #dfe5ec;
  --hell: #eef3f8;
  --papier: #f4f6f9;
  --blau: #1f5fa8;
  --gruen: #1f7a4d;
  --gelb: #ffbf47;
  --rot: #b42318;
  --bernstein: #b45309;
  --weiss: #fff;
  --r: 10px;
  --schrift: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 17px/1.5 var(--schrift); color: var(--tinte); background: var(--papier); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--blau); }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; }
b, strong { font-weight: 600; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.kopf :focus-visible, .navigation :focus-visible { outline-color: var(--gelb); }
.lauf > .karte + .karte, .lauf > .hinweis + .karte, .lauf > .karte + .hinweis, .lauf > .stapel + .karte, .lauf > .hinweis, .lauf > .hinweis + *, .lauf > .karte + p, .lauf > p + .karte, .lauf > .stapel + p { margin-top: 16px; }
.versteckt { display: none !important; }
.gedimmt { color: var(--grau); }
.klein { font-size: 14px; }
.stapel { display: grid; gap: 16px; }
.reihe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Kopf ---------- */
.kopf { background: var(--nacht); color: var(--weiss); }
.kopf-innen { max-width: 1080px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.marke { display: flex; flex-direction: column; min-width: 0; }
.marke b { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.marke span { font-size: 14px; color: var(--linie); }
.firma { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.kopf-rechts { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--linie); }
.kopf button { background: transparent; color: var(--weiss); border: 1px solid var(--nacht-2); border-radius: var(--r); padding: 6px 12px; font: inherit; cursor: pointer; }
.kopf button:hover { background: var(--nacht-2); }
.navigation { background: var(--nacht-2); }
.navigation-innen { max-width: 1080px; margin: 0 auto; padding: 0 8px; display: flex; flex-wrap: wrap; }
.navigation a { color: var(--weiss); text-decoration: none; padding: 10px 12px; font-size: 16px; border-bottom: 3px solid transparent; }
.navigation a:hover { background: var(--nacht); }
.navigation a.aktiv { border-bottom-color: var(--gelb); font-weight: 600; }
.testband { background: var(--hell); border-bottom: 1px solid var(--linie); color: var(--tinte); font-size: 15px; }
.testband div { max-width: 1080px; margin: 0 auto; padding: 8px 16px; }

/* ---------- Inhalt ---------- */
main:focus { outline: none; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
.seitenkopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.seitenkopf p { color: var(--grau); margin-top: 4px; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 14px; padding: 20px; min-width: 0; }
.karte > h2 { margin-bottom: 12px; }
.raster { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 820px) { .raster { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Knöpfe und Felder ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r); border: 1px solid var(--nacht); background: var(--nacht); color: var(--weiss); font: 600 16px var(--schrift); cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--nacht-2); border-color: var(--nacht-2); }
.knopf:disabled { background: var(--linie); border-color: var(--linie); color: var(--grau); cursor: not-allowed; }
.knopf.zweit { background: var(--weiss); color: var(--nacht); }
.knopf.zweit:disabled, .knopf.zweit:disabled:hover { background: var(--papier); border-color: var(--linie); color: var(--grau); }
.knopf.zweit:hover { background: var(--hell); }
.knopf.klein { min-height: 36px; padding: 6px 12px; font-size: 15px; }
.knopf.breit { width: 100%; }
.feld { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; align-content: start; }
.feld label, .feld .label { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.feld .opt { font-weight: 400; color: var(--grau); }
input, select { font: 17px var(--schrift); color: var(--tinte); background: var(--weiss); border: 1px solid var(--grau); border-radius: var(--r); padding: 10px 12px; min-height: 44px; width: 100%; max-width: 100%; }
input:focus, select:focus { border-color: var(--blau); outline: 2px solid var(--blau); outline-offset: 0; }
input.code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.schalter { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.schalter input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--blau); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 18px; margin-bottom: 12px; padding: 0; }
.abschnitt { display: grid; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--linie); }
.abschnitt:last-of-type { border-bottom: 0; margin-bottom: 0; }

/* Hilfe-Pop-up: Erklärungen nicht im Formular */
.hilfe-knopf { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--grau); background: var(--weiss); color: var(--grau); font: 600 14px/1 var(--schrift); cursor: pointer; padding: 0; flex: none; }
.hilfe-knopf:hover { border-color: var(--blau); color: var(--blau); }
.hilfe-pop { background: var(--hell); border: 1px solid var(--linie); border-radius: var(--r); padding: 10px 12px; font-size: 15px; font-weight: 400; }

/* ---------- Kennzeichen ---------- */
.kz-eingabe { display: flex; align-items: stretch; border: 2px solid var(--tinte); border-radius: 6px; background: var(--weiss); width: 100%; max-width: 420px; overflow: hidden; }
.kz-eingabe .eu { background: var(--blau); color: var(--weiss); font: 600 14px var(--schrift); display: grid; place-items: end center; padding: 0 7px 6px; flex: none; }
.kz-eingabe input { border: 0; border-radius: 0; min-width: 0; font: 400 30px/1 "ikfz-plate", var(--schrift); text-transform: uppercase; padding: 8px 4px 6px; text-align: center; }
.kz-eingabe input:focus { outline: 0; background: var(--hell); }
.kz-eingabe:focus-within { outline: 3px solid var(--blau); outline-offset: 2px; } /* Fokus auf dem Kennzeichen-Feld deutlich sichtbar (Tastatur) */
.kz-eingabe input::placeholder { color: var(--linie); }
.kz-eingabe .ort { flex: 3; }
.kz-eingabe .buchstaben { flex: 2; }
.kz-eingabe .zahl { flex: 4; }
.kz-eingabe .trenn { width: 1px; background: var(--linie); flex: none; }
.schild { display: inline-flex; align-items: stretch; border: 1.5px solid var(--tinte); border-radius: 4px; background: var(--weiss); overflow: hidden; vertical-align: middle; max-width: 100%; }
.schild::before { content: 'D'; background: var(--blau); color: var(--weiss); font: 600 9px var(--schrift); padding: 10px 4px 3px; display: flex; align-items: flex-end; }
.schild span { font: 400 18px/1 "ikfz-plate", var(--schrift); padding: 5px 8px 3px; white-space: pre; color: var(--tinte); }
.schild.gross span { font-size: 30px; padding: 8px 14px 4px; }

/* ---------- Status ---------- */
.status { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 14px; font-weight: 600; background: var(--hell); color: var(--nacht-2); white-space: nowrap; }
.status.s-eingereicht, .status.s-von_hand, .status.s-warnung { background: var(--papier); color: var(--bernstein); border: 1px solid var(--bernstein); }
.status.s-entschieden, .status.s-erledigt { background: var(--papier); color: var(--gruen); border: 1px solid var(--gruen); }
.status.s-abgelehnt, .status.s-fehler, .status.s-nicht_online, .status.s-zurueckgewiesen { background: var(--papier); color: var(--rot); border: 1px solid var(--rot); }
.test { display: inline-block; font-size: 13px; font-weight: 600; color: var(--grau); border: 1px solid var(--linie); border-radius: 4px; padding: 0 6px; margin-left: 6px; }

/* ---------- Listen ---------- */
.liste { display: grid; }
.zeile { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--linie); color: inherit; text-decoration: none; }
.zeile:hover { background: var(--papier); }
.zeile:last-child { border-bottom: 0; }
.zeile .mitte { min-width: 0; }
.zeile .mitte small { display: block; color: var(--grau); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .zeile { grid-template-columns: auto minmax(0, 1fr); } .zeile .mitte { grid-column: 1 / -1; grid-row: 2; } .zeile .status { justify-self: end; white-space: normal; text-align: right; } }
.zeile .schild { justify-self: start; }
.leer { padding: 24px 4px; color: var(--grau); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter input { max-width: 320px; }
dl.angaben { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 16px; margin: 0; }
dl.angaben dt { color: var(--grau); }
dl.angaben dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { dl.angaben { grid-template-columns: minmax(0, 1fr); gap: 2px; } dl.angaben dd { margin-bottom: 8px; } }
ol.verlauf { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ol.verlauf li { border-left: 3px solid var(--linie); padding-left: 12px; }
ol.verlauf small { display: block; color: var(--grau); }
.dokument { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--r); text-decoration: none; color: var(--tinte); }
.dokument:hover { border-color: var(--blau); }
.dokument b { font-size: 13px; color: var(--weiss); background: var(--rot); border-radius: 4px; padding: 2px 6px; }
table.tabelle { width: 100%; border-collapse: collapse; }
table.tabelle th, table.tabelle td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.tabelle th { font-size: 14px; color: var(--grau); font-weight: 600; }
@media (max-width: 640px) {
  table.tabelle thead { display: none; }
  table.tabelle tr { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
  table.tabelle td { border: 0; padding: 0; }
}

/* ---------- Meldungen ---------- */
.hinweis { border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--linie); background: var(--hell); font-size: 16px; }
.hinweis.rot { border-color: var(--rot); background: var(--papier); color: var(--rot); }
.hinweis.gelb { border-color: var(--bernstein); background: var(--papier); color: var(--tinte); }
.hinweis.gruen { border-color: var(--gruen); background: var(--papier); color: var(--tinte); }
ul.pruefung { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 16px; }
ul.pruefung li.fehler { color: var(--rot); }
ul.pruefung li.offen { color: var(--grau); }
.meldung { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--tinte); color: var(--weiss); border-radius: var(--r); padding: 12px 16px; z-index: 10; }
.meldung.rot { background: var(--rot); }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 17px; }
.qr { width: 200px; height: 200px; max-width: 100%; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); padding: 8px; }
.geheimnis { font-family: ui-monospace, Menlo, Consolas, monospace; overflow-wrap: anywhere; background: var(--hell); padding: 8px 10px; border-radius: var(--r); }

/* ---------- Anmeldung ---------- */
.anmelde-seite { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.anmelde-bild { background: var(--nacht); color: var(--weiss); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.anmelde-bild h2 { font-size: 28px; max-width: 460px; }
.anmelde-bild p { color: var(--linie); max-width: 460px; margin-top: 12px; }
.anmelde-form { display: grid; place-items: center; padding: 32px 16px; }
.anmelde-form form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.anmelde-form p { color: var(--grau); margin-top: 4px; }
@media (max-width: 820px) {
  .anmelde-seite { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .anmelde-bild { padding: 24px 16px; }
  .anmelde-bild h2 { font-size: 22px; }
  .anmelde-bild .unten { display: none; }
}
.abstand { margin-top: 12px; }
.abstand-u { margin-bottom: 12px; }
.schalter-zeile { display: flex; align-items: flex-start; gap: 10px; }

/* Rechnungen (AP4) */
.zeile.rechnung { grid-template-columns: minmax(0, 1fr) auto auto; }
.zeile.rechnung .reihe { margin-top: 8px; }
.zeile .betrag { white-space: nowrap; font-size: 17px; }
@media (max-width: 560px) { .zeile.rechnung { grid-template-columns: minmax(0, 1fr) auto; } .zeile.rechnung .mitte { grid-column: 1 / -1; grid-row: 1; } .zeile.rechnung .betrag { grid-row: 2; grid-column: 1; } .zeile.rechnung .status { grid-row: 2; grid-column: 2; justify-self: end; } }

/* Zulassungsvorgänge (03.12.2026): Vorgangswahl, Schritte, Auswahlgruppen, Unterlagen */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.kachel { display: grid; gap: 6px; align-content: start; padding: 18px 20px; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r); color: var(--tinte); text-decoration: none; min-width: 0; }
.kachel b { font-size: 18px; color: var(--nacht); }
.kachel span { color: var(--grau); font-size: 15px; }
a.kachel:hover { border-color: var(--blau); background: var(--papier); }
.nicht-online { margin-top: 20px; color: var(--grau); font-size: 15px; max-width: 75ch; }
.nicht-online p { margin: 0 0 6px; }
@media (min-width: 561px) { .zeile:not(.rechnung) { grid-template-columns: 170px minmax(0, 1fr) auto; } }
.kz-neu { display: inline-block; font-size: 14px; color: var(--grau); border: 1px dashed var(--grau); border-radius: 4px; padding: 4px 8px; white-space: nowrap; }
.schritte { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.schritte button { font: 15px var(--schrift); color: var(--grau); background: var(--papier); border: 1px solid var(--linie); border-radius: var(--r); padding: 4px 12px; cursor: pointer; min-height: 36px; }
.schritte button:hover { border-color: var(--blau); color: var(--blau); }
.schritte li.aktiv button { background: var(--nacht); border-color: var(--nacht); color: var(--weiss); font-weight: 600; }
.schritt-titel { font-size: 20px; margin-bottom: 16px; }
.schritt-knoepfe { margin-top: 24px; justify-content: space-between; }
.wahl { display: grid; gap: 10px; }
.wahl legend { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.schalter input[type="radio"] { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--blau); }
input.datei { padding: 8px; min-height: 44px; border-style: dashed; background: var(--papier); }
/* lange Dateinamen ohne Bindestrich */
.upload { overflow-wrap: anywhere; padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
details.hinweise summary { cursor: pointer; color: var(--grau); font-size: 15px; }
details.hinweise ul { margin-top: 8px; }
.karte h3 { margin-bottom: 6px; }
@media (max-width: 560px) { .schritt-knoepfe .knopf { flex: 1 1 auto; } }
.lauf { display: contents; }

/* Passkey und Einladung (03.12.2026) */
.passkey-weg { display: grid; gap: 12px; }
.trenner-text { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--grau); font-size: 14px; }
.trenner-text::before, .trenner-text::after { content: ''; flex: 1; border-top: 1px solid var(--linie); }
.anmelde-form p.trenner-text { margin-top: 0; }
.passkey-liste { display: grid; gap: 8px; }
.passkey-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--linie); border-radius: var(--r); }
.passkey-zeile > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.link-feld { font: 15px/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--tinte); background: var(--hell); border: 1px solid var(--grau); border-radius: var(--r); padding: 10px 12px; width: 100%; resize: none; word-break: break-all; }
.einladung-box { width: 100%; max-width: 380px; }

/* Tippflächen am Handy mindestens 44 px (Nacht 04.12.2026) */
.hilfe-knopf { position: relative; } .hilfe-knopf::after { content: ''; position: absolute; inset: -11px; }
@media (max-width: 820px) {
  .knopf.klein, .schritte button, .kopf button, details.hinweise summary { min-height: 44px; }
  details.hinweise summary { display: flex; align-items: center; gap: 8px; } details.hinweise summary::before { content: '\25B8'; } details.hinweise[open] > summary::before { content: '\25BE'; } .schalter { min-height: 44px; align-items: center; } .schalter input { margin-top: 0; }
}

/* Nacht 04.12.: FIN und IBAN ganz sichtbar, Rolle in der Benutzerliste nicht abgeschnitten */
@media (min-width: 1100px) { .felder > .feld:has(> #z-fin), .felder > .feld:has(> #z-iban) { grid-column: span 2; } }
.tabelle select { min-width: 190px; }
.feld .label { flex-wrap: wrap; row-gap: 2px; } .feld .label label { min-width: 0; }
details.hinweise > .felder { margin-top: 12px; align-items: end; }

/* ---------- Formulare leichter ausfüllen (04.12.2026) ---------- */
.felder { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 16px; }
.felder > * { grid-column: span 3; }
.felder.drei > * { grid-column: span 2; }
.felder > :is(#f-z-plz, #f-z-hausnummer) { grid-column: span 2; }
.felder > :is(#f-z-ort, #f-z-strasse) { grid-column: span 4; }
.felder > .feld:has(> #z-fin) { grid-column: span 3; }
.felder > .feld:has(> #z-iban) { grid-column: 1 / -1; }
@media (max-width: 560px) { .felder > *, .felder.drei > * { grid-column: 1 / -1; } .felder.drei > :is(#f-codeVorn, #f-codeHinten) { grid-column: span 3; } }
.abschnitt > legend { font-size: 20px; }
/* Schritte: gleich breit, mit Häkchen */
.schritte { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.schritte button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px; text-align: left; background: var(--weiss); color: var(--tinte); }
.schritte b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--hell); color: var(--nacht); }
.schritte span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schritte li.fertig b { background: var(--gruen); color: var(--weiss); }
.schritte li.aktiv b { background: var(--weiss); color: var(--nacht); }
@media (max-width: 560px) { .schritte span { display: none; } .schritte button { justify-content: center; } }
.schritt-titel { font-size: 22px; }
/* Auswahl: die ganze Zeile ist anklickbar */
.wahl { gap: 8px; }
.wahl .schalter { border: 1px solid var(--grau); border-radius: var(--r); padding: 11px 14px; }
.wahl .schalter:hover { border-color: var(--blau); }
.wahl .schalter:has(input:checked) { border-color: var(--blau); background: var(--hell); box-shadow: inset 0 0 0 1px var(--blau); font-weight: 600; }
/* Offene Angabe anklicken: Sprung ins Feld */
.zum-feld { vertical-align: top; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.zum-feld:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 820px) { .zum-feld { min-height: 32px; } }
@media (min-width: 561px) { .wahl:not(:has(> .schalter ~ .schalter ~ .schalter)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wahl > legend { grid-column: 1 / -1; } }
.felder.drei { align-items: end; }
/* Kurze Antworten als Knöpfe nebeneinander, Teile eines Schritts */
.wahl, .wahl:not(:has(> .schalter ~ .schalter ~ .schalter)) { display: flex; flex-wrap: wrap; }
@media (max-width: 560px) { .wahl .schalter { flex: 1 1 100%; } }
.teil { border-top: 1px solid var(--linie); padding-top: 20px; margin-top: 4px; }
.schritt > .stapel > .teil:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.teil > h3 { font-size: 18px; margin: 0; }
input.code::placeholder { font-family: var(--schrift); letter-spacing: 0; }
@media (min-width: 561px) { .schritte { display: flex; } .schritte li { flex: 1 1 auto; } }
#f-uploads > .upload:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 560px) { .schritte { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; } .schritte button { padding: 6px 4px; } }
.felder { align-items: start; }

/* Einheitliche Felder (Formatprüfung 04.12.2026): eigener Pfeil mit Abstand zum Rand, gleiche Höhe */
select { appearance: none; -webkit-appearance: none; background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%235b6b7c' stroke-width='2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; text-overflow: ellipsis; }
:is(.feld > input, .feld > select, .filter input, .filter select):not([type=checkbox], [type=radio], [type=file]) { height: 46px; }
.feld > :is(input, select):not([type=file], [type=search]) { max-width: 500px; }

/* ---------- Angeglichen an die Verwaltung (04.12.2026): gedämpft, ruhig, wenige Linien ---------- */
:root { --linie: rgba(91, 107, 124, .22); --papier: rgba(91, 107, 124, .08); --hell: rgba(31, 95, 168, .1); --grau: rgba(27, 39, 51, .76); --feld: rgba(91, 107, 124, .75); --flaeche: #f4f6f9; --feld-grund: rgba(255, 255, 255, .6); }
body { background: #dfe5ec; }
.kopf, .navigation { background: #eef3f8; color: var(--tinte); } .marke b { color: var(--nacht); } .marke span, .kopf-rechts { color: var(--grau); }
.kopf button { color: var(--tinte); border-color: var(--feld); } .kopf button:hover { background: var(--papier); }
.kopf :focus-visible, .navigation :focus-visible { outline-color: var(--blau); }
.navigation { border-bottom: 1px solid var(--linie); } .navigation-innen { gap: 2px; padding: 0 8px 8px; }
.navigation a { color: var(--tinte); border-bottom: 0; border-radius: 8px; padding: 9px 12px; } .navigation a:hover { background: var(--papier); } .navigation a.aktiv { background: var(--hell); color: var(--nacht); }
.testband { background: none; border-bottom: 0; color: var(--grau); } .testband div { padding-top: 12px; padding-bottom: 0; }
.karte { background: var(--flaeche); border-color: transparent; padding: 22px 24px; } .kachel { background: var(--flaeche); border-color: transparent; } a.kachel:hover { background: var(--feld-grund); }
.knopf { background: var(--blau); border-color: var(--blau); } .knopf:disabled, .knopf:disabled:hover { background: var(--papier); border-color: var(--linie); }
.knopf.zweit { background: var(--feld-grund); border-color: var(--feld); color: var(--nacht); } .knopf.zweit:not(:disabled):hover { background: var(--hell); border-color: var(--blau); }
input, select, .link-feld, .wahl .schalter, .hilfe-knopf { border-color: var(--feld); } input, select, .schritte button, .hilfe-knopf { background-color: var(--feld-grund); }
.kz-eingabe input { background: none; } .kz-eingabe input::placeholder { color: rgba(91, 107, 124, .45); } .schild { background: var(--flaeche); border-width: 1px; border-color: var(--feld); }
.schritte li.aktiv button { background: var(--hell); border-color: var(--blau); color: var(--nacht); } .schritte li.aktiv b { background: var(--blau); color: var(--weiss); }
/* Status: farbiger Punkt, Text ruhig; nur Probleme sind rot */
.status, .status[class*="s-"] { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--tinte); font-weight: 500; } .status::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--feld); }
.status:is(.s-gesendet, .s-in_arbeit)::before { background: var(--blau); } .status:is(.s-eingereicht, .s-von_hand, .s-warnung)::before { background: var(--bernstein); } .status:is(.s-entschieden, .s-erledigt)::before { background: var(--gruen); }
.status:is(.s-abgelehnt, .s-fehler, .s-nicht_online, .s-zurueckgewiesen) { color: var(--rot); } .status:is(.s-abgelehnt, .s-fehler, .s-nicht_online, .s-zurueckgewiesen)::before { background: var(--rot); }
.hinweis, .hilfe-pop { border-color: transparent; } .hinweis.rot { border-color: transparent; background: rgba(180, 35, 24, .07); } .hinweis.gelb { border-color: transparent; background: rgba(180, 83, 9, .1); } .hinweis.gruen { border-color: transparent; background: rgba(31, 122, 77, .1); }
table.tabelle th { font-weight: 400; }
.anmelde-bild { background: none; color: var(--tinte); border-right: 1px solid var(--linie); } .anmelde-bild h2 { color: var(--nacht); } .anmelde-bild p { color: var(--grau); } .anmelde-form { background: var(--flaeche); }
@media (max-width: 820px) { .anmelde-bild { border-right: 0; } .karte { padding: 18px 16px; } }

/* Kopfleiste wie in der Verwaltung (04.12.2026) */
.kopf { background: var(--nacht); color: #eef3f8; } .kopf-innen { padding: 8px 16px; min-height: 56px; } .kopf .marke { flex-direction: row; align-items: baseline; gap: 8px; }
.kopf .marke b { color: #fff; } .kopf .marke span, .kopf-rechts { color: #eef3f8; } .kopf .firma { font-size: 15px; font-weight: 400; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .3); }
.kopf button { color: #fff; border-color: rgba(255, 255, 255, .4); } .kopf button:hover { background: var(--nacht-2); } .kopf :focus-visible { outline-color: var(--gelb); }
.navigation { background: var(--flaeche); } .navigation-innen { padding: 0 4px; gap: 0; } .navigation a { border-radius: 0; padding: 13px 12px; } .navigation a.aktiv { background: none; color: var(--blau); box-shadow: inset 0 -3px 0 var(--blau); }
.karte, .kachel { border-radius: 12px; }
@media (max-width: 820px) { .kopf-innen { gap: 2px 12px; } #benutzerName { display: none; } .navigation-innen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .navigation a { flex: none; } }

/* Startseite wie in der Verwaltung (04.12.2026) */
.start-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; } .start-listen { margin-top: 24px; }
.start-kachel { display: flex; flex-direction: column; min-height: 148px; padding: 16px; border-radius: 12px; background: var(--flaeche); color: var(--tinte); border: 1px solid transparent; text-decoration: none; }
.start-kachel:hover { border-color: var(--blau); } .start-kachel b { font-size: 16px; font-weight: 600; line-height: 1.3; } .start-kachel small { font-size: 14px; color: var(--grau); line-height: 1.35; margin-top: 2px; }
.start-fuss { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; } .start-fuss svg { width: 24px; height: 24px; color: var(--grau); margin-bottom: 3px; }
.start-fuss strong { font-size: 36px; font-weight: 400; line-height: 1; color: var(--nacht); } .start-kachel.achtung strong { color: var(--bernstein); }
.start-kachel.aktion { background: var(--blau); color: #fff; } .start-kachel.aktion small, .start-kachel.aktion svg { color: #fff; } .start-kachel.aktion:hover { background: var(--nacht-2); }
@media (max-width: 820px) { .start-kacheln { grid-template-columns: 1fr 1fr; gap: 10px; } .start-kachel { min-height: 124px; padding: 14px; } .start-fuss strong { font-size: 30px; } }

/* ---------- Einheitliches Format wie in der Verwaltung (05.12.2026) ---------- */
main { max-width: 1240px; } .kopf-innen, .navigation-innen, .testband div { max-width: 1240px; }
.zeile:not(.rechnung) { grid-template-columns: 140px minmax(150px, 1.3fr) minmax(130px, 1fr) 190px minmax(120px, 1fr) 100px; min-height: 48px; padding: 8px 0; font-size: 15px; } .zeile:not(.rechnung) > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .zeile:not(.rechnung) b { font-weight: 600; }
.z-nummer, .z-zeit, .z-bescheid { color: var(--grau); font-size: 14px; font-variant-numeric: tabular-nums; } .zeilen-kopf.zeilen-kopf { min-height: 0; padding: 0 0 10px; font-size: 14px; color: var(--grau); background: none; }
.krumen { display: flex; gap: 8px; font-size: 14px; color: var(--grau); margin-bottom: 12px; } .krumen a { color: var(--grau); } .krumen a::after { content: '/'; margin-left: 8px; }
.vorgang-kopf { margin-bottom: 20px; } .vorgang-kopf .reihe { gap: 12px 20px; align-items: center; } .vorgang-kopf .reihe > .knopf { margin-left: auto; } .vorgang-kopf h1 { font-size: 24px; line-height: 1.2; } .vorgang-kopf p { color: var(--grau); } .vorgang-kopf .werte { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linie); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.werte { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; } .werte dt { font-size: 14px; color: var(--grau); margin-bottom: 2px; } .werte dd { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 1100px) { .start-kacheln { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; } }
@media (max-width: 1000px) { .zeile:not(.rechnung) { grid-template-columns: 140px minmax(0, 1fr) 190px 100px; } .z-nummer, .z-bescheid, .zeilen-kopf > :nth-child(3), .zeilen-kopf > :nth-child(5) { display: none; } }
@media (max-width: 640px) { .zeilen-kopf.zeilen-kopf { display: none; } .zeile:not(.rechnung) { grid-template-columns: 132px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; } .zeile .status { grid-column: 2; justify-self: start; text-align: left; } .z-zeit { grid-column: 1; grid-row: 2; } .vorgang-kopf .werte { grid-template-columns: 1fr 1fr; } .vorgang-kopf .reihe > .knopf { margin-left: 0; width: 100%; } }
.zeile .kz-neu { border: 0; padding: 0; font-size: 14px; color: var(--grau); background: none; } .karte:has(> .liste) > .filter { margin-bottom: 20px; }

/* Kennzeichen nach amtlicher Vorlage (gezeichnet in eingabe.js) */
.schild, .schild.gross { display: inline-block; position: relative; width: 132px; padding: 0; border: 0; background: none; overflow: visible; vertical-align: middle; line-height: 0; } .schild.gross { width: 250px; } .schild::before { content: none; }
.schild svg { display: block; width: 100%; height: auto; color: inherit; } .schild .kz-text text { font: 400 125px "ikfz-plate", "Arial Narrow", sans-serif; fill: #1b2733; letter-spacing: 0; } .schild .kz-d { font: 700 29px "Source Sans 3", Arial, sans-serif; fill: #fff; } .schild .kz-monat text { font: 700 4.6px Arial, sans-serif; fill: #fff; text-anchor: middle; }
.schild .schild-text.schild-text { position: absolute; inset: 0; width: auto; padding: 0; overflow: hidden; font-size: 12px; line-height: 1; color: transparent; white-space: nowrap; }
.schild .kz-rand { fill: #fff; stroke: #1b2733; stroke-width: 3; } .schild:not(.gross) .kz-rand { stroke: rgba(91, 107, 124, .75); stroke-width: 4; } .schild:not(.gross) .kz-sterne { display: none; } .schild:not(.gross) { width: 112px; } .schild.gross.gross { width: 208px; }
.zeile:not(.rechnung):not(.zeilen-kopf) { min-height: 52px; }

/* ---------- Feinschliff (Nacht 05.12.2026) ---------- */
.kopf-rechts a { color: #fff; text-decoration: none; padding: 8px 4px; } .kopf-rechts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.navigation a, .navigation a.aktiv { font-weight: 500; } .navigation .nav-neu { margin: auto 12px auto auto; padding: 6px 14px; min-height: 34px; color: #fff; background: var(--blau); border-radius: 8px; } .navigation .nav-neu:hover { background: var(--nacht-2); }
.krumen { font-size: 14px; } .krumen a { text-decoration: none; } .krumen a:hover { color: var(--blau); text-decoration: underline; } .krumen a::after { display: inline-block; text-decoration: none; }
.testband b { font-weight: 600; margin-right: 6px; }
.stapel.eng { gap: 10px; }
.hinweis.gelb { background: rgba(255, 191, 71, .2); } .hinweis.gelb > b { display: block; margin-bottom: 6px; }
.leer { padding: 16px 0 4px; display: grid; gap: 4px; justify-items: start; color: var(--grau); } .leer b { color: var(--tinte); font-weight: 600; } .leer .knopf { margin-top: 8px; }
.filter { align-items: center; } .filter .treffer { margin-left: auto; font-size: 14px; color: var(--grau); }
.ohne-bescheid :is(.z-bescheid, .zeilen-kopf > :nth-child(5)) { display: none; }
@media (min-width: 1001px) { .ohne-bescheid .zeile:not(.rechnung) { grid-template-columns: 140px minmax(150px, 1.3fr) minmax(130px, 1fr) 190px 100px; } }
.zum-feld { color: var(--blau); } li.fehler .zum-feld { color: var(--rot); }
ul.pruefung:has(.zum-feld) { list-style: none; padding: 0; gap: 2px; } ul.pruefung .zum-feld { padding: 4px 0; }
.knopf-text { font: 600 15px var(--schrift); color: var(--blau); background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; } .knopf-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.bekannt { margin-bottom: 16px; } .bekannt > summary { color: var(--blau); font-weight: 600; } .bekannt > .feld { margin-top: 10px; }
.schritte li.luecke b { background: var(--bernstein); color: #fff; } @media (min-width: 561px) { .schritte { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: auto; } }
.status { font-size: 15px; } .vorgang-kopf .status { font-size: 16px; font-weight: 500; }
.schalter span { font-weight: 400; }
/* Dateiauswahl: Knopf statt gestrichelter Fläche */
input.datei { border: 0; background: none; padding: 0; min-height: 44px; font-size: 15px; } input.datei::file-selector-button { font: 600 15px var(--schrift); color: var(--nacht); background: var(--feld-grund); border: 1px solid var(--feld); border-radius: var(--r); padding: 9px 14px; margin-right: 12px; min-height: 42px; cursor: pointer; } input.datei::file-selector-button:hover { border-color: var(--blau); background: var(--hell); }
.felder > .feld:has(> #z-iban), .felder > .feld:has(> #z-kontoinhaber) { grid-column: span 3; }
.kacheln { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); } @media (min-width: 900px) { .kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); } } .kachel { min-height: 104px; } .kachel b { font-weight: 600; }
@media (max-width: 820px) { #benutzerName { display: inline-flex; align-items: center; min-height: 44px; } .navigation .nav-neu { display: none; } }
@media (max-width: 560px) { .felder > .feld:has(> :is(#fin, #z-fin, #z-iban, #z-kontoinhaber)), .felder > .feld { grid-column: 1 / -1; } .felder > :is(#f-z-plz, #f-z-hausnummer) { grid-column: span 2; } .felder > :is(#f-z-ort, #f-z-strasse) { grid-column: span 4; }
  .zum-feld { min-height: 44px; } .anmelde-bild p, .anmelde-bild .unten { display: none; } .filter > *, .filter input { flex: 1 1 100%; max-width: none; } .filter .treffer { margin: 0; } }
/* Kennzeichen-Eingabe als Schild (520 × 110 mm): EU-Feld, Kürzel links, Plaketten, Buchstaben, Zahl */
.kz-eingabe { container-type: inline-size; width: 100%; max-width: 400px; aspect-ratio: 520 / 110; align-items: center; border: 2px solid var(--tinte); border-radius: 9px; background: #fff; }
.kz-eingabe .eu { padding: 0; height: 100%; aspect-ratio: 45 / 101; background: #163d68; } .kz-eingabe .eu svg, .kz-plaketten svg { display: block; height: 100%; } .kz-eingabe .kz-d { font: 700 29px "Source Sans 3", Arial, sans-serif; fill: #fff; }
.kz-plaketten { height: 100%; flex: none; } .kz-plaketten .kz-monat text { font: 700 4.6px Arial, sans-serif; fill: #fff; text-anchor: middle; }
.kz-eingabe input, .kz-eingabe .feld input { height: 100%; min-height: 0; border: 0; font: 400 17.5cqw/1 "ikfz-plate", "Arial Narrow", sans-serif !important; letter-spacing: 0; padding: 1.2cqw 1cqw 0; text-align: left; max-width: none; field-sizing: content; flex: none; width: auto; min-width: 1.1em; border-radius: 6px; }
.kz-eingabe .ort { flex: none; padding-left: 2cqw; } .kz-eingabe .buchstaben { flex: none; margin-right: 1cqw; } .kz-eingabe .zahl { flex: 1 1 0; }
.kz-eingabe input:focus { background: rgba(31, 95, 168, .1); }
@supports not (field-sizing: content) { .kz-eingabe .ort { flex: 3 1 0; width: 0; } .kz-eingabe .buchstaben { flex: 2 1 0; width: 0; } .kz-eingabe .zahl { flex: 3.6 1 0; width: 0; } }
/* Rechnungen */
.tabelle .betrag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } table.tabelle.rechnungen td { vertical-align: middle; } table.tabelle.rechnungen tbody tr:last-child td { border-bottom: 0; } .rechnungen .reihe { gap: 16px; } .rechnungen .reihe a { text-decoration: none; font-weight: 600; padding: 6px 0; } .rechnungen .reihe a:hover { text-decoration: underline; }
@media (max-width: 640px) { .rechnungen td[data-name] { display: flex; justify-content: space-between; gap: 16px; } .rechnungen td[data-name]::before { content: attr(data-name); color: var(--grau); font-size: 15px; } .rechnungen td.betrag { text-align: left; } .rechnungen .reihe a { min-height: 44px; display: inline-flex; align-items: center; } }
.nur-handy { display: none; } @media (max-width: 820px) { .nur-handy { display: inline-flex; } }

/* Formularende: Hauptknopf rechts, darunter die Nebensachen */
.schritt-knoepfe.rechts { justify-content: flex-end; } .form-fuss { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; }
.seitenkopf .reihe[hidden] { display: none; }
.zeile:not(.rechnung) > .schild { overflow: visible; }
.felder > .feld:has(> #finPruefziffer) input { max-width: 72px; }
@media (max-width: 820px) { .schalter-zeile { align-items: center; } }
table.tabelle :is(th, td):first-child { padding-left: 0; } .rechnungen .betrag { padding-right: 32px; }

.meldung { display: flex; align-items: center; gap: 12px; } .meldung-zu { flex: none; width: 44px; height: 44px; margin: -10px -12px -10px auto; border: 0; background: none; color: inherit; font-size: 22px; cursor: pointer; }
.schritt-titel:focus { outline: 0; box-shadow: none; }
.kz-eingabe input { min-width: .8em; } .reihe:has(> .schalter) { gap: 4px 28px; }
@media (max-width: 980px) { .navigation .nav-neu, .knopf.klein { min-height: 44px; } }
@media (max-width: 640px) { .rechnungen td.betrag { padding-right: 0; } }

@media (max-width: 640px) { .kopf .firma { order: 3; flex-basis: 100%; padding-left: 0; border: 0; font-size: 14px; } }
@media (max-width: 640px) { .anmelde-seite { background: var(--flaeche); } .anmelde-bild { padding: 20px 24px 8px; background: none; } .anmelde-bild h2 { display: none; } .anmelde-form { place-items: start center; padding: 24px; } }
@media (min-width: 641px) and (max-width: 1099px) { .start-kacheln { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }

@media print { .kopf, .navigation, .testband, .meldung, .knopf { display: none !important; } body { background: #fff !important; } .karte { border: 1px solid #dfe5ec; break-inside: avoid; } }
.rechnungen td:first-child { white-space: nowrap; } @media (min-width: 641px) and (max-width: 820px) { .rechnungen .reihe { flex-wrap: nowrap; gap: 12px; } .rechnungen .betrag { padding-right: 12px; } }
@media (min-width: 821px) { .raster:has(form) > :last-child:not(:has(form)) { position: sticky; top: 16px; } }

.schild:not(.gross) svg { height: 24px; } .schild:not(.gross) .kz-rand { stroke-width: 4.6; } td .schild { vertical-align: top; }

/* Runde 4 (05.12.): Schrittwechsel, Fehler am Feld, Meldung verdeckt keine Knöpfe */
.felder.drei { align-items: start; } .schritt-titel { scroll-margin-top: 84px; } .zum-feld { width: 100%; } .wahl .schalter:has(input:checked) { font-weight: 400; }
.ein-code .ein-code-feld:focus-within { border-color: var(--blau); outline: 2px solid var(--blau); outline-offset: 0; }
#offenHandy { display: none; }
@media (min-width: 821px) { .meldung { top: 120px; right: 24px; bottom: auto; left: auto; margin: 0; } }
@media (max-width: 820px) { .krumen a { padding: 12px 0; margin: -12px 0; } #offenHandy:not(:empty) { display: grid; margin: 20px 0 0; } .raster:has(#formular #kzOrt) > .karte:last-child, .raster:has(#offenHandy) .karte:has(> ul.pruefung:not(#offenHandy)) { display: none; } }

/* FIN und Prüfziffer gehören zusammen: eine Reihe (Nacht 05.12.) */
@media (min-width: 561px) {
  .felder:has(> .feld:not([hidden], .ein-selten) > :is(#finPruefziffer, #z-finPruefziffer)) > .feld:has(> :is(#fin, #z-fin)) { grid-column: span 4; }
  .felder > .feld:has(> :is(#finPruefziffer, #z-finPruefziffer)) { grid-column: span 2; }
  .felder > .feld > :is(input, select) { max-width: none; }
}
.felder > .feld:has(> #z-finPruefziffer) input { max-width: 72px; }
.felder > .feld > :is(#finPruefziffer, #z-finPruefziffer) { max-width: 72px; }
.reihe:has(> label > input[type=checkbox]) { gap: 4px 28px; }
.schritt-knoepfe > .knopf.zweit:first-child:disabled { display: none; } .schritt-knoepfe > .knopf.zweit:first-child:disabled + .knopf { margin-left: auto; }

/* ===== Einheitliche Größen und Abstände (Nacht 05.12., nachgemessen) ===== */
/* P1 Schriftstufen */
body { font-size: 16px; } input, select { font-size: 16px; } table.tabelle td { font-size: 15px; } .tabelle td b { font-weight: 600; } table.tabelle th { font-weight: 400; } ol.verlauf small { font-size: 14px; }
.tabelle select { font-size: 15px; }
/* P2 Abstand */
.stapel:has(> .karte), .raster { gap: 24px; } .lauf > .karte + .karte, .lauf > .vorgang-kopf { margin-bottom: 0; } .lauf > .karte + .karte, .lauf > .karte + .raster, .lauf > .karte + .stapel, .lauf > .stapel + .karte { margin-top: 24px; } .seitenkopf { margin-bottom: 24px; }
/* P3 ecken */
:root { --r: 8px; }
/* P4 Knopfhoehen */
@media (min-width: 981px) { .knopf.klein, .navigation .nav-neu, .kopf button { min-height: 36px; } .kopf button { padding-block: 0; height: 36px; } .tabelle select { height: 36px; min-height: 0; padding-block: 0; } }
/* P5 Titel */
h1, .vorgang-kopf h1 { font-size: 24px; } .karte > h2, .karte h2, .abschnitt > legend, .schritt-titel { font-size: 18px; } .karte h3, .teil > h3 { font-size: 16px; }
/* P6 Tabelle */
table.tabelle tbody tr:last-child, table.tabelle tbody tr:last-child td { border-bottom: 0; } @media (min-width: 641px) { table.tabelle tr:last-child td { padding-bottom: 0; } table.tabelle th { padding-top: 0; } } @media (max-width: 640px) { table.tabelle tbody tr:first-child { padding-top: 0; } table.tabelle tbody tr:last-child { padding-bottom: 0; } }
/* P7 Felder */
.felder > .feld > :is(input, select):not([type=file], [type=search]) { max-width: none; } form > .felder { max-width: 1016px; }
/* P8 Links */
.karte > p > a { font-size: 15px; font-weight: 600; text-decoration: none; } .karte > p > a:hover { text-decoration: underline; } .rechnungen .reihe a { font-size: 15px; }
/* P9 entwurf */
.ein-entwurf:last-child { padding-bottom: 0; }
/* P10 summary */
details.hinweise > summary { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--blau); font-weight: 600; } details.hinweise > summary::-webkit-details-marker { display: none; } details.hinweise > summary::before { content: '+'; font-weight: 400; } details.hinweise[open] > summary::before { content: '\2212'; }
/* P11 tipp */
@media (max-width: 820px) { .krumen a { position: relative; } .krumen a::before, .ein-wie::before { content: ''; position: absolute; inset: -12px -6px; } }

.feld label, .feld .label, .wahl legend, .feld .opt { font-size: 15px; } .feld > label:first-child, .feld > .label { min-height: 24px; } .vorgang-kopf + .raster { margin-top: 0; }

/* Ausdruck: lange Listen laufen über mehrere Seiten, Farben der Punkte und Häkchen bleiben */
@page { margin: 14mm; }
@media print { .karte:has(table) { break-inside: auto !important; } thead { display: table-header-group; } tr { break-inside: avoid; } .karte *, .schild * { print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

/* Runde 6 (05.12.): Finger-Bedienung auch am Tablet quer, kleine Handys, lesbare Beispieltexte */
@media (pointer: coarse) {
  .knopf, .knopf.klein, .schritte button, .kopf button, details.hinweise summary, .zum-feld { min-height: 44px; } .krumen a { position: relative; } .krumen a::before { content: ''; position: absolute; inset: -12px -6px; }
}
@media (max-width: 640px) { .zeile .status { white-space: normal; min-width: 0; } .z-vorgang.z-vorgang { white-space: normal; overflow: visible; } .liste + .abstand a, p.abstand > a, .rechnung a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; } }
::placeholder { color: var(--grau); opacity: 1; } .kz-eingabe input::placeholder { color: rgba(91, 107, 124, .62); }

/* Weg des Antrags */
.weg { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weg li { position: relative; display: grid; justify-items: start; gap: 8px; font-size: 15px; color: var(--grau); } .weg b { font-weight: 600; }
.weg li::before { content: ''; position: absolute; left: 24px; right: 0; top: 11px; height: 2px; background: var(--linie); } .weg li:last-child::before { display: none; } .weg li.fertig::before { background: #1f5fa8; }
.weg span { position: relative; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--linie); background: var(--flaeche); display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 1; }
.weg :is(.fertig, .jetzt, .problem) { color: var(--tinte); } .weg .fertig span { background: #1f5fa8; border-color: #1f5fa8; color: #fff; } .weg .jetzt span { border-color: #1f5fa8; color: #1f5fa8; } .weg .problem span { background: #b42318; border-color: #b42318; color: #fff; }
@media (max-width: 640px) {
  .weg { grid-template-columns: minmax(0, 1fr); } .weg li { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 40px; }
  .weg li::before { left: 11px; right: auto; top: 50%; bottom: -50%; width: 2px; height: auto; }
}

.rot-text.rot-text { color: var(--rot); }
.lauf:empty::before { content: 'Wird geladen …'; display: block; min-height: 160px; padding: 22px 24px; border-radius: 12px; background: var(--flaeche, #f4f6f9); color: var(--grau); font-size: 15px; opacity: 0; animation: laden-ein .2s .4s forwards; }
@keyframes laden-ein { to { opacity: 1; } }
/* Offene Angaben als ruhige Prüfliste: Kreis = fehlt noch, Häkchen = vollständig (wie in der Verwaltung) */
.stand { display: grid; gap: 8px; margin-bottom: 12px; } .stand p { margin: 0; } .balken { height: 6px; border-radius: 3px; background: var(--linie); overflow: hidden; } .balken i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--blau); transition: width .2s; } .balken i.voll { background: var(--gruen); }
ul.pruefung:has(> :is(.offen, .fehler, .pruefen, .gut)) { list-style: none; padding: 0; gap: 2px; } ul.pruefung > :is(.offen, .fehler, .pruefen, .gut, .info) { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: center; min-height: 32px; font-size: 15px; }
ul.pruefung > :is(.offen, .fehler, .pruefen, .gut, .info)::before { content: ''; box-sizing: border-box; width: 12px; height: 12px; border: 1.5px solid var(--grau); border-radius: 50%; }
ul.pruefung > .gut { color: var(--grau); } ul.pruefung > .gut::before { content: '✓'; width: auto; height: auto; border: 0; color: var(--gruen); font-weight: 600; line-height: 1; }
ul.pruefung > :is(.fehler, .pruefen, .info)::before { content: '!'; width: auto; height: auto; border: 0; text-align: center; color: var(--rot); font-weight: 600; line-height: 1; } ul.pruefung > .pruefen::before, ul.pruefung > .info::before { color: var(--orange, #b45309); }
ul.pruefung .offen .zum-feld, ul.pruefung .pruefen .zum-feld { color: var(--tinte); } ul.pruefung .zum-feld { padding: 4px 0; }
.dokument small { display: block; font-size: 14px; color: var(--grau); } .abstand > h3:first-child { margin-top: 8px; }
/* Abnahme 05.12.2026, 03:00 Uhr */
.z-neu { display: grid; gap: 2px; min-width: 0; } .z-neu small { font-size: 13px; color: var(--grau); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dokument b { background: rgba(31, 95, 168, .1); color: #163d68; } .schalter:not(:has(small)) { align-items: center; } .schalter:not(:has(small)) input { margin-top: 0; }
.hinweis ul.pruefung > .offen { display: list-item; min-height: 0; } .hinweis ul.pruefung > .offen::before { display: none; } .hinweis ul.pruefung .offen .zum-feld { color: var(--blau); }
.ein-entwurf { padding: 6px 0; flex-wrap: nowrap; } .ein-entwurf > div:first-child { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: baseline; } .ein-entwurf .ein-quelle { margin: 0; } .ein-entwurf .ein-knoepfe { flex: none; flex-wrap: nowrap; }
@media (max-width: 820px) {
  .start-kachel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 72px; padding: 12px 14px; } .start-kachel small, .start-kachel:not(.aktion) .start-fuss svg { display: none; } .start-fuss { margin: 0; padding: 0; } .start-fuss strong { font-size: 24px; }
  .vorgang-kopf + .raster { display: flex; flex-direction: column; align-items: stretch; } .vorgang-kopf + .raster > .stapel { display: contents; } .vorgang-kopf + .raster .karte:has(.verlauf) { order: 2; }
  .ein-entwurf .ein-quelle { display: none; }
}
#offenHandy:not(:empty)::before { content: 'Noch offen'; font-weight: 600; }
/* Meldung am Handy verdeckt keine Knöpfe unter dem Formular */
@media (max-width: 820px) { main:has(.schritt-knoepfe) { padding-bottom: 112px; } .rechnungen .reihe a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; } }
/* Feinschliff 05.12.: gleiche Maße wie in der Verwaltung, nichts springt */
:root { --grau: #5b6b7c; --linie: #dfe5ec; --hell: #eef3f8; }
@media (min-width: 561px) { .schritte { grid-auto-columns: minmax(0, 1fr); } }
.weg { column-gap: 24px; } .weg li::before { right: -24px; }
.zeile:not(.rechnung) { font-size: 14px; } .zeile:not(.rechnung) b { font-weight: 500; } .zeile:not(.rechnung):not(.zeilen-kopf) { min-height: 50px; }
.kachel { padding: 20px 24px; } .kacheln { gap: 12px; }
.ein-entwurf .ein-knoepfe { gap: 8px 20px; }
.hinweis.gelb { background: #f4f6f9; box-shadow: inset 3px 0 0 #b45309; }
.reihe:has(> .feld .schalter) { gap: 4px 28px; }
.stand ~ .zum-feld, ul.pruefung ~ .zum-feld { font: 600 15px var(--schrift); }
h1, h2, h3, .kachel b { text-wrap: balance; } p, small, .kachel span { text-wrap: pretty; }
@media (min-width: 981px) { .filter :is(input, select):not([type=checkbox]) { height: 40px; font-size: 14px; } }
@media (min-width: 641px) and (max-width: 820px) { .raster > .karte:last-child ul.pruefung { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } .anmelde-form { place-items: start center; padding-top: 48px; } }
@media (max-width: 400px) { .start-kachel b { font-size: 15px; } }
.ein-entwurf .knopf.leise.knopf-text { color: var(--grau); font-weight: 500; }
.testband, .seitenkopf p, .krumen, .krumen a { color: rgba(27, 39, 51, .76); } /* Kontrast auf grauem Grund */
.knopf { -webkit-user-select: none; user-select: none; }
/* Abnahme 05.12.: Bausteine wie in der Verwaltung */
.hinweis.gelb { background: rgba(255, 191, 71, .2); box-shadow: none; }
table.tabelle th.tabelle, table.tabelle th { font-weight: 600; }
.hilfe-knopf { width: 20px; height: 20px; border-color: rgba(31, 95, 168, .28); background: #eef3f8; color: #1f5fa8; font: 700 12px/1 var(--schrift); display: inline-grid; place-items: center; }
.filter input:not([type=checkbox], [type=radio]) { padding-left: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235b6b7c' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 11px 50% no-repeat; }
input:is([type=date], [type=month])::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
/* Laptop 821–1279 px: Rand wie in der Verwaltung, Schrittnamen nicht abschneiden */
@media (min-width: 821px) and (max-width: 1279px) { main, .kopf-innen, .navigation-innen, .testband div { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 561px) and (max-width: 1199px) { .schritte { grid-auto-columns: auto; } .schritte button { padding-inline: 10px; } }
/* Entwürfe wie die Antragsliste: Schild, Vorgang, gespeichert, Knöpfe rechts */
.zeile.entwurf.entwurf { grid-template-columns: 140px minmax(150px, 1.3fr) minmax(0, 1fr) auto; padding: 12px 4px; }
.zeile.entwurf:hover { background: none; }
.zeile.entwurf .ein-knoepfe { display: flex; align-items: center; justify-content: flex-end; gap: 8px 16px; margin: 0; flex-wrap: nowrap; }
.zeile.entwurf .knopf.leise.knopf-text { color: var(--grau); font-weight: 500; }
@media (max-width: 1000px) { .zeile.entwurf.entwurf { grid-template-columns: 140px minmax(0, 1fr) auto auto; } }
@media (max-width: 640px) { .zeile.entwurf.entwurf { grid-template-columns: 132px minmax(0, 1fr); } .zeile.entwurf .z-zeit { grid-column: 1 / -1; grid-row: 2; } .zeile.entwurf .ein-knoepfe { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; } }
