* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--schrift); font-size: 18px; }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; }
.muted { color: var(--text-2); }
.brand { font-weight: 700; color: var(--akzent); text-decoration: none; letter-spacing: -.01em; }
h1.brand { font-size: 2rem; margin: 0; }
.card { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius-gross); padding: 2rem; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.page { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.login { width: min(460px, 100%); display: flex; flex-direction: column; gap: .5rem; }
label { font-weight: 600; margin-top: .75rem; }
input[type=email], input[type=password], input[type=text] {
  font: inherit; padding: 1rem 1.1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff;
}
input:focus { outline: 3px solid var(--akzent-rand); border-color: var(--akzent); }
button { font: inherit; cursor: pointer; border-radius: var(--radius); }
button.primary {
  margin-top: 1.25rem; min-height: var(--primaer-hoehe); border: 0; background: var(--akzent); color: #fff; font-weight: 700; font-size: 1.15rem;
}
button.ghost { background: transparent; border: 1px solid var(--linie); padding: .6rem 1rem; color: var(--text-2); }
.alert { background: #FDECEC; border: 1px solid #F3B4B4; color: #8A1C1C; border-radius: var(--radius); padding: .8rem 1rem; margin: .5rem 0 0; }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem; background: var(--karte); border-bottom: 1px solid var(--linie); }
.topbar .muted { margin-left: auto; }
.topbar form { margin: 0; }
.link { color: var(--akzent); font-weight: 600; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .9rem 0; border-bottom: 1px solid var(--linie); }
.version { text-align: center; font-size: .8rem; padding: 1rem; }
.qr { align-self: center; width: 240px; height: 240px; margin: 1rem 0; image-rendering: pixelated; }
.secret { font-size: 1rem; letter-spacing: .05em; word-break: break-all; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; font-size: 1.1rem; }
a.primary.button { display: grid; place-items: center; text-decoration: none; margin-top: 1.25rem; min-height: var(--primaer-hoehe);
  background: var(--akzent); color: #fff; font-weight: 700; border-radius: var(--radius); }

/* --- Erfassung (SPEC §5.0, design/screens) --- */
h2 { font-size: 1.15rem; margin: 1.5rem 0 .75rem; }
.hinweis { color: var(--text-2); font-size: .9rem; margin: .35rem 0 0; }
.label { display: block; font-weight: 600; margin: 1rem 0 .5rem; }
.erf-kopf { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.5rem; background: var(--karte); border-bottom: 1px solid var(--linie); }
.erf-adresse { display: flex; flex-direction: column; margin-right: auto; }
.erf-adresse .muted { font-size: .9rem; }
.speicher { background: var(--akzent-hell); color: var(--akzent); border-radius: 17px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; }
.speicher[data-status="laeuft"] { background: #FFF8E1; color: #7A5B00; }
.speicher[data-status="fehler"] { background: #FDECEC; color: #8A1C1C; }
.knopf-klein { font: inherit; font-size: .95rem; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--linie);
  border-radius: 12px; padding: .55rem 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.segmente { display: flex; gap: .6rem; padding: .5rem 1.5rem 0; background: var(--karte); }
.segment { flex: 1; display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--text-2); }
.segment i { height: 8px; border-radius: 4px; background: #E7E9EE; }
.segment.an i { background: var(--akzent); }
.segment.aktiv { color: var(--text); font-weight: 700; }
.fortschritt { margin: 0; padding: .6rem 1.5rem 1rem; background: var(--karte); border-bottom: 1px solid var(--linie); font-weight: 600; }
.schritt { max-width: 900px; margin: 0 auto; padding: 2rem 1.5rem 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.frage { font-size: 2rem; text-align: center; margin: 0; letter-spacing: -.01em; }
.raumname { font-size: 2.8rem; text-align: center; margin: 0; letter-spacing: -.02em; }
.unterfrage { font-size: 1.3rem; color: var(--text-2); text-align: center; margin: 0; }
.antworten { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.antworten > * { flex: 1 1 0; min-width: 260px; display: flex; }
.antwort { flex: 1 1 0; min-height: 250px; border-radius: 30px; border: 2px solid var(--linie); background: #fff; color: var(--text);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; text-decoration: none;
  font: inherit; cursor: pointer; text-align: center; padding: 1rem; }
.antwort strong { font-size: 1.45rem; }
.antwort span { color: var(--text-2); }
.antwort.primaer { background: var(--akzent); color: #fff; border: 0; box-shadow: 0 10px 28px rgba(11, 110, 91, .28); }
.antwort.primaer span { color: #DDF0EA; }
.antworten form { margin: 0; }
.textlinks { display: flex; justify-content: center; gap: 1.5rem; }
.textlinks a, .textlink { font: inherit; font-weight: 600; color: var(--text); text-decoration: underline; background: none; border: 0; cursor: pointer; padding: .5rem; }
.textlinks form { margin: 0; }
.zurueck { align-self: flex-start; font-weight: 600; color: var(--text-2); padding: .75rem 0; }
.primary.breit, .breit { width: 100%; }
a.primary.button, button.primary { display: grid; place-items: center; text-decoration: none; min-height: var(--primaer-hoehe);
  background: var(--akzent); color: #fff; font-weight: 700; font-size: 1.15rem; border-radius: var(--radius); border: 0; }
.eingabe { display: flex; flex-direction: column; gap: .5rem; }
.eingabe.zeile { flex-direction: row; }
.eingabe.zeile input { flex: 1; }
textarea { font: inherit; padding: 1rem 1.1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; resize: vertical; }
input[type=datetime-local], input[type=date], input:not([type]) { font: inherit; padding: 1rem 1.1rem; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
.stand { font-size: 2rem; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.karten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.karten-raster form { margin: 0; display: flex; }
.wahlkarte-gross { flex: 1; min-height: 120px; border-radius: 22px; border: 2px solid var(--linie); background: #fff; font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }

/* Startliste */
.karte-gross { display: flex; flex-direction: column; gap: .4rem; padding: 2rem; border-radius: var(--radius-gross); text-decoration: none; }
.karte-gross.primaer { background: var(--akzent); color: #fff; box-shadow: 0 10px 28px rgba(11, 110, 91, .28); }
.karte-titel { font-size: 1.6rem; font-weight: 700; }
.karte-sub { color: #DDF0EA; }
.liste-gross { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.liste-gross a { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding: 1.25rem 1.5rem; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.liste-gross .pfeil { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--akzent); font-weight: 700; }

/* Vorblatt */
.vorblatt { display: flex; flex-direction: column; gap: 1.25rem; }
.vorblatt .card { display: flex; flex-direction: column; }
.vorblatt h2 { margin-top: 0; }
.wahl { display: flex; gap: .75rem; flex-wrap: wrap; }
.wahlkarte { flex: 1 1 150px; position: relative; }
.wahlkarte input { position: absolute; opacity: 0; }
.wahlkarte span { display: grid; place-items: center; min-height: 64px; border: 2px solid var(--linie); border-radius: var(--radius); font-weight: 700; cursor: pointer; }
.wahlkarte input:checked + span { border-color: var(--akzent); background: var(--akzent-hell); color: var(--akzent); }
.wahlkarte input:focus-visible + span { outline: 3px solid var(--akzent-rand); }
.nur-einziehend, .nur-ausziehend { display: none; }
.vorblatt:has(#art-einzug:checked) .nur-einziehend, .vorblatt:has(#art-wechsel:checked) .nur-einziehend,
.vorblatt:has(#art-auszug:checked) .nur-ausziehend, .vorblatt:has(#art-wechsel:checked) .nur-ausziehend { display: block; }
.person { display: flex; gap: .5rem; margin-bottom: .5rem; }
.person input { flex: 1; min-width: 0; }
.person.zusatz { display: none; }
.personen:has(details[open]) .person.zusatz { display: flex; }
.mehr summary { cursor: pointer; font-weight: 600; color: var(--akzent); padding: .4rem 0; list-style: none; }
.personen:has(details[open]) .mehr { display: none; }

/* Übersicht */
.abschnitte { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.abschnitt > a, .abschnitt > div { display: flex; align-items: center; gap: 1.25rem; padding: 1.4rem 1.5rem; background: #fff;
  border: 2px solid var(--linie); border-radius: var(--radius-gross); text-decoration: none; color: var(--text); }
.abschnitt .nr { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #E7E9EE; }
.abschnitt .text { display: flex; flex-direction: column; margin-right: auto; }
.abschnitt .text strong { font-size: 1.25rem; }
.abschnitt .status { font-weight: 700; color: var(--text-2); }
.abschnitt.erledigt .nr { background: var(--akzent); color: #fff; }
.abschnitt.erledigt .status { color: var(--akzent); }
.abschnitt.weiter > a { border-color: var(--akzent); }
.abschnitt.weiter .status { color: var(--akzent); }
.abschnitt.gesperrt { opacity: .55; }

/* Räume, Befunde (Bernstein nur für Auffälligkeiten) */
.befunde { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.befund { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem;
  background: var(--auff-hell); border: 1px solid var(--auff-rand); color: var(--auff-text); border-radius: var(--radius); }
.befund form { margin: 0; }
.raumkarten { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.raumkarte { display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: 1rem 1.5rem; background: #fff;
  border: 2px solid var(--linie); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.raumkarte strong { font-size: 1.2rem; margin-right: auto; }
.raumkarte .raumstatus { font-weight: 700; color: var(--text-2); }
.raumkarte .pfeil { color: var(--akzent); font-weight: 700; font-size: 1.4rem; }
.raumkarte.ok .raumstatus { color: var(--akzent); }
.raumkarte.mangel { background: var(--auff-hell); border-color: var(--auff-rand); }
.raumkarte.mangel .raumstatus { color: var(--auff-text); }
.bearbeiten { margin-top: 1.25rem; }
.bearbeiten summary { cursor: pointer; font-weight: 600; color: var(--akzent); padding: .4rem 0; }
.bearbeiten .raumliste { margin-top: .5rem; }
.raumliste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.raumliste li { display: flex; gap: .5rem; align-items: center; }
.raumliste form { margin: 0; }
.umbenennen { flex: 1; display: flex; gap: .5rem; }
.umbenennen input { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips form { margin: 0; }
.chip { font: inherit; font-weight: 600; padding: .6rem 1rem; border-radius: 22px; border: 1px solid var(--akzent-rand); background: var(--akzent-hell); color: var(--akzent); cursor: pointer; }
.liste-klein { list-style: none; padding: 0; margin: 0; }
.liste-klein li { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--linie); }

/* Schlüssel */
.schluessel { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.schluessel li { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.25rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); }
.schluessel .name { margin-right: auto; font-weight: 600; }
.schluessel form { margin: 0; }
.zaehlknopf { width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--linie); background: #fff; font-size: 1.6rem; font-weight: 700; cursor: pointer; }
.anzahl { min-width: 2.5rem; text-align: center; font-size: 1.5rem; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.anzahl.an { color: var(--akzent); }

/* Regelungen */
.regel { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; background: #fff; border: 2px solid var(--linie); border-radius: var(--radius); font-weight: 400; margin: 0; }
.regel input[type=radio], .regel input[type=checkbox] { width: 26px; height: 26px; flex-shrink: 0; accent-color: var(--akzent); margin-top: .1rem; }
.regel:has(input:checked) { border-color: var(--akzent); }
.regel input[type=date] { display: block; margin-top: .5rem; }

/* Fotos */
.unsichtbar { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
label.kamera { cursor: pointer; position: relative; }
label.antwort { margin: 0; }
.kamera-klein { align-self: center; display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.4rem; border-radius: var(--radius);
  border: 2px solid var(--akzent); color: var(--akzent); background: #fff; font-weight: 700; margin: 0; }
label.textlink { margin: 0; }
.galerie { display: flex; flex-wrap: wrap; gap: .6rem; }
.galerie:empty { display: none; }
.galerie figure { position: relative; margin: 0; width: 132px; height: 132px; border-radius: 14px; overflow: hidden; background: #E7E9EE; }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie figure.laedt img { opacity: .45; }
.galerie figure.laedt::after { content: "…"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: var(--text); }
.galerie form { position: absolute; top: 4px; right: 4px; margin: 0; }
.foto-weg { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(21, 24, 29, .7); color: #fff; font-size: 1.2rem; cursor: pointer; }
.befund { flex-direction: column; align-items: stretch; }
.befund-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.befund .kamera-klein { align-self: flex-start; border-color: var(--auff-rand); color: var(--auff-text); background: transparent; padding: .6rem 1rem; }
body.speichert .antwort, body.speichert button.primary { opacity: .6; }
/* Funkloch-Puffer (netz.js): Hinweis oben fest, Eingabe bleibt bedienbar */
.netz-meldung { position: sticky; top: 0; z-index: 50; margin: 0; padding: .9rem 1.2rem; background: #FDECEC; color: #8A1C1C; border-bottom: 1px solid #F3B4B4; font-weight: 600; text-align: center; }
body.wartet-auf-netz button.primary, body.wartet-auf-netz .antwort { opacity: .6; }

/* Abschnitt 4: Einordnen, Vereinbarungen, Vorschau */
.zentriert { text-align: center; }
.antworten.drei > * { min-width: 200px; }
.antworten.drei .antwort { min-height: 170px; }
.antworten.flach .antwort { min-height: 96px; }
.antwort.gewaehlt { border-color: var(--akzent); background: var(--akzent-hell); }
.einordnen-befund { display: flex; gap: 1.25rem; align-items: center; padding: 1rem; background: var(--auff-hell);
  border: 1px solid var(--auff-rand); border-radius: var(--radius); }
.einordnen-befund img { width: 180px; height: 135px; object-fit: cover; border-radius: 12px; }
.befund-text { font-size: 1.2rem; font-weight: 600; margin: .25rem 0 0; color: var(--auff-text); }
.strittig-marke { color: var(--auff); font-weight: 700; margin: .4rem 0 0; }
.blatt { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 2rem; overflow-x: auto; }
.blatt .p-fotos figure img { max-width: 420px; }
.korrigieren summary { cursor: pointer; font-weight: 700; color: var(--akzent); padding: .6rem 0; }
.korrigieren .liste-klein a { color: var(--text); font-weight: 600; }
.pin-karte { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.pin-felder { display: flex; gap: .75rem; }
.pin-felder input, .pin-form input { font-size: 1.6rem; letter-spacing: .4em; text-align: center; max-width: 220px; }
.pin-form { align-items: center; }
.primary.gross { min-height: 76px; font-size: 1.25rem; }

/* Unterschriftsmodus: keine Navigation, nur dieses Protokoll */
.modus-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.5rem;
  background: var(--text); color: #fff; }
.modus-kopf div { display: flex; flex-direction: column; }
.modus-kopf .muted { color: #C9CDD6; }
.modus-kopf .knopf-klein { background: transparent; color: #fff; border-color: #5B6170; }
.unterzeichner { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.unterzeichner li { flex: 1 1 160px; display: flex; flex-direction: column; padding: .75rem 1rem; background: #fff;
  border: 2px solid var(--linie); border-radius: var(--radius); }
.unterzeichner li span { color: var(--text-2); font-size: .9rem; }
.unterzeichner li.fertig { border-color: var(--akzent-rand); background: var(--akzent-hell); }
.unterzeichner li.jetzt { border-color: var(--akzent); }
.vereinbart { padding: 1rem 1.25rem; background: var(--akzent-hell); border: 1px solid var(--akzent-rand); border-radius: var(--radius); }
.vereinbart p { margin: .25rem 0 0; }
.unterschrift-form { display: flex; flex-direction: column; gap: .75rem; }
.unterschrift-form h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 1rem 0 0; }
.bestaetigungen { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.bestaetigungen label { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.25rem; background: #fff;
  border: 2px solid var(--linie); border-radius: var(--radius); cursor: pointer; }
.bestaetigungen label:has(input:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.bestaetigungen input { width: 28px; height: 28px; accent-color: var(--akzent); flex: none; margin: 0; }
.bestaetigungen span { display: flex; flex-direction: column; gap: .2rem; }
.bestaetigungen small { color: var(--text-2); font-size: .9rem; }
.sig-feld { position: relative; background: #fff; border: 2px dashed var(--linie); border-radius: var(--radius); }
.sig-feld canvas { display: block; width: 100%; aspect-ratio: 3 / 1; touch-action: none; }
.sig-hinweis { position: absolute; left: 1.25rem; bottom: .75rem; color: var(--text-2); pointer-events: none; }
.hat-unterschrift .sig-hinweis { display: none; }
.sig-aktionen { display: flex; justify-content: space-between; align-items: center; }
button:disabled { opacity: .45; cursor: not-allowed; }

/* Etappe A: Nummern, Kaution, Gegenstände, Beteiligte */
.nummern { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem 1rem; }
.nummern > div { display: flex; flex-direction: column; }
.card.kaution, .card.person-karte { display: flex; flex-direction: column; gap: .5rem; }
.card.kaution h2 { margin: 0 0 .25rem; }
.person { flex-wrap: wrap; }
.person .anschrift { flex-basis: 100%; }
.gegenstand { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.25rem; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius); }
.gegenstand .befund-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.gegenstand form { margin: 0; }

/* Etappe C1: Versand, Archiv, Profil */
.topnav { display: flex; gap: 1rem; }
.ok { background: var(--akzent-hell); border: 1px solid var(--akzent-rand); color: var(--akzent); border-radius: var(--radius); padding: .8rem 1rem; margin: .5rem 0 0; }
.empfaenger { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.empfaenger li { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; padding: 1rem 1.25rem;
  background: #fff; border: 2px solid var(--linie); border-radius: var(--radius); }
.empfaenger li:has(input[type=checkbox]:checked) { border-color: var(--akzent); background: var(--akzent-hell); }
.empfaenger input[type=checkbox] { width: 28px; height: 28px; accent-color: var(--akzent); grid-row: 1 / 3; }
.empfaenger input[type=email] { width: 100%; }
.aktionen { display: flex; flex-wrap: wrap; gap: 1rem; }
.aktionen > * { flex: 1 1 260px; }
.versaende { list-style: none; padding: 0; margin: 0; }
.versaende li { padding: .75rem 0; border-bottom: 1px solid var(--linie); }
.versaende .fehlgeschlagen { color: #8A1C1C; }
.archiv-link { margin-top: 1.5rem; }
a.button.sekundaer { display: grid; place-items: center; text-decoration: none; min-height: var(--primaer-hoehe); margin-top: 1.25rem;
  border-radius: var(--radius); border: 2px solid var(--akzent); color: var(--akzent); font-weight: 700; background: #fff; }

/* Etappe C2: Team */
.team-liste { margin: 1.25rem 0; }
.team-nutzer form { margin: .75rem 0 0; }
.link-box { display: flex; flex-direction: column; gap: .3rem; margin: .75rem 0; }
.link-box input { font-family: ui-monospace, monospace; font-size: .85rem; }
.knopf-klein.gefahr { color: #8A1C1C; border-color: #F3B4B4; }
.loeschen { margin-top: 1rem; }
.loeschen summary { cursor: pointer; color: #8A1C1C; font-weight: 600; padding: .4rem 0; }
.papierkorb .eintrag { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem 1.5rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); }
.papierkorb form { margin: 0; }

/* Schmale Bildschirme (iPhone): nichts darf seitlich überstehen */
.version { overflow-wrap: anywhere; }
.topbar { flex-wrap: wrap; }
input, textarea, select { max-width: 100%; min-width: 0; }
.liste-gross a, .card, .page { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  html, body { font-size: 16px; }
  .topbar { gap: .5rem 1rem; padding: .75rem 1rem; }
  .topbar .muted { order: 3; flex-basis: 100%; margin-left: 0; font-size: .85rem; }
  .topnav { margin-left: auto; gap: .75rem; }
  .page { padding: 1rem; }
  .center { padding: 1rem; }
  .card { padding: 1.25rem; }
  .erf-kopf { flex-wrap: wrap; padding: .75rem 1rem; }
  .segmente { padding: .5rem 1rem 0; }
  .segment span { font-size: .7rem; }
  .fortschritt { padding: 0 1rem; }
  .schritt { padding: 1rem; }
  .frage { font-size: 1.5rem; }
  .antworten > * { min-width: 100%; }
  .antwort { min-height: 120px; }
  .blatt { padding: 1rem; }
}
.nachtraege { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.nachtraege h2 { margin: 0; }
.nachtrag { padding: .75rem 1rem; background: var(--auff-hell); border: 1px solid var(--auff-rand); border-radius: var(--radius); }
.nachtrag p { margin: 0; white-space: pre-wrap; }
.neue-fassung { margin-top: 1rem; }
.neue-fassung summary { cursor: pointer; font-weight: 600; color: var(--akzent); padding: .4rem 0; }
/* Startseite 2.0: Filter, Einträge mit Status, Archivieren mit Rückgängig */
.topbar .muted { margin-left: 0; }
.topbar .topnav { margin-left: auto; }
.neu-kompakt { flex-direction: row; align-items: center; justify-content: space-between; padding: 1.4rem 2rem; }
.neu-kompakt .karte-sub { display: block; }
.neu-kompakt .plus { font-size: 2.4rem; font-weight: 300; line-height: 1; }
.filter { display: flex; width: fit-content; background: #E7E9ED; border-radius: 14px; padding: 4px; gap: 4px; margin: 1.75rem 0 .5rem; }
.filter a { display: flex; align-items: center; min-height: 44px; padding: 0 1.2rem; border-radius: 11px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.filter a[aria-current="page"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.filter .zahl { min-width: 1.5em; margin-left: .4rem; padding: 0 .45em; border-radius: 99px; background: var(--grund); font-size: .85rem; text-align: center; }
.filter a[aria-current="page"] .zahl { background: var(--akzent-hell); color: var(--akzent); }
.filter .zahl.todo, .filter a[aria-current="page"] .zahl.todo { background: var(--auff-hell); color: var(--auff-text); }
.gruppe { font-size: .85rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; margin: 1.25rem 0 .5rem; }
.leer { margin: 1.5rem 0; }
.liste-eintraege { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .7rem; }
.gruppe + .liste-eintraege { margin-top: 0; }
.eintrag { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1.25rem; align-items: center; padding: 1.1rem 1.4rem; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius); text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.eintrag:active { background: var(--akzent-hell); }
.eintrag-titel { font-weight: 700; font-size: 1.1rem; }
.eintrag-meta { color: var(--text-2); font-size: .92rem; }
.eintrag-meta:empty { display: none; }
.eintrag-rechts { grid-column: 2; grid-row: 1 / 4; display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.eintrag-wann { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.etikett { display: inline-flex; align-items: center; font-size: .85rem; font-weight: 600; padding: .3rem .75rem; border-radius: 99px; white-space: nowrap; }
.etikett-schritt { background: var(--grund); color: var(--text-2); border: 1px solid var(--linie); }
.etikett-unterschrift { background: var(--akzent-hell); color: var(--akzent); border: 1px solid var(--akzent-rand); }
.etikett-gesperrt { background: #EEF0F4; color: var(--text); }
.etikett-todo { background: var(--auff-hell); color: var(--auff-text); border: 1px solid var(--auff-rand); }
.etikett-erledigt { color: var(--text-2); padding-right: 0; }
.balken { display: flex; gap: 3px; }
.balken i { width: 22px; height: 5px; border-radius: 3px; background: var(--linie); }
.balken i.an { background: var(--akzent); }
.mit-knopf { display: flex; gap: .6rem; align-items: stretch; }
.mit-knopf .eintrag { flex: 1; }
.mit-knopf form { display: flex; margin: 0; }
.archiv-knopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; width: 96px; border: 1px solid var(--linie);
  border-radius: var(--radius); background: #fff; color: var(--text-2); font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.archiv-knopf:hover, .archiv-knopf:focus-visible { color: var(--akzent); border-color: var(--akzent-rand); }
.eintrag-papierkorb { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.4rem; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); }
.eintrag-papierkorb form { margin: 0; }
/* Hinweis nach dem Archivieren: verschwindet nach 8 s von selbst (ohne Skript) */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; gap: 1.2rem; align-items: center; background: #15181D; color: #fff;
  border-radius: 14px; padding: .6rem .8rem .6rem 1.2rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: toast-weg .4s ease 8s forwards; max-width: calc(100% - 32px); }
.toast form { margin: 0; }
.toast button { font: inherit; font-weight: 700; color: #7FD8C4; background: none; border: 0; min-height: 44px; padding: 0 .6rem; cursor: pointer; }
@keyframes toast-weg { to { opacity: 0; visibility: hidden; } }
@media (max-width: 640px) {
  .neu-kompakt { padding: 1.1rem 1.3rem; }
  .filter { width: 100%; }
  .filter a { flex: 1 1 auto; justify-content: center; padding: 0 .6rem; font-size: .9rem; white-space: nowrap; }
  .eintrag { grid-template-columns: 1fr; padding: 1rem 1.1rem; }
  .eintrag-rechts { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: .4rem .6rem; margin-top: .3rem; }
  .archiv-knopf { width: 64px; font-size: 0; gap: 0; }
}
/* KI-Vorschlag am Zählerfoto (ki.js): ? = unsichere Ziffer, muss getippt werden */
.ki-vorschlag { margin: .75rem 0 0; padding: .85rem 1.1rem; border-radius: var(--radius); font-weight: 600; background: var(--akzent-hell); color: var(--akzent); border: 1px solid var(--akzent-rand); }
.ki-vorschlag[data-art="laeuft"] { background: var(--grund); color: var(--text-2); border-color: var(--linie); }
.ki-vorschlag[data-art="unsicher"] { background: var(--auff-hell); color: var(--auff-text); border-color: var(--auff-rand); }
.ki-vorschlag[data-art="fehler"] { background: var(--grund); color: var(--text-2); border-color: var(--linie); font-weight: 500; }
input.stand.unsicher { border-color: var(--auff); background: var(--auff-hell); }
.ki-start { margin-top: .5rem; }
.haken { display: flex; gap: .8rem; align-items: center; font-weight: 600; margin: .5rem 0; }
.haken input { width: 26px; height: 26px; accent-color: var(--akzent); flex: none; margin: 0; }
