/* B7 (25.11.2026): Fokusrahmen in akzent_schrift (Orange auf Weiß hätte nur 2,4 zu 1), Schalter Hell/Dunkel. */
/* Ansicht nach der Vorschau (22.11.2026): heller, warmer Grund, weiße Flächen mit feiner Linie und runden Ecken, ruhige
   dunkle Schrift, leise Nebenzeilen. Die Akzentfarbe der Einstellung trägt den einen wichtigen Knopf je Seite, die
   aktive Auswahl und Hervorhebungen, immer als Fläche mit akzent_text (nie als Schrift). Alle Farben kommen aus
   /stil/farben.css: aus der Einstellung haupt, akzent, haupt_text, akzent_text; aus app/toene.py die neutralen Töne
   (grund, flaeche, fein, linie, rahmen, schrift, leise, Statusfarben je mit heller Fläche) für Hell und Dunkel; die
   dunklen folgen dem Gerät. Keine feste Farbe hier (Prüfung V7), keine fremden Schriften (R13): Systemschrift. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem; line-height: 1.5; color: var(--schrift); background: var(--grund);
  overflow-wrap: anywhere;
}
a { color: var(--schrift); text-underline-offset: .15em; }
h1 { font-size: 1.6rem; line-height: 1.25; margin: .25rem 0 .35rem; font-weight: 700; }
h2 { font-size: 1.15rem; margin: 1.25rem 0 .5rem; }
.karte h2:first-child { margin-top: 0; }
.lead { color: var(--leise); margin: 0 0 1rem; }
code { font-size: .95em; background: var(--fein); border: 1px solid var(--linie); border-radius: .3rem; padding: 0 .3rem; }

/* ---- Rahmen: Seitenleiste am Rechner, Kopfzeile am Handy ---- */
.rahmen { min-height: 100vh; display: flex; flex-direction: column; }
.kopf {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem;
  padding: .6rem 1rem; background: var(--flaeche); color: var(--schrift); border-bottom: 1px solid var(--linie);
}
.marke { display: flex; align-items: center; gap: .6rem; color: var(--schrift); text-decoration: none; font-weight: 700;
  min-width: 0; flex: 0 1 auto; }
/* Breite und quadratische Logos: feste Höhe, Breite nach dem Seitenverhältnis, nie breiter als der Platz (contain
   statt Stauchen). Im Dunkeln liegt das Logo auf einer hellen Fläche (wie in der Vorschau). */
.logo { height: 2.4rem; width: auto; max-width: min(60vw, 15rem); object-fit: contain; object-position: left center;
  display: block; flex: 0 1 auto; min-width: 0; background: var(--logo-grund); border-radius: .4rem; }
.navi { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem; min-width: 0; }
.navi a { color: var(--schrift); text-decoration: none; padding: .4rem .7rem; border-radius: .55rem; }
.navi a:hover { background: var(--fein); }
.navi a[aria-current="page"] { background: var(--akzent); color: var(--akzent_text); font-weight: 600; }
.kopf-unten { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .85rem; color: var(--leise);
  margin-left: auto; min-width: 0; }
.wer { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.wer-zeichen { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: .8rem; background: var(--haupt); color: var(--haupt_text); }
.abmelden { margin: 0; }
.abmelden button { padding: .3rem .7rem; font-size: .85rem; }

@media (min-width: 900px) {
  /* Fotos 03.12.2026: Fläche und Linie der festen Leiste reichen bei langen Seiten bis unten (keine helle Lücke unter ihr) */
  .mit-navi .rahmen { flex-direction: row;
    background: linear-gradient(to right, var(--flaeche) calc(15rem - 1px), var(--linie) calc(15rem - 1px), var(--linie) 15rem, transparent 15rem); }
  .mit-navi .kopf {
    flex: none; width: 15rem; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .2rem;
    border-bottom: 0; border-right: 1px solid var(--linie); padding: 1.1rem .75rem 1rem;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
  }
  .mit-navi .marke { margin: 0 .35rem 1.1rem; }
  .mit-navi .logo { height: auto; max-height: 4.5rem; width: auto; max-width: 100%; }
  .mit-navi .navi { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: .15rem; }
  .mit-navi .navi a { padding: .55rem .75rem; }
  .mit-navi .kopf-unten { margin: auto 0 0; flex-direction: column; align-items: flex-start; padding: .75rem .4rem 0;
    border-top: 1px solid var(--linie); }
}

.inhalt { flex: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; min-width: 0; }
.handy .inhalt { max-width: 42rem; }
.schmal .inhalt { max-width: 26rem; }
.schmal .kopf { justify-content: center; }
@media (min-width: 900px) { .mit-navi .inhalt { padding: 1.5rem 2rem 2.5rem; margin: 0; } .mit-navi.handy .inhalt { margin: 0 auto; } }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: .875rem; padding: 1rem; margin-bottom: 1rem;
  min-width: 0; }
.spalten { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.spalten > .karte { margin-bottom: 0; }
@media (min-width: 900px) { .spalten { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); } }

/* ---- Knöpfe: einer in der Akzentfarbe je Seite, sonst weiß mit feiner Linie ---- */
button { font: inherit; cursor: pointer; border-radius: .65rem; border: 1px solid transparent; padding: .65rem 1.1rem; }
button[disabled] { cursor: not-allowed; opacity: .45; }
.haupt { background: var(--akzent); color: var(--akzent_text); font-weight: 600; border-color: transparent; }
.zweit, .leise { background: var(--flaeche); color: var(--schrift); border: 1px solid var(--rahmen); font-weight: 500; }
.leise { padding: .4rem .8rem; }
.gross { width: 100%; padding: 1rem; font-size: 1.1rem; border-radius: .875rem; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
label.knopf:focus-within { outline: 3px solid var(--akzent_schrift); outline-offset: 2px; }

/* minmax(0, …) und min-width: 0, damit Eingaben bei großer Schrift schmaler werden statt aus der Karte zu ragen
   (B4b VB5). */
.formular { display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
.formular label { display: grid; gap: .3rem; font-weight: 600; grid-template-columns: minmax(0, 1fr); min-width: 0; }
input, select, textarea { font: inherit; padding: .6rem .7rem; border: 1px solid var(--rahmen); border-radius: .55rem;
  width: 100%; min-width: 0; max-width: 100%; background: var(--flaeche); color: var(--schrift); }
textarea { resize: vertical; }

/* Meldungen: Text in der Schrift auf heller Fläche, Art an Fläche und Rand (Rot, Grün). */
.meldung, .erfolg { background: var(--rot-hell); color: var(--schrift); padding: .7rem .9rem; border-radius: .65rem;
  border: 1px solid var(--linie); border-left: .35rem solid var(--rot); }
.erfolg { background: var(--gruen-hell); border-left-color: var(--gruen); }
.hinweis { color: var(--leise); font-size: .95rem; }
/* B4d: Skizze zum Fahrzeugschein (aufgeklappt oder Seite 2 und 3) */
.skizze-schein { margin: .4rem 0; color: var(--leise); }
.skizze-schein svg { display: block; max-width: 100%; height: auto; }
.skizze-schein figcaption { margin-top: .2rem; }
.leer { color: var(--leise); padding: 1.25rem 0; text-align: center; }
/* Hinweisband („1 Fahrzeug wartet auf Ihre Freigabe.“): helle Fläche aus der Akzentfarbe, Schrift dunkel */
.band { background: var(--akzent-hell); color: var(--schrift); border-radius: .65rem; padding: .6rem .9rem; margin: 0 0 1rem;
  border-left: .3rem solid var(--akzent); }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding: .7rem 0;
  border-bottom: 1px solid var(--linie); }
.marke-klein { font-size: .85rem; padding: .1rem .55rem; border-radius: 1rem; background: var(--grau-hell); color: var(--schrift); }

/* ---- Bestand am Rechner ---- */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.seitenkopf h1 { margin: 0 auto 0 0; }
.pillen { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.pillen a { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; border: 1px solid var(--linie);
  background: var(--flaeche); color: var(--schrift); border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; }
.pillen a[aria-current="true"] { background: var(--akzent); color: var(--akzent_text); border-color: transparent; font-weight: 600; }
.pillen .zahl { font-variant-numeric: tabular-nums; }

.tabelle { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: .75rem; overflow: hidden; }
.tabelle th, .tabelle td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--linie); vertical-align: middle; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle th { font-size: .8rem; color: var(--leise); font-weight: 600; background: var(--fein); }
/* Bestand: Köpfe, Kilometer, Erstzulassung und Datum nie mitten im Wort umbrechen (Fotos 03.12.2026) */
.tabelle.bestand th, .tabelle.bestand td.eng { white-space: nowrap; }
.tabelle small, .zeile small { display: block; color: var(--leise); font-size: .85rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; }
.knoepfe form { margin: 0; }
.werte { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .4rem 1rem; margin: 0; }
.werte dt { color: var(--leise); }
.werte dd { margin: 0; min-width: 0; }

/* Vorschaubild in Liste und Zeile (Foto oder Platzhalter) */
.daum { width: 4.25rem; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: .4rem; display: block;
  background: var(--grau-hell); flex: none; }
.daum-leer { display: flex; align-items: center; justify-content: center; color: var(--leise); font-size: .75rem; }

/* Stand als farbige Marke */
.st { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.st-aufnahme, .st-in_arbeit, .st-archiviert { background: var(--grau-hell); color: var(--grau); }
.st-erfasst { background: var(--blau-hell); color: var(--blau); }
.st-zu_pruefen { background: var(--gelb-hell); color: var(--gelb); }
.st-bereit, .st-online { background: var(--gruen-hell); color: var(--gruen); }
.st-verkauft { background: var(--blau-hell); color: var(--blau); }

/* Schmale Bildschirme: Tabellen werden zu Karten statt seitlich zu laufen. */
@media (max-width: 640px) {
  .tabelle thead { display: none; }
  .tabelle, .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle tr { padding: .5rem .75rem; border-bottom: 1px solid var(--linie); }
  .tabelle tr:last-child { border-bottom: 0; }
  .tabelle td { border: 0; padding: .15rem 0; }
}
/* Bestand bei großer Schrift (Planung B4a, 1280 px bei 200 %): Köpfe und Zahlen brechen nicht mitten im Wort um
   (oben), die Tabelle braucht dann rund 37rem. Ist die Fläche schmaler als 40rem, wird sie wie am Handy zu Karten,
   statt seitlich zu laufen. Gemessen in rem an der Fläche selbst, also auch bei großer Schrift im breiten Fenster;
   bei normaler Schrift am Rechner (1280 px: rund 61rem) bleibt die Tabelle unverändert. */
.bestand-rahmen { container-type: inline-size; }
@container (max-width: 40rem) {
  .tabelle.bestand thead { display: none; }
  .tabelle.bestand, .tabelle.bestand tbody, .tabelle.bestand tr, .tabelle.bestand td { display: block; width: 100%; }
  .tabelle.bestand tr { padding: .5rem .75rem; border-bottom: 1px solid var(--linie); }
  .tabelle.bestand tr:last-child { border-bottom: 0; }
  .tabelle.bestand td { border: 0; padding: .15rem 0; }
}

/* ---- Handy: Start ---- */
.abschnitt { font-size: .85rem; font-weight: 600; color: var(--leise); text-transform: uppercase; letter-spacing: .03em;
  margin: 1.5rem 0 .25rem; }
.neu { margin: 1rem 0 .5rem; }
.zeilen { list-style: none; margin: 0; padding: 0; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .65rem 0; border-bottom: 1px solid var(--linie); }
.zeile-text { flex: 1 1 9rem; min-width: 0; line-height: 1.35; }
.zeile-text strong { display: block; font-weight: 700; }
.stand-zeile { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.knopf-klein { display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--rahmen);
  background: var(--flaeche); color: var(--schrift); border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; flex: none; }
.auto-link { color: inherit; text-decoration: none; }

/* ---- Handy: Schritte der Aufnahme ---- */
.zurueck { display: inline-block; color: var(--schrift); text-decoration: none; font-weight: 600; padding: .25rem 0; margin-bottom: .25rem; }
.zurueck:hover { text-decoration: underline; }
.schritte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.5rem), 1fr)); gap: .3rem; margin: 0 0 1rem; }
.schritte a { text-align: center; padding: .45rem .25rem; border-radius: 999px; border: 1px solid var(--linie);
  color: var(--schrift); text-decoration: none; font-size: .9rem; background: var(--flaeche); }
.schritte a[aria-current="page"] { background: var(--akzent); color: var(--akzent_text); border-color: transparent; font-weight: 600; }
.wahl { border: 1px solid var(--linie); border-radius: .65rem; padding: .5rem .8rem; margin: 0 0 .8rem; display: flex;
  flex-wrap: wrap; gap: .4rem 1.2rem; min-width: 0; min-inline-size: 0; }
.wahl legend { font-weight: 600; padding: 0 .3rem; }
/* .formular label.wahl-knopf: sonst überstimmt .formular label (Raster) den Knopf, und „ja“ steht unter dem Punkt
   statt daneben (B4b VB7 c). */
.wahl-knopf, .formular label.wahl-knopf { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; padding: .3rem 0; }
.wahl-knopf input { width: auto; flex: 0 0 auto; min-width: 13px; min-height: 13px; accent-color: var(--akzent); }
.knopf { position: relative; display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border-radius: .65rem; padding: .65rem 1.1rem; cursor: pointer; font-weight: 600; }
.knopf.gross { display: flex; }
.knopf input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.knopf-link { text-decoration: none; display: inline-block; }
/* Auswahl als Pillen (Marke, Modell, Linie, Extras) */
.wahl-taste { border-radius: 999px; padding: .45rem .95rem; }
a.leise { color: var(--schrift); border-radius: 999px; }
.plaetze { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; }
/* Bild und Text nebeneinander, bei großer Schrift untereinander (umbrechen statt quer laufen; B4b VB5). */
.platz { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; margin: 0; }
.platz .bild { flex: 1 1 7.5rem; max-width: 9rem; min-width: 0; }
.platz-text { flex: 999 1 9rem; min-width: 0; display: grid; gap: .35rem; }
.platz .bild img, .vorschauen img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .45rem; display: block;
  background: var(--grau-hell); }
.stand { font-size: .85rem; padding: .1rem .55rem; border-radius: 1rem; border: 1px solid var(--linie); justify-self: start; }
[data-stand="oben"] .stand, .eintrag[data-stand="oben"] .stand { border-color: var(--gruen); color: var(--gruen); background: var(--gruen-hell); }
[data-stand="fehler"] .stand { border-color: var(--rot); color: var(--rot); background: var(--rot-hell); }
[data-stand="doppelt"] .stand { border-style: dotted; border-color: currentColor; }
[data-stand="laedt"] .stand { border-style: dashed; }
.stapel, .vorschauen { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .4rem; }
.vorschauen { grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); }
.eintrag { display: grid; gap: .25rem; }
.stapel .eintrag { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: .5rem 0; border-top: 1px solid var(--linie); }
/* Vorschau eines Papierfotos nie breiter als die Spalte (sonst lief die Seite bei 360 Pixel quer; B4b) */
.stapel .eintrag img { display: block; width: 100%; max-width: 12rem; height: auto; border-radius: .45rem; }
/* „Weiter zu …“ ist der nächste Schritt: ein Knopf mit eigener Fläche und Linie, kein Textlink (B4b VB7 d). */
.weiter { display: flex; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: .9rem 1rem;
  margin: .75rem 0 1rem; font-weight: 600; text-decoration: none; border-radius: .875rem; background: var(--flaeche);
  color: var(--schrift); border: 1px solid var(--rahmen); min-height: 3rem; }
.weiter.haupt { background: var(--akzent); color: var(--akzent_text); border-color: transparent; }
.verwerfen { margin: 1.5rem 0; }
.verwerfen summary { cursor: pointer; padding: .5rem 0; color: var(--leise); }

/* Punkt 9: Hinweis über dem Auslöser (nicht wegklickbar, ohne Skript sichtbar) und Prüfung des Ausschnitts */
.vorsicht { display: grid; gap: .2rem; background: var(--gelb-hell); color: var(--schrift); border-radius: .65rem;
  padding: .7rem .9rem; margin: .25rem 0 .75rem; border-left: .35rem solid var(--gelb); }
.vorsicht strong { font-size: 1.05rem; line-height: 1.35; }
.vorsicht span { color: var(--leise); font-size: .95rem; }
.pruefen { border-left: .35rem solid var(--akzent); }
.ausschnitt { display: block; margin: .25rem 0 .75rem; }
.ausschnitt img { display: block; width: 100%; height: auto; border-radius: .55rem; border: 1px solid var(--linie);
  background: var(--fein); }
.frage { font-weight: 700; font-size: 1.1rem; line-height: 1.35; margin: 0 0 .75rem; }
.entscheidung { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.entscheidung form { margin: 0; }

/* B4b: Stand der Papiere (wird geprüft, angenommen, bitte neu fotografieren) und Herkunft gelesener Werte. Die Farbe
   sitzt am Rand, der Text bleibt in der Schrift (Kontrast geprüft). */
.pruefung { display: block; grid-column: 1 / -1; font-size: .9rem; padding: .15rem 0 .15rem .6rem; border-left: 3px solid var(--linie);
  overflow-wrap: anywhere; }
[data-pruefung="angenommen"] > .pruefung, .pruefung[data-pruefung="angenommen"] { border-left-color: var(--gruen); }
[data-pruefung="abgelehnt"] > .pruefung, .pruefung[data-pruefung="abgelehnt"],
[data-pruefung="liegen_geblieben"] > .pruefung, .pruefung[data-pruefung="liegen_geblieben"] { border-left-color: var(--rot); font-weight: 600; }
[data-pruefung="nicht_gelesen"] > .pruefung, .pruefung[data-pruefung="nicht_gelesen"] { border-left-color: var(--gelb); }
[data-pruefung="zu_bestaetigen"] > .pruefung, .pruefung[data-pruefung="zu_bestaetigen"] { border-left-color: var(--akzent); font-weight: 600; }
.herkunft { font-size: .85rem; font-weight: normal; color: var(--leise); }
.luecke { border-color: var(--rot); font-weight: 600; }
/* Lücke als Hinweis erkennbar, nicht wie „erfasst“ daneben (Nacharbeit B4b 8 c) */
.marke-klein.luecke { background: var(--rot-hell); border: 1px solid var(--linie); border-left: .35rem solid var(--rot); border-radius: .3rem; }
.tabelle .marke-klein.luecke { display: inline-block; margin: .2rem 0 0 .3rem; }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.leer-karte { padding: 2rem 1rem; }
/* B5: Fahrzeug im Bestand (Bereich „Ausstattung (DAT)“) und Prüfseite der Katalogwerkstatt */
.dat-felder { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.dat-felder li { background: var(--gelb-hell); border-left: .25rem solid var(--gelb); border-radius: .5rem; padding: .3rem .6rem; min-width: 0; overflow-wrap: anywhere; }
.dat-felder li[data-bestaetigt] { background: var(--flaeche); border-left-color: var(--gruen); }
.marke-klein.gelb { background: var(--gelb-hell); color: var(--gelb); }
.dat-hochladen input[type=file], .dat-sammeln input[type=file], .werkstatt-hochladen input[type=file] { max-width: 100%; }
/* Prüfseite (Nacharbeit B5 Ziel 6): je Zelle oben der Ausschnitt in Originalgröße (nie verkleinert; breiter als die
   Karte: im eigenen Rahmen seitlich schiebbar, die Seite selbst läuft nicht quer), darunter Merkmal und Wert nebeneinander,
   das Auswahlfeld in ganzer Breite seines Texts */
.pruefzellen { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; margin: .5rem 0 1rem; }
.pruefzelle { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "bild bild" "merkmal wert";
  gap: .35rem .75rem; align-items: center; padding: .6rem .75rem; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: .6rem; min-width: 0; }
.pruefzelle.unsicher { background: var(--gelb-hell); }
.zellbild-rahmen { grid-area: bild; overflow-x: auto; max-width: 100%; min-width: 0; }
.zellmerkmal { grid-area: merkmal; min-width: 0; overflow-wrap: anywhere; }
.zellmerkmal small { display: block; color: var(--leise); font-size: .85rem; }
.zellwert { grid-area: wert; justify-self: end; min-width: 0; max-width: 100%; }
.zellwert select { width: auto; min-width: 0; max-width: 100%; }
.zellwert-fest { font-weight: 700; font-size: 1.1rem; }
.zellbild { display: block; max-width: none; width: auto; height: auto; border: 1px solid var(--linie); border-radius: .3rem;
  background: var(--flaeche); }
@media (max-width: 400px) {
  .pruefzelle { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bild" "merkmal" "wert"; }
  .zellwert { justify-self: start; }
}
.werkstatt-linie .formular > select { max-width: 100%; }

/* B5: Abschnitt eines DAT-Blatts vor der Bestätigung (genau der Text für die KI, verdächtige Zeilen markiert) */
.dat-abschnitt { margin: 0 0 .75rem; padding: .5rem .5rem .5rem 2rem; border: 1px solid var(--linie); border-radius: .4rem;
  font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.dat-abschnitt li { padding: .1rem .25rem; }
.dat-abschnitt li.verdacht { border-left: 3px solid var(--rot); font-weight: 600; }

/* B5, Ziel 4 der dritten Nacharbeit: Ablagefläche für DAT-Blätter. Ohne JavaScript nur das Feld des Browsers wie
   bisher; mit JavaScript (Klasse ablage-js) eine gestrichelte Fläche, „Datei auswählen“ deutsch, das Feld des Browsers
   unsichtbar, aber mit der Tastatur erreichbar (der Knopf zeigt dann den Fokus). */
.ablage { margin: .25rem 0 .75rem; }
.ablage .ablage-text, .ablage .knopf-datei, .ablage .ablage-name { display: none; }
.ablage.ablage-js { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .75rem;
  padding: 1.25rem 1rem; border: 2px dashed var(--rahmen); border-radius: .75rem; background: var(--fein); text-align: center;
  position: relative; min-width: 0; }
.ablage.ablage-js .ablage-text { display: block; flex-basis: 100%; margin: 0; color: var(--leise); }
.ablage.ablage-js .knopf-datei { display: inline-block; cursor: pointer; border-radius: .65rem; padding: .65rem 1.1rem; }
.ablage.ablage-js .ablage-name { display: block; flex-basis: 100%; color: var(--leise); font-size: .9rem; overflow-wrap: anywhere; }
.ablage.ablage-js input[type=file] { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; padding: 0;
  margin: 0; border: 0; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.ablage.ablage-js input[type=file]:focus-visible + .knopf-datei { outline: 3px solid var(--akzent_schrift); outline-offset: 2px; }
.ablage.ablage-aktiv { border-color: var(--akzent); border-style: solid; background: var(--blau-hell); }
.ablage.ablage-aktiv .ablage-text { color: var(--schrift); font-weight: 600; }

/* ---- B7: Schalter Hell/Dunkel (wie im Kalender: Sonne/Mond, ohne Skript). Ohne Wahl (kein data-thema) zeigt er den
   Weg weg vom Modus des Geräts; mit Wahl liefert der Server nur den anderen Knopf. ---- */
form.thema-schalter { display: inline-flex; margin: 0; }
.thema-knopf { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  margin: 0; padding: 0; background: transparent; border: 1px solid var(--rahmen); border-radius: 99px; color: var(--schrift); }
:root:not([data-thema]) .thema-knopf.zu-hell { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema]) .thema-knopf.zu-hell { display: inline-flex; }
  :root:not([data-thema]) .thema-knopf.zu-dunkel { display: none; }
}
/* B7, Hinweis der Abnahme: Die globale Zeile (.zeile, Liste der Autos) gilt nicht für die Textzeilen des DAT-Abschnitts;
   dort bleibt der Text eine Spalte über die ganze Breite, auch bei 320 Pixel und 200 % Schrift. */
.dat-abschnitt .zeile { display: inline; padding: 0; border: 0; gap: 0; }
/* B7: Am Handy (Finger, keine Maus) geht nur der Knopf; dort steht kein „hierher ziehen“. */
@media (hover: none) and (pointer: coarse) { .ablage.ablage-js .ablage-text { display: none; } }

/* B9 Teil a: Standtage-Warnung (Stufe 1 ab hinweis, 2 ab gelb, 3 ab rot), Online-Liste, Übersicht */
.marke-klein.standtage-1, .marke-klein.standtage-2, .marke-klein.standtage-3 { display: inline-block; color: var(--schrift);
  border: 1px solid var(--linie); border-left: .35rem solid var(--gelb); border-radius: .3rem; white-space: nowrap; text-decoration: none; }
.marke-klein.standtage-1 { background: var(--flaeche); }
.marke-klein.standtage-2 { background: var(--gelb-hell); }
.marke-klein.standtage-3 { background: var(--rot-hell); border-left-color: var(--rot); font-weight: 600; }
.standtage-band .marke-klein { margin: .15rem .15rem 0 0; }
.standtage-filter { margin: 0 0 1rem; }
.online-liste .tage { font-weight: 700; font-variant-numeric: tabular-nums; }
.online-liste td, .zeitraeume td { font-variant-numeric: tabular-nums; }
.nur-schmal { display: none; }
.gross-zahl { font-size: 2rem; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums; }
.kennzahlen { margin-bottom: 1rem; }
.stufen-liste, .preise { list-style: none; margin: 0; padding: 0; }
.stufen-liste li { display: flex; justify-content: space-between; gap: .5rem; padding: .15rem 0; }
.preise li { padding: .25rem 0; border-bottom: 1px solid var(--linie); }
.preise li:last-child { border-bottom: 0; }
.preise small { display: block; color: var(--leise); font-size: .85rem; }
.rang { margin: 0; padding-left: 1.4rem; }
.rang li { padding: .15rem 0; }
.rang strong { float: right; font-variant-numeric: tabular-nums; }
.statistik-verlauf { max-height: 22rem; overflow: auto; }
.preis-form { display: flex; flex-wrap: wrap; gap: .3rem; margin: .3rem 0 0; align-items: center; }
.preis-form input { width: 6.5rem; max-width: 100%; }
.preis-rueckfrage { max-width: 40rem; }
.preis-rueckfrage .haken { display: flex; gap: .5rem; align-items: flex-start; margin: .5rem 0 1rem; }
.statistik-verlauf .tabelle td, .statistik-verlauf .tabelle th { padding: .3rem .5rem; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .nur-schmal { display: inline; }
  .tabelle td[colspan] { display: block; }
}
/* B4d: Ecken von Hand setzen (Papier). Farben nur aus der Einstellung (R8): Punkt akzent mit Ring akzent_text und
   äußerem Ring akzent; das Paar hat Kontrast ab 4,5, eins davon hebt sich von hellem wie dunklem Foto ab. */
.ecken-flaeche { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; margin: .5rem 0 1rem; }
.ecken-flaeche img { display: block; width: 100%; height: auto; border-radius: .5rem; }
.ecken-linie { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ecken-linie polygon { fill: var(--akzent); fill-opacity: .12; stroke: var(--akzent); stroke-width: .006; vector-effect: non-scaling-stroke; }
.ecke { position: absolute; width: 2.75rem; height: 2.75rem; min-height: 0; margin: -1.375rem 0 0 -1.375rem; padding: 0;
  border-radius: 50%; border: 3px solid var(--akzent_text); background: var(--akzent); color: var(--akzent_text);
  box-shadow: 0 0 0 2px var(--akzent); touch-action: none; }
.ecke:focus-visible { outline: 3px solid var(--akzent_schrift); outline-offset: 2px; }
.ecken-start { margin-top: .4rem; }

/* B4e Handy-Ablauf: Fortschritt beim Papier und beim Kilometer, Fotoserie, offene Punkte, Großansicht.
   Farben nur aus der Einstellung (R8, Variablen aus /stil/farben.css). */
.fortschritt { display: flex; align-items: center; gap: .6rem; margin: .5rem 0 1rem; font-weight: 600; }
.fortschritt[hidden] { display: none; }
.laeuft { flex: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: .2rem solid var(--linie);
  border-top-color: var(--akzent); animation: laeuft 1s linear infinite; }
@keyframes laeuft { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .laeuft { animation-duration: 3s; } }
.freigegeben .erfolg { margin: 0 0 .5rem; }
.freigegeben .weiter { margin-bottom: 0; }
.serie { display: grid; gap: .7rem; }
.serie-bild img { display: block; width: 100%; max-width: 22rem; margin: 0 auto; aspect-ratio: 4 / 3; object-fit: contain;
  border-radius: .55rem; background: var(--grau-hell); }
.serie-form { margin: 0; }
.serie-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; }
.serie-knoepfe [hidden] { display: none; }
.serie-knoepfe .knopf-klein.haupt { flex: 1 1 100%; justify-content: center; padding: .9rem 1rem; font-size: 1.05rem;
  border-radius: .875rem; border-color: transparent; background: var(--akzent); color: var(--akzent_text); font-weight: 600; }
.serie-knoepfe .knopf-klein.zweit { background: var(--flaeche); color: var(--schrift); min-height: 2.75rem; min-width: 8rem;
  justify-content: center; }  /* „Fotos fertig“ bleibt der kleinere Knopf, ist aber als Schritt nach vorn antippbar (VB7 d) */
.alle-plaetze summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.alle-plaetze[open] summary { margin-bottom: .6rem; }
.platz[data-uebersprungen] .stand { border-style: dotted; color: var(--leise); }
.offene-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.offene-punkte li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between;
  padding: .45rem 0; border-top: 1px solid var(--linie); }
.offene-punkte li:first-child { border-top: 0; }
.offene-punkte li[data-offen="hinweis"] span { color: var(--leise); }
.fertig-zeile { display: grid; gap: .4rem; margin: 0 0 1rem; }
.fertig-zeile .hinweis { margin: 0; }
.cockpit .ausschnitt img { max-height: 60vh; object-fit: contain; }
body.gross-offen { overflow: hidden; }
.gross-ansicht { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .75rem; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: var(--grund); }
.gross-ansicht img { max-width: 100%; max-height: calc(100% - 4rem); object-fit: contain; border-radius: .45rem;
  border: 1px solid var(--linie); }
.gross-zu { min-height: 3rem; padding: .7rem 1.4rem; border-radius: 999px; font-size: 1.05rem; }
.buero-angaben h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
.angabe-zeile { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; padding: .3rem 0; }
/* B4f Galerie hochladen, die KI ordnet zu: Liste der Fotos ohne Platz, Marke „Bitte zuordnen“, Plätze als Knöpfe.
   Farben nur aus der Einstellung und den neutralen Tönen (R8, Variablen aus /stil/farben.css). */
.link-knopf { position: relative; display: block; text-align: center; margin: .75rem 0 0; padding: .6rem .5rem;
  text-decoration: underline; text-underline-offset: .15em; cursor: pointer; color: var(--schrift); font-weight: 600; }
.link-knopf input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.galerie-liste { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .8rem; }
.galerie-foto { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--linie); }
.galerie-foto:first-child { border-top: 0; }
.galerie-bild { flex: 1 1 8rem; max-width: 12rem; min-width: 0; display: block; }
.galerie-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .45rem; display: block; background: var(--grau-hell); }
.galerie-text { flex: 999 1 12rem; min-width: 0; display: grid; gap: .4rem; }
.galerie-foto[data-galerie-stand="bitte"] { background: var(--gelb-hell); border-radius: .65rem; padding: .6rem; border-top: 0; }
.marke-bitte { justify-self: start; padding: .15rem .65rem; border-radius: 999px; background: var(--akzent); color: var(--akzent_text); }
.platz-knoepfe { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.platz-knoepfe button { min-height: 2.75rem; padding: .45rem .8rem; border-radius: .65rem; }
.platz-knoepfe button.haupt { flex: 1 1 100%; font-weight: 600; }
.selbst summary, .platz-aendern summary { cursor: pointer; color: var(--leise); padding: .25rem 0; }
.selbst[open] summary, .platz-aendern[open] summary { margin-bottom: .4rem; }
.gross-knopf { display: block; width: 100%; min-height: 3rem; padding: .8rem 1rem; border-radius: .875rem; font-size: 1.05rem; font-weight: 600; }
.galerie-pruefen { margin: .5rem 0 0; }
.platz-wahl select { max-width: 100%; }

/* ---- Rechner-Ansicht (02.12.2026, Ronnys Probe am Rechner): Am Rechner (Maus, breites Fenster) ziehen statt
   fotografieren. Erkennung nur über die Eigenschaften des Zeigers, nie über den User-Agent. Ein Gerät mit Maus UND
   Touch (Laptop mit Touchscreen, Tablet mit Maus) sieht beide Wege; nichts fehlt ganz (ohne Skript bleibt jedes
   Dateifeld). Ein schmales Fenster mit Maus gilt wie ein Handy (gleiche Bedienung, gleiche Breite).
   .nur-rechner: nur am Rechner · .nicht-rechner: überall außer am Rechner · .handy-weg: weg nur am reinen Rechner. */
@media not all and (hover: hover) and (pointer: fine) and (min-width: 700px) { .nur-rechner { display: none !important; } }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) { .nicht-rechner { display: none !important; } }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) and (not (any-pointer: coarse)) { .handy-weg { display: none !important; }
  /* Fotos 03.12.2026: am Rechner ohne sichtbaren Knopf keine leere Zeile oben in der Karte „Fotos oben“ */
  .serie-knoepfe:not(:has(> :not([hidden], .handy-weg))) { display: none; }
  .serie > [data-serie-stand] { margin: 0; } }
.ablage-flaeche { position: relative; min-width: 0; }
.ablage-flaeche .ablage-text { margin: 0 0 .6rem; }
.ablage-flaeche .ablage-text strong { display: block; font-size: 1.15rem; }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) {
  .ablage-flaeche { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    min-height: 11rem; padding: 1.5rem 1rem; border: 2px dashed var(--rahmen); border-radius: .875rem;
    background: var(--fein); text-align: center; }
  .ablage-flaeche.ablage-haupt { border-color: var(--akzent); min-height: 14rem; }
  .ablage-flaeche .knopf.gross { display: inline-flex; width: auto; padding: .7rem 1.4rem; font-size: 1rem; }
  .ablage-flaeche .link-knopf { margin: 0; }
  .ablage-flaeche.ablage-aktiv { border-style: solid; border-color: var(--akzent); background: var(--blau-hell); }
  .ablage-flaeche.ablage-aktiv .ablage-text { color: var(--schrift); }
  .rechner-fotos { margin-bottom: 1rem; }
}
/* „Weiter“ nach der Freigabe: am Handy der Hauptknopf (Akzent), am Rechner ein Knopf zweiter Reihe unter der Fläche */
@media not all and (hover: hover) and (pointer: fine) and (min-width: 700px) {
  .weiter.weiter-fotos { background: var(--akzent); color: var(--akzent_text); border-color: transparent; } }
@media (hover: hover) and (pointer: fine) and (min-width: 700px) {
  .freigegeben:not([hidden]) { display: flex; flex-direction: column; }
  .freigegeben .weiter-fotos { order: 3; margin: .75rem 0 0; } }
/* Foto löschen (Ziel 4): kleines X oben rechts im Bild. Trefferfläche 44 Pixel, sichtbar nur ein kleiner Kreis; am
   Rechner erst beim Darüberfahren (oder mit der Tastatur), am Handy immer. */
.foto-rahmen { position: relative; min-width: 0; }
.platz .bild { position: relative; }
.foto-weg { position: absolute; top: 0; right: 0; margin: 0; }
.foto-weg-knopf { width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: transparent;
  display: flex; align-items: flex-start; justify-content: flex-end; cursor: pointer; color: var(--schrift); }
.foto-weg-knopf span { display: flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; margin: .25rem;
  border-radius: 999px; background: var(--flaeche); border: 1px solid var(--rahmen); font-size: 1.1rem; line-height: 1; }
.foto-weg-knopf:focus-visible { outline: 3px solid var(--akzent_schrift); outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .foto-weg { opacity: 0; transition: opacity .12s; }
  .bild:hover .foto-weg, .foto-rahmen:hover .foto-weg, .foto-weg:focus-within { opacity: 1; }
}
.meldung-unten { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 40; display: flex; gap: .75rem; align-items: center; max-width: calc(100% - 2rem); padding: .6rem .6rem .6rem 1rem;
  border-radius: .875rem; background: var(--schrift); color: var(--grund); }
.meldung-unten button { min-height: 44px; padding: .4rem 1rem; border-radius: .65rem; }
.meldung-unten[hidden] { display: none; }

/* Papierseite (Fotos 03.12.2026): Skizze und Ablagefläche folgen der Wahl unter „Welches Papier?“. */
.papier:has(input[name=art][value=coc]:checked) .nur-schein { display: none !important; }
.papier:not(:has(input[name=art][value=coc]:checked)) .nur-coc { display: none !important; }

/* ---- Statistik (Rechner-Layout Teil 4, Entwurf ST 03.12.2026; Seite /statistik, Vorlage statistik.html) ----------
   Nur Klassen mit st- vorn und die Seite .statistik-seite; Farben nur aus den Tönen (hell und dunkel von selbst). */
.statistik-seite .inhalt { max-width: none; }
.statistik-seite .seitenkopf { align-items: flex-start; margin-bottom: 1.25rem; }
.st-lead { margin: 0; }
.st-kacheln { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.st-kachel { background: var(--flaeche); border: 1px solid var(--linie); border-radius: .875rem; padding: .85rem 1rem; min-width: 0; }
.st-kachel h2 { margin: 0; font-size: .85rem; font-weight: 400; color: var(--leise); }
.st-kachel b { display: block; font-size: 1.9rem; line-height: 1.2; margin: .15rem 0; font-variant-numeric: tabular-nums; }
.st-kachel small { color: var(--leise); font-size: .8rem; }
.st-kachel .marke-klein { display: block; width: fit-content; margin: .2rem 0 0; font-size: .8rem; }
.st-regel { font-size: .85rem; background: var(--blau-hell); color: var(--schrift); border-left: 4px solid var(--blau);
  border-radius: .5rem; padding: .5rem .8rem; margin: 0 0 1rem; }
.st-graphen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.st-listen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.st-graphen .karte, .st-listen .karte { margin: 0; min-width: 0; }
.st-graphen h2, .st-listen h2 { margin: 0 0 .15rem; font-size: 1rem; }
.st-unter { display: block; margin-bottom: .4rem; font-size: .85rem; color: var(--leise); }
.st-graphen svg { width: 100%; height: auto; display: block; }
.st-gitter { stroke: var(--linie); stroke-width: 1; }
.st-achse { fill: var(--leise); font-size: 11px; }
.st-wert { fill: var(--schrift); font-size: 11px; font-weight: 600; }
.st-linie { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.st-s-akzent { stroke: var(--akzent); } .st-s-gruen { stroke: var(--gruen); }
.st-f-akzent { fill: var(--akzent); } .st-f-gruen { fill: var(--gruen); } .st-f-grau { fill: var(--grau); }
.st-f-blau { fill: var(--blau); } .st-f-gelb { fill: var(--gelb); } .st-f-rot { fill: var(--rot); }
.st-graphen .leer { padding: 3rem 0; }
.st-listen h3 { margin: .6rem 0 .2rem; font-size: .85rem; }
.st-beste { color: var(--gruen); }
.st-schwaechste { color: var(--rot); }
.st-tab { width: 100%; border-collapse: collapse; font-size: .88rem; }
.st-tab th { white-space: nowrap; text-align: left; font-weight: 600; color: var(--leise); font-size: .78rem; padding: .25rem .3rem;
  border-bottom: 1px solid var(--linie); }
.st-tab td { padding: .32rem .3rem; border-bottom: 1px solid var(--linie); vertical-align: top; overflow-wrap: anywhere; }
.st-tab .z { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-tab a { color: var(--schrift); }
.st-wer { display: block; font-size: .8rem; color: var(--leise); }
.st-mehr { margin: .5rem 0 0; font-size: .85rem; }
@media (max-width: 1100px) { .st-listen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .st-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-graphen, .st-listen { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .st-kacheln { grid-template-columns: 1fr; } }
/* ==== Rechner-Layout Teil 3: E0 Hochladen und E1/E2 Erfassen (Variante A), Entwurf von Ronny abgenommen 03.12.2026.
   Eigener Block, alle Klassen mit „e-“ (stil.css teilen sich mehrere Bauteile). Farben nur aus /stil/farben.css. ==== */
.e-leise { color: var(--leise); }
.e-klein { font-size: .85rem; }
.e-zeichen { width: 2.1rem; height: 2.1rem; color: var(--leise); flex: none; }
.e-link-knopf { background: none; border: 0; padding: .25rem 0; color: var(--schrift); text-decoration: underline;
  text-underline-offset: .15em; font: inherit; cursor: pointer; min-height: 0; }
.e-link-knopf:hover { color: var(--akzent_schrift); }
.e-schleier { position: fixed; inset: 0; background: color-mix(in srgb, var(--schrift) 30%, transparent); z-index: 30; }
.e-schleier[hidden] { display: none; }
.e-fenster { position: fixed; z-index: 31; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(46rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem); overflow: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 1rem;
  padding: 1.25rem 1.4rem; box-shadow: 0 16px 50px color-mix(in srgb, var(--schrift) 30%, transparent); box-sizing: border-box; }
@media (min-width: 1000px) { .mit-navi .e-fenster { left: calc(50% + 7.5rem); } }
.e-fenster[hidden] { display: none; }
.e-fenster h2 { margin: 0; font-size: 1.35rem; padding-right: 2rem; }
.e-satz { margin: .2rem 0 0; font-size: .9rem; }
.e-x { position: absolute; right: 1rem; top: .8rem; background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--leise);
  padding: .2rem .5rem; text-decoration: none; cursor: pointer; min-height: 0; }
.e-x:hover { color: var(--schrift); }
.e-flaeche-titel { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 1rem 0 .35rem; }
.e-flaeche-titel b { font-size: 1rem; } .e-flaeche-titel span { font-size: .85rem; color: var(--leise); }
.e-zone { border: 2px dashed var(--rahmen); border-radius: .8rem; background: var(--fein); padding: 1rem; min-height: 7.5rem;
  display: flex; flex-direction: column; justify-content: center; gap: .6rem; box-sizing: border-box; }
.e-zone-gross { min-height: 11rem; }
.e-zone-leer { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; text-align: center; }
.e-zone-gross .e-zone-leer { flex-direction: column; gap: .6rem; }
.e-zone-leer[hidden], .e-zone-mehr[hidden], .e-vorschauen[hidden] { display: none; }
.e-zone.e-ziehen, .e-ablage.e-ziehen { border-style: solid; border-color: var(--akzent); background: var(--akzent-hell); }
.e-zone-zeile { display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.e-zone[data-e0-zone=papier].voll .e-zone-zeile { flex-direction: row; align-items: center; gap: 1rem; }
.e-zone[data-e0-zone=papier] .e-vorschauen { flex: none; }
.e-papier-info { flex: 1; align-items: stretch !important; min-width: 0; }
.e-papier-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-ersetzen { flex: none; font-size: .88rem; }
.e-ersetzen[hidden] { display: none; }
.e-zone-mehr { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .88rem; }
.e-waehlen { cursor: pointer; display: inline-flex; align-items: center; }
.e-vorschauen { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: .4rem; }
.e-papier-vs { display: flex; flex-wrap: wrap; max-width: 55%; }
.e-papier-vs .e-vs { width: 7rem; }
.e-vs { position: relative; aspect-ratio: 4 / 3; border-radius: .35rem; overflow: hidden; border: 1px solid var(--linie); background: var(--flaeche); }
.e-vs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e-vs i { position: absolute; left: .2rem; right: .2rem; bottom: .2rem; height: .3rem; border-radius: 1rem;
  background: color-mix(in srgb, var(--flaeche) 75%, transparent); overflow: hidden; }
.e-vs i b { display: block; height: 100%; width: 0; background: var(--akzent); transition: width .2s; }
.e-vs.ok i b { background: var(--gruen); }
.e-vs.fehlt { outline: 2px solid var(--rot); }
.e-ladezeile { display: flex; align-items: center; gap: .6rem; width: 100%; color: var(--leise); }
.e-balken { display: block; flex: 1; height: .45rem; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 1rem; overflow: hidden; }
.e-balken i { display: block; height: 100%; width: 0; background: var(--akzent); transition: width .2s; }
.e-balken-gross { flex: none; margin-bottom: .9rem; }
.e-haken-kasten { display: flex; gap: .8rem; align-items: center; margin: 1rem 0 0; padding: .75rem 1rem; border: 2px solid var(--gelb);
  border-radius: .8rem; background: var(--gelb-hell); color: var(--schrift); cursor: pointer; }
.e-haken-kasten input { width: 1.4rem; height: 1.4rem; flex: none; accent-color: var(--akzent); }
.e-haken-kasten b { display: block; font-size: 1.05rem; }
.e-haken-kasten small { display: block; color: var(--schrift); font-size: .85rem; }
.e-fenster-fuss { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.e-weiter { padding: .75rem 2.2rem; font-size: 1.05rem; }
.e-weiter:disabled { opacity: .45; cursor: default; }

/* E1/E2: links Papier und Angaben, Mitte der aktuelle Schritt, unten die Bildleiste */
.mit-navi .inhalt:has(.e-seite) { max-width: none; }
.e-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.e-kopf h1 { margin: 0; }
.e-zurueck { display: inline-block; margin-bottom: .35rem; color: var(--leise); text-decoration: none; }
.e-zurueck:hover { color: var(--schrift); }
.e-schritte { display: flex; gap: .4rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; width: 26rem; max-width: 100%; }
.e-schritte li { flex: 1; text-align: center; padding: .4rem .2rem; border-radius: .5rem; background: var(--flaeche); border: 1px solid var(--linie); color: var(--leise); }
.e-schritte li.jetzt { background: var(--akzent); color: var(--akzent_text); border-color: transparent; font-weight: 600; }
.e-schritte li.ok { color: var(--gruen); }
.e-erf { display: grid; grid-template-columns: 22rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.e-erf .karte { margin: 0; }
.e-links { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.e-karte h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.e-umschalter { display: flex; gap: .4rem; margin: .25rem 0 .75rem; }
.e-umschalter a { flex: 1; text-align: center; padding: .45rem .3rem; font-size: .85rem; border-radius: .55rem; text-decoration: none;
  white-space: nowrap; border: 2px solid var(--akzent); color: var(--schrift); background: var(--flaeche); }
.e-umschalter a.an { background: var(--akzent); color: var(--akzent_text); font-weight: 600; }
.e-klein-papier { display: flex; gap: .8rem; align-items: center; }
.e-klein-papier img, .e-papier-zeichen { width: 5.5rem; flex: none; border-radius: .3rem; border: 1px solid var(--linie); background: var(--fein); color: var(--leise); }
.e-papier-zeichen { height: 4rem; padding: .3rem; box-sizing: border-box; }
.e-links-zeile { display: flex; gap: 1rem; flex-wrap: wrap; margin: .75rem 0 0; }
.e-feld { display: block; margin: .6rem 0; }
.e-feld span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .25rem; }
.e-feld input, .e-feld textarea { width: 100%; box-sizing: border-box; font: inherit; padding: .55rem .7rem; border: 1px solid var(--rahmen);
  border-radius: .55rem; background: var(--flaeche); color: var(--schrift); }
.e-feld small { display: block; color: var(--leise); font-size: .8rem; margin-top: .2rem; }
.e-haken { display: flex; gap: .5rem; align-items: center; font-size: .95rem; margin: .7rem 0; padding: .5rem .6rem; border-radius: .55rem;
  background: var(--gelb-hell); border: 1px solid var(--gelb); }
.e-haken input { width: 1.15rem; height: 1.15rem; accent-color: var(--akzent); }
.e-fertig { width: 100%; padding: .9rem; font-size: 1.1rem; }
.e-fertig:disabled { opacity: .6; cursor: default; }
.e-fertig-zeile { margin: .5rem 0 0; }
.e-buehne { padding: 1.1rem 1.25rem; min-width: 0; }
.e-buehne h2 { margin: 0; font-size: 1.4rem; }
.e-unter { color: var(--leise); margin: .15rem 0 .6rem; }
.e-ablage { border: 2px dashed var(--rahmen); border-radius: .9rem; min-height: 24rem; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .9rem; padding: 1.25rem; background: var(--fein); text-align: center; box-sizing: border-box; }
.e-ablage .e-papier-zeichen { width: 9rem; height: 6.5rem; }
.e-ablage .e-vorschauen { width: 100%; max-width: 30rem; }
.e-ablage-warten { min-height: 16rem; }
.e-freigabe { min-height: 0; margin: 0; }
.e-ausschnitte { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.e-schein-gross { max-width: 100%; max-height: 24rem; border-radius: .5rem; border: 1px solid var(--linie); background: var(--flaeche); }
.e-gelb-hinweis { background: var(--gelb-hell); color: var(--schrift); border-left: 4px solid var(--akzent); border-radius: .5rem; padding: .55rem .8rem; font-size: .95rem; }
.e-beispiel { width: 46%; max-width: 26rem; max-height: 16rem; object-fit: contain; }
.e-knopfzeile { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.e-gross-knopf { padding: .8rem 1.6rem; font-size: 1.05rem; cursor: pointer; display: inline-flex; align-items: center; }
.e-linkzeile { display: flex; justify-content: space-between; margin-top: .75rem; font-size: .95rem; }
.e-leiste-karte { grid-column: 1 / -1; padding: .75rem; }
.e-leiste { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; list-style: none; align-items: start; }
.e-platz { position: relative; min-width: 0; }
.e-platz-knopf { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: center; min-height: 0; }
.e-bild { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; border-radius: .45rem;
  border: 1px solid var(--linie); background: var(--fein); overflow: hidden; }
.e-bild img { width: 100%; height: 100%; object-fit: cover; }
.e-platz.leer .e-bild img { object-fit: contain; width: 88%; height: 80%; opacity: .3; }
.e-platz.jetzt .e-bild { outline: 2px dashed var(--akzent_schrift); outline-offset: 2px; background: var(--akzent-hell); }
.e-platz.jetzt.leer .e-bild img { opacity: .8; }
.e-platz b { display: block; font-size: .7rem; font-weight: 500; color: var(--leise); margin-top: .25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e-punkt { position: absolute; top: .3rem; left: .3rem; width: .6rem; height: .6rem; border-radius: 50%; border: 1.5px solid var(--flaeche); display: none; }
.e-platz[data-stand=oben] .e-punkt { display: block; background: var(--gruen); }
.e-platz[data-stand=laedt] .e-punkt { display: block; background: var(--gelb); }
.e-platz[data-stand=fehlt]:not(.leer) .e-punkt { display: block; background: var(--rot); }
.e-platz.offen .e-bild { outline: 2px solid var(--gelb); outline-offset: 1px; }
.e-platz.offen b { color: var(--schrift); }
.e-offen { margin-top: .9rem; }
.e-offen[hidden] { display: none; }
.e-offen h3 { margin: 0 0 .5rem; font-size: .95rem; }
.e-gross { width: min(52rem, calc(100% - 2rem)); }
.e-gross-bild { display: block; max-width: 100%; max-height: 60vh; margin: .75rem auto; border-radius: .5rem; }
.e-gross .e-knopfzeile label { cursor: pointer; }
.e-gross [hidden] { display: none; }
.e-platz-wahl { display: inline-flex; gap: .4rem; align-items: center; white-space: nowrap; }
.e-platz-wahl select { font: inherit; padding: .4rem; border-radius: .45rem; border: 1px solid var(--rahmen); background: var(--flaeche); color: var(--schrift); }
.e-rot { color: var(--rot); border-color: var(--rot); }
@media (max-width: 1100px) { .e-erf { grid-template-columns: 19rem minmax(0, 1fr); } .e-leiste { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 760px) { .e-erf { grid-template-columns: minmax(0, 1fr); } }
.e-seite label.haupt, .e-seite label.zweit, .e-fenster label.haupt, .e-fenster label.zweit { border-radius: .65rem; padding: .65rem 1.1rem; position: relative; }
.e-seite label:focus-within, .e-fenster label:focus-within { outline: 3px solid var(--akzent_schrift); outline-offset: 2px; }
.e-papier-stand { display: flex; gap: .8rem; align-items: center; margin-top: .5rem; padding: .6rem .8rem; border-radius: .7rem;
  border: 1px solid var(--linie); background: var(--fein); font-size: .92rem; }
.e-papier-stand[hidden] { display: none; }
.e-papier-stand.e-gut { border-color: var(--gruen); background: var(--gruen-hell); color: var(--schrift); }
.e-papier-stand.e-schlecht { flex-direction: column; align-items: flex-start; gap: .2rem; border-color: var(--rot); background: var(--rot-hell); color: var(--schrift); }
.e-papier-stand.e-freigabe-klein { border: 2px solid var(--akzent); background: var(--gelb-hell); color: var(--schrift); }
.e-ausschnitte-klein { display: flex; gap: .4rem; flex: none; }
.e-ausschnitte-klein img { width: 9rem; max-height: 6.5rem; object-fit: contain; border-radius: .35rem; border: 1px solid var(--linie); background: var(--flaeche); }
.e-freigabe-text { display: flex; flex-direction: column; gap: .3rem; }
.e-freigabe-text .e-knopfzeile { justify-content: flex-start; }
.e-freigabe-text button { padding: .45rem 1.1rem; }
.e-dat-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; width: 100%; }
.e-dat-liste[hidden] { display: none; }
.e-dat-liste > li { display: flex; flex-direction: column; padding: .35rem .6rem; border-radius: .5rem; background: var(--flaeche); border: 1px solid var(--linie); }
.e-dat-liste > li.ok { border-color: var(--gruen); }
.e-dat-liste > li.fehlt { border-color: var(--rot); }
.e-zone-leer.e-klein-leer { gap: .5rem; }
.e-zone-leer.e-klein-leer .e-zeichen { width: 1.4rem; height: 1.4rem; }
/* E0 Zielablauf (03.12.2026): Fläche grün, wenn fertig; Haken und Fehler in der Fläche; Kilometer; Fuß */
.e-zone { position: relative; }
.e-balken i.e-voll, .e-vs.ok[data-foto-id] i b { width: 100%; }
.e-flaeche-haken { display: none; position: absolute; top: -.85rem; right: .9rem; border: 3px solid var(--flaeche); width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--gruen); color: var(--flaeche); font-weight: 700; align-items: center; justify-content: center; font-size: .95rem; }
.e-zone.e-gruen { border-style: solid; border-color: var(--gruen); background: var(--gruen-hell); }
.e-zone.e-gruen > .e-flaeche-haken { display: inline-flex; }
.e-zone.e-gruen .e-papier-stand.e-gut { border-color: transparent; background: none; padding: 0; }
.e-klein-haken { display: flex; gap: .55rem; align-items: flex-start; cursor: pointer; font-weight: 600; font-size: .95rem; }
.e-klein-haken input { width: 1.25rem; height: 1.25rem; flex: none; margin: .1rem 0 0; accent-color: var(--gruen); }
.e-freigabe-text .e-link-knopf { align-self: flex-start; }
.e-dat-liste > li { gap: .35rem; }
.e-dat-liste > li.e-dat-offen { border: 2px solid var(--akzent); background: var(--gelb-hell); }
.e-dat-liste > li.fehlt { background: var(--rot-hell); }
.e-dat-kopf { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: baseline; padding-right: 2rem; }
.e-dat-text summary { cursor: pointer; font-size: .9rem; margin-bottom: .3rem; }
.e-dat-text .dat-abschnitt { margin: 0 0 .4rem; background: var(--flaeche); font-size: .88rem; }
.e-dat-text p { margin: 0 0 .3rem; }
.e-dat-foto img { max-width: 100%; max-height: 14rem; object-fit: contain; border: 1px solid var(--linie); border-radius: .35rem; background: var(--flaeche); display: block; }
.e-dat-reihe { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1rem; }
.e-km { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding-top: .5rem; border-top: 1px solid var(--linie); font-size: .92rem; }
.e-km[hidden] { display: none; }
.e-km label { font-weight: 600; }
.e-km input { width: 8rem; font: inherit; padding: .35rem .5rem; border-radius: .45rem; border: 1px solid var(--rahmen); background: var(--flaeche); color: var(--schrift); }
.e-fuss-rechts { display: flex; align-items: center; gap: .9rem; text-align: right; }
.e-fuss-rechts .e-link-knopf { font-size: inherit; }
/* ==== Ende Rechner-Layout Teil 3 ==== */
.e-vs.e-vs-pdf::after { content: attr(data-pdf); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--leise); }
/* Einzelheiten-Seite: Wege unten (Probe Ronny 03.12. abends) */
.seitenfuss-wege { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.5rem 0 2rem; }
.seitenfuss-wege .knopf { text-decoration: none; }
/* Ronny 04.12.2026: „Auto verwerfen“ klein unter E0, Rückfrage auf eigener Seite */
.e-verwerfen { margin: .9rem 0 0; font-size: .85rem; }
.e-verwerfen a { color: var(--leise); }
