/* Fuhrpark – Oberfläche (fuhrpark.js, Wunsch Philipp 16.10.2026). Handy zuerst; Farben und Schrift aus den Variablen der Seite (--ink, --line, --red …).
   Nur Klassen mit fp-… (die Seite hat eigene Stile für .karte, .platz, .liste, .nr …). Tippflächen mindestens 44 px.
   Animationen sind leicht und gehen bei „Bewegung reduzieren“ aus. */
.fp-seite, .fp-dlg, #fpToast { --fp-rot: #c62828; --fp-rot-bg: #fdecec; --fp-gelb: #8a6100; --fp-gelb-bg: #fff5d6; --fp-orange: #b4500e; --fp-orange-bg: #fdeede; --fp-gruen: #1f7a3f; --fp-gruen-bg: #e6f4ea; --fp-blau: #1c5cab; --fp-blau-bg: #e8f0fb; }
.fp-seite { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; align-content: start; }
.fp-seite > *, .fp-inhalt > * { min-width: 0; }
.fp-inhalt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; animation: fp-ein .28s ease both; }
.fp-seite .btn, .fp-dlg .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.fp-seite .btn.small, .fp-dlg .btn.small { min-height: 38px; padding: 6px 12px; }
.fp-seite .btn svg, .fp-dlg .btn svg { flex: none; }
.fp-seite .chip { min-height: 40px; padding: 8px 14px; }
.fp-seite svg, .fp-dlg svg { flex: none; }

/* Kopf */
.fp-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.fp-kopf .page-title { margin: 4px 0 0; display: flex; align-items: center; gap: 10px; }
.fp-kopf .page-title svg { width: 28px; height: 28px; color: var(--red); }
.fp-unter { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.fp-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fp-laedt, .fp-leer { color: var(--muted); padding: 18px 4px; margin: 0; }
.fp-fehlerbox { background: var(--fp-rot-bg); color: var(--bad); border: 1px solid #f3c4c4; border-radius: 10px; padding: 12px 14px; margin: 0; }
.fp-fehler { color: var(--bad); font-size: 14px; margin: 0; }
.fp-fehler:empty { display: none; }
.fp-ok { display: flex; gap: 8px; align-items: center; color: var(--fp-gruen); font-weight: 700; margin: 6px 0; }
.fp-hinweis, .fp-warnbox, .fp-pruefbox { display: flex; gap: 10px; align-items: flex-start; background: var(--fp-blau-bg); color: #163d70; border-radius: 10px; padding: 10px 12px; margin: 0; font-size: 14px; flex-wrap: wrap; }
.fp-warnbox { background: var(--fp-gelb-bg); color: #5f4300; flex-direction: column; align-items: stretch; }
.fp-pruefbox { background: var(--fp-gelb-bg); color: #5f4300; align-items: center; }
.fp-pruefbox > span { flex: 1 1 200px; }

.fp-gpsk { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--fp-blau); background: var(--fp-blau-bg); border-radius: 4px; padding: 1px 4px; vertical-align: 1px; }

/* Fahrtenbuch (nur Berechtigte) */
.fp-fb-zahlen { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); margin: 8px 0; }
.fp-fb-zahlen b { color: var(--ink); font-variant-numeric: tabular-nums; }
.fp-fb-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fp-fb-liste > li { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 6px; min-width: 0; }
.fp-fb-liste > li:first-child { border-top: 0; padding-top: 0; }
.fp-fb-weg { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.fp-fb-weg > span { overflow-wrap: anywhere; }
.fp-fb-pfeil { color: var(--muted); }
.fp-fb-route { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.fp-fb-karte { height: min(60vh, 440px); min-height: 260px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #e8e3da; }
.fp-fb-karte .fp-leer, .fp-fb-karte .fp-laedt { padding: 20px; margin: 0; }
.fp-fb-km { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fp-fb-felder { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.fp-fb-felder input { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; background: var(--card); color: var(--ink); min-width: 0; }
.fp-fb-felder input.fp-gespeichert { border-color: var(--fp-gruen); box-shadow: 0 0 0 2px var(--fp-gruen-bg); }
.fp-fb-felder .fp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
@media (min-width: 760px) { .fp-fb-felder { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); align-items: center; } }

/* Geldwerter Vorteil (nur Leitung) */
.fp-gwv { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fp-gwv > li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.fp-gwv-kopf { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.fp-gwv-kopf > small { color: var(--muted); flex: 1 1 200px; }
.fp-gwv-wert { display: grid; text-align: right; margin-left: auto; }
.fp-gwv-wert b { font-size: 20px; font-variant-numeric: tabular-nums; }
.fp-gwv-wert small { color: var(--muted); font-size: 12px; }
.fp-gwv-t td { font-size: 13px; }
.fp-gwv-t td.fp-r { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-gwv-summe td { font-weight: 800; border-top: 2px solid var(--line); }
.fp-gwv-hinweis { margin: 0; font-size: 13px; color: var(--fp-orange); }
.fp-gwv-notiz { margin: 0; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.fp-gwv-notiz svg { width: 15px; height: 15px; margin-top: 2px; }
.fp-gwv > li > .btn { justify-self: start; }
.fp-gwv-wenn { display: grid; gap: 10px; }
.fp-gwv-seit { display: grid; gap: 6px; }
.fp-gwv-seit .fp-map { max-width: 260px; }
.fp-gwv-nach { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--fp-blau-bg); color: #163d70; font-size: 14px; }
.fp-gwv-nach > small { flex: 1 1 100%; opacity: .85; }
.fp-gwv-nach b { font-variant-numeric: tabular-nums; }
.fp-gwv-alt { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--fp-gruen-bg); color: #14532d; font-size: 14px; line-height: 1.45; }
.fp-feldset { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 8px; margin: 0; }
.fp-feldset legend { padding: 0 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fp-feldset .fp-check { display: flex; align-items: flex-start; font-weight: 400; color: var(--ink); padding: 6px 0; }
.fp-feldset .fp-check input { width: 20px; min-height: 20px; flex: none; margin-top: 1px; }

/* Stand der DKV-Abrechnung (Tanken & DKV) */
.fp-dkvstand { display: grid; gap: 10px; }
.fp-dkvstand-i { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fp-dkvstand-i > div { display: grid; gap: 2px; }
.fp-dkvstand-i b { font-size: 17px; font-variant-numeric: tabular-nums; }
.fp-dkvstand-i small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.fp-dkvstand.alt { border-color: var(--fp-gelb); background: linear-gradient(0deg, var(--fp-gelb-bg), var(--fp-gelb-bg)); }
.fp-dkvstand-warn { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--fp-gelb); font-weight: 700; font-size: 14px; }

/* Protokoll (nur Admins) */
.fp-prot-kopf { display: grid; gap: 10px; }
.fp-prot-kopf .fp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-prot-filter { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.fp-prot { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-p { background: var(--card); border: 1px solid var(--line); border-left: 5px solid #b9b2a6; border-radius: 10px; padding: 9px 12px; display: grid; gap: 4px; min-width: 0; }
.fp-p.art-genehmigung { border-left-color: var(--fp-gruen); }
.fp-p.art-aenderung { border-left-color: var(--fp-blau); }
.fp-p.art-import { border-left-color: var(--fp-gelb); }
.fp-p.art-recht, .fp-p.art-einstellung { border-left-color: var(--fp-rot); }
.fp-p-kopf { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.fp-p-kopf small { color: var(--muted); flex: 1 1 100%; }
.fp-p-art { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fp-p.art-genehmigung .fp-p-art { color: var(--fp-gruen); }
.fp-p-text { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; color: var(--ink); }
.fp-p-diff summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--fp-blau); min-height: 32px; display: flex; align-items: center; }
.fp-p-diff table { font-size: 13px; }
.fp-p-diff td { overflow-wrap: anywhere; vertical-align: top; }
.fp-p-diff td:nth-child(2) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.fp-p-diff td i { color: var(--muted); }

/* Arbeitsliste Auffälligkeiten (Übersicht, nur Leitung) */
.fp-arbeit { display: grid; gap: 10px; border-color: var(--fp-rot); box-shadow: 0 0 0 1px var(--fp-rot-bg) inset; }
.fp-arbeit .fp-h2 small { font-weight: 600; }
.fp-arbeit .fp-unter { margin: 0; }
.fp-arbeit .fp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fp-arbeit .chip[disabled] { opacity: .45; cursor: default; }
.fp-arbeit .fp-sammel { padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fp-arbeit .fp-mehr { justify-self: start; }
.fp-arbeit .fp-mehr small { font-weight: 500; opacity: .8; }
.fp-still .fp-inhalt, .fp-still .fp-karte, .fp-still .fp-einr-liste li, .fp-still .fp-tile, .fp-still .fp-w, .fp-still .fp-zmon, .fp-still .fp-gesp-box { animation: none !important; }

/* Einrichtung (Übersicht, nur Leitung): offene Handarbeit nach dem Aufbau */
.fp-einr .fp-h2 small { font-weight: 600; }
.fp-einr-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0 0 8px; }
.fp-einr-bar i { display: block; height: 100%; border-radius: 99px; background: var(--fp-gruen); transition: width .6s ease; }
.fp-einr-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fp-einr-liste li { display: flex; gap: 12px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); animation: fp-ein .3s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.fp-einr-liste li:first-child { border-top: 0; }
.fp-einr-liste li > div { flex: 1 1 auto; min-width: 0; }
.fp-einr-liste b { display: block; }
.fp-einr-liste small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.fp-einr-liste .btn { flex: none; }
.fp-einr-punkt { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; background: var(--fp-blau-bg); color: var(--fp-blau); }
.fp-einr-liste li.ok .fp-einr-punkt { background: var(--fp-gruen-bg); color: var(--fp-gruen); }
.fp-einr-liste li.ok b { color: var(--fp-gruen); }
.fp-einr-punkt svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .fp-einr-liste li { flex-wrap: wrap; } .fp-einr-liste li > .btn { margin-left: 40px; } }
@media (prefers-reduced-motion: reduce) { .fp-einr-liste li, .fp-einr-bar i { animation: none; transition: none; } }
.fp-link { background: none; border: 0; color: var(--fp-blau); font: inherit; font-weight: 700; cursor: pointer; padding: 8px 0; min-height: 40px; text-align: left; }
.fp-link:hover { text-decoration: underline; }
.fp-unsichtbar { background: none; border: 0; padding: 4px 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; max-width: 100%; }
.fp-unsichtbar:hover b, .fp-unsichtbar:hover .fp-rang-t { text-decoration: underline; }
.fp-ikon { width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fp-ikon:hover { background: #f1ede7; color: var(--ink); }
.fp-pruefen { background: var(--fp-gelb-bg); color: var(--fp-gelb); border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fp-h2 { font-size: 17px; font-weight: 800; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-h2 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.fp-h2 .fp-chips, .fp-h2 .fp-knoepfe, .fp-h2 > .btn { margin-left: auto; }
.fp-h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.fp-h3 .fp-unsichtbar { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.fp-karte { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; animation: fp-ein .3s ease both; }
.fp-zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-leiste { display: grid; gap: 10px; }
.fp-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fp-filter select, .fp-leiste select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); max-width: 100%; }
.fp-such { position: relative; display: flex; align-items: center; min-width: 0; }
.fp-such svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.fp-such input { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px 10px 40px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.fp-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; cursor: pointer; }
.fp-check input { width: 20px; height: 20px; }
.fp-sammel { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Inhaltsverzeichnis (immer sichtbar, scrollt waagerecht auf dem Handy) */
.fp-toc { display: flex; order: 0; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.fp-toc button { flex: none; min-height: 44px; border: 1px solid var(--line); background: var(--card); border-radius: 22px; padding: 6px 14px 6px 8px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.fp-toc button:hover { border-color: #cfc8bd; color: var(--ink); }
.fp-toc button.an { background: var(--ink); border-color: var(--ink); color: #fff; }
.fp-toc-nr { width: 24px; height: 24px; border-radius: 50%; background: #f1ede7; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.fp-toc button.an .fp-toc-nr { background: rgba(255, 255, 255, .2); color: #fff; }
.fp-toc-zahl { background: var(--fp-gelb-bg); color: var(--fp-gelb); border-radius: 10px; padding: 0 7px; font-size: 12px; min-width: 20px; text-align: center; }
.fp-toc-zahl.rot { background: var(--fp-rot); color: #fff; }
.fp-toc button.an .fp-toc-zahl { background: #fff; color: var(--ink); }
.fp-inhaltsv ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; counter-reset: fp; }
.fp-inhaltsv li { counter-increment: fp; }
.fp-inhaltsv button { width: 100%; min-height: 64px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: #fcfbf9; padding: 10px 12px 10px 44px; position: relative; font: inherit; cursor: pointer; display: grid; gap: 2px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.fp-inhaltsv button::before { content: counter(fp); position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: #f1ede7; color: var(--muted); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.fp-inhaltsv button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); border-color: #cfc8bd; }
.fp-inhaltsv small { color: var(--muted); }
.fp-inhaltsv b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-inhaltsv .fp-toc-zahl { justify-self: start; width: auto; display: inline-block; }

/* Kennzahlen */
.fp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fp-tiles.klein { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.fp-tile { text-align: left; font: inherit; border: 1px solid var(--line); border-left: 5px solid #cfc8bd; border-radius: 12px; background: var(--card); padding: 12px 14px; display: grid; gap: 2px; cursor: pointer; min-height: 96px; animation: fp-rein .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .15s, box-shadow .15s; }
div.fp-tile { cursor: default; }
button.fp-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .09); }
.fp-tile-t { font-size: 13px; color: var(--muted); font-weight: 700; }
.fp-tile b { font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.fp-tile small { color: var(--muted); font-size: 13px; }
.fp-tile.rot { border-left-color: var(--fp-rot); background: linear-gradient(90deg, var(--fp-rot-bg), var(--card) 70%); }
.fp-tile.gelb { border-left-color: #eda100; background: linear-gradient(90deg, var(--fp-gelb-bg), var(--card) 70%); }
.fp-tile.gruen { border-left-color: var(--fp-gruen); background: linear-gradient(90deg, var(--fp-gruen-bg), var(--card) 70%); }

/* Warnsystem */
.fp-wliste, .fp-aliste, .fp-eintraege { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fp-w { animation: fp-rein .35s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
.fp-w button { width: 100%; text-align: left; font: inherit; border: 1px solid var(--line); border-left: 5px solid #cfc8bd; border-radius: 10px; background: #fff; padding: 8px 10px; display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: 56px; transition: background .15s; }
.fp-w button:hover { background: #fcfbf9; }
.fp-w.fp-s-rot button { border-left-color: var(--fp-rot); background: var(--fp-rot-bg); }
.fp-w.fp-s-gelb button { border-left-color: #eda100; background: var(--fp-gelb-bg); }
.fp-w.fp-s-info button { border-left-color: var(--fp-blau); }
.fp-w-text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.fp-w-text b { overflow-wrap: anywhere; }
.fp-w-text .fp-schild { justify-self: start; }
.fp-w-text small { color: #5c5750; font-size: 13px; overflow-wrap: anywhere; }
.fp-punkt { width: 12px; height: 12px; border-radius: 50%; background: #cfc8bd; flex: none; }
.fp-s-rot .fp-punkt, .fp-fz.fp-s-rot .fp-punkt { background: var(--fp-rot); }
.fp-s-gelb .fp-punkt, .fp-fz.fp-s-gelb .fp-punkt { background: #eda100; }
.fp-punkt.puls { animation: fp-puls 1.6s ease-out infinite; }
.fp-badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 8px; padding: 2px 8px; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: #eee; color: #444; flex: none; }
.fp-badge.fp-s-rot { background: var(--fp-rot); color: #fff; }
.fp-badge.fp-s-orange { background: var(--fp-orange-bg); color: var(--fp-orange); }
.fp-badge.fp-s-gelb { background: var(--fp-gelb-bg); color: var(--fp-gelb); }
.fp-badge.fp-s-info { background: var(--fp-blau-bg); color: var(--fp-blau); }
@media (max-width: 520px) { .fp-w button { flex-wrap: wrap; } .fp-w .fp-badge { margin-left: 22px; } }

/* Zeitstrahl */
.fp-zeit { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 6px; }
.fp-zmon { border: 1px solid var(--line); border-radius: 10px; padding: 6px; background: #fcfbf9; display: grid; gap: 4px; align-content: start; min-height: 54px; animation: fp-rein .35s ease both; animation-delay: calc(var(--i, 0) * 30ms); }
.fp-zmon.leer { background: transparent; border-style: dashed; }
.fp-zmon h4 { margin: 0; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.fp-zleer { color: #c9c3ba; }
.fp-zchip { border: 0; border-left: 4px solid #cfc8bd; border-radius: 6px; background: #fff; text-align: left; font: inherit; padding: 4px 6px; cursor: pointer; display: grid; min-height: 40px; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.fp-zchip b { font-size: 13px; }
.fp-zchip small { color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.fp-zchip.rot { border-left-color: var(--fp-rot); background: var(--fp-rot-bg); }
.fp-zchip.gelb { border-left-color: #eda100; background: var(--fp-gelb-bg); }
.fp-zchip.gruen { border-left-color: var(--fp-gruen); }
.fp-zueber { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; padding: 8px; border-radius: 10px; background: var(--fp-rot-bg); }
.fp-zueber .fp-zchip { min-width: 120px; }

/* Kennzeichen */
.fp-schild { display: inline-flex; align-items: stretch; border: 2px solid #222; border-radius: 6px; background: #fff; overflow: hidden; font-size: 15px; line-height: 1; vertical-align: middle; flex: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.fp-schild .fp-eu { background: #1b4a9e; color: #fff; font-size: 9px; font-weight: 800; padding: 6px 4px 3px; display: flex; align-items: flex-end; }
.fp-schild b { padding: 6px 8px; letter-spacing: .06em; font-family: ui-monospace, "SF Mono", Consolas, monospace; font-weight: 800; color: #111; white-space: nowrap; }
.fp-schild.klein { font-size: 12.5px; border-width: 1.5px; border-radius: 5px; }
.fp-schild.klein .fp-eu { padding: 4px 3px 2px; font-size: 7.5px; }
.fp-schild.klein b { padding: 4px 6px; }
.fp-schild-leer { border-style: dashed; border-color: #b5ada1; padding: 5px 8px; font-weight: 700; color: var(--muted); box-shadow: none; max-width: 100%; }
.fp-schild-leer.klein { padding: 3px 6px; }

/* Fahrzeugkarten */
.fp-fzgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.fp-fz { text-align: left; font: inherit; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 12px; display: grid; gap: 6px; cursor: pointer; align-content: start; position: relative; border-top: 4px solid #cfc8bd; animation: fp-rein .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms); transition: transform .15s, box-shadow .15s; }
.fp-fz:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.fp-fz.fp-s-rot { border-top-color: var(--fp-rot); }
.fp-fz.fp-s-gelb { border-top-color: #eda100; }
.fp-fz-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fp-fz-name { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.fp-fz-sub { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.fp-fz-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.fp-mini { background: #f1ede7; color: #4b463f; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.fp-mini.rot { background: var(--fp-rot); color: #fff; }
.fp-mini.gelb { background: var(--fp-gelb-bg); color: var(--fp-gelb); }
.fp-mini.grau { background: #e5e1da; color: #6b665e; }
.fp-fz-zahlen { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #4b463f; font-size: 13px; }
.fp-live { display: inline-flex; gap: 4px; align-items: center; color: var(--fp-blau); }
.fp-live svg { width: 14px; height: 14px; }

/* Einträge, Tabellen */
.fp-eintraege li { border: 1px solid var(--line); border-left: 4px solid #e4dfd8; border-radius: 10px; background: #fff; padding: 8px 10px; display: flex; gap: 10px; align-items: center; justify-content: space-between; min-width: 0; }
.fp-eintraege li > div { min-width: 0; display: grid; gap: 2px; }
.fp-eintraege small { color: #5c5750; font-size: 13px; overflow-wrap: anywhere; }
.fp-eintraege li.erledigt { opacity: .6; }
.fp-eintraege li.fp-s-rot { border-left-color: var(--fp-rot); background: var(--fp-rot-bg); }
.fp-eintraege li.fp-s-gelb { border-left-color: #eda100; background: var(--fp-gelb-bg); }
.fp-pfad { display: inline-flex !important; gap: 4px; align-items: center; color: var(--muted) !important; }
.fp-pfad svg { width: 14px; height: 14px; }
.fp-tabelle-w { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.fp-tabelle { width: 100%; border-collapse: collapse; font-size: 14px; }
.fp-tabelle th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.fp-tabelle td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fp-tabelle .fp-r, .fp-r { text-align: right; }
.fp-tabelle tr.fp-s-rot td { background: var(--fp-rot-bg); }
.fp-tabelle tr.fp-s-orange td { background: var(--fp-orange-bg); }
.fp-tabelle tr.fp-s-gelb td { background: var(--fp-gelb-bg); }
.fp-tabelle small { color: var(--muted); }
.fp-tabelle.kompakt td, .fp-tabelle.kompakt th { padding: 5px 8px; }
.fp-tabelle code, .fp-ordner code { font-size: 12.5px; overflow-wrap: anywhere; }
.fp-ordner { display: flex; align-items: center; gap: 8px; background: #f7f4ef; border-radius: 10px; padding: 6px 6px 6px 10px; margin: 8px 0; }
.fp-ordner code { flex: 1 1 auto; min-width: 0; }
@media (max-width: 700px) {
  .fp-tank thead, .fp-tabelle:not(.kompakt) thead { display: none; }
  .fp-tank tr, .fp-tabelle:not(.kompakt) tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
  .fp-tank td, .fp-tabelle:not(.kompakt) td { border: 0; padding: 2px 4px; text-align: left !important; }
  .fp-tank td::before, .fp-tabelle:not(.kompakt) td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
  .fp-tabelle:not(.kompakt) td:last-child:empty { display: none; }
}

/* Verträge */
.fp-vgrid, .fp-zgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.fp-vwrap { display: grid; gap: 4px; align-content: start; }
.fp-vertrag { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; display: grid; gap: 6px; margin-top: 8px; }
.fp-vwrap .fp-vertrag { margin-top: 0; }
.fp-vertrag.erledigt { opacity: .6; }
.fp-vertrag-kopf { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.fp-vertrag small { color: #5c5750; font-size: 13px; }
.fp-kmzeile { display: grid; gap: 4px; }
.fp-balken { height: 8px; background: #eee8df; border-radius: 4px; overflow: hidden; }
.fp-balken-i { display: block; height: 100%; width: 0; background: var(--fp-blau); border-radius: 4px; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.fp-balken-i.gelb { background: #eda100; }
.fp-balken-i.rot { background: var(--fp-rot); }
.fp-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.fp-tags span { background: #f1ede7; border-radius: 6px; padding: 1px 7px; font-size: 12px; color: #4b463f; }
.fp-rang { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fp-rang li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; animation: fp-rein .35s ease both; animation-delay: calc(var(--i, 0) * 25ms); }
.fp-rang li .fp-balken { grid-column: 1; }
.fp-rang li b { grid-column: 2; grid-row: 1; text-align: right; }
.fp-rang li small { grid-column: 2; grid-row: 2; color: var(--muted); text-align: right; }
.fp-rang-t { font-size: 14px; }

/* Diagramm */
.fp-chart-w { position: relative; }
.fp-chart { width: 100%; height: auto; display: block; overflow: visible; }
.fp-gitter { stroke: #e1e0d9; stroke-width: 1; }
.fp-achse { stroke: #c3c2b7; stroke-width: 1; }
.fp-ach-t { fill: #6b665e; font-size: 11px; }
.fp-seg { transform-box: fill-box; transform-origin: bottom; animation: fp-wachs .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0ms); }
.fp-hit { fill: transparent; cursor: pointer; }
.fp-hit.an, .fp-hit:hover { fill: rgba(0, 0, 0, .05); }
.fp-tip { position: absolute; z-index: 5; pointer-events: none; background: #1d1c1a; color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 13px; display: grid; gap: 3px; min-width: 190px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.fp-tip[hidden] { display: none; }
.fp-tip span { display: flex; align-items: center; gap: 6px; }
.fp-tip i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fp-tip em { margin-left: auto; font-style: normal; font-weight: 700; padding-left: 12px; }
.fp-tip .summe { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 3px; margin-top: 2px; font-weight: 800; }
.fp-legende, .fp-gruppen { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0 0 8px; padding: 0; font-size: 13px; }
.fp-legende li, .fp-gruppen li { display: inline-flex; align-items: center; gap: 6px; }
.fp-gruppen b { margin-left: 4px; }
.fp-swatch { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.fp-tabdetails { border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; background: #fcfbf9; }
.fp-tabdetails summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; font-weight: 700; }
.fp-regeln { margin: 4px 0 8px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }

/* Auffälligkeiten */
.fp-a { border: 1px solid var(--line); border-left: 5px solid #cfc8bd; border-radius: 10px; background: #fff; padding: 8px 12px; display: grid; gap: 4px; }
.fp-a.fp-s-rot { border-left-color: var(--fp-rot); }
.fp-a.fp-s-orange { border-left-color: #e0701a; }
.fp-a.fp-s-gelb { border-left-color: #eda100; }
.fp-a.erledigt { opacity: .6; }
.fp-a-kopf { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fp-a-kopf small { color: var(--muted); margin-left: auto; }
.fp-a p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.fp-geklaert { color: var(--fp-gruen); display: flex; gap: 4px; align-items: center; }

/* Formulare */
.fp-formgrid, .fp-mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.fp-map { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 700; min-width: 0; }
.fp-map.breit { grid-column: 1 / -1; }
.fp-map input, .fp-map select, .fp-map textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: var(--ink); }
.fp-map textarea { min-height: 76px; resize: vertical; }
.fp-map.fp-check { display: flex; font-weight: 400; color: var(--ink); align-self: end; }
.fp-map.fp-check input { width: 20px; min-height: 20px; }
.fp-form-gruppe { grid-column: 1 / -1; margin: 10px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.fp-einheit { display: flex; align-items: center; gap: 6px; }
.fp-einheit i { font-style: normal; font-weight: 400; color: var(--muted); white-space: nowrap; font-size: 13px; }
.fp-checks { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 10px 0; }
.fp-code { background: #1d1c1a; color: #e9e6df; border-radius: 10px; padding: 12px; font-size: 12.5px; overflow-x: auto; white-space: pre; max-height: 320px; }
.fp-dateiknopf { cursor: pointer; }

/* Checklisten */
.fp-ck-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fp-ck { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.fp-ck-p { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; text-align: left; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px 12px; cursor: pointer; transition: background .12s, border-color .12s, transform .1s; }
.fp-ck-p:active { transform: scale(.985); }
.fp-ck-box { width: 30px; height: 30px; border-radius: 8px; border: 2px solid #cfc8bd; display: inline-flex; align-items: center; justify-content: center; flex: none; font-weight: 900; color: #fff; font-size: 18px; transition: background .12s, border-color .12s; }
.fp-ck-p.an { background: var(--fp-gruen-bg); border-color: #9fd0ae; }
.fp-ck-p.an .fp-ck-box { background: var(--fp-gruen); border-color: var(--fp-gruen); }
.fp-punkte { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13px; }
.fp-punkte .ok { color: var(--fp-gruen); }
.fp-punkte .nicht { color: var(--fp-rot); font-weight: 700; }
.fp-maengel { margin: 6px 0 0; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.fp-tabdetails.fp-klein { padding: 2px 10px; margin-top: 4px; }
.fp-tabdetails.fp-klein summary { min-height: 32px; font-size: 13px; }
.fp-zurueck { align-items: flex-start; background: var(--fp-blau-bg); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.fp-zurueck input { margin-top: 2px; }

/* Fenster */
.fp-dlg { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: min(760px, 100vw); margin: auto; overflow: visible; }
.fp-dlg.fp-dlg-gross { width: min(980px, 100vw); }
.fp-dlg::backdrop { background: rgba(29, 28, 26, .5); animation: fp-ein .2s ease both; }
.fp-dlg-rahmen { background: var(--card); border-radius: 16px; max-height: calc(100dvh - 24px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: fp-hoch .28s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
.fp-dlg-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex: none; }
.fp-dlg-titel { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.fp-dlg-titel > div { display: grid; min-width: 0; }
.fp-dlg-titel small { color: var(--muted); }
.fp-dlg-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 8px; flex: none; scrollbar-width: none; }
.fp-dlg-tabs::-webkit-scrollbar { display: none; }
.fp-dlg-tabs button { flex: none; min-height: 46px; border: 0; background: none; padding: 10px 12px; font: inherit; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.fp-dlg-tabs button.an { color: var(--ink); border-bottom-color: var(--red); }
.fp-dlg-inhalt { padding: 14px; overflow-y: auto; display: grid; gap: 12px; align-content: start; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
.fp-dlg-fuss { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.fp-dlg-fuss > span { flex: 1 1 auto; }
.fp-gefahr { color: var(--bad); }
.fp-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; margin: 0; }
.fp-dl div { min-width: 0; }
.fp-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.fp-dl dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.fp-livebox { display: flex; gap: 10px; align-items: center; background: var(--fp-blau-bg); color: #163d70; border-radius: 10px; padding: 8px 12px; flex-wrap: wrap; }
.fp-livebox > div { display: grid; flex: 1 1 200px; min-width: 0; }
.fp-schritte { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.fp-schritte li { flex: 1 1 0; text-align: center; padding: 6px 4px; border-radius: 8px; background: #f1ede7; color: var(--muted); font-size: 13px; font-weight: 700; counter-increment: s; }
.fp-schritte li::before { content: counter(s) ". "; }
.fp-schritte li.an { background: var(--ink); color: #fff; }
.fp-schritte li.ok { background: var(--fp-gruen-bg); color: var(--fp-gruen); }
.fp-drop { display: grid; gap: 6px; justify-items: center; text-align: center; border: 2px dashed #cfc8bd; border-radius: 14px; padding: 32px 16px; cursor: pointer; background: #fcfbf9; transition: border-color .15s, background .15s; }
.fp-drop:hover, .fp-drop.ueber { border-color: var(--fp-blau); background: var(--fp-blau-bg); }
.fp-drop svg { width: 34px; height: 34px; color: var(--fp-blau); }
.fp-drop.laedt { opacity: .6; pointer-events: none; }
.fp-fertig { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px; }
.fp-fertig svg { width: 48px; height: 48px; color: var(--fp-gruen); animation: fp-haken .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.fp-leer-gross { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 30px 16px; color: var(--muted); background: var(--card); border: 1px dashed #cfc8bd; border-radius: 14px; }
.fp-leer-gross svg { width: 40px; height: 40px; }

/* Hinweis unten */
#fpToast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #1d1c1a; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 2000; max-width: calc(100vw - 32px); }
#fpToast.an { opacity: 1; transform: translate(-50%, 0); }
#fpToast.fehler { background: var(--bad); }

@keyframes fp-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes fp-rein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fp-hoch { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fp-wachs { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fp-haken { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fp-puls { 0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); } 70% { box-shadow: 0 0 0 9px rgba(198, 40, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); } }
@media (prefers-reduced-motion: reduce) {
  .fp-seite *, .fp-dlg *, .fp-dlg::backdrop, #fpToast { animation: none !important; transition: none !important; }
  .fp-balken-i { transition: none; }
}

@media (min-width: 700px) {
  .fp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fp-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fp-toc { flex-wrap: wrap; overflow: visible; }
  .fp-leiste { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .fp-such { max-width: 420px; }
}
@media (max-width: 520px) {
  .fp-dlg { width: 100vw !important; margin: 0; align-self: end; }
  .fp-dlg-rahmen { border-radius: 16px 16px 0 0; max-height: calc(100dvh - 8px); }
  .fp-dlg-fuss .btn { flex: 1 1 auto; }
  .fp-tile b { font-size: 24px; }
}
@media print {
  .fp-toc, .fp-knoepfe, .fp-leiste, #fpToast { display: none !important; }
  .fp-karte, .fp-fz, .fp-w button { break-inside: avoid; box-shadow: none; animation: none; }
}

/* Gespann-Rechner */
.fp-gesp-fs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.fp-gesp-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.fp-gesp-plus { font-weight: 800; color: var(--muted); }
.fp-gesp-titel { color: var(--muted); font-size: 14px; flex: 1 1 200px; }
.fp-gesp-zwei { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fp-gesp-box { border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; background: var(--fp-blau-bg); color: #163d70; animation: fp-ein .3s ease both; }
.fp-gesp-box.gruen { background: var(--fp-gruen-bg); color: #14532d; }
.fp-gesp-box.rot { background: var(--fp-rot-bg); color: #7f1d1d; }
.fp-gesp-box.gelb { background: var(--fp-gelb-bg); color: #5f4300; }
.fp-gesp-l { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; opacity: .8; }
.fp-gesp-gross { font-size: 22px; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.fp-gesp-zahl { font-size: 30px; font-variant-numeric: tabular-nums; }
.fp-gesp-box small { font-size: 13px; line-height: 1.4; }
.fp-gesp-tipp { border-top: 1px solid currentColor; padding-top: 6px; margin-top: 2px; opacity: .9; }
.fp-gesp-hinweise, .fp-gesp-fehlt { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.fp-gesp-hinweise li { display: flex; gap: 6px; align-items: flex-start; color: var(--fp-orange); font-weight: 600; }
.fp-gesp-fehlt { margin-top: 4px; }
.fp-gesp-grenzen { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 14px; }
.fp-gesp-grenzen li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--muted); }
.fp-gesp-grenzen li b { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.fp-gesp-grenzen li.an { background: var(--fp-blau-bg); color: #163d70; font-weight: 700; }
.fp-gesp-grenzen li.an::before { content: '▸'; margin-right: -4px; }
.fp-gesp-drei { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.fp-gesp-drei > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.fp-gesp-drei b { font-size: 17px; font-variant-numeric: tabular-nums; }
.fp-gesp-drei small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.fp-gesp-erg .fp-warnbox, .fp-gesp-erg .fp-hinweis { margin: 10px 0; }
.fp-gesp-erg .fp-knoepfe small { flex: 1 1 200px; }
.fp-gesp-recht summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-gesp-recht summary small { color: var(--muted); }
.fp-gesp-regeln { margin: 8px 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.fp-gm th, .fp-gm td { text-align: center; padding: 0; border: 1px solid var(--line); }
.fp-gm thead th, .fp-gm tbody th { padding: 6px 8px; font-size: 12px; white-space: nowrap; background: var(--card); }
.fp-gm tbody th { text-align: left; position: sticky; left: 0; z-index: 1; }
.fp-gm th small, .fp-gm td small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.fp-gm-z button { all: unset; box-sizing: border-box; display: grid; place-items: center; gap: 1px; width: 100%; min-width: 78px; min-height: 48px; padding: 4px; cursor: pointer; font-variant-numeric: tabular-nums; }
.fp-gm-z button:focus-visible { outline: 2px solid var(--fp-blau); outline-offset: -3px; }
.fp-gm-z.ok { background: var(--fp-gruen-bg); color: #14532d; }
.fp-gm-z.nein { background: var(--fp-rot-bg); color: #7f1d1d; }
.fp-gm-z.leer { color: var(--muted); }
.fp-gm-z.an { box-shadow: inset 0 0 0 3px var(--fp-blau); }
@media (min-width: 700px) { .fp-gesp-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Gespann-Karte / Übersicht im Druck (#druck, @page ohne Rand → Rand im Blatt) */
@media print {
  #druck .fp-druck { display: block; padding: 8mm 12mm; font: 9.5pt/1.35 Arial, Helvetica, sans-serif; color: #111; }
  #druck .fp-druck.quer { padding: 8mm 10mm; }
  .fp-druck header { display: flex; gap: 6mm; align-items: center; border-bottom: 2pt solid #e63741; padding-bottom: 2mm; margin-bottom: 3mm; }
  .fp-druck header img { height: 11mm; } .fp-druck header h1 { font-size: 17pt; margin: 0; } .fp-druck header span { color: #555; font-size: 9pt; }
  .fp-druck h2 { font-size: 11pt; margin: 3mm 0 1.5mm; }
  .fpd-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .fpd-fz { border: .7pt solid #999; border-radius: 2mm; padding: 2.5mm 3mm; }
  .fpd-fz h3 { margin: 0; font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; color: #555; }
  .fpd-kz { font-size: 15pt; font-weight: 800; } .fpd-mod { color: #444; margin-bottom: 1.5mm; }
  .fpd-fz table { width: 100%; border-collapse: collapse; font-size: 8.5pt; } .fpd-fz td { padding: .6mm 0; border-top: .4pt solid #ddd; } .fpd-fz td + td { text-align: right; font-weight: 700; }
  .fpd-gross { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; margin: 3mm 0 2mm; }
  .fpd-box { border: 1.2pt solid #111; border-radius: 2.5mm; padding: 3mm; display: grid; gap: 1mm; align-content: start; }
  .fpd-box span { font-size: 8pt; text-transform: uppercase; letter-spacing: .05em; color: #444; }
  .fpd-box b { font-size: 18pt; } .fpd-box small { font-size: 8pt; color: #333; }
  .fpd-max { border-color: #e63741; } .fpd-max b { font-size: 26pt; color: #e63741; }
  .fpd-max .fpd-ungeprueft { font-weight: 700; color: #b4500e; }
  .fpd-fs { display: flex; flex-wrap: wrap; gap: 1mm 3mm; font-size: 8pt; margin-top: 1mm; } .fpd-fs .nein { color: #888; } .fpd-fs .ja { font-weight: 700; }
  .fpd-info { width: 100%; border-collapse: collapse; font-size: 8.5pt; } .fpd-info td { border: .4pt solid #bbb; padding: .8mm 2mm; } .fpd-info td:nth-child(odd) { color: #555; width: 18%; }
  .fpd-waage { width: 100%; border-collapse: collapse; } .fpd-waage th { text-align: left; font-size: 8pt; color: #555; border-bottom: .8pt solid #777; padding: 1mm 2mm; }
  .fpd-waage td { border-bottom: .5pt solid #aaa; height: 7mm; padding: 0 2mm; } .fpd-waage td:first-child { width: 10mm; color: #777; } .fpd-waage td:last-child { width: 38mm; border-left: .5pt solid #aaa; }
  .fpd-waage tfoot td { border-top: 1.2pt solid #111; border-bottom: 0; font-size: 9.5pt; height: 8mm; }
  .fpd-check { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 6mm; font-size: 8.5pt; }
  .fpd-check li { display: flex; gap: 2mm; align-items: flex-start; break-inside: avoid; margin-bottom: 1.4mm; } .fpd-check span { flex: none; width: 3.5mm; height: 3.5mm; border: .8pt solid #111; border-radius: .6mm; }
  .fpd-unterschrift { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 6mm; margin-top: 7mm; font-size: 8pt; color: #555; } .fpd-unterschrift div { border-top: .8pt solid #111; padding-top: 1mm; }
  .fp-druck footer { margin-top: 3mm; padding-top: 2mm; border-top: .5pt solid #ccc; font-size: 7pt; color: #666; }
  .fpd-matrix { width: 100%; border-collapse: collapse; font-size: 8pt; text-align: center; }
  .fpd-matrix th, .fpd-matrix td { border: .5pt solid #999; padding: 1mm 1.2mm; } .fpd-matrix thead th { font-size: 7.5pt; } .fpd-matrix tbody th { text-align: left; white-space: nowrap; }
  .fpd-matrix small { font-weight: 400; color: #555; font-size: 6.5pt; }
  .fpd-matrix td.k-b { background: #e6f4ea; } .fpd-matrix td.k-b96 { background: #fff5d6; } .fpd-matrix td.k-be { background: #fdeede; } .fpd-matrix td.k-c1, .fpd-matrix td.k-c1e, .fpd-matrix td.k-ce { background: #fdecec; }
  .fpd-legende { font-size: 8pt; margin: 2mm 0 0; }
  #druck .fp-druck * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Vereinbarung „Privatnutzung untersagt“ (A4 hoch, höchstens zwei Seiten) */
  #druck .fp-druck.fpd-v { font-size: 10pt; line-height: 1.42; padding: 12mm 18mm; }
  .fpd-v header { margin-bottom: 5mm; } .fpd-v header h1 { font-size: 15pt; }
  .fpd-v h2 { font-size: 10.5pt; margin: 4mm 0 1mm; break-after: avoid; }
  .fpd-v p { margin: 0 0 1.6mm; break-inside: avoid; }
  .fpd-v .fpd-v-p { margin: 2mm 0 .5mm; color: #555; } .fpd-v .fpd-v-b { margin: 0 0 1mm 4mm; } .fpd-v .fpd-v-b small { color: #555; }
  .fpd-v-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 14mm; margin-top: 16mm; font-size: 9pt; break-inside: avoid; }
  .fpd-v-sign span { color: #666; font-size: 8pt; }
}

/* Gespann: tatsächliche Waage, Überladung, Bußgeld (Philipp 17.10.2026) */
.fp-gesp-ist { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.fp-gesp-ist input { padding: 8px 10px; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; font: inherit; max-width: 12em; background: #fff; color: #222; }
.fp-gesp-iste { min-height: 1.2em; display: grid; gap: 2px; }
.fp-gesp-gut { color: #14532d; }
.fp-gesp-schlecht { color: #7f1d1d; }
.fp-gesp-bg { margin-top: 12px; }
.fp-gesp-bg summary { cursor: pointer; }
.fp-bg td small { display: block; color: var(--fp-fein, #77716a); font-size: 12px; }
.fp-bg tr.fp-bg-wichtig td { font-weight: 600; }
.fp-bg tr.fp-bg-treffer td { background: var(--fp-rot-bg, #fde8e8); color: #7f1d1d; }
