/* BS-FUHRPARK (übernommen aus BS-EINKAUF) – Gestaltung wie BS-CHAT (Wunsch 05.10.2026): Leitfarbe Türkis #00898f,
   hell und dunkel nach Systemeinstellung, Seitenleiste am breiten Bildschirm, Leiste unten am
   Telefon. Bootstrap bleibt nur für Raster und Formularbausteine; Aussehen kommt von hier. */

[hidden] { display: none !important; }

:root {
  --tuerkis: #00898f;
  --tuerkis-dunkel: #006c71;
  --tuerkis-hell: #e3f4f4;
  --grund: #ffffff;
  --flaeche: #f3f5f6;
  --hintergrund: #e9eeef;
  --linie: #dde3e5;
  --text: #1b2326;
  --leise: #66757a;
  --rot: #c62828;
  --rot-hell: #fde8e8;
  --orange: #b86e00;
  --orange-hell: #fff3df;
  --gruen: #2e7d32;
  --gruen-hell: #e6f4e7;
  --schatten: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);
  --rund: 14px;
  --sicher-unten: env(safe-area-inset-bottom, 0px);
  --sicher-oben: env(safe-area-inset-top, 0px);
  --nav-hoehe: 58px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --tuerkis: #20a9ae;
    --tuerkis-dunkel: #5cc6ca;
    --tuerkis-hell: #11373a;
    --grund: #161b1d;
    --flaeche: #1e2427;
    --hintergrund: #0f1416;
    --linie: #2c3438;
    --text: #e6ecee;
    --leise: #93a2a7;
    --rot: #ef6b6b;
    --rot-hell: #3a1d1d;
    --orange: #f0a940;
    --orange-hell: #3a2a12;
    --gruen: #6cc070;
    --gruen-hell: #173019;
    --schatten: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--hintergrund);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select { font-size: 16px; } /* darunter zoomt Safari beim Antippen */
a { color: var(--tuerkis); }
h1, h2, h3 { color: var(--text); }

/* ------------------------------------------------------------- Rahmen -- */

.app { display: flex; min-height: 100dvh; }
.haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.inhalt { width: 100%; max-width: 1100px; margin: 0 auto; padding: 14px 12px calc(var(--nav-hoehe) + var(--sicher-unten) + 24px); }
.ohne-rahmen { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--grund); }

.seitenleiste { display: none; }

.leiste {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  padding: calc(6px + var(--sicher-oben)) 12px 6px; min-height: 56px;
  background: var(--grund); border-bottom: 1px solid var(--linie);
}
.leiste h2 { font-size: 20px; margin: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leiste-marke { color: var(--tuerkis); display: grid; place-items: center; width: 36px; height: 36px; }
.leiste-marke svg { width: 32px; height: 32px; }

.navigation {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; border-top: 1px solid var(--linie); background: var(--grund);
  padding-bottom: var(--sicher-unten);
}
.navigation a {
  flex: 1; min-height: var(--nav-hoehe); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 12px; color: var(--leise); text-decoration: none; position: relative;
}
.navigation a svg { width: 24px; height: 24px; }
.navigation a.an { color: var(--tuerkis); font-weight: 600; }
.navigation a.an::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--tuerkis); }
.navigation .zaehler { position: absolute; top: 6px; left: calc(50% + 6px); height: 18px; min-width: 18px; font-size: 11px; padding: 0 5px; }

/* Breiter Bildschirm: Seitenleiste wie BS-CHAT, keine Leiste unten */
@media (min-width: 900px) {
  .seitenleiste {
    display: flex; flex-direction: column; width: var(--leistenbreite, 260px); flex: none;
    position: sticky; top: 0; height: 100dvh;
    background: var(--grund); border-right: 1px solid var(--linie);
  }
  .navigation, .nur-schmal { display: none !important; }
  .leiste-marke { display: none; }
  .leiste { padding-left: 24px; }
  .inhalt { padding: 20px 24px 32px; }
}
@media (max-width: 899px) { .nur-breit { display: none !important; } }

.app-marke { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; color: var(--tuerkis); text-decoration: none; }
.app-marke svg { width: 34px; height: 34px; }
.app-marke b { color: var(--text); letter-spacing: .04em; }
.seitenleiste .reiter { margin: 4px 14px 10px; }
.menue { flex: 1; overflow-y: auto; padding: 4px 0; }
.eintrag {
  display: flex; align-items: center; gap: 12px; padding: 0 18px; min-height: 48px;
  color: var(--text); text-decoration: none;
}
.eintrag svg { width: 22px; height: 22px; color: var(--leise); flex: none; }
.eintrag span:not(.zaehler) { flex: 1; }
.eintrag:hover { background: var(--flaeche); }
.eintrag.an { background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); font-weight: 600; box-shadow: inset 3px 0 0 var(--tuerkis); }
.eintrag.an svg { color: var(--tuerkis); }
.seitenfuss { display: flex; align-items: center; gap: 2px; padding: 8px 10px; border-top: 1px solid var(--linie); }
.seitenfuss form { margin: 0; }
.person { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 4px 6px; border-radius: 10px; }
.person:hover { background: var(--flaeche); }
.person span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }

.symbol {
  width: 40px; height: 40px; flex: none; border: 0; background: none; border-radius: 50%;
  display: inline-grid; place-items: center; cursor: pointer; color: var(--leise); text-decoration: none;
}
.symbol:hover { background: var(--flaeche); color: var(--text); }
.symbol.aktiv { color: var(--tuerkis); }
.symbol svg { width: 22px; height: 22px; }

.bild { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 600; background: var(--tuerkis); }
.bild.klein { width: 32px; height: 32px; font-size: 13px; }

.zaehler { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--tuerkis); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }

/* Firmenschalter als Reiter (BS-CHAT .reiter) */
.reiter { display: flex; background: var(--flaeche); border-radius: 12px; padding: 4px; }
.reiter a { flex: 1; text-align: center; min-height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--leise); text-decoration: none; font-size: 14px; padding: 0 10px; }
.reiter a.an { background: var(--grund); color: var(--text); box-shadow: var(--schatten); font-weight: 600; }
.reiter.klein a { min-height: 30px; font-size: 13px; padding: 0 8px; }

/* -------------------------------------------------------------- Seite -- */

.seitenkopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.seitenkopf h1 { font-size: 22px; margin: 0; font-weight: 700; }
.seitenkopf .untertitel { color: var(--leise); font-size: 14px; }

.abschnitt { padding: 14px 4px 6px; font-size: 13px; font-weight: 600; color: var(--tuerkis); text-transform: uppercase; letter-spacing: .03em; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.abschnitt.mt-0 { padding-top: 0; }

.karte, .formkarte {
  background: var(--grund); border: 1px solid var(--linie); border-radius: var(--rund);
  padding: 12px 14px; margin-bottom: 8px; box-shadow: var(--schatten);
}
.formkarte { padding: 16px; }
.karte.verweis { display: block; color: inherit; text-decoration: none; }
.karte.verweis:hover { border-color: var(--tuerkis); }
.karte .titel { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--text); }
.karte .meta { color: var(--leise); font-size: 14px; display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 3px; align-items: center; }
.betrag { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.karte-zeile { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.karte-zeile > div:first-child, .karte-zeile > .karte-inhalt { min-width: 0; flex: 1; }
.karte.ausgewaehlt { border-color: var(--tuerkis); box-shadow: inset 3px 0 0 var(--tuerkis), var(--schatten); }
.wahl-check { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--tuerkis); flex: none; }
.justify-items-end { justify-items: end; }

/* Marken (BS-CHAT .marke) */
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: var(--flaeche); color: var(--leise); border: 1px solid var(--linie); white-space: nowrap; text-decoration: none; }
.chip.teal { background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); border-color: transparent; }
.chip.rot { background: var(--rot-hell); color: var(--rot); border-color: transparent; }
.chip.gelb { background: var(--orange-hell); color: var(--orange); border-color: transparent; }
.chip.gruen { background: var(--gruen-hell); color: var(--gruen); border-color: transparent; }
.chip.firma { background: var(--tuerkis); color: #fff; border-color: transparent; font-weight: 600; letter-spacing: .03em; }

.hinweis { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; font-size: 14px; background: var(--tuerkis-hell); color: var(--text); }
.hinweis.ok { background: var(--gruen-hell); color: var(--gruen); }
.hinweis.fehler { background: var(--rot-hell); color: var(--rot); }
.hinweis.info { background: var(--tuerkis-hell); color: var(--tuerkis-dunkel); }

.leer { text-align: center; color: var(--leise); padding: 40px 16px; }
.leer svg { width: 48px; height: 48px; color: var(--tuerkis); opacity: .5; margin-bottom: 8px; }
.fuss { color: var(--leise); font-size: 12px; text-align: center; padding: 24px 0 8px; }
.elo-name { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--flaeche); border: 1px dashed var(--linie); border-radius: 10px; padding: 8px 10px; word-break: break-word; color: var(--text); }

/* -------------------------------------------- Weg-Kette (aus BS-INVOICE) -- */

.weg { display: flex; list-style: none; padding: 0; margin: 0; flex-wrap: nowrap; }
.weg-schritt { display: flex; align-items: flex-start; gap: 7px; flex: 1 1 0; min-width: 0; position: relative; padding-right: 10px; }
.weg-schritt::after { content: ""; position: absolute; top: 12px; left: 30px; right: 4px; height: 2px; background: var(--linie); }
.weg-schritt:last-child::after { display: none; }
.weg-schritt:last-child { flex: 0 0 auto; padding-right: 0; }
.weg-punkt {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linie);
  background: var(--grund); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; position: relative; z-index: 1;
}
.weg-text { font-size: 13px; color: var(--leise); line-height: 1.15; padding-top: 4px; position: relative; z-index: 1; white-space: nowrap; }
.weg-erledigt .weg-punkt { background: var(--tuerkis); border-color: var(--tuerkis); }
.weg-erledigt::after { background: var(--tuerkis); }
.weg-erledigt .weg-text { color: var(--text); }
.weg-aktuell .weg-punkt { border-color: var(--tuerkis); background: var(--grund); box-shadow: 0 0 0 4px var(--tuerkis-hell); }
.weg-aktuell .weg-text { color: var(--tuerkis); font-weight: 700; }
.weg-halt .weg-punkt { border-color: var(--orange); background: var(--orange-hell); }
.weg-halt .weg-text { color: var(--orange); font-weight: 700; }
.weg-abgelehnt .weg-punkt { border-color: var(--rot); background: var(--rot); }
.weg-abgelehnt .weg-text { color: var(--rot); font-weight: 700; }
.weg-schritt.weg-wahl { flex: .55 1 0; }
.weg-wahl .weg-punkt { width: 18px; height: 18px; margin-top: 4px; border-style: dashed; }
.weg-wahl.weg-erledigt .weg-punkt, .weg-wahl.weg-aktuell .weg-punkt { border-style: solid; }
.weg-wahl::after { left: 24px; }
.weg.klein .weg-text { display: none; }
.weg.klein .weg-punkt { width: 14px; height: 14px; border-width: 2px; }
.weg.klein .weg-wahl .weg-punkt { width: 10px; height: 10px; margin-top: 2px; }
.weg.klein .weg-schritt { padding-right: 3px; }
.weg.klein .weg-schritt::after { top: 6px; left: 16px; right: 0; }
.weg.klein .weg-wahl::after { left: 12px; }
.weg.klein { width: 104px; }
/* Große Kette (Positionsseite): Wort immer UNTER dem Knoten - daneben sah es durchgestrichen aus (13.10.2026). */
.weg.gross .weg-schritt, .weg.gross .weg-schritt:last-child, .weg.gross .weg-schritt.weg-wahl { flex: 1 1 0; flex-direction: column; align-items: center; gap: 4px; padding-right: 0; }
.weg.gross .weg-schritt::after { top: 12px; left: calc(50% + 15px); right: calc(-50% + 15px); }
.weg.gross .weg-wahl::after { left: calc(50% + 11px); }
.weg.gross .weg-text { white-space: normal; text-align: center; padding: 0; font-size: 13px; }
.weg.gross .weg-wahl .weg-punkt { margin: 4px 0; }
@media (max-width: 576px) { .weg.gross .weg-text { font-size: 12px; } }

/* ------------------------------------------- Knöpfe und Felder (BS-CHAT) -- */

.btn {
  min-height: 44px; border-radius: 22px; padding: 0 18px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
}
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 17px; }
.btn-primary, .btn-primary:disabled { background: var(--tuerkis); border-color: var(--tuerkis); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--tuerkis-dunkel) !important; border-color: var(--tuerkis-dunkel) !important; color: #fff; }
.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger { background: var(--flaeche); border: 1px solid var(--linie); color: var(--text); }
.btn-outline-primary:hover, .btn-outline-secondary:hover { background: var(--tuerkis-hell) !important; border-color: var(--tuerkis) !important; color: var(--tuerkis-dunkel) !important; }
.btn-outline-danger { color: var(--rot); }
.btn-outline-danger:hover { background: var(--rot-hell) !important; color: var(--rot) !important; border-color: var(--rot) !important; }
.btn:focus-visible { outline: 2px solid var(--tuerkis); outline-offset: 2px; box-shadow: none; }
.knopfreihe { display: flex; gap: 8px; flex-wrap: wrap; }
.knopfreihe .btn, .knopfreihe form { flex: 1 1 auto; }
.knopfreihe form .btn { width: 100%; }
@media (min-width: 900px) { .knopfreihe .btn, .knopfreihe form { flex: 0 0 auto; } }

.form-label, .formkarte .form-label { font-size: 13px; color: var(--leise); margin-bottom: 4px; font-weight: 400; }
.form-control, .form-select {
  min-height: 44px; border-radius: 10px; border: 1px solid var(--linie);
  background-color: var(--grund); color: var(--text);
}
.form-control::placeholder { color: var(--leise); opacity: .8; }
.form-control:focus, .form-select:focus { border-color: transparent; outline: 2px solid var(--tuerkis); outline-offset: -1px; box-shadow: none; background-color: var(--grund); color: var(--text); }
.form-control:disabled, .form-control[readonly] { background-color: var(--flaeche); }
.form-check-input { width: 1.3em; height: 1.3em; background-color: var(--grund); border-color: var(--linie); }
.form-check-input:checked { background-color: var(--tuerkis); border-color: var(--tuerkis); }
.form-check-input:focus { box-shadow: none; outline: 2px solid var(--tuerkis); }
.form-text, .text-muted, .small.text-muted { color: var(--leise) !important; }
.alert { border-radius: 12px; border: 0; }
.alert-secondary { background: var(--flaeche); color: var(--text); }
.alert-success { background: var(--gruen-hell); color: var(--gruen); }
.alert-warning { background: var(--orange-hell); color: var(--orange); }
.alert-danger { background: var(--rot-hell); color: var(--rot); }
details summary { color: var(--leise); }

/* Handlungsleiste unten an Detailseiten, über der Navigation */
.handlungen {
  position: sticky; bottom: calc(var(--nav-hoehe) + var(--sicher-unten)); z-index: 10;
  background: color-mix(in srgb, var(--hintergrund) 92%, transparent); backdrop-filter: blur(6px);
  padding: 10px 0; margin-top: 12px; border-top: 1px solid var(--linie);
}
@media (min-width: 900px) { .handlungen { bottom: 0; } }

/* -------------------------------------------------------- Erfassen -- */

.linkzeile { border: 1px solid var(--linie); border-radius: 12px; padding: 10px; margin-bottom: 8px; background: var(--flaeche); }
.linkzeile.best { border-color: var(--tuerkis); box-shadow: inset 3px 0 0 var(--tuerkis); }
.linkzeile .url { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.vorschlaege { border: 1px solid var(--tuerkis); border-radius: 12px; overflow: hidden; background: var(--grund); margin-top: 6px; box-shadow: var(--schatten); }
.vorschlaege-kopf { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; font-weight: 600; color: var(--tuerkis-dunkel); background: var(--tuerkis-hell); padding: 6px 12px; }
.vorschlag { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--linie); font-size: 14px; }
.vorschlag .klein { color: var(--leise); font-size: 12px; }
.wahlschalter { display: inline-flex; background: var(--flaeche); border-radius: 12px; padding: 4px; }
.wahlschalter input { position: absolute; opacity: 0; pointer-events: none; }
.wahlschalter label { min-height: 36px; padding: 0 16px; display: grid; place-items: center; border-radius: 9px; cursor: pointer; margin: 0; color: var(--leise); font-size: 14px; }
.wahlschalter input:checked + label { background: var(--grund); color: var(--text); box-shadow: var(--schatten); font-weight: 600; }
.wahlschalter input:focus-visible + label { outline: 2px solid var(--tuerkis); }

/* --------------------------------------------------------- Verlauf -- */

.verlauf { list-style: none; padding: 0; margin: 0; }
.verlauf li { padding: 8px 0; border-bottom: 1px solid var(--linie); font-size: 14px; }
.verlauf li:last-child { border-bottom: 0; }
.verlauf .wann { color: var(--leise); font-size: 12px; }
.verlauf .kommentar { background: var(--tuerkis-hell); border-radius: 12px; padding: 6px 10px; margin-top: 3px; }

table.liste { width: 100%; font-size: 14px; color: var(--text); }
table.liste th { font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--leise); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--linie); }
table.liste td { padding: 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle-rahmen { overflow-x: auto; background: var(--grund); border: 1px solid var(--linie); border-radius: var(--rund); }

/* -------------------------------------------------------- Anmelden -- */

.anmeldung { width: min(420px, 100%); }
.anmeldung .logo { display: block; width: 100%; max-width: 380px; margin: 0 auto 20px; }

/* Trennstrich zwischen „Mit BS-CHAT anmelden" und dem Weg über Anmeldename und Kennwort. */
.oder { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--leise); font-size: 13px; }
.oder::before, .oder::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--linie); }

/* Den Seitentitel trägt die Titelleiste (wie BS-CHAT) - in der Seite bleibt nur die Unterzeile. */
.seitenkopf h1 { display: none; }
.seitenkopf:not(:has(.untertitel)):not(:has(.btn)):not(:has(form)) { display: none; }

/* ------------------------------------------------ Ablauf (Rechner-Ansicht) -- */
/* Sechs Knoten nebeneinander; oben die verbundenen Kreise mit Zählern, über „Angefragt“ der
   Bogen „direkt, ohne Anfrage“ von Einkauf zu Bestellt. Zu schmal: waagrecht rollen. */

.ablauf { overflow-x: auto; padding-bottom: 8px; --abstand: 12px; }
.inhalt:has(.ablauf) { max-width: none; }
.ablauf-kopf, .ablauf-spalten { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: var(--abstand); min-width: calc(6 * 180px + 5 * var(--abstand)); }
.ablauf-kopf { position: relative; padding-top: 30px; margin-bottom: 6px; }
.ablauf-knoten { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; }
.ablauf-name { font-size: 13px; font-weight: 600; color: var(--leise); white-space: nowrap; }
.ablauf-knoten.belegt .ablauf-name { color: var(--tuerkis); }
.ablauf-knoten::after { /* Verbindung zum nächsten Knoten */
  content: ""; position: absolute; top: 22px; left: calc(50% + 22px); width: calc(100% + var(--abstand) - 44px); height: 2px; background: var(--tuerkis); opacity: .55;
}
.ablauf-knoten:last-child::after { display: none; }
.ablauf-knoten.wahlweise::after, .ablauf-kopf .ablauf-knoten:nth-child(4)::after { background: none; border-top: 2px dashed var(--tuerkis); height: 0; }
.ablauf-punkt {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--grund); border: 2px solid var(--linie); color: var(--leise); font-weight: 700; font-variant-numeric: tabular-nums;
}
.ablauf-knoten.belegt .ablauf-punkt { background: var(--tuerkis); border-color: var(--tuerkis); color: #fff; box-shadow: 0 0 0 5px var(--tuerkis-hell); }
.ablauf-knoten.wahlweise .ablauf-punkt { border-style: dashed; width: 36px; height: 36px; }
.ablauf-knoten.wahlweise.belegt .ablauf-punkt { border-style: solid; }
/* Bogen von Knoten 3 (Einkauf) über Knoten 4 zu Knoten 5 (Bestellt) */
.ablauf-bogen {
  position: absolute; top: 4px; height: 40px;
  left: calc((100% - 5 * var(--abstand)) / 6 * 2.5 + 2 * var(--abstand));
  width: calc((100% - 5 * var(--abstand)) / 6 * 2 + 2 * var(--abstand));
  border: 2px solid var(--tuerkis); border-bottom: 0; border-radius: 22px 22px 0 0; opacity: .55;
}
.ablauf-bogen span { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--hintergrund); padding: 0 8px; font-size: 12px; color: var(--tuerkis-dunkel); white-space: nowrap; }
.ablauf-spalte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); display: flex; flex-direction: column; min-height: 240px; max-height: calc(100dvh - 220px); }
.ablauf-spalte.wahlweise { border-style: dashed; }
.ablauf-spalte header { padding: 10px 12px 8px; display: grid; gap: 1px; border-bottom: 1px solid var(--linie); }
.ablauf-titel { font-weight: 700; color: var(--text); text-decoration: none; }
.ablauf-titel:hover { color: var(--tuerkis); }
.ablauf-spalte .leise { color: var(--leise); font-size: 12px; }
.betrag.klein { font-size: 13px; color: var(--tuerkis-dunkel); }
.ablauf-karten { padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; overflow-y: auto; overflow-x: hidden; align-content: start; }
.ablauf-karte { background: var(--grund); border: 1px solid var(--linie); border-radius: 12px; padding: 9px 10px; box-shadow: var(--schatten); display: grid; gap: 6px; }
.ablauf-karte:hover { border-color: var(--tuerkis); }
.ablauf-karte .titel { font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; line-height: 1.3; }
.ablauf-karte .meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; color: var(--leise); align-items: center; }
.ablauf-karte.abgelehnt { opacity: .65; }
.ablauf-karte.gehalten { border-left: 3px solid var(--orange); }
.ablauf-karte form { margin: 0; }
.ablauf-leer { color: var(--leise); text-align: center; padding: 12px; font-size: 13px; text-decoration: none; }
.zugang { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--linie); }
.ablauf-knoten.wahlweise .ablauf-punkt { margin: 4px 0; } /* kleiner Kreis, Linie bleibt mittig */
/* Ziehrand der Seitenleiste (wie BS-CHAT) */
.rand { display: none; }
@media (min-width: 900px) {
  .rand { display: block; width: 6px; margin-left: -3px; cursor: col-resize; position: sticky; top: 0; height: 100dvh; z-index: 25; flex: none; }
  .rand:hover, body.ziehen .rand { background: var(--tuerkis); opacity: .4; }
  body.ziehen { user-select: none; cursor: col-resize; }
}
/* Firmenlogo in den Einstellungen */
.logo-feld { display: flex; gap: 12px; align-items: center; }
.logo-feld .form-control { flex: 1; min-width: 0; }
.logo-vorschau { height: 48px; max-width: 160px; object-fit: contain; border-radius: 8px; background: #fff; padding: 4px; flex: none; }
.logo-vorschau.leer { display: grid; place-items: center; width: 96px; font-size: 12px; color: var(--leise); background: transparent; border: 1px dashed var(--linie, rgba(127,127,127,.4)); }
/* Storno, Reklamation, Rücksendung an der Bestellung */
.nachgang.offen { border-color: var(--orange); }
.nachgang-knoepfe { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .nachgang-knoepfe { grid-template-columns: 1fr 1fr; align-items: start; } }
/* Postkorb (Mails aus den Einkaufspostfächern) */
.postkorb-reiter { display: flex; gap: 6px; flex-wrap: wrap; }
.postkorb-reiter a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-size: 14px; }
.postkorb-reiter a.an { background: var(--tuerkis); border-color: var(--tuerkis); color: #fff; }
.postkorb-reiter .zahl { opacity: .75; margin-left: 2px; }
.mail-text { white-space: pre-wrap; font: 13px/1.45 ui-monospace, Consolas, monospace; max-height: 320px; overflow: auto; background: var(--flaeche); border-radius: 8px; padding: 10px; margin: 8px 0; }
.mail-handlungen { display: grid; gap: 8px; }
.mail-handlungen .btn { white-space: normal; text-align: left; }
.mail-auswahl .form-select { min-width: 0; }
/* Ablagefläche für Mails und Dokumente */
.ablage-liste { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.ablage-liste li { display: flex; gap: 10px; align-items: flex-start; }
.ablage-symbol { font-size: 18px; line-height: 1.3; flex: none; }
.ablage-inhalt { min-width: 0; overflow-wrap: anywhere; }
.ablage-flaeche { display: grid; gap: 4px; place-items: center; text-align: center; padding: 18px 12px; border: 2px dashed var(--linie); border-radius: var(--rund); color: var(--leise); cursor: pointer; }
.ablage-flaeche:hover, .ablage-flaeche.ueber { border-color: var(--tuerkis); color: var(--tuerkis); background: var(--tuerkis-hell); }
.ablage-flaeche.laeuft { opacity: .7; pointer-events: none; }
/* Nummern auf den Karten (P-00001, BE-2026-0001) */
.nummer { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--leise); letter-spacing: .02em; text-decoration: none; }
a.nummer:hover { color: var(--tuerkis); }
/* Karten als Ablageziel (Mail aus Outlook auf eine Karte ziehen) */
.karte.ueber, .ablauf-karte.ueber { outline: 2px dashed var(--tuerkis); outline-offset: 2px; background: var(--tuerkis-hell); }
.karte.laeuft, .ablauf-karte.laeuft { opacity: .6; }
#ablage-meldung { position: fixed; left: 50%; bottom: calc(var(--nav-hoehe) + 16px + var(--sicher-unten)); transform: translateX(-50%); z-index: 50;
  max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 12px; background: var(--text); color: var(--grund); box-shadow: var(--schatten); font-size: 14px; }
#ablage-meldung.fehler { background: var(--rot); color: #fff; }
@media (min-width: 900px) { #ablage-meldung { bottom: 24px; } }
/* Update-Anzeige (Hausbild wie BS-CHAT, BS-FIBU, BS-WORKLIST) */
.wartung-schicht { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; color: #fff; background: linear-gradient(135deg, #00919d, #00626a); }
.wartung-schicht .karte-w { max-width: 34rem; }
.wartung-schicht h2 { font-size: 1.6rem; font-weight: 700; margin: 1.25rem 0 .5rem; color: #fff; }
.wartung-schicht p { opacity: .9; margin: 0 0 .35rem; }
.wartung-schicht .punkte { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }
.wartung-schicht .punkte span { width: .7rem; height: .7rem; border-radius: 50%; background: #fff; opacity: .35; animation: puls-w 1.2s ease-in-out infinite; }
.wartung-schicht .punkte span:nth-child(2) { animation-delay: .2s; }
.wartung-schicht .punkte span:nth-child(3) { animation-delay: .4s; }
@keyframes puls-w { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.wartung-schicht .hinweis { margin-top: 1.75rem; font-size: .85rem; opacity: .75; background: none; padding: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) { .wartung-schicht .punkte span { animation: none; opacity: .7; } }
/* Konto → Teilen einrichten */
.teilen-schritte { padding-left: 1.2rem; display: grid; gap: 6px; }
.teilen-adresse { display: block; min-width: 0; overflow-wrap: anywhere; padding: 6px 8px; border-radius: 8px; background: var(--flaeche); font-size: 12.5px; flex: 1; }
/* iPhone-Teilen („An BS senden“): QR-Code unter Konto, Einrichten, Übernahme */
.teilen-qr { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.teilen-qr-bild { background: #fff; padding: 8px; border-radius: 12px; line-height: 0; flex: none; }
.teilen-qr-bild svg { width: 200px; height: 200px; }
.teilen-einrichten { width: min(520px, 100%); margin: 0 auto; }
.teilen-einrichten .logo { display: block; width: 100%; max-width: 320px; margin: 0 auto 16px; }
.teilen-bau { margin-top: 12px; border-top: 1px solid var(--linie); padding-top: 10px; }
.teilen-bau summary { cursor: pointer; }
.teilen-bau code { overflow-wrap: anywhere; }
.teilen-dateien { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.teilen-datei { position: relative; display: grid; gap: 4px; padding: 6px; border: 2px solid var(--tuerkis); border-radius: 12px; cursor: pointer; min-width: 0; }
.teilen-datei:has(input:not(:checked)) { border-color: var(--linie); opacity: .5; }
.teilen-datei input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; accent-color: var(--tuerkis); }
.teilen-datei img, .teilen-symbol { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--flaeche); }
.teilen-symbol { display: grid; place-items: center; font-weight: 700; color: var(--rot); font-size: 20px; }
.teilen-name { font-size: 12.5px; overflow-wrap: anywhere; }
.teilen-groesse { font-size: 12px; color: var(--leise); }
/* Kleine Wegkette auf den Karten: Name des aktuellen Schritts über seinem Punkt (Wunsch 12.10.2026).
   Alle Namen passen in 104 px nicht lesbar - der aktuelle sagt, wo die Position steht. */
.weg.klein { padding-top: 15px; }
.weg.klein .weg-aktuell:not(:has(~ .weg-aktuell)) .weg-text, .weg.klein .weg-halt .weg-text, .weg.klein .weg-abgelehnt .weg-text,
.weg.klein .weg-schritt:last-child.weg-erledigt .weg-text {
  display: block; position: absolute; bottom: calc(100% + 1px); left: 7px; transform: translateX(-50%);
  padding: 0; font-size: 10.5px; font-weight: 700; line-height: 1; white-space: nowrap;
}
.weg.klein .weg-schritt:first-child .weg-text { left: 0 !important; transform: none !important; }
.weg.klein .weg-schritt:last-child .weg-text { left: auto !important; right: 0; transform: none !important; }
.weg.klein .weg-schritt:last-child.weg-erledigt .weg-text { color: var(--tuerkis); }
/* Wahlschalter auch mit Links (Unterwegs: Meine / Alle der Firma) */
.wahlschalter a { min-height: 36px; padding: 0 16px; display: grid; place-items: center; border-radius: 9px; color: var(--leise); font-size: 14px; text-decoration: none; }
.wahlschalter a.an { background: var(--grund); color: var(--text); box-shadow: var(--schatten); font-weight: 600; }

/* Stapelleiste unten wie in BS-FIBU (Postkorb, 12.10.2026): klebt am unteren Rand, am Telefon über der Navigation. */
.aktionsleiste {
  position: sticky; bottom: calc(var(--nav-hoehe) + var(--sicher-unten)); z-index: 25;
  margin: 16px -4px 0; padding: 10px 12px; border-radius: var(--rund);
  background: var(--grund); border: 1px solid var(--linie); border-top: 2px solid var(--tuerkis);
  box-shadow: 0 -4px 12px rgba(0,0,0,.08);
}
.aktionsleiste-innen { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.aktionsleiste .knopfreihe { align-items: center; }
@media (min-width: 900px) { .aktionsleiste { bottom: 8px; } }
.mail-karte .karte-zeile > .mail-haken { flex: none; width: 1.2em; height: 1.2em; }
.postfach-liste { display: grid; gap: 4px; }
.postfach-liste form { display: flex; gap: 8px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--linie); padding: 4px 0; }
.standort-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.standort-chip { cursor: pointer; font-size: 13px; padding: 3px 10px; }
.mengenwahl .btn { min-width: 2.6rem; font-size: 1.15rem; line-height: 1; }
.mengenwahl .form-control { min-width: 0; }

/* Erfassen: Link und „Was wird gebraucht?“ farbig hervorheben (12.10.2026). */
.schrittfeld { border-left: 4px solid var(--tuerkis); background: var(--tuerkis-hell); border-radius: 0 var(--rund) var(--rund) 0; padding: 10px 12px; }
.schrittfeld .form-label { color: var(--tuerkis-dunkel); font-weight: 600; }
.schrittfeld .form-control { border-color: var(--tuerkis); }
.schritt { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; margin-right: 4px; border-radius: 50%; background: var(--tuerkis); color: #fff; font-size: .85em; font-weight: 700; }

/* Volltextsuche oben rechts (12.10.2026) - am breiten Bildschirm als Feld, am Telefon als Lupe. */
.kopfsuche { display: none; }
.kopfsuche input {
  width: 260px; max-width: 32vw; padding: 7px 12px 7px 34px; border-radius: 999px; border: 1px solid var(--linie);
  background: var(--flaeche) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366757a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px center / 16px;
  color: var(--text); font-size: 14px;
}
.kopfsuche input:focus { outline: none; border-color: var(--tuerkis); box-shadow: 0 0 0 3px var(--tuerkis-hell); }
@media (min-width: 900px) { .kopfsuche { display: block; margin-left: auto; } }

/* Klappbare Abschnitte (Einstellungen, 12.10.2026) */
.abschnitt.klappbar { cursor: pointer; user-select: none; }
.abschnitt.klappbar::before { content: "▾"; display: inline-block; margin-right: 6px; transition: transform .15s; }
.abschnitt.klappbar.zu::before { transform: rotate(-90deg); }
.abschnitt.klappbar:hover { color: var(--tuerkis-dunkel); }
.abschnitt.klappbar { justify-content: flex-start; }
.abschnitt.klappbar > span:last-child:not(:first-child) { margin-left: auto; }

/* Mail-Workflow im Postkorb (13.10.2026): Abgeholt → KI geprüft → Ergebnis → Erledigt */
.mailweg { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 6px 0 0; padding: 0; font-size: 12px; }
.mailweg li { display: flex; align-items: center; color: var(--leise); }
.mailweg li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--linie); margin-right: 5px; flex: none; }
.mailweg li + li::after { content: none; }
.mailweg li:not(:last-child)::after { content: ""; width: 18px; height: 2px; background: var(--linie); margin: 0 6px; }
.mailweg li.fertig { color: var(--text); }
.mailweg li.fertig::before { background: var(--tuerkis); border-color: var(--tuerkis); }
.mailweg li.warn { color: var(--orange); }
.mailweg li.warn::before { background: var(--orange); border-color: var(--orange); }
.mailweg li.offen::before { background: transparent; }
.form-range { accent-color: var(--tuerkis); }

/* Seite „Teilen am PC einrichten“ (13.10.2026) */
.erweiterung-schritte { display: grid; gap: 14px; }
.erweiterung-schritte .schritt-zeile { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.erweiterung-schritte .schritt { width: 1.9em; height: 1.9em; font-size: 1em; margin: 0; }
.adresse-feld { font-family: ui-monospace, Consolas, monospace; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 1px 8px; user-select: all; }

/* Postkorb: links „Zu tun“, rechts „Fertig“ (13.10.2026) */
.postkorb-bereiche { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: start; }
.postkorb-bereich { border: 1px solid var(--linie); border-radius: var(--rund); padding: 8px 10px 10px; background: var(--grund); }
.postkorb-bereich.zu-tun { border-left: 4px solid var(--orange); }
.postkorb-bereich.fertig { border-left: 4px solid var(--gruen); }
.postkorb-bereich .bereich-titel { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin-bottom: 6px; }
.postkorb-bereich.zu-tun .bereich-titel { color: var(--orange); }
.postkorb-bereich.fertig .bereich-titel { color: var(--gruen); }
.postkorb-reiter a.offen:not(.an) { border-color: var(--orange); color: var(--orange); font-weight: 600; }
.einstellungen-reiter { padding-top: 24px; }
@media (max-width: 899px) { .postkorb-bereiche { grid-template-columns: 1fr; } .einstellungen-reiter { padding-top: 0; } }
.such-aus { display: none !important; }
.zaehler.leise { background: transparent; color: var(--tuerkis); box-shadow: inset 0 0 0 2px var(--tuerkis); margin-left: 4px; }
.menue-linie { border: 0; border-top: 1px solid var(--linie); margin: 10px 14px; opacity: 1; }

/* ===================================================== BS-FUHRPARK ===== */

.app-marke svg, .leiste-marke svg { width: 30px; height: 30px; color: var(--tuerkis); flex: none; }

.areal-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.areal-kachel { padding: 14px 16px; }
.areal-zahlen { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: .9rem; color: var(--leise); }
.areal-zahlen b { color: var(--text); }

.medium-punkt { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; }
.medium-punkt.gross { width: 16px; height: 16px; margin-right: 10px; }

/* Objektbaum */
.baum, .baum ul { list-style: none; margin: 0; padding-left: 0; }
.baum ul { padding-left: 22px; border-left: 2px solid var(--linie); margin-left: 10px; }
.baum-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 6px 8px; border-radius: 8px; }
.baum-zeile:hover { background: var(--flaeche); }
.baum-neu { margin-left: auto; display: flex; gap: 10px; opacity: 0; }
.baum-zeile:hover .baum-neu, .baum-zeile:focus-within .baum-neu { opacity: 1; }
@media (hover: none) { .baum-neu { opacity: 1; } }

/* Übersichtsplan: Karte füllt den Inhaltsbereich, Tafel rechts (am Telefon unten). */
body.plan-seite .inhalt { padding: 0; display: flex; flex-direction: column; }
body.plan-seite .inhalt > .fuss { display: none; }
body.plan-seite .inhalt > .hinweis { margin: 8px; }
.plan-rahmen { position: relative; flex: 1; display: flex; min-height: calc(100vh - 60px); }
.plan-karte { flex: 1; min-height: 420px; background: var(--flaeche); }
.plan-tafel { width: 290px; flex: none; padding: 12px 14px; border-left: 1px solid var(--linie); background: var(--grund); overflow-y: auto; max-height: calc(100vh - 60px); }
.plan-tafel .abschnitt { font-size: .8rem; }
.plan-beschriftung { background: transparent; border: 0; box-shadow: none; font-weight: 600; color: #263238; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.plan-beschriftung::before { display: none; }
.zaehler-symbol span { display: flex; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); align-items: center; justify-content: center; }
.zaehler-symbol svg { width: 16px; height: 16px; }
.leaflet-container { font: inherit; }
.leaflet-popup-content a { color: var(--tuerkis-dunkel); }

@media (max-width: 767.98px) {
  .plan-rahmen { flex-direction: column; min-height: calc(100vh - 60px - var(--nav-hoehe) - var(--sicher-unten)); }
  .plan-karte { min-height: 55vh; }
  .plan-tafel { width: auto; max-height: 45vh; border-left: 0; border-top: 1px solid var(--linie); }
  .plan-tafel.zu { max-height: 44px; overflow: hidden; }
}

/* ------------------------------------------------------- BS-FUHRPARK -- */
/* Bausteine der Fahrer- und Werkstattseite (23.10.2026). Groß und antippbar - bedient wird mit
   dem Daumen, oft mit Handschuh oder auf dem Hof bei Sonne. */

.kennzeichen {
  display: inline-block; font-weight: 700; letter-spacing: .04em; white-space: nowrap;
  padding: 1px 8px 1px 14px; border: 2px solid var(--text); border-radius: 5px; background: #fff; color: #111;
  font-family: "DIN Alternate", "Arial Narrow", system-ui, sans-serif; position: relative; text-decoration: none;
}
.kennzeichen::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: #003399; border-radius: 2px 0 0 2px; }
.kennzeichen.gross { font-size: 26px; padding: 2px 12px 2px 22px; }
.kennzeichen.gross::before { width: 12px; }
.kennzeichen.klein { font-size: 13px; padding: 0 5px 0 10px; border-width: 1px; }
.kennzeichen.klein::before { width: 5px; }

.ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--linie); vertical-align: middle; }
.ampel.klein { width: 8px; height: 8px; margin-right: 3px; }
.ampel.gruen { background: var(--gruen); }
.ampel.gelb { background: var(--orange); }
.ampel.rot { background: var(--rot); box-shadow: 0 0 0 3px var(--rot-hell); }
.ampel.grau { background: var(--leise); opacity: .5; }

.chip.blau { background: #e3ecfb; color: #1d4fa8; border-color: transparent; }
.chip.grau { background: var(--flaeche); color: var(--leise); }
@media (prefers-color-scheme: dark) { .chip.blau { background: #18284a; color: #8fb2f0; } .kennzeichen { border-color: #ccc; } }

.pruefzeile { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.pruefzeile:last-child { border-bottom: 0; }
.terminzeile > summary { list-style: none; cursor: pointer; }
.terminzeile > summary::-webkit-details-marker { display: none; }
.terminzeile[open] > summary { border-bottom-style: dashed; }
.terminaktion { padding: 8px 0 12px; border-bottom: 1px solid var(--linie); display: flex; flex-wrap: wrap; gap: 6px; }
.terminaktion form { flex-basis: 100%; }

.grossknoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grossknopf {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px;
  border-radius: var(--rund); background: var(--tuerkis); color: #fff; text-decoration: none; font-weight: 600; box-shadow: var(--schatten);
}
.grossknopf svg { width: 32px; height: 32px; }
.grossknopf.rot { background: var(--rot); }
.grossknopf:active { transform: scale(.98); }

/* Auswahlknöpfe: Bereich, Anlass, Tank (Tippen setzt ein verstecktes Feld) und Kästchen (Schadensart). */
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl > button, .wahlkasten span {
  min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--linie); background: var(--grund);
  color: var(--text); font-size: 15px; display: inline-flex; align-items: center; cursor: pointer;
}
.wahl > button.an, .wahlkasten input:checked + span { background: var(--tuerkis); border-color: var(--tuerkis); color: #fff; font-weight: 600; }
.wahlkasten { margin: 0; }
.wahlkasten input { position: absolute; opacity: 0; pointer-events: none; }

.reiterwahl { flex: 1; margin: 0; }
.reiterwahl input { position: absolute; opacity: 0; pointer-events: none; }
.reiterwahl span { display: grid; place-items: center; min-height: 40px; border-radius: 9px; color: var(--leise); cursor: pointer; }
.reiterwahl input:checked + span { background: var(--grund); color: var(--text); font-weight: 600; box-shadow: var(--schatten); }
.reiterwahl.rot input:checked + span { background: var(--rot); color: #fff; }

.checkzeile { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.checkzeile .notiz { grid-column: 1 / -1; }
@media (min-width: 700px) { .checkzeile { grid-template-columns: 1fr auto 220px; } .checkzeile .notiz { grid-column: auto; } }
.okwahl { display: flex; gap: 6px; }
.okwahl label { margin: 0; }
.okwahl input { position: absolute; opacity: 0; pointer-events: none; }
.okwahl span { display: grid; place-items: center; min-width: 46px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--linie); font-weight: 700; cursor: pointer; color: var(--leise); }
.okwahl input:checked + span { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.okwahl .rot input:checked + span { background: var(--rot); border-color: var(--rot); }

.abschlusszeile { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
@media (min-width: 700px) { .abschlusszeile { grid-template-columns: 1fr auto 260px; align-items: center; } }

.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.fotos:empty { display: none; }
.fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; background: var(--flaeche); }

.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 15px; }
.angaben dt { color: var(--leise); font-weight: 500; }
.angaben dd { margin: 0; }

.zahlen { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .zahlen { grid-template-columns: repeat(4, 1fr); } }
.zahl { background: var(--grund); border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 14px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.zahl b { font-size: 28px; line-height: 1.1; }
.zahl span { font-size: 13px; color: var(--leise); }
.zahl.rot { border-color: var(--rot); box-shadow: inset 4px 0 0 var(--rot); }
.zahl.rot b { color: var(--rot); }
.zahl.gelb { border-color: var(--orange); box-shadow: inset 4px 0 0 var(--orange); }
.zahl.gelb b { color: var(--orange); }

.vorformatiert { white-space: pre-wrap; }
.auftragstext { white-space: pre-wrap; font: 14px/1.5 ui-monospace, Consolas, monospace; padding: 16px; }
.verlaufzeile { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.verlaufzeile:last-child { border-bottom: 0; }
.hervor { border-color: var(--orange) !important; box-shadow: inset 4px 0 0 var(--orange), var(--schatten); }
.rand-rot { box-shadow: inset 4px 0 0 var(--rot), var(--schatten); }
.karte.klein { padding: 8px 12px; }
.fahrzeugkopf .meta { font-size: 15px; }
details > summary { cursor: pointer; }
/* Notiz erst zeigen, wenn ✗ gewählt ist - sonst wird die Checkliste am Telefon endlos. */
.checkzeile .notiz { display: none; }
.checkzeile:has(input[value="fehlt"]:checked) .notiz { display: block; }
