/* =====================================================================
 * cably.cab — PORTAL (Betriebsportal /betrieb und Fahrerportal /fahrer)
 *
 * Neubau 13.11.2026. Konzept und Freigaben: docs/PORTAL-NEUBAU-KONZEPT.md.
 * Wird NACH cab-design.css geladen und gilt nur unter <body class="po">.
 * Die alte pt-Schicht in cab-design.css bleibt fuer Admin unveraendert.
 *
 * Regeln (von Steven freigegeben):
 *  - Schwarz-weiss. Akzent ist das Markenschwarz #111317 (dunkel: Weiss).
 *  - Farbe nur mit Bedeutung: gruen / gelb / rot (+ grau), immer mit Wort.
 *  - Keine Grossbuchstaben-Etiketten, keine Verlaeufe, keine Farbkacheln.
 *  - Rangordnung ueber die Schrift: 28 / 20 / 16 / 14 / 13 / 12.
 *  - Bewegung nur als Antwort auf eine Handlung. Einzige Ausnahme: die
 *    Fahrstrecke auf der Uebersicht (der Wagen faehrt einmal zum Halt).
 *  - DUNKLE TOKENS STEHEN ZWEIMAL (Automatik und ausdrueckliche Wahl).
 *    Wer Werte aendert, aendert beide.
 * ===================================================================== */

body.po {
    --po-tinte: #111317;
    --po-papier: #ffffff;
    --po-grund: #f5f5f5;
    --po-flaeche: #efefef;
    --po-linie: #e3e3e3;
    --po-linie-stark: #cdcdcd;
    /* Rand eines Eingabefelds: einzige Kante eines leeren Felds, also 3:1
       gegen Papier und Grund (WCAG 1.4.11). --po-linie-stark kam auf 1,6:1. */
    --po-feld-rand: #8a8a8a;
    --po-leise: #5c5f66;            /* 6,3:1 auf Weiss, 5,6:1 auf --po-flaeche */
    --po-auf-tinte: #ffffff;
    --po-gruen: #0d6c4d;  --po-gruen-t: rgba(18, 128, 92, .11);
    --po-gelb: #845600;   --po-gelb-t: rgba(199, 138, 8, .14);
    --po-rot: #b42318;    --po-rot-t: rgba(217, 45, 32, .09);
    /* Kategorien in Diagrammen (Einnahmen-Ring, Steven 14.11.: „farbig“) - nur dort. */
    --po-kat-1: #1f6f8b; --po-kat-2: #c9862b; --po-kat-3: #7a5ab8; --po-kat-4: #3f9b6e;
    --po-seite: #ffffff;
    --po-seite-text: #111317;
    --po-seite-leise: #5c5f66;
    --po-seite-hover: #f1f1f1;
    --po-seite-aktiv: #ececec;
    --po-seite-linie: #e3e3e3;
    --po-schatten: 0 16px 40px rgb(17 19 23 / .16), 0 2px 6px rgb(17 19 23 / .06);
    --po-r-feld: 6px;
    --po-r-karte: 10px;
    --po-r-marke: 999px;
    --po-kurz: 140ms;
    --po-mittel: 220ms;
    --po-kurve: cubic-bezier(.2, .8, .2, 1);

    /* Alte Bausteine aus cab-design.css (Felder, Upload-Karten, Hinweise),
       die Includes noch ausgeben, sehen damit genauso aus. */
    --cab-bg: var(--po-grund);
    --cab-karte-bg: var(--po-papier);
    --cab-flaeche: var(--po-flaeche);
    --cab-linie: var(--po-linie);
    --cab-linie-stark: var(--po-linie-stark);
    --cab-vg: var(--po-tinte);
    --cab-sekundaer: var(--po-leise);
    --cab-akzent: var(--po-tinte);
    --cab-akzent-hell: var(--po-tinte);
    --cab-akzent-text: var(--po-tinte);
    --cab-akzent-tinte: rgba(128, 128, 128, .12);
    --cab-auf-akzent: var(--po-auf-tinte);
    --cab-dialog: var(--po-papier);
    --cab-dialog-feld: var(--po-grund);
    --cab-feld-rand: var(--po-feld-rand);
    --cab-radius-karte: var(--po-r-karte);
    --cab-radius-button: var(--po-r-feld);
}
:root[data-theme="dark"] body.po {
    --po-tinte: #f3f3f3;
    --po-papier: #17181b;
    --po-grund: #0e0f11;
    --po-flaeche: #212226;
    --po-linie: #2b2d31;
    --po-linie-stark: #3b3e44;
    --po-leise: #a9acb3;
    --po-auf-tinte: #111317;
    --po-gruen: #3ccb8f;  --po-gruen-t: rgba(60, 203, 143, .13);
    --po-gelb: #eab54e;   --po-gelb-t: rgba(234, 181, 78, .13);
    --po-rot: #fa776c;    --po-rot-t: rgba(249, 112, 102, .13);
    --po-kat-1: #5fb4d3; --po-kat-2: #e6ae5c; --po-kat-3: #ad93e6; --po-kat-4: #6fcf9f;
    --po-seite: #131416;
    --po-seite-text: #f3f3f3;
    --po-seite-leise: #f3f3f3;      /* Menue im Dunkeln weiss (Steven, 13.11.) */
    --po-seite-hover: #1f2023;
    --po-seite-aktiv: #26272b;
    --po-seite-linie: #2b2d31;
    --po-schatten: 0 16px 40px rgb(0 0 0 / .55);
    --po-feld-rand: #6f7279;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) body.po {
        --po-tinte: #f3f3f3;
        --po-papier: #17181b;
        --po-grund: #0e0f11;
        --po-flaeche: #212226;
        --po-linie: #2b2d31;
        --po-linie-stark: #3b3e44;
        --po-leise: #a9acb3;
        --po-auf-tinte: #111317;
        --po-gruen: #3ccb8f;  --po-gruen-t: rgba(60, 203, 143, .13);
        --po-gelb: #eab54e;   --po-gelb-t: rgba(234, 181, 78, .13);
        --po-rot: #fa776c;    --po-rot-t: rgba(249, 112, 102, .13);
        --po-kat-1: #5fb4d3; --po-kat-2: #e6ae5c; --po-kat-3: #ad93e6; --po-kat-4: #6fcf9f;
        --po-seite: #131416;
        --po-seite-text: #f3f3f3;
        --po-seite-leise: #f3f3f3;
        --po-seite-hover: #1f2023;
        --po-seite-aktiv: #26272b;
        --po-seite-linie: #2b2d31;
        --po-schatten: 0 16px 40px rgb(0 0 0 / .55);
        --po-feld-rand: #6f7279;
    }
}

body.po {
    margin: 0;
    background: var(--po-grund);
    color: var(--po-tinte);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.po *, .po *::before, .po *::after { box-sizing: border-box; }
/* :where() ohne Gewicht - sonst schlaegt es die Schriftfarbe von a.po-knopf */
:where(.po) a { color: inherit; }
.po :focus-visible { outline: 2px solid var(--po-tinte); outline-offset: 2px; border-radius: 4px; }
.po .po-leise { color: var(--po-leise); }
.po .po-zahl, .po .po-betrag { font-variant-numeric: tabular-nums; }
.po svg.po-i { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.po .po-nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.po .po-sprung {
    position: fixed; z-index: 100; left: 16px; top: -80px;
    padding: 10px 14px; border-radius: var(--po-r-feld);
    background: var(--po-tinte); color: var(--po-auf-tinte); font-weight: 600; text-decoration: none;
}
.po .po-sprung:focus { top: 16px; }

/* ---------- Huelle ---------------------------------------------------- */
.po-huelle { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.po-leiste {
    position: sticky; top: 0; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    background: var(--po-seite); color: var(--po-seite-text);
    border-right: 1px solid var(--po-seite-linie);
}
.po-marke { display: grid; justify-items: start; gap: 6px; padding: 22px 20px 14px; text-decoration: none; }
/* Wortmarke links, Portalname kraeftig darunter, buendig mit dem Menue (Steven, 13.11., Variante A) */
.po-marke img { width: 120px; height: auto; display: block; }
.po-marke__produkt { font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--po-seite-text); opacity: .75; }

/* Status-Schild: wie das Dachschild eines Taxis - sagt auf einen Blick,
   ob der Betrieb (bzw. der Fahrer) Auftraege bekommt. */
.po-schild {
    display: grid; gap: 10px; margin: 0 12px 10px; padding: 12px;
    border: 1px solid var(--po-seite-linie); border-radius: var(--po-r-karte);
    text-decoration: none; color: inherit;
    transition: background var(--po-kurz);
}
a.po-schild:hover { background: var(--po-seite-hover); }
.po-schild__kopf { display: flex; gap: 10px; align-items: center; min-width: 0; }
.po-schild__zeichen {
    flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: var(--po-r-feld); background: var(--po-seite-text); color: var(--po-seite);
    font-weight: 700; font-size: 14px; overflow: hidden;
}
.po-schild__zeichen img { width: 100%; height: 100%; object-fit: cover; }
.po-schild__text { min-width: 0; }
.po-schild__name { font-weight: 600; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-schild__stand { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.35; }
.po-schild__licht { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.po-schild--gruen .po-schild__stand { color: var(--po-gruen); }
.po-schild--gruen .po-schild__licht { box-shadow: 0 0 0 3px var(--po-gruen-t); }
.po-schild--gelb .po-schild__stand { color: var(--po-gelb); }
.po-schild--rot .po-schild__stand { color: var(--po-rot); }
.po-schild--grau .po-schild__stand { color: var(--po-seite-leise); }
.po-schild__balken { height: 4px; border-radius: 4px; background: var(--po-seite-hover); overflow: hidden; }
.po-schild__balken i { display: block; height: 100%; border-radius: 4px; background: var(--po-seite-text); transition: width .8s var(--po-kurve); }

.po-navi { flex: 1; overflow-y: auto; padding: 2px 12px 12px; }
.po-navi__titel { margin: 16px 10px 4px; font-size: 12px; color: var(--po-seite-leise); opacity: .7; }
:root[data-theme="dark"] .po-navi__titel { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .po-navi__titel { opacity: .55; } }
.po-navi a {
    display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 2px; padding: 7px 10px;
    border-radius: var(--po-r-feld); color: var(--po-seite-leise); text-decoration: none;
    transition: background var(--po-kurz), color var(--po-kurz);
}
.po-navi a:hover { background: var(--po-seite-hover); color: var(--po-seite-text); }
.po-navi a.aktiv { background: var(--po-seite-aktiv); color: var(--po-seite-text); font-weight: 600; }
.po-navi__zaehler {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    display: grid; place-items: center; font-size: 12px; font-weight: 600;
    background: var(--po-rot); color: #fff;
}
.po-navi__hinweis { margin-left: auto; font-size: 12px; color: var(--po-seite-leise); }
.po-leiste__angebot {
    display: grid; gap: 2px; margin: 0 12px 10px; padding: 10px 12px;
    border: 1px solid var(--po-seite-linie); border-radius: var(--po-r-karte);
    font-size: 13px; text-decoration: none; color: var(--po-seite-text);
}
.po-leiste__angebot span { font-size: 12px; color: var(--po-seite-leise); }
.po-leiste__angebot:hover { background: var(--po-seite-hover); }
.po-fuss { display: grid; gap: 2px; padding: 10px 12px; border-top: 1px solid var(--po-seite-linie); }
.po-fuss form { margin: 0; }
.po-fuss button {
    all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px;
    min-height: 36px; padding: 7px 10px; border-radius: var(--po-r-feld);
    color: var(--po-seite-leise); font-size: 13px; cursor: pointer;
}
.po-fuss button:hover { background: var(--po-seite-hover); color: var(--po-seite-text); }
.po-fuss button:focus-visible { outline: 2px solid var(--po-seite-text); }
.po .po-thema-hell { display: none; }
:root[data-theme="dark"] .po .po-thema-hell { display: inline; }
:root[data-theme="dark"] .po .po-thema-dunkel { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .po .po-thema-hell { display: inline; }
    :root:not([data-theme="light"]) .po .po-thema-dunkel { display: none; }
}
/* Wortmarke: hell schwarz, dunkel weiss */
.po .po-logo--dunkel { display: none; }
:root[data-theme="dark"] .po .po-logo--hell { display: none; }
:root[data-theme="dark"] .po .po-logo--dunkel { display: block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .po .po-logo--hell { display: none; }
    :root:not([data-theme="light"]) .po .po-logo--dunkel { display: block; }
}

.po-inhalt { min-width: 0; display: flex; flex-direction: column; }
.po-kopf {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: flex-end; gap: 16px;
    padding: 28px clamp(20px, 3.2vw, 44px) 16px;
    background: color-mix(in srgb, var(--po-grund) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
/* Sprungrand: Der Kopf klebt, der Browser bringt Sprungziele und Fokus aber an
   die Fensterkante - ohne Rand laegen sie unter dem Kopf (Fehler bis 03.11.2026).
   Die Hoehe misst der Kopf selbst (Skript in cab-portal-huelle.php), der Wert
   hier gilt nur ohne Skript. Steht der Fokus in Kopf oder Seitenleiste, entfaellt
   der Rand: beide kleben, der Browser schoebe die Seite sonst um Hunderte Pixel. */
html:has(> body.po):not(:has(.po-kopf :focus, .po-leiste :focus)) { scroll-padding-top: calc(var(--po-kopf-hoehe, 104px) + 16px); }
.po-kopf__titel { flex: 1; min-width: 0; }
.po-kopf h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; overflow-wrap: anywhere; }
.po-kopf__aktionen { display: flex; gap: 8px; align-items: center; }
.po-zurueck { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; color: var(--po-leise); font-size: 13px; text-decoration: none; }
.po-zurueck:hover { color: var(--po-tinte); }
.po-symbolknopf.po-burger { display: none; }

.po-reiter {
    position: relative; display: flex; gap: 2px;
    padding: 0 clamp(20px, 3.2vw, 44px); border-bottom: 1px solid var(--po-linie);
}
.po-reiter a { position: relative; padding: 10px 12px; color: var(--po-leise); text-decoration: none; white-space: nowrap; }
.po-reiter a:hover { color: var(--po-tinte); }
.po-reiter a.aktiv { color: var(--po-tinte); font-weight: 600; }
.po-reiter__strich { position: absolute; bottom: -1px; left: 0; width: 0; height: 2px; background: var(--po-tinte); transition: left var(--po-mittel) var(--po-kurve), width var(--po-mittel) var(--po-kurve); }
.po-reiter:not(.po-reiter--bereit) a.aktiv::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--po-tinte); }

.po-koerper {
    display: grid; gap: 20px; align-content: start;
    /* Volle Breite (Steven, 13.11.: „nutze die gesamte Breite aus“) */
    width: 100%;
    padding: 24px clamp(20px, 3.2vw, 44px) 64px;
}
/* Eine Spalte, die nie breiter als der Platz wird: ohne minmax(0, 1fr) waechst
   sie auf die Breite des breitesten Elements (z. B. einer Segmentleiste). */
.po-koerper { grid-template-columns: minmax(0, 1fr); }
.po-koerper > * { min-width: 0; }
.po-koerper:focus { outline: none; }

/* ---------- Knoepfe --------------------------------------------------- */
.po-knopf {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 36px; padding: 0 14px; border-radius: var(--po-r-feld);
    border: 1px solid var(--po-tinte); background: var(--po-tinte); color: var(--po-auf-tinte);
    font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform 80ms, opacity var(--po-kurz), background var(--po-kurz);
}
.po-knopf:hover { opacity: .88; }
.po-knopf:active { transform: scale(.98); }
.po-knopf[disabled], .po-knopf[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.po-knopf--leer { background: transparent; color: var(--po-tinte); border-color: var(--po-linie-stark); }
.po-knopf--leer:hover { background: var(--po-flaeche); opacity: 1; }
.po-knopf--klein { min-height: 30px; padding: 0 10px; font-size: 13px; }
.po-knopf--rot { background: transparent; color: var(--po-rot); border-color: color-mix(in srgb, var(--po-rot) 40%, transparent); }
.po-knopf--rot:hover { background: var(--po-rot-t); opacity: 1; }
.po-knopf--text { background: none; border-color: transparent; color: var(--po-tinte); padding: 0 6px; text-decoration: underline; text-decoration-color: var(--po-linie-stark); text-underline-offset: 3px; }
.po-symbolknopf {
    position: relative; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
    border: 1px solid var(--po-linie); border-radius: var(--po-r-feld); background: var(--po-papier); color: var(--po-tinte); cursor: pointer;
}
.po-symbolknopf:hover { background: var(--po-flaeche); }
.po-symbolknopf__punkt { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--po-rot); border: 2px solid var(--po-papier); }
.po-link { color: var(--po-tinte); text-decoration: underline; text-decoration-color: var(--po-linie-stark); text-underline-offset: 3px; }
.po-link:hover { text-decoration-color: currentColor; }
button.po-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- Karte, Kennzahlen, Werte ---------------------------------- */
.po-karte { background: var(--po-papier); border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); min-width: 0; }
.po-karte__kopf { display: flex; align-items: center; gap: 12px; padding: 16px 20px; flex-wrap: wrap; }
.po-karte__kopf h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.po-karte__kopf p { flex-basis: 100%; margin: -8px 0 0; color: var(--po-leise); font-size: 13px; }
.po-karte__rumpf { padding: 0 20px 20px; }
.po-karte__rumpf > p { margin: 0 0 12px; max-width: 70ch; }
.po-karte__fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--po-linie); }

/* Flex statt Raster: Bricht die Leiste um, fuellt die letzte Zeile die ganze
   Breite - kein Loch, egal ob 3, 5 oder 6 Zahlen (vorher 3x2-Regel). */
.po-kennzahlen {
    display: flex; flex-wrap: wrap; margin: 0;
    background: var(--po-papier); border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); overflow: hidden;
}
.po-kennzahl {
    display: grid; gap: 4px; align-content: start; flex: 1 1 160px; min-width: 0;
    margin: -1px 0 0 -1px; padding: 16px 20px; border-left: 1px solid var(--po-linie); border-top: 1px solid var(--po-linie);
}
.po-kennzahl dt { font-size: 13px; color: var(--po-leise); }
.po-kennzahl dd { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.po-kennzahl small { font-size: 12px; color: var(--po-leise); }
.po-kennzahl--gruen dd { color: var(--po-gruen); }
.po-kennzahl--rot dd { color: var(--po-rot); }

.po-werte { margin: 0; }
.po-werte > div { display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 12px 20px; border-top: 1px solid var(--po-linie); }
.po-werte > div:first-child { border-top: 0; }
.po-werte dt { color: var(--po-leise); }
.po-werte dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.po-werte dd small { display: block; color: var(--po-leise); font-size: 13px; }

.po-zwei { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.po-gruss { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.po-gruss p { margin: 0; color: var(--po-leise); }

/* ---------- Filter, Felder -------------------------------------------- */
.po-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.po-feld, select.po-feld, textarea.po-feld {
    min-height: 36px; padding: 0 10px; border: 1px solid var(--po-feld-rand); border-radius: var(--po-r-feld);
    background: var(--po-papier); color: var(--po-tinte); font: inherit;
}
textarea.po-feld { padding: 8px 10px; min-height: 96px; resize: vertical; width: 100%; }
.po-feld:focus { outline: 2px solid var(--po-tinte); outline-offset: -1px; }
.po-feld[aria-invalid="true"] { border-color: var(--po-rot); }
.po-suche { position: relative; flex: 1 1 220px; max-width: 320px; }
.po-suche svg { position: absolute; left: 10px; top: 9px; color: var(--po-leise); pointer-events: none; }
.po-suche .po-feld { width: 100%; padding-left: 34px; }
.po-segmente { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--po-flaeche); }
.po-segmente a, .po-segmente button {
    all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--po-r-feld);
    font-size: 13px; color: var(--po-leise); white-space: nowrap;
}
.po-segmente .an, .po-segmente [aria-current], .po-segmente [aria-pressed="true"] {
    background: var(--po-papier); color: var(--po-tinte); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / .08);
}
.po-segmente a:focus-visible, .po-segmente button:focus-visible { outline: 2px solid var(--po-tinte); }
/* Label mit Feld. Flex statt Grid: „Diensthandy <small>optional</small>“ bleibt
   EINE Zeile (im Grid wurde „optional“ eine eigene Zeile und das Feld rutschte
   tiefer als sein Nachbar). Feld und alles danach nehmen die volle Breite. */
.po-f { display: flex; flex-wrap: wrap; align-items: baseline; align-content: start; gap: 6px; font-weight: 600; font-size: 13px; }
.po-f > :is(input, select, textarea, .po-datei, .po-suche, .po-feldreihe, div, fieldset, p, ul),
.po-f > :is(input, select, textarea, .po-datei, div) ~ * { flex: 1 1 100%; }
.po-f .po-feld { width: 100%; font-weight: 400; font-size: 14px; }
.po-f small { font-weight: 400; color: var(--po-leise); }
.po-f .po-fehler { font-weight: 400; color: var(--po-rot); }
.po-formular { display: grid; gap: 14px; margin: 0; }
.po-formular > small, .po-formular > p { margin: -6px 0 0; color: var(--po-leise); font-size: 13px; }
.po-formular > p strong { color: var(--po-tinte); }
.po-feldreihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: start; }
.po-haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.po-haken input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--po-tinte); }

/* Datei waehlen: <label class="po-datei"><input type="file" …><span class="po-datei__name" data-po-datei-name>…</span>
   <span class="po-knopf po-knopf--leer po-knopf--klein">Datei wählen</span></label>
   Der Name der gewaehlten Datei erscheint per Skript der Huelle. */
.po-datei {
    position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px dashed var(--po-linie-stark); border-radius: var(--po-r-karte); background: var(--po-grund);
    font-weight: 400; cursor: pointer; transition: border-color var(--po-kurz), background var(--po-kurz);
}
.po-datei:hover { border-color: var(--po-tinte); }
.po-datei input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.po-datei:focus-within { outline: 2px solid var(--po-tinte); outline-offset: 2px; }
.po-datei__symbol { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--po-papier); border: 1px solid var(--po-linie); }
.po-datei__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.po-datei__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-datei__text small { color: var(--po-leise); font-size: 12px; }
.po-datei.ist-gewaehlt { border-style: solid; border-color: var(--po-tinte); background: var(--po-papier); }
.po-datei[aria-invalid="true"], .po-datei.ist-fehler { border-color: var(--po-rot); }

/* ---------- Tabelle --------------------------------------------------- */
.po-tabelle-huelle { overflow-x: auto; }
.po-tabelle { width: 100%; border-collapse: collapse; }
.po-tabelle th { padding: 10px 16px; border-bottom: 1px solid var(--po-linie); color: var(--po-leise); font-size: 13px; font-weight: 400; text-align: left; white-space: nowrap; }
.po-tabelle td { padding: 12px 16px; border-bottom: 1px solid var(--po-linie); vertical-align: middle; }
.po-tabelle tr:last-child td { border-bottom: 0; }
.po-tabelle tbody tr { transition: background var(--po-kurz); }
.po-tabelle tbody tr:hover { background: color-mix(in srgb, var(--po-flaeche) 55%, transparent); }
.po-tabelle .po-r { text-align: right; font-variant-numeric: tabular-nums; }
.po-tabelle tfoot td { font-weight: 600; border-top: 1px solid var(--po-linie); border-bottom: 0; }
.po-haupt { font-weight: 600; }
.po-neben { display: block; color: var(--po-leise); font-size: 13px; }
.po-zeilenlink { color: inherit; text-decoration: none; }
.po-zeilenlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.po-seitenzahlen { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--po-linie); color: var(--po-leise); font-size: 13px; }
.po-seitenzahlen span:last-child { display: flex; gap: 6px; }

/* Zeilenmenue „…“ */
.po-menue { position: relative; display: inline-block; }
.po-menue > summary { list-style: none; cursor: pointer; }
.po-menue > summary::-webkit-details-marker { display: none; }
.po-menue__liste {
    position: fixed; z-index: 30; min-width: 220px; padding: 6px;
    background: var(--po-papier); border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); box-shadow: var(--po-schatten);
}
.po-menue[open] .po-menue__liste { animation: po-auf var(--po-kurz) var(--po-kurve); }
.po-menue__liste a, .po-menue__liste button {
    all: unset; box-sizing: border-box; display: flex; width: 100%; gap: 8px; align-items: center;
    padding: 8px 10px; border-radius: var(--po-r-feld); cursor: pointer; font-size: 14px;
}
.po-menue__liste a:hover, .po-menue__liste button:hover { background: var(--po-flaeche); }
.po-menue__liste .po-rot { color: var(--po-rot); }
.po-menue__liste hr { margin: 4px 0; border: 0; border-top: 1px solid var(--po-linie); }
.po-menue__liste form { margin: 0; }

/* Auswahl mit Suche: <select data-po-suchwahl> wird zu Eingabefeld + Trefferliste
   (Skript in cab-portal-huelle.php, 14.11.2026). Das <select> bleibt unsichtbar im
   Formular; ohne Skript steht es da wie jedes andere Auswahlfeld. Die Liste steht
   fest unter dem Feld wie das Zeilenmenue - ein scrollender Dialog schneidet sie nicht ab. */
.po .po-suchwahl { position: relative; display: block; flex: 1 1 100%; min-width: 0; }
.po .po-suchwahl[hidden], .po .po-suchwahl__liste[hidden] { display: none; }
.po select.po-suchwahl__quelle { display: none; }
.po .po-suchwahl .po-feld { padding-right: 36px; text-overflow: ellipsis; }
.po .po-suchwahl__pfeil {
    position: absolute; top: 0; right: 0; bottom: 0; width: 36px;
    display: grid; place-items: center; color: var(--po-leise); cursor: pointer;
}
.po .po-suchwahl__pfeil::before {
    content: ""; width: 7px; height: 7px; margin-top: -4px;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
    transition: transform var(--po-kurz) var(--po-kurve), margin var(--po-kurz) var(--po-kurve);
}
.po .po-suchwahl .po-feld[aria-expanded="true"] + .po-suchwahl__pfeil::before { margin-top: 3px; transform: rotate(-135deg); }
.po .po-suchwahl .po-feld:disabled + .po-suchwahl__pfeil { opacity: .45; cursor: not-allowed; }
.po .po-suchwahl__liste {
    position: fixed; z-index: 40; display: block; overflow-y: auto; overscroll-behavior: contain; padding: 4px;
    background: var(--po-papier); color: var(--po-tinte); border: 1px solid var(--po-linie-stark);
    border-radius: var(--po-r-karte); box-shadow: var(--po-schatten); font-size: 14px; font-weight: 400;
}
.po .po-suchwahl__eintrag {
    display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 7px 10px;
    border-radius: var(--po-r-feld); cursor: pointer; overflow-wrap: anywhere;
}
/* Markiert (Pfeiltasten oder Maus): Flaeche plus Strich - die Flaeche allein ist zu blass. */
.po .po-suchwahl__eintrag.ist-aktiv { background: var(--po-flaeche); box-shadow: inset 2px 0 0 var(--po-tinte); }
/* Gewaehlt heisst nicht nur „fett“, sondern auch Haken. */
.po .po-suchwahl__eintrag[aria-selected="true"] { font-weight: 600; }
.po .po-suchwahl__eintrag[aria-selected="true"]::after {
    content: ""; flex: none; width: 10px; height: 5px; margin: -3px 2px 0 auto;
    border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.po .po-suchwahl__eintrag--frei { margin-top: 4px; border-top: 1px solid var(--po-linie); border-radius: 0 0 var(--po-r-feld) var(--po-r-feld); color: var(--po-leise); }
.po .po-suchwahl__eintrag--frei:first-child { margin-top: 0; border-top: 0; border-radius: var(--po-r-feld); }
.po .po-suchwahl__leer { display: block; padding: 8px 10px; color: var(--po-leise); }
@media (prefers-reduced-motion: reduce) {
    .po .po-suchwahl__pfeil::before { transition: none; }
}

/* ---------- Status, Band, Meldung, Leer ------------------------------- */
.po-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px 2px 7px;
    border-radius: var(--po-r-marke); background: var(--po-flaeche); color: var(--po-leise);
    font-size: 12px; white-space: nowrap;
}
.po-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.po-status--gruen { background: var(--po-gruen-t); color: var(--po-gruen); }
.po-status--gelb { background: var(--po-gelb-t); color: var(--po-gelb); }
.po-status--rot { background: var(--po-rot-t); color: var(--po-rot); }
.po-ton--gruen { color: var(--po-gruen); }
.po-ton--gelb { color: var(--po-gelb); }
.po-ton--rot { color: var(--po-rot); }

.po-band { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); background: var(--po-papier); }
.po-band__zeichen { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--po-flaeche); color: var(--po-tinte); }
.po-band--gelb .po-band__zeichen { background: var(--po-gelb-t); color: var(--po-gelb); }
.po-band--rot { border-color: color-mix(in srgb, var(--po-rot) 35%, var(--po-linie)); }
.po-band--rot .po-band__zeichen { background: var(--po-rot-t); color: var(--po-rot); }
.po-band--gruen .po-band__zeichen { background: var(--po-gruen-t); color: var(--po-gruen); }
.po-band__text { flex: 1; min-width: 0; overflow-wrap: break-word; }
.po-band__text strong { display: block; }
.po-band__text span { color: var(--po-leise); font-size: 13px; }

.po-meldung { padding: 12px 16px; border-radius: var(--po-r-karte); border: 1px solid var(--po-linie); background: var(--po-papier); overflow-wrap: break-word; }
.po-meldung--ok { border-color: color-mix(in srgb, var(--po-gruen) 35%, var(--po-linie)); }
.po-meldung--fehler { border-color: color-mix(in srgb, var(--po-rot) 40%, var(--po-linie)); color: var(--po-rot); }

.po-leer { display: grid; justify-items: center; gap: 10px; padding: 40px 20px; text-align: center; color: var(--po-leise); }
.po-leer strong { color: var(--po-tinte); font-size: 16px; }
.po-leer p { margin: 0; max-width: 46ch; }

.po-fristen { list-style: none; margin: 0; padding: 0; }
.po-fristen li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--po-linie); }
.po-fristen li > div { flex: 1; min-width: 0; overflow-wrap: break-word; hyphens: auto; } /* „Personenbeförderungsschein“ lief auf 375 px über die Karte (29.11.2026) */
.po-fristen__tage { flex: 0 0 88px; min-width: 88px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Fahrstrecke: der Weg zum ersten Auftrag -------------------
   Das eine auffaellige Element. Der Wagen faehrt beim Laden EINMAL bis
   zum aktuellen Halt (Skript in der Huelle setzt --po-strecke-ziel). */
.po-strecke { padding: 22px 24px 20px; container: strecke / inline-size; }
.po-strecke__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.po-strecke__kopf h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.po-strecke__kopf p { margin: 0; color: var(--po-leise); }
.po-bahn { position: relative; display: grid; grid-template-columns: repeat(var(--po-halte, 5), minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.po-bahn__linie, .po-bahn__fahrt { position: absolute; top: 15px; height: 2px; }
.po-bahn__linie { left: calc(50% / var(--po-halte, 5)); right: calc(50% / var(--po-halte, 5)); background: repeating-linear-gradient(90deg, var(--po-linie-stark) 0 8px, transparent 8px 14px); }
.po-bahn__fahrt { left: calc(50% / var(--po-halte, 5)); width: 0; background: var(--po-tinte); transition: width 1.1s var(--po-kurve); }
.po-wagen { position: absolute; top: 4px; left: calc(50% / var(--po-halte, 5)); width: 26px; height: 24px; margin-left: -13px; color: var(--po-tinte); transition: left 1.1s var(--po-kurve); }
.po-wagen svg { display: block; width: 26px; height: 24px; background: var(--po-papier); border-radius: 6px; }
.po-halt { position: relative; display: grid; justify-items: center; gap: 10px; min-width: 0; padding: 0 6px; text-align: center; overflow-wrap: anywhere; }
.po-halt a, .po-halt > span { display: contents; color: inherit; text-decoration: none; }
.po-halt__punkt {
    position: relative; z-index: 1; width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 50%; border: 2px solid var(--po-linie-stark); background: var(--po-papier);
    color: var(--po-leise); font-size: 13px; font-weight: 600;
}
.po-halt--fertig .po-halt__punkt { background: var(--po-tinte); border-color: var(--po-tinte); color: var(--po-auf-tinte); }
.po-halt--jetzt .po-halt__punkt { border-color: var(--po-tinte); color: var(--po-tinte); }
.po-halt__name { font-size: 13px; font-weight: 600; line-height: 1.3; }
.po-halt__info { font-size: 12px; line-height: 1.35; color: var(--po-leise); }
.po-halt--jetzt .po-halt__info { color: var(--po-tinte); }
.po-halt a:hover .po-halt__name { text-decoration: underline; text-underline-offset: 3px; }
.po-strecke__fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--po-linie); }
.po-strecke__fuss p { margin: 0; }
/* Senkrecht, sobald die KARTE zu schmal ist - nicht erst das Fenster: Ueber
   900 px nimmt die Seitenleiste 249 px weg, bei 901 px blieben fuer fuenf
   Halte je 97 px, „Auszahlungskonto“ braucht 117,7 px (Inter 600, 13 px).
   Schwelle = Halte x (laengster Name + 12 px Innenabstand), aufgerundet:
   5 Halte 5 x 129,7 = 649 -> 660; 6 Halte („Partnerbedingungen“ 129,5 px)
   6 x 141,5 = 849 -> 870. Nachgerechnet in tests/einrichtungsleiste_breiten_contract_test.php. */
@container strecke (max-width: 660px) {
    .po-bahn { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .po-bahn .po-bahn__linie, .po-bahn .po-bahn__fahrt, .po-bahn .po-wagen { display: none; }
    .po-bahn .po-halt { grid-template-columns: 32px minmax(0, 1fr); justify-items: start; column-gap: 12px; row-gap: 0; text-align: left; }
    .po-bahn .po-halt__punkt { grid-row: span 2; }
    /* Schmal (Handy UND schmales Fenster, Steven 29.11.2026: „dennoch oben wieder dinger“): nach der
     * Breite der KARTE, an derselben Schwelle, ab der die Strecke senkrecht wuerde. Statt Titel und
     * senkrechter Schrittliste nur Balken + „Schritt 3 von 5“, dann gleich „Betriebssitz“.
     * Die Karte ist selbst der Container - deshalb ueber die Geschwister des Fusses gewaehlt. */
    .po .po-strecke__kopf:has(~ .po-strecke__fuss .po-wr-schritt),
    .po .po-bahn:has(~ .po-strecke__fuss .po-wr-schritt) { display: none; }
    .po .po-strecke__kurz:has(~ .po-strecke__fuss .po-wr-schritt) { display: block; margin-top: 2px; }
    .po .po-strecke__fuss:has(> .po-wr-schritt) { margin-top: 14px; padding-top: 0; border-top: 0; }
    /* Diese Regeln stehen VOR den Grundregeln weiter unten - daher mit .po-strecke__fuss staerker gewaehlt. */
    .po .po-strecke__fuss .po-wr-schritt { padding-top: 0; gap: 18px; }
    .po .po-strecke__fuss .po-wr-schritt__text h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
    .po .po-strecke__fuss .po-wr-schritt__danach { font-size: 12px; padding-top: 14px; border-top: 1px solid var(--po-linie); max-width: none; }
    .po .po-strecke__fuss .po-wr-knopf > .po-knopf { width: 100%; justify-content: center; min-height: 48px; }
}
@container strecke (max-width: 870px) {
    .po-bahn--lang { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .po-bahn--lang .po-bahn__linie, .po-bahn--lang .po-bahn__fahrt, .po-bahn--lang .po-wagen { display: none; }
    .po-bahn--lang .po-halt { grid-template-columns: 32px minmax(0, 1fr); justify-items: start; column-gap: 12px; row-gap: 0; text-align: left; }
    .po-bahn--lang .po-halt__punkt { grid-row: span 2; }
}

/* ---------- Dialog ---------------------------------------------------- */
.po dialog.po-dialog {
    width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 12px;
    background: var(--po-papier); color: var(--po-tinte); box-shadow: var(--po-schatten);
}
.po dialog.po-dialog--breit { width: min(760px, calc(100vw - 32px)); }
.po dialog.po-dialog::backdrop { background: rgb(10 11 13 / .45); }
.po dialog.po-dialog[open] { animation: po-auf var(--po-mittel) var(--po-kurve); }
.po dialog.po-dialog[open]::backdrop { animation: po-schleier var(--po-mittel) ease-out; }
@keyframes po-auf { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes po-schleier { from { opacity: 0; } }
.po-dialog form { margin: 0; }
.po-dialog__kopf { padding: 20px 24px 4px; }
.po-dialog__kopf h2 { margin: 0; font-size: 20px; font-weight: 700; }
.po-dialog__kopf p { margin: 6px 0 0; color: var(--po-leise); }
.po-dialog__schritte { display: flex; gap: 6px; padding: 14px 24px 0; }
.po-dialog__schritte i { flex: 1; height: 3px; border-radius: 3px; background: var(--po-flaeche); transition: background var(--po-mittel); }
.po-dialog__schritte i.an { background: var(--po-tinte); }
.po-dialog__rumpf { display: grid; gap: 14px; padding: 18px 24px; }
.po-dialog__fuss { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; }
.po-dialog__fuss .po-links { margin-right: auto; }
/* Lange Dialoge (Gutscheincode, Assistenten): EIN Scrollbereich - der Dialog
   selbst -, Kopf bleibt oben, Fuss mit Abbrechen/Absenden bleibt unten
   sichtbar. Scrollen laeuft nicht auf die Seite dahinter durch. */
.po dialog.po-dialog { overflow-y: auto; overscroll-behavior: contain; }
.po dialog.po-dialog .po-dialog__kopf { position: sticky; top: 0; z-index: 2; background: var(--po-papier); padding-bottom: 12px; }
.po dialog.po-dialog .po-dialog__fuss { position: sticky; bottom: 0; z-index: 2; background: var(--po-papier); border-top: 1px solid var(--po-linie); }
.po-schritt[hidden] { display: none; }

/* Einrichtung: Schritt-Ueberschriften im Formular */
.po-ei__titel { margin: 0; font-size: 16px; font-weight: 600; }
.po-ei__titel:focus { outline: none; }
.po-ei__zusammenfassung > div { padding-inline: 0; }

/* ---------- Toast ----------------------------------------------------- */
.po-toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); opacity: 0;
    padding: 10px 16px; border-radius: 8px; background: var(--po-tinte); color: var(--po-auf-tinte); font-weight: 600;
    pointer-events: none; transition: opacity var(--po-mittel), transform var(--po-mittel) var(--po-kurve);
}
.po-toast.an { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Glocke ---------------------------------------------------- */
.po-glocke { position: relative; }
.po-glocke > summary { list-style: none; }
.po-glocke > summary::-webkit-details-marker { display: none; }
.po-glocke__fenster {
    position: absolute; right: 0; top: 44px; z-index: 20; width: 380px; max-height: min(70vh, 560px); overflow: auto;
    background: var(--po-papier); border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); box-shadow: var(--po-schatten);
}
.po-glocke[open] .po-glocke__fenster { animation: po-auf var(--po-kurz) var(--po-kurve); }
.po-glocke__kopf { position: sticky; top: 0; display: flex; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--po-linie); background: var(--po-papier); }
.po-glocke__eintrag { display: grid; grid-template-columns: 8px 1fr; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--po-linie); text-decoration: none; }
.po-glocke__eintrag:hover { background: var(--po-flaeche); }
.po-glocke__eintrag::before { content: ""; grid-row: span 2; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--po-tinte); }
.po-glocke__eintrag--rot::before { background: var(--po-rot); }
.po-glocke__eintrag--gelb::before { background: var(--po-gelb); }
.po-glocke__eintrag--gelesen::before { background: transparent; box-shadow: inset 0 0 0 1px var(--po-linie-stark); }
.po-glocke__eintrag span { font-size: 13px; color: var(--po-leise); }
.po-glocke__leer { padding: 28px 16px; text-align: center; color: var(--po-leise); }

/* ---------- Handy ----------------------------------------------------- */
.po-unten, .po-schleier { display: none; }

@media (max-width: 900px) {
    .po-huelle { grid-template-columns: 1fr; }
    /* Zugeklappt NICHT in der Tab-Reihenfolge: translateX allein schiebt die
       Leiste nur aus dem Bild, ihre Links bleiben Tab-Stopps (02.11.2026: 23
       von 31 Stopps unsichtbar). visibility folgt beim Schliessen nach der
       Gleitzeit, beim Oeffnen sofort - sonst faellt der Fokus ins Leere. */
    .po-leiste {
        position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw);
        transform: translateX(-100%); visibility: hidden;
        transition: transform var(--po-mittel) var(--po-kurve), visibility 0s linear var(--po-mittel);
    }
    .po-navi-offen .po-leiste {
        transform: none; visibility: visible; box-shadow: var(--po-schatten);
        transition: transform var(--po-mittel) var(--po-kurve), visibility 0s;
    }
    .po-schleier {
        display: block; position: fixed; inset: 0; z-index: 55; border: 0; padding: 0;
        background: rgb(0 0 0 / .4); opacity: 0; pointer-events: none; transition: opacity var(--po-mittel);
    }
    .po-navi-offen .po-schleier { opacity: 1; pointer-events: auto; }
    .po-symbolknopf.po-burger { display: grid; }
    .po-kopf { align-items: center; padding: 14px 16px 12px; }
    .po-kopf h1 { font-size: 20px; }
    .po-kopf__aktionen .po-knopf .po-lang { display: none; }
    .po-reiter { padding: 0 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
    .po-koerper { padding: 16px 16px 96px; gap: 16px; }
    /* Die Leiste unten deckt die letzten Zeilen ab - auch fuer Sprungziele. */
    html:has(> body.po) { scroll-padding-bottom: 80px; }
    .po-zwei { grid-template-columns: 1fr; }
    .po-kennzahl { flex-basis: 40%; }
    .po-werte > div { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; }
    .po-werte dt { grid-column: 1 / -1; font-size: 13px; }
    .po-karte__kopf { padding: 14px 16px; }
    .po-karte__rumpf { padding: 0 16px 16px; }
    .po-glocke__fenster { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
    /* Filterzeile: Segmente scrollen seitlich, Suche nimmt die ganze Zeile */
    .po-segmente { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
    .po-filter .po-suche { flex: 1 1 100%; max-width: none; }
    .po-filter .po-suche + .po-knopf { flex: 0 0 auto; }
    /* Fristen: Knopf unter den Namen statt darueber */
    .po-fristen li { flex-wrap: wrap; padding: 12px 16px; }
    .po-fristen li > .po-knopf { margin-left: 100px; }
    .po-band { flex-wrap: wrap; }
    .po-band__text { flex: 1 1 calc(100% - 46px); }
    .po-band > .po-knopf, .po-band > form, .po-band > a.po-knopf { margin-left: 46px; }

    .po-unten {
        display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        padding-bottom: env(safe-area-inset-bottom);
        background: color-mix(in srgb, var(--po-papier) 94%, transparent);
        -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
        border-top: 1px solid var(--po-linie);
    }
    .po-unten a, .po-unten button {
        all: unset; display: grid; justify-items: center; gap: 2px; padding: 8px 0 10px;
        color: var(--po-leise); font-size: 11px; cursor: pointer; text-align: center;
    }
    .po-unten a.aktiv { color: var(--po-tinte); font-weight: 600; }
    .po-unten a:focus-visible, .po-unten button:focus-visible { outline: 2px solid var(--po-tinte); outline-offset: -4px; }

    /* Fahrstrecke senkrecht */
    .po-bahn { grid-template-columns: 1fr; gap: 18px; }
    .po-bahn__linie, .po-bahn__fahrt, .po-wagen { display: none; }
    .po-halt { grid-template-columns: 32px 1fr; justify-items: start; column-gap: 12px; row-gap: 0; text-align: left; }
    .po-halt__punkt { grid-row: span 2; }

    /* Tabellen als Zeilenkarten: .po-karten an der Tabelle,
       .po-weg an Zellen, die schmal entfallen */
    /* Als Block, nicht als Tabelle: sonst rechnet die Tabelle sich anhand
       nicht umbrechender Zellen breiter als der Schirm. */
    /* tfoot mit: Summenzeilen (Einnahmen nach Fahrer) zerfielen sonst als halbe Tabelle (28.11.2026) */
    .po-tabelle.po-karten, .po-tabelle.po-karten tbody, .po-tabelle.po-karten tfoot { display: block; width: 100%; }
    .po-tabelle.po-karten td { min-width: 0; overflow-wrap: break-word; }
    .po-tabelle.po-karten thead { display: none; }
    .po-tabelle.po-karten tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--po-linie); }
    .po-tabelle.po-karten tbody tr:last-child { border-bottom: 0; }
    .po-tabelle.po-karten td { padding: 0; border: 0; }
    .po-tabelle.po-karten td.po-weg { display: none; }
    .po-tabelle.po-karten td.po-voll { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .po *, .po *::before, .po *::after { transition: none !important; animation: none !important; }
}
@media print {
    .po-leiste, .po-kopf__aktionen, .po-unten, .po-reiter { display: none !important; }
    .po-huelle { display: block; }
    body.po { background: #fff; }
}

/* =====================================================================
 * BEREICHE - zusammengefuehrt aus den Stylesheets der Bauteams (13.11.2026).
 * Nur --po-*-Tokens, Selektoren unter .po. Gemeinsames gehoert nach oben.
 * ===================================================================== */

/* ---------- Bereich: Anmeldung, Einstellungen, Angebote (vorher cab-portal-konto.css) ---------- */
/* =====================================================================
 * cably.cab — PORTAL, Bereich „Konto“: Anmeldung, Passwort vergessen,
 * Einstellungen, Gutscheincodes. Neubau 13.11.2026.
 *
 * Laedt NACH cab-portal.css und benutzt nur dessen --po-*-Tokens (hell und
 * dunkel stehen dort - hier gibt es keine eigenen Farben).
 *
 * po-auth…  Seiten ohne Seitenleiste (cab-portal-auth.php). Das Team
 *           Fahrerportal benutzt dieselben Klassen fuer /fahrer/login.
 * po-code   Gutscheincode in Tabelle und Feld.
 * po-konto-mehr  aufklappbare „Weitere Begrenzungen“ im Dialog.
 * ===================================================================== */

/* ---------- Anmeldeseiten -------------------------------------------- */
body.po.po-auth {
    min-height: 100vh; min-height: 100dvh;
    display: grid; place-items: center;
    padding: 32px 16px;
}
.po-auth__rahmen { width: min(420px, 100%); display: grid; gap: 16px; }
.po-auth__rahmen:focus { outline: none; }
/* Wie in der Seitenleiste: Wortmarke, Portalname kraeftig darunter (Steven, 13.11.) */
.po-auth__marke {
    display: grid; justify-items: center; gap: 6px;
    margin-bottom: 8px; text-decoration: none; color: var(--po-tinte);
}
/* Anmeldung: Logo groesser als in der Seitenleiste - hier ist es das Erste, was man sieht (Steven, 13.11.) */
.po-auth__marke img { width: 184px; height: auto; }
.po-auth__marke span { font-size: 15px; font-weight: 600; opacity: .75; }

/* Umschalter Unternehmen / Fahrer: wie .po-segmente, ueber die volle Breite */
.po-auth__rollen {
    display: grid; grid-template-columns: 1fr 1fr; padding: 2px;
    border-radius: 8px; background: var(--po-flaeche);
}
.po-auth__rollen a, .po-auth__rollen span {
    display: grid; place-items: center; min-height: 36px; padding: 0 12px;
    border-radius: var(--po-r-feld); font-size: 13px; color: var(--po-leise); text-decoration: none;
}
.po-auth__rollen a:hover { color: var(--po-tinte); }
.po-auth__rollen [aria-current] {
    background: var(--po-papier); color: var(--po-tinte); font-weight: 600;
    box-shadow: 0 1px 2px rgb(0 0 0 / .08);
}

.po-auth__karte {
    display: grid; gap: 16px; padding: 28px 28px 24px;
    background: var(--po-papier); border: 1px solid var(--po-linie); border-radius: var(--po-r-karte);
}
.po-auth__karte h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.po-auth__karte > p { margin: -8px 0 0; }
.po-auth__formular { display: grid; gap: 14px; margin: 0; }
.po-auth__zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.po-auth__zeile a { font-weight: 400; font-size: 13px; }
.po .po-auth__knopf { width: 100%; min-height: 44px; margin-top: 4px; }
.po-auth__fuss { margin: 0; text-align: center; font-size: 13px; color: var(--po-leise); }

@media (max-width: 480px) {
    body.po.po-auth { place-items: start center; padding: 24px 16px; }
    .po-auth__karte { padding: 20px 16px; }
    .po-auth__karte h1 { font-size: 20px; }
}

/* ---------- Gutscheincodes ------------------------------------------- */
.po .po-code {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 13px; letter-spacing: .02em;
}
.po input.po-code { text-transform: uppercase; }
.po input.po-code::placeholder { text-transform: none; }

.po .po-konto-mehr { border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); }
.po .po-konto-mehr > summary {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
    min-height: 44px; padding: 10px 14px; cursor: pointer; font-weight: 600; font-size: 13px;
}
.po .po-konto-mehr > summary small { font-weight: 400; color: var(--po-leise); }
.po .po-konto-mehr__rumpf { display: grid; gap: 14px; padding: 4px 14px 14px; }

/* ---------- Bereich: Fahrten und Geld (vorher cab-portal-geld.css) ---------- */
/* =====================================================================
 * cably.cab — PORTAL, Bereich Fahrten und Geld
 * (/betrieb/fahrten, /betrieb/einnahmen, /betrieb/rechnungen,
 *  /betrieb/auszahlungen)
 *
 * Laedt nach cab-portal.css. Nur --po-*-Tokens, Selektoren beginnen mit
 * .po. Hier steht nur, was die Schicht nicht schon kann:
 *  - Reihenfolge der Zellen in den Zeilenkarten auf dem Handy
 *    (.po-geld-o1 … o6): am Schreibtisch steht der Fahrpreis rechts, auf
 *    dem Handy gehoert er neben die Fahrtnummer.
 *  - Text, der nur in Zeilenkarten erklaert, was eine Zahl ist.
 *  - Zwischen- und Ergebniszeilen der Herleitung auf „Einnahmen“.
 * ===================================================================== */

.po .po-geld-schmal { display: none; }

/* Herleitung: ruhige Tabelle Posten | Betrag */
.po .po-geld-herleitung td:first-child { width: 100%; }
.po .po-geld-herleitung td.po-r { white-space: nowrap; }
.po .po-karte.po-geld-schmalkarte { width: 100%; } /* volle Breite (Steven, 13.11.) */
.po .po-geld-herleitung tr.po-geld-zwischen td { font-weight: 600; border-top: 1px solid var(--po-linie-stark); }
.po .po-geld-herleitung tfoot td { font-size: 16px; }
.po .po-geld-fuss { margin: 0; padding: 12px 20px 16px; color: var(--po-leise); font-size: 13px; border-top: 1px solid var(--po-linie); }
.po .po-geld-fuss + .po-geld-fuss { border-top: 0; padding-top: 0; }

/* Nummern, Zeitraeume und Betraege brechen nicht um */
.po .po-geld-nowrap { white-space: nowrap; }

/* Mehrere PDF-Links in einer Zelle (Abrechnung: Beleg, Tourenliste, Rechnung) */
.po .po-geld-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* Auszahlungen: eingebettete Stripe-Bausteine brauchen Luft, keine Rahmen */
.po .po-geld-eingebettet { display: grid; gap: 14px; padding: 16px 20px 20px; min-height: 120px; }
.po .po-geld-eingebettet .po-leise { margin: 0; }
.po .po-geld-eingebettet[hidden] { display: none; }

/* Auszahlungen: Verweise auf Auszahlungskonto und Lastschriftmandat, jeweils
 * eine eigene Seite (Steven, 14.11.2026). Raster wie .po-werte, ganze Zeile
 * klickbar, Pfeil rechts. */
.po .po-geld-wege { display: grid; overflow: hidden; }
.po .po-geld-weg {
    display: grid; grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto; gap: 16px;
    align-items: center; padding: 14px 20px; color: inherit; text-decoration: none;
    border-top: 1px solid var(--po-linie);
}
.po .po-geld-weg:first-child { border-top: 0; }
.po .po-geld-weg:hover { background: var(--po-flaeche); }
.po .po-geld-weg:focus-visible { outline: 2px solid var(--po-tinte); outline-offset: -2px; }
.po .po-geld-weg__titel { font-weight: 600; }
.po .po-geld-weg__wert { min-width: 0; overflow-wrap: anywhere; }
.po .po-geld-weg__wert small { display: block; color: var(--po-leise); font-size: 13px; }
.po .po-geld-weg__stand { display: inline-flex; align-items: center; gap: 14px; }
.po .po-geld-weg__stand::after {
    content: ""; width: 8px; height: 8px; flex: none;
    border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg);
}

/* Lastschriftmandat direkt auf der Seite (Zahlungsformular von Stripe) */
.po .po-geld-mandat { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--po-linie); }
.po .po-geld-mandat[hidden] { display: none; }
.po .po-geld-mandat__fehler { margin: 0; color: var(--po-rot); }
.po .po-geld-mandat__fehler[hidden] { display: none; }

/* Einnahmen im Aufbau nach FreeNow (14.11.2026): links Gewinn mit Ring,
 * rechts Fahrer. Ring und Punkte in den Kategorie-Farben --po-kat-1…4
 * (Steven: Ring farbig), sonst schwarz-weiß; der Trend gruen/rot. */
.po .po-ein-filter { justify-content: space-between; }
.po .po-ein-zeitraum { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.po .po-ein-zeitraum label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--po-leise); }
.po .po-ein-raster { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 16px; align-items: start; }
.po .po-ein-raster > * { min-width: 0; }
.po .po-ein-ringfeld { position: relative; width: 208px; margin: 4px auto 12px; aspect-ratio: 1; }
.po .po-ein-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.po .po-ein-ring circle { fill: none; stroke-width: 12; }
.po .po-ein-ring__spur { stroke: var(--po-flaeche); }
.po .po-ein-ring__teil { stroke: var(--po-kat, var(--po-tinte)); }
.po .po-ein-ringmitte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; padding: 0 36px; }
.po .po-ein-ringmitte strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.po .po-ein-ringmitte span { font-size: 13px; color: var(--po-leise); font-variant-numeric: tabular-nums; }
.po .po-ein-ringmitte small { font-size: 12px; line-height: 1.3; color: var(--po-leise); }
.po .po-ein-leer { margin: 0; padding: 0 20px 16px; color: var(--po-leise); text-align: center; }
.po .po-ein-liste { list-style: none; margin: 0; padding: 0 20px 8px; }
.po .po-ein-posten { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: baseline;
    padding: 9px 0; border-top: 1px solid var(--po-linie); font-size: 14px; }
.po .po-ein-posten:first-child { border-top: 0; }
.po .po-ein-posten--ein { padding: 5px 0 5px 14px; border-top: 0; font-size: 13px; color: var(--po-leise); }
.po .po-ein-posten--summe { font-weight: 600; border-top-color: var(--po-linie-stark); }
.po .po-ein-posten--ende { font-size: 16px; }
.po .po-ein-posten small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--po-leise); }
.po .po-ein-posten__betrag { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.po .po-ein-punkt { width: 8px; height: 8px; border-radius: 50%; align-self: start; margin-top: .45em;
    background: var(--po-kat, var(--po-tinte)); }
.po .po-ein-punkt[data-leer] { background: transparent; }
.po .po-ein-info summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; }
.po .po-ein-info summary::-webkit-details-marker { display: none; }
.po .po-ein-info summary svg { width: 15px; height: 15px; color: var(--po-leise); }
.po .po-ein-info dl { margin: 6px 0 2px; display: grid; gap: 4px; font-size: 13px; font-weight: 400; color: var(--po-leise); }
.po .po-ein-info dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.po .po-ein-info dt { min-width: 0; }
.po .po-ein-info dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.po .po-ein-fuss { padding: 12px 20px 16px; border-top: 1px solid var(--po-linie); display: grid; gap: 6px; }
.po .po-ein-fuss p, .po .po-ein-fuss-klein { margin: 0; font-size: 13px; color: var(--po-leise); }
.po .po-ein-fuss-klein { padding: 10px 20px 16px; }
.po .po-ein-hinweise summary { font-size: 13px; color: var(--po-leise); }
.po .po-ein-hinweise[open] summary { margin-bottom: 4px; }
.po .po-ein-hinweise p + p { margin-top: 4px; }
/* Info-Zeichen mit Popup (popover, oberste Ebene) */
.po .po-tipp-knopf { display: inline-flex; align-items: center; justify-content: center; vertical-align: -3px; margin-left: 4px;
    width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--po-leise); cursor: pointer; }
.po .po-tipp-knopf:hover, .po .po-tipp-knopf:focus-visible { color: var(--po-tinte); background: var(--po-flaeche); }
.po .po-tipp-knopf svg { width: 16px; height: 16px; }
.po .po-tipp { position: fixed; inset: auto; margin: 0; max-width: min(300px, calc(100vw - 32px)); padding: 10px 12px;
    border: 1px solid var(--po-linie); border-radius: 10px; background: var(--po-papier); color: var(--po-tinte);
    box-shadow: var(--po-schatten); font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; }
.po .po-tipp strong { display: block; margin-bottom: 4px; font-weight: 600; }
.po .po-tipp ul { margin: 0 0 6px; padding-left: 18px; color: var(--po-leise); }
.po .po-ein-tabelle th button { all: unset; cursor: pointer; font: inherit; }
@media (min-width: 901px) {
    .po .po-ein-tabelle td.po-r, .po .po-ein-tabelle th.po-r { white-space: nowrap; }
    .po .po-ein-tabelle td:first-child { width: 40%; }
}
.po .po-ein-tabelle th button:focus-visible { outline: 2px solid var(--po-tinte); outline-offset: 2px; border-radius: 3px; }
.po .po-ein-tabelle th[aria-sort="ascending"] button::after { content: " ↑"; }
.po .po-ein-tabelle th[aria-sort="descending"] button::after { content: " ↓"; }
.po .po-ein-trend { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.po .po-ein-trend svg { width: 12px; height: 12px; }
.po .po-ein-trend--hoch { color: var(--po-gruen); }
.po .po-ein-trend--runter { color: var(--po-rot); }
.po .po-ein-blaettern { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 10px 20px 0; font-size: 13px; color: var(--po-leise); }
.po .po-ein-blaettern[hidden] { display: none; }
@media (max-width: 1100px) {
    .po .po-ein-raster { grid-template-columns: minmax(0, 1fr); }
}

/* Abrechnungen je Woche (14.11.2026): Menü „Dateien“ wie FreeNow. */
.po .po-abr-dateien > summary { display: inline-flex; align-items: center; gap: 6px; }
.po .po-abr-pfeil { display: inline-block; font-size: 11px; transition: transform var(--po-kurz) var(--po-kurve); }
.po .po-abr-dateien[open] .po-abr-pfeil { transform: rotate(180deg); }
.po .po-abr-dateien .po-menue__liste { min-width: 280px; }
.po .po-abr-dateien .po-menue__liste svg { width: 16px; height: 16px; flex: none; color: var(--po-leise); }
.po .po-abr-datei { display: grid; gap: 1px; text-align: left; }
.po .po-abr-datei small { font-size: 12px; color: var(--po-leise); }
@media (prefers-reduced-motion: reduce) { .po .po-abr-pfeil { transition: none; } }
@media (max-width: 560px) {
    .po .po-ein-zeitraum { width: 100%; }
    .po .po-ein-zeitraum label { flex: 1 1 130px; }
    .po .po-ein-liste { padding: 0 16px 8px; }
    .po .po-ein-fuss { padding: 12px 16px 16px; }
}

@media (max-width: 900px) {
    .po .po-tabelle.po-karten .po-geld-schmal { display: inline; }
    .po .po-tabelle.po-karten td.po-geld-o1 { order: 1; }
    .po .po-tabelle.po-karten td.po-geld-o2 { order: 2; text-align: right; }
    .po .po-tabelle.po-karten td.po-geld-o3 { order: 3; }
    .po .po-tabelle.po-karten td.po-geld-o4 { order: 4; }
    .po .po-tabelle.po-karten td.po-geld-o5 { order: 5; justify-self: end; }
    /* Mehrere Links (PDF, Tourenliste, Rechnung) bekommen eine eigene Zeile,
       sonst macht die rechte Spalte den Text links unlesbar schmal. */
    .po .po-tabelle.po-karten td.po-geld-o6 { order: 6; grid-column: 1 / -1; }
    /* Zahlen in Zeilenkarten linksbuendig unter dem Namen, Betrag rechts */
    .po .po-tabelle.po-karten td.po-r.po-geld-o3,
    .po .po-tabelle.po-karten td.po-r.po-geld-o4 { text-align: left; color: var(--po-leise); font-size: 13px; }
    .po .po-geld-fuss { padding: 12px 16px 16px; }
    .po .po-geld-eingebettet { padding: 0 16px 16px; }
    .po .po-geld-weg { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 16px; }
    .po .po-geld-weg__stand { grid-column: 2; grid-row: 1 / span 2; }
    .po .po-geld-mandat { padding: 16px; }
}

/* ---------- Bereich: Fahrer (vorher cab-portal-flotte.css) ---------- */
/* =====================================================================
 * cably.cab — PORTAL, Bereich Flotte (Neubau 13.11.2026)
 *
 * Laedt nach cab-portal.css (Option 'css' => ['cab-portal-flotte.css']).
 * Nur --po-*-Tokens, jeder Selektor beginnt mit .po - damit gilt alles
 * automatisch hell und dunkel, und nichts sickert in Admin oder App.
 *
 * Aufteilung: Dieser Block gehoert der Fahrer-Welt (/betrieb/fahrer,
 * /betrieb/fahrerprofil, /betrieb/cably-cab). Fahrzeuge und Unterlagen
 * stehen in cab-portal-fahrzeuge.css - keine gemeinsame Datei.
 * ===================================================================== */

/* Fahrer */

/* Profilbild oder Initialen - in Auswahl, Akte und Stand gleich */
.po .po-flotte-avatar {
    flex: 0 0 32px; width: 32px; height: 32px; display: inline-grid; place-items: center;
    border-radius: 50%; background: var(--po-flaeche); color: var(--po-tinte);
    font-size: 12px; font-weight: 600; object-fit: cover; overflow: hidden;
}
.po .po-flotte-avatar--gross { flex-basis: 56px; width: 56px; height: 56px; font-size: 16px; }

/* Kopf der Akte: Bild, Name, Fahrer-Nr. */
.po .po-flotte-person { flex-wrap: nowrap; gap: 14px; }
.po .po-flotte-person > div { flex: 1; min-width: 0; }
.po .po-flotte-person h2 { margin: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }

/* Karten untereinander in einer Spalte von .po-zwei */
.po .po-flotte-stapel { display: grid; gap: 20px; align-content: start; min-width: 0; }

/* Formulare in Karten-Fuss, Band und Menue stehen in der Zeile */
.po .po-karte__fuss form, .po .po-band form { margin: 0; }
.po .po-karte__fuss { flex-wrap: wrap; }

/* Knoepfe in einer Tabellenzelle */
.po .po-flotte-aktionen { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* Einladungslink zum persoenlichen Weitergeben */
.po .po-flotte-link {
    display: block; padding: 10px 12px; border-radius: var(--po-r-feld);
    background: var(--po-flaeche); color: var(--po-tinte);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 400;
    word-break: break-all; user-select: all;
}

/* Dateifeld im Stil der uebrigen Felder */
.po .po-flotte-datei { padding: 6px 8px; height: auto; }
.po .po-flotte-datei::file-selector-button {
    margin-right: 10px; padding: 4px 10px; border: 1px solid var(--po-linie-stark); border-radius: var(--po-r-feld);
    background: var(--po-papier); color: var(--po-tinte); font: inherit; font-size: 13px; cursor: pointer;
}
.po .po-flotte-datei:disabled { opacity: .55; }

/* Assistent, Schritt 1: vorhandene Mitarbeiter zur AUSWAHL */
.po .po-flotte-wahl { margin: 0; padding: 0; border: 0; min-width: 0; }
.po .po-flotte-wahl legend { margin-bottom: 6px; padding: 0; font-size: 13px; font-weight: 600; }
.po .po-flotte-wahl__liste {
    display: grid; max-height: 248px; overflow-y: auto;
    border: 1px solid var(--po-linie); border-radius: var(--po-r-karte);
}
.po .po-flotte-wahl__eintrag {
    display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
    border-top: 1px solid var(--po-linie); cursor: pointer;
    transition: background var(--po-kurz);
}
.po .po-flotte-wahl__eintrag:first-child { border-top: 0; }
.po .po-flotte-wahl__eintrag[hidden] { display: none; }
.po .po-flotte-wahl__eintrag:hover { background: var(--po-flaeche); }
.po .po-flotte-wahl__eintrag input { width: 16px; height: 16px; margin: 0; accent-color: var(--po-tinte); }
.po .po-flotte-wahl__eintrag:has(input:checked) { background: var(--po-flaeche); }
.po .po-flotte-wahl__eintrag:has(input:focus-visible) { outline: 2px solid var(--po-tinte); outline-offset: -2px; }
.po .po-flotte-wahl__eintrag > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.po .po-flotte-wahl + p, .po .po-flotte-wahl p { margin: 8px 0 0; font-size: 13px; }
/* P-Schein im Einladungsassistenten: zwei Seiten als eine Angabe (14.11.2026) */
.po .po-flotte-pschein { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.po .po-flotte-pschein legend { margin: 0 0 4px; padding: 0; font-size: 13px; font-weight: 600; }
.po .po-flotte-pschein legend small, .po .po-flotte-pschein > small { font-size: 13px; font-weight: 400; color: var(--po-leise); }

/* Bestaetigen-Schritt: Wertliste ohne Kartenrand im Dialog */
.po .po-flotte-pruef { border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); }
.po .po-flotte-pruef > div { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); padding: 10px 14px; }

/* Registrierungs-Assistent als Seite (/betrieb/cably-cab) */
.po .po-flotte-assistent { width: 100%; } /* volle Breite (Steven, 13.11.) */
.po .po-flotte-assistent .po-dialog__schritte { padding: 16px 20px 4px; }
.po .po-flotte-assistent h2:focus { outline: none; }
.po .po-flotte-felder { display: grid; gap: 14px; }
.po .po-flotte-punkte { margin: 0 0 16px; padding-left: 20px; max-width: 70ch; }
.po .po-flotte-punkte li { margin-bottom: 6px; }

/* Filter der Fahrten in der Akte */
.po .po-flotte-filterfeld { display: inline-flex; align-items: center; gap: 6px; color: var(--po-leise); font-size: 13px; }

@media (max-width: 900px) {
    .po .po-flotte-person { padding: 14px 16px; }
    .po .po-flotte-avatar--gross { flex-basis: 48px; width: 48px; height: 48px; }
    .po .po-flotte-pruef > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .po .po-flotte-aktionen { justify-content: flex-start; }
    .po .po-flotte-filterfeld { flex: 1 1 140px; }
    .po .po-flotte-filterfeld .po-feld { flex: 1; min-width: 0; }
    .po .po-flotte-wahl__liste { max-height: 40vh; }
}

/* ---------- Bereich: Fahrzeuge, Merkmale, Unterlagen (vorher cab-portal-fahrzeuge.css) ---------- */
/* =====================================================================
 * cably.cab — Portal, Bereich Fahrzeuge und Unterlagen (Neubau 13.11.2026)
 *
 * Seiten: /betrieb/fahrzeuge, /betrieb/fahrzeugakte, /betrieb/unterlagen.
 * Die Merkmal-Chips (cab-betrieb-kriterienwahl.php) nutzt auch die
 * Fahrerakte - wer sie dort braucht, laedt diese Datei mit
 * ('css' => ['cab-portal-fahrzeuge.css']), bis sie in cab-portal.css wandern.
 *
 * Nur --po-*-Tokens, alle Selektoren beginnen mit .po (Bauanleitung).
 * ===================================================================== */

/* ---------- Werkzeugleiste ueber den Tabellen ------------------------- */
.po .po-fz-werkzeug { padding-bottom: 12px; border-bottom: 1px solid var(--po-linie); }
.po .po-fz-werkzeug .po-segmente { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.po .po-fz-werkzeug .po-filter { flex: 1 1 220px; justify-content: flex-end; }
.po .po-fz-werkzeug .po-suche { max-width: 320px; }
.po .po-fz-links { margin-right: auto; }

/* ---------- Merkmal-Chips -------------------------------------------- */
.po .po-chipwahl { display: grid; gap: 18px; }
.po .po-chipsuche { display: grid; gap: 6px; }
.po .po-chipsuche .po-suche { max-width: none; }
.po .po-chipgruppe { min-width: 0; margin: 0; padding: 0; border: 0; }
.po .po-chipgruppe legend { margin: 0 0 8px; padding: 0; font-size: 13px; font-weight: 600; }
.po .po-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.po .po-chip { position: relative; display: inline-flex; cursor: pointer; }
/* Die Checkbox bleibt bedienbar und vorlesbar, nur unsichtbar. */
.po .po-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.po .po-chip__flaeche {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
    border: 1px solid var(--po-linie-stark); border-radius: var(--po-r-marke); background: var(--po-papier);
    color: var(--po-tinte); font-size: 13px; line-height: 1.2; user-select: none;
    transition: background var(--po-kurz), border-color var(--po-kurz), color var(--po-kurz);
}
.po .po-chip__flaeche svg.po-i { display: none; width: 14px; height: 14px; flex-basis: 14px; }
.po .po-chip:hover .po-chip__flaeche { border-color: var(--po-tinte); }
.po .po-chip input:checked + .po-chip__flaeche { background: var(--po-tinte); border-color: var(--po-tinte); color: var(--po-auf-tinte); }
/* Gewaehlt heisst nicht nur „dunkel“, sondern auch Haken. */
.po .po-chip input:checked + .po-chip__flaeche svg.po-i { display: block; }
.po .po-chip input:focus-visible + .po-chip__flaeche { outline: 2px solid var(--po-tinte); outline-offset: 2px; }
.po .po-chip input:disabled + .po-chip__flaeche { opacity: .5; cursor: not-allowed; }

/* ---------- Assistent und Dialoge ------------------------------------ */
.po .po-fz-bereit, .po .po-fz-ablauf { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.po .po-fz-bereit li, .po .po-fz-ablauf li { line-height: 1.45; }
.po .po-fz-wahl { min-width: 0; margin: 0; padding: 0; border: 0; }
.po .po-fz-wahl legend { margin: 0 0 8px; padding: 0; font-size: 13px; font-weight: 600; }
.po .po-fz-wahl__liste {
    display: grid; max-height: 260px; overflow-y: auto;
    border: 1px solid var(--po-linie); border-radius: var(--po-r-karte);
}
.po .po-fz-wahl__liste button {
    all: unset; box-sizing: border-box; display: grid; gap: 2px; min-height: 48px; padding: 10px 14px;
    border-top: 1px solid var(--po-linie); cursor: pointer;
}
.po .po-fz-wahl__liste button:first-child { border-top: 0; }
.po .po-fz-wahl__liste button:hover { background: var(--po-flaeche); }
.po .po-fz-wahl__liste button:focus-visible { outline: 2px solid var(--po-tinte); outline-offset: -2px; }
.po .po-fz-zusammen { margin: 0 -24px; border-top: 1px solid var(--po-linie); }
.po .po-fz-zusammen > div { padding-left: 24px; padding-right: 24px; }
.po .po-fz-dateifehler, .po .po-fz-fehler { margin: 0; color: var(--po-rot); font-size: 13px; }
.po .po-fz-dokstand { margin: -6px 0 0; font-size: 13px; }
.po .po-datei.ist-gesperrt { opacity: .55; cursor: not-allowed; }
.po .po-datei.ist-gesperrt input[type="file"] { cursor: not-allowed; }
.po .po-fz-knopfhinweis { align-self: center; font-size: 13px; }
.po .po-fz-felder { min-width: 0; margin: 0; border: 0; display: grid; gap: 14px; }

/* Werbevereinbarung: Zeile im Bestelldialog und Lesefenster */
.po .po-fz-vertragszeile {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px;
    border: 1px solid var(--po-linie); border-radius: var(--po-r-karte);
}
.po .po-fz-vertragszeile > div { flex: 1 1 220px; min-width: 0; }
.po .po-fz-vertragszeile.ist-bestaetigt { border-color: color-mix(in srgb, var(--po-gruen) 45%, var(--po-linie)); }
.po .po-fz-vertragszeile.ist-bestaetigt strong { color: var(--po-gruen); }
.po .po-fz-vertrag {
    max-height: min(52vh, 480px); overflow-y: auto; padding: 16px 18px;
    border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); background: var(--po-grund);
    scrollbar-gutter: stable;
}
.po .po-fz-vertrag:focus-visible { outline: 2px solid var(--po-tinte); outline-offset: 2px; }
.po .po-fz-vertrag .werbe-vertrag-dokumentkopf {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: baseline;
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--po-linie);
}
.po .po-fz-vertrag .werbe-vertrag-dokumentkopf span { color: var(--po-leise); font-size: 12px; }
.po .po-fz-vertrag section + section { margin-top: 18px; }
.po .po-fz-vertrag h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.po .po-fz-vertrag p { margin: 0; color: var(--po-leise); font-size: 13px; line-height: 1.6; }
.po .po-fz-vertrag section p + p { margin-top: 8px; }
.po .po-fz-vertrag .werbe-vertrag-ende {
    margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--po-linie); font-size: 12px; text-align: center;
}

/* ---------- Unterlagen ------------------------------------------------ */
.po .po-ul-aktionen { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 12px; }
.po .po-ul-ansehen { font-size: 13px; white-space: nowrap; }
.po .po-ul-gehoert { white-space: nowrap; }
.po .po-ul-unterlage .po-ton--rot { max-width: 46ch; }
/* Direktlink aus Glocke, Uebersicht oder Fristen-Mail (#betrieb-dokument-<art>):
   die gemeinte Zeile ist markiert - Flaeche plus Strich, nicht nur Farbe. */
.po .po-ul-zeile:target > td { background: var(--po-flaeche); }
.po .po-ul-zeile:target > td:first-child { box-shadow: inset 3px 0 0 var(--po-tinte); }

/* ---------- Handy: Zeilenkarten --------------------------------------- */
@media (max-width: 900px) {
    /* Fahrzeuge: Kennzeichen | Menue, darunter die Freigabe */
    .po .po-tabelle.po-karten .po-fz-zeile td:first-child { grid-column: 1; grid-row: 1; }
    .po .po-tabelle.po-karten .po-fz-zeile td.po-fz-stand { grid-column: 1; grid-row: 2; margin-top: 6px; }
    .po .po-tabelle.po-karten .po-fz-zeile td.po-fz-menue { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    /* Unterlagen: Unterlage | Pruefung, darunter Gehoert zu | Aktion */
    .po .po-tabelle.po-karten .po-ul-zeile td.po-ul-unterlage { grid-column: 1; grid-row: 1; }
    .po .po-tabelle.po-karten .po-ul-zeile td.po-ul-stand { grid-column: 2; grid-row: 1; justify-self: end; }
    .po .po-tabelle.po-karten .po-ul-zeile td.po-ul-gehoert { grid-column: 1; grid-row: 2; color: var(--po-leise); font-size: 13px; }
    .po .po-tabelle.po-karten .po-ul-zeile td.po-ul-aktion { grid-column: 2; grid-row: 2; justify-self: end; }
    .po .po-ul-aktion .po-knopf { min-height: 44px; }
    .po .po-fz-werkzeug .po-filter { justify-content: stretch; }
    .po .po-fz-werkzeug .po-suche { max-width: none; }
    .po .po-fz-zusammen { margin: 0 -24px; }
}

/* Felder in einer Reihe stehen oben buendig - sonst zieht ein Hinweis
   unter einem Feld die Nachbarfelder in die Hoehe. */
.po .po-dialog .po-feldreihe, .po .po-fz-felder .po-feldreihe { align-items: start; }
.po .po-dialog .po-f, .po .po-fz-felder .po-f { align-content: start; }

/* ---------- Bereich: Fahrerportal (vorher cab-portal-fahrerportal.css) ---------- */
/* =====================================================================
 * cably.cab — FAHRERPORTAL (/fahrer), Bereichs-Stylesheet zur Schicht po-
 *
 * Neubau 13.11.2026. Laedt nach cab-portal.css (ueber poAnfang 'css').
 * Nur --po-*-Tokens, nur Selektoren unter .po. Farben ausschliesslich mit
 * Bedeutung (gruen/gelb/rot), alles andere schwarz-weiss.
 *
 * Inhalt: schlanke Huelle ohne Seitenleiste (Einladung, Assistent;
 * Anmeldung/Passwort nutzen po-auth aus cab-portal-konto.css) · Freigabestand · Unterlagen-Karte · Code-Feld ·
 * Schrittleiste · kleine Textbausteine.
 * ===================================================================== */

/* ---------- Schlanke Huelle: dieselbe Huelle, Seitenleiste als Kopfzeile */
.po.po-fahrerauth .po-huelle { display: block; }
.po.po-fahrerauth .po-leiste {
    position: static; height: auto; width: auto; transform: none; box-shadow: none;
    flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 clamp(16px, 3vw, 32px);
    border-right: 0; border-bottom: 1px solid var(--po-seite-linie);
}
.po.po-fahrerauth .po-navi { display: none; }
.po.po-fahrerauth .po-marke { padding: 16px 0; }
.po.po-fahrerauth .po-fuss { display: flex; gap: 4px; padding: 8px 0; border-top: 0; }
.po.po-fahrerauth .po-fuss button { width: auto; }
.po.po-fahrerauth .po-burger,
.po.po-fahrerauth .po-schleier { display: none; }
.po.po-fahrerauth .po-kopf {
    position: static; max-width: 640px; width: 100%; margin: 0 auto;
    padding: 32px 16px 8px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.po.po-fahrerauth .po-koerper { max-width: 640px; margin: 0 auto; padding: 16px 16px 48px; }
.po .po-fahrerauth__unter { margin: 0; color: var(--po-leise); }
.po .po-fahrerauth__fuss { margin: 8px 0 0; text-align: center; color: var(--po-leise); font-size: 13px; }
@media (max-width: 900px) {
    .po.po-fahrerauth .po-leiste { position: static; transform: none; visibility: visible; width: auto; z-index: auto; }
    .po.po-fahrerauth .po-kopf { padding: 20px 16px 4px; }
    .po.po-fahrerauth .po-kopf h1 { font-size: 24px; }
}

/* ---------- Schrittleiste des Assistenten (Balken wie im Dialog) ------- */
.po .po-fpschritte { max-width: 640px; width: 100%; margin: 0 auto; padding: 0 16px; }
.po .po-fpschritte .po-dialog__schritte { padding: 8px 0 0; }
.po .po-fpschritte ol {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
    list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: var(--po-leise);
}
.po .po-fpschritte li { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po .po-fpschritte li a { color: inherit; text-underline-offset: 3px; }
.po .po-fpschritte li.ist-fertig { color: var(--po-tinte); }
.po .po-fpschritte li.ist-jetzt { color: var(--po-tinte); font-weight: 600; }

/* ---------- Kleine Textbausteine --------------------------------------- */
.po .po-fpformular { display: grid; gap: 14px; }
.po .po-fpformular > p { margin: 0; }
.po .po-fptext p { margin: 0 0 10px; max-width: 64ch; }
.po .po-fptext p:last-child { margin-bottom: 0; }
.po .po-fptitel { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.po .po-fpgross { margin: 0; font-size: 16px; }
.po .po-fphinweis { margin: -8px 0 0; max-width: 72ch; font-size: 13px; }
.po .po-fprechnung { margin: 0; font-size: 16px; }
.po .po-fpwortlaut { margin: 0; padding: 12px 14px; border-left: 2px solid var(--po-linie-stark); background: var(--po-grund); border-radius: var(--po-r-feld); }
.po .po-fpliste { margin: 0; padding-left: 20px; }
.po .po-fpliste li { margin: 4px 0; line-height: 1.55; }
.po .po-fpantwort { margin: 0; color: var(--po-rot); }
.po .po-fpfuss { justify-content: flex-start; }
.po .po-fpaktionen { white-space: nowrap; }
/* Betraege und Dauer brechen nicht um; die Route darf es */
.po-fahrer .po-tabelle td.po-r, .po-fahrer .po-tabelle td.po-fpeng { white-space: nowrap; }
.po .po-fpaktionen > * + * { margin-left: 6px; }
.po .rufnummer-zeile > select.po-feld { width: auto; padding-inline: 8px 4px; }
.po .po-f .rufnummer-zeile .po-feld { font-weight: 400; }

/* ---------- Freigabestand: eine Zeile ---------------------------------- */
.po .po-fpstand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; }
.po .po-fpstand p { flex: 1 1 280px; margin: 0; }
.po .po-fpstand .po-leise { font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- Unterlage als Karte (Assistent, Schritt 3) ------------------ */
.po .po-fpdok__titel { flex: 1; margin: 0; font-size: 16px; font-weight: 600; }
.po .po-fpdok__titel .po-leise { font-size: 12px; font-weight: 400; }
.po .po-fpdok__rumpf { display: grid; gap: 12px; }
.po .po-fpdok__rumpf > p { margin: 0; }
.po .po-fpdok__datei { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.po .po-fpdok__bild { display: block; flex: 0 0 auto; }
.po .po-fpdok__bild img {
    display: block; width: 120px; height: 88px; object-fit: cover;
    border-radius: var(--po-r-feld); border: 1px solid var(--po-linie); background: var(--po-grund);
}
.po .po-fpdok__formular { display: grid; gap: 14px; }

/* ---------- Code aus der SMS: sechs Kaestchen ueber einem echten Feld -- */
.po .po-fpcode { position: relative; display: block; max-width: 320px; }
/* Eigene Zeile unter der Beschriftung: Die .po-f-Regel bricht nur input/div um, das hier
   ist ein span - es stand 52 px schmal neben dem Label, die Kästchen waren Striche (28.11.2026). */
.po .po-f > .po-fpcode { flex: 1 1 100%; width: 100%; }
/* Beschriftung UEBER den Kaestchen: Die Gruppe ist auf 320 px gekappt, damit passt sie neben
   das Label - Flexbox bricht dann nicht um. Das Label nimmt sich deshalb selbst die ganze Zeile. */
.po .po-f--code > label { flex: 1 1 100%; }
.po .po-fpcode__felder { display: none; }
.po .po-fpcode.ist-bereit .po-fpcode__eingabe {
    position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: text;
    font-size: 16px; /* kein Zoom auf iOS */
}
.po .po-fpcode.ist-bereit .po-fpcode__felder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.po .po-fpcode__felder span {
    display: grid; place-items: center; height: 48px;
    border: 1px solid var(--po-feld-rand); border-radius: var(--po-r-feld); background: var(--po-papier);
    font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.po .po-fpcode__felder span.ist-gefuellt { border-color: var(--po-tinte); }
.po .po-fpcode__felder span.ist-aktiv { outline: 2px solid var(--po-tinte); outline-offset: -1px; }
.po .po-fpcode:focus-within .po-fpcode__felder { outline: none; }

@media (max-width: 900px) {
    .po .po-fpstand { padding: 12px 16px; }
    .po .po-fpaktionen { white-space: normal; }
    .po .po-tabelle.po-karten td.po-fpaktionen { grid-column: 1 / -1; text-align: left; }
    .po .po-fpaktionen .po-knopf { min-height: 44px; }
}

/* Unterlagen: Uebersicht je Betrieb/Fahrer/Fahrzeug, Detailseite je Objekt (13.11.2026).
   Feste Spalten, damit Uebersicht und Detail ruhig stehen. */
@media (min-width: 901px) {
    .po .po-ul-uebersicht, .po .po-ul-detail { table-layout: fixed; }
    .po .po-ul-uebersicht th:nth-child(1) { width: 38%; }
    .po .po-ul-uebersicht th:nth-child(2) { width: 12%; }
    .po .po-ul-uebersicht th:nth-child(3) { width: 20%; }
    .po .po-ul-uebersicht th:nth-child(4) { width: 18%; }
    .po .po-ul-detail th:nth-child(1) { width: 40%; }
    .po .po-ul-detail th:nth-child(2) { width: 16%; }
    .po .po-ul-detail th:nth-child(3) { width: 18%; }
}

/* ---------- Mobilprüfung 28.11.2026 ----------------------------------
 * Reiter/Segmente: Fünf Einträge passten nicht, der letzte war unsichtbar
 * abgeschnitten („Rückforderungen“, „E-Mails“) - Segmente brechen jetzt um,
 * Reiter zeigen rechts per Ausblendung, dass es weitergeht.
 * Karten-Fuß mit Links: Knöpfe volle Breite statt rechtsbündig ungleich.
 * Filter-Auswahlen (Fahrten) teilen sich eine eigene Zeile statt sie halb zu füllen. */
@media (max-width: 640px) {
    .po-segmente { display: flex; flex-wrap: wrap; overflow: visible; }
    .po-segmente a, .po-segmente button { flex: 1 1 auto; justify-content: center; }
    .po-reiter { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
                 mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); padding-right: 32px; }
    .po-karte__fuss:has(> a.po-knopf) { flex-direction: column; align-items: stretch; }
    .po-karte__fuss > a.po-knopf { justify-content: center; }
    .po-filter > label:has(> select) { flex: 1 1 140px; min-width: 0; }
    .po-filter > label > select { width: 100%; }
}

/* ---------- Warteraum (cab-betrieb-warteraum.php), 28.11.2026 ----------
 * Neu gebaut nach Stevens Durchsicht am Handy: keine Textwand, Anschrift in
 * zwei Zeilen, Urkunde als zwei Kacheln (Vorderseite Pflicht, Rueckseite
 * freiwillig) mit Vorschau des gewaehlten Fotos. Upload-Namen werden nie
 * mehr abgeschnitten („Genehmigung…“). */
.po .po-datei__name { white-space: normal; overflow-wrap: anywhere; }
.po .po-wr-form { padding-top: 20px; gap: 16px; max-width: 560px; }
/* Schritt Betriebssitz im Fuss der Strecke (29.11.2026): eine Flaeche.
 * Rechner: Feldkaesten mit fester Breite, daneben die Box „Gleich danach“, Knopf rechts unten.
 * Handy: die abgenommene Form - Beschriftung ueber dem Feld, Straße + Nr. und PLZ + Ort je in einer Zeile.
 * Handy: Fortschritt → Überschrift → Felder → Knopf → „Danach“ (Steven: mobil „noch nicht schön“ -
 * vorher sechs Textebenen vor dem ersten Feld). */
.po .po-strecke__fuss > .po-wr-schritt { flex: 1 1 100%; }
.po .po-wr-schritt { display: grid; gap: 16px; padding-top: 8px; }
.po .po-wr-schritt__text { display: grid; gap: 4px; align-content: start; }
.po .po-wr-schritt__text h3 { margin: 0; font-size: 16px; font-weight: 600; }
.po .po-wr-schritt__text p, .po .po-wr-schritt__danach { margin: 0; color: var(--po-leise); font-size: 13px; max-width: 46ch; }
.po .po-wr-schritt .po-wr-form { padding-top: 0; max-width: 560px; }
/* Feldkaesten (poFeldKasten, Steven 29.11.2026 - zuerst beim Betriebssitz). EIN Feldsatz, zwei Gestalten.
 * Grundform = die abgenommene Handy-Ansicht: po-f mit Beschriftung ueber dem Feld.
 * Ab 440 px Breite des umgebenden .po-sk-bereich werden daraus Kaesten mit Symbol (@container unten).
 * Nach der Breite des BEREICHS, nicht des Fensters: derselbe Baustein steht in Seitenkarten und in
 * Dialogen (560 px breit, innen 512 px). Am Handy (bis ~470 px Fenster) bleibt jeder Bereich schmaler.
 * Warteraum-Schritt Betriebssitz: Kaesten erst ab 1000 px Kartenbreite wie abgenommen - dort ist der
 * Bereich nur darueber ein Container (siehe @container strecke unten), sonst gilt die Handy-Form. */
.po .po-sk-bereich { container: skbereich / inline-size; }
.po .po-wr-schritt .po-sk-bereich { container: none; }
.po .po-sk__symbol { display: none; }
.po .po-sk__innen { display: grid; gap: 6px; flex: 1 1 100%; min-width: 0; }
.po .po-sk.ist-fehler .po-sk__feld { border-color: var(--po-rot); }
.po .po-sk__fehler { font-size: 12px; font-weight: 600; color: var(--po-rot); }
.po .po-sk-zelle { display: grid; gap: 6px; align-content: start; min-width: 0; }
.po .po-sk__hinweis { font-size: 12px; color: var(--po-leise); }
/* Betriebssitz: Straße + Nr. und PLZ + Ort je in einer Zeile, Land voll (auch am Handy). */
.po .po-sk-raster { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 5rem; gap: 14px; align-items: start; }
.po .po-sk--strasse { grid-column: 1 / 3; }
.po .po-sk--hausnummer { grid-column: 3; }
.po .po-sk--plz { grid-column: 1; }
.po .po-sk--ort { grid-column: 2 / 4; }
.po .po-sk--land { grid-column: 1 / -1; }

/* Info-Box „Gleich danach“ - nur am Rechner (am Handy steht der kurze Hinweis unter dem Knopf). */
.po .po-wr-info { display: none; }
@container skbereich (min-width: 440px) {
    /* Kaesten: Symbol links, Beschriftung klein oben im Kasten, Rahmen am Kasten statt am Feld. */
    .po .po-sk-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .po .po-sk--strasse, .po .po-sk--ort, .po .po-sk--land { grid-column: 1 / -1; }
    .po .po-sk--hausnummer { grid-column: 1; }
    .po .po-sk--plz { grid-column: 2; }
    .po .po-feldreihe:has(> :is(.po-sk, .po-sk-zelle)) { gap: 12px; }
    .po .po-sk {
        display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 0;
        min-height: 56px; padding: 8px 14px; border: 1px solid var(--po-linie-stark); border-radius: var(--po-r-feld);
        background: var(--po-papier); cursor: text; transition: border-color var(--po-kurz);
    }
    .po .po-sk:hover { border-color: var(--po-leise); }
    .po .po-sk:focus-within { border-color: var(--po-tinte); outline: 2px solid var(--po-tinte); outline-offset: -1px; }
    .po .po-sk.ist-fehler { border-color: var(--po-rot); }
    .po .po-sk__symbol { display: grid; place-items: center; color: var(--po-leise); }
    .po .po-sk__symbol .po-i { width: 20px; height: 20px; }
    .po .po-sk__innen { gap: 1px; }
    .po .po-sk__titel { font-size: 11px; line-height: 1.2; margin: 0; }
    .po .po-sk__titel small { font-size: 11px; }
    .po .po-sk .po-sk__feld {
        width: 100%; min-height: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none;
        font-size: 15px; line-height: 1.4; color: var(--po-tinte);
    }
    .po .po-sk .po-sk__feld::placeholder { color: var(--po-leise); opacity: .8; }
    .po .po-sk select.po-sk__feld { cursor: pointer; }
    .po .po-sk__fehler { grid-column: 2; margin-top: 2px; }
    /* Rufnummer im Kasten: Vorwahl | Nummer, getrennt durch einen Strich statt zweier Rahmen. */
    .po .po-sk .rufnummer-zeile { gap: 10px; align-items: center; }
    .po .po-sk .rufnummer-zeile > select.po-sk__feld { width: auto; flex: 0 0 auto; padding-right: 10px; border-right: 1px solid var(--po-linie); border-radius: 0; }
    .po .po-sk-zelle .po-sk__hinweis { padding-left: 2px; }
}
@container strecke (min-width: 1000px) {
    /* Rechner: Formular mit fester Breite (Felder nicht „elend lang“), rechts die Box mit dem, was gleich
     * gebraucht wird, Knopf rechts unter dem Formular. Nach der Breite der KARTE, nicht des Fensters. */
    .po .po-wr-schritt {
        grid-template-columns: minmax(0, 1fr); row-gap: 16px; padding: 14px 0 4px;
    }
    .po .po-wr-schritt__text p { max-width: none; }
    /* Das Formular ist das Raster: Felder | Box, darunter der Knopf. Die Box steht mittig zur Feldzeile. */
    .po .po-wr-schritt .po-wr-form {
        display: grid; max-width: none; column-gap: 56px; row-gap: 16px; justify-content: start;
        /* Box fuellt den Rest bis zum Kartenrand (Steven, 29.11.2026: „rechts mittig oder breiter“). */
        grid-template-columns: minmax(0, 820px) minmax(320px, 1fr);
        grid-template-areas: "felder info" "knopf .";
    }
    .po .po-wr-schritt .po-sk-bereich { grid-area: felder; align-self: center; container: skbereich / inline-size; }
    .po .po-wr-schritt .po-wr-form > .po-meldung { grid-column: 1; }
    .po .po-wr-schritt__danach { display: none; }
    .po .po-wr-schritt .po-wr-knopf { grid-area: knopf; justify-self: end; }
    .po .po-wr-schritt .po-wr-knopf > .po-knopf { min-height: 44px; padding: 0 22px; font-size: 15px; }
    .po .po-wr-info {
        /* Mittig zu den Eingabefeldern (Steven, 29.11.2026), nicht oben buendig. */
        grid-area: info; align-self: center; display: grid; gap: 14px; padding: 20px 22px;
        background: var(--po-grund); border: 1px solid var(--po-linie); border-radius: var(--po-r-karte);
    }
    .po .po-wr-info h4 { margin: 0; font-size: 15px; font-weight: 600; }
    .po .po-wr-info p { margin: 0; font-size: 13px; color: var(--po-leise); }
    .po .po-wr-info ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
    .po .po-wr-info li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; font-size: 13px; }
    .po .po-wr-info li > span:last-child { display: grid; gap: 1px; }
    .po .po-wr-info li span span { color: var(--po-leise); font-size: 12px; }
    .po .po-wr-info__kachel { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--po-r-feld);
        background: var(--po-papier); border: 1px solid var(--po-linie); color: var(--po-tinte); }
    .po .po-wr-info__kachel svg { width: 20px; height: 20px; }
    .po .po-wr-info__fuss { padding-top: 14px; border-top: 1px solid var(--po-linie); }
}
/* Berichtigung des Antrags (29.11.2026, Steven: „das soll nicht so breit sein … rechts dann von mir aus
 * wieder hinweise. Nirgends soll das so breit sein“). Felder mit fester Breite wie beim Betriebssitz,
 * rechts die Hinweise; im schmalen Fenster untereinander. */
.po .po-wr-berichtigung { display: grid; gap: 24px; align-items: start; }
.po .po-wr-berichtigung__form { display: grid; gap: 12px; max-width: 640px; }
.po .po-wr-berichtigung__form > small { margin-top: -4px; color: var(--po-leise); font-size: 12px; }
.po .po-wr-berichtigung__info {
    display: grid; gap: 6px; align-content: start; max-width: 640px; padding: 18px 20px;
    background: var(--po-grund); border: 1px solid var(--po-linie); border-radius: var(--po-r-karte);
}
.po .po-wr-berichtigung__info h4 { margin: 0; font-size: 14px; font-weight: 600; }
.po .po-wr-berichtigung__info h4 ~ h4 { margin-top: 10px; }
.po .po-wr-berichtigung__info p { margin: 0; font-size: 13px; color: var(--po-leise); }
@media (min-width: 1100px) {
    .po .po-wr-berichtigung { grid-template-columns: minmax(0, 640px) minmax(280px, 380px); column-gap: 56px; }
}
/* Feste Endung hinter einem Feld (Web-Adresse „.cably.de“). */
.po .po-sk-endung { display: flex; align-items: center; gap: 2px; min-width: 0; }
.po .po-sk-endung > .po-sk__feld { flex: 1 1 auto; min-width: 0; }
.po .po-sk-endung__text { flex: none; color: var(--po-leise); font-size: 15px; }

.po .po-wr-abschnitt { display: grid; gap: 2px; }
.po .po-wr-abschnitt:not(:first-of-type) { margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--po-linie); }
.po .po-wr-abschnitt h2, .po .po-wr-abschnitt h3 { margin: 0; font-size: 16px; font-weight: 600; }
.po .po-wr-abschnitt p { margin: 0; color: var(--po-leise); font-size: 13px; }
.po .po-wr-seiten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.po .po-wr-seite {
    position: relative; display: grid; gap: 4px; align-content: start; padding: 12px;
    border: 1px dashed var(--po-linie-stark); border-radius: var(--po-r-karte); background: var(--po-grund);
    cursor: pointer; transition: border-color var(--po-kurz);
}
.po .po-wr-seite:hover { border-color: var(--po-tinte); }
.po .po-wr-seite:focus-within { outline: 2px solid var(--po-tinte); outline-offset: 2px; }
.po .po-wr-seite input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.po .po-wr-seite__bild {
    display: grid; place-items: center; height: 120px; margin-bottom: 6px;
    border-radius: var(--po-r-feld); background: var(--po-papier) center / cover no-repeat; border: 1px solid var(--po-linie);
}
.po .po-wr-seite__bild svg { width: 24px; height: 24px; opacity: .6; }
.po .po-wr-seite.ist-gewaehlt { border-style: solid; border-color: var(--po-tinte); }
.po .po-wr-seite.ist-gewaehlt .po-wr-seite__bild[style*="url"] svg { display: none; }
.po .po-wr-seite.ist-fehler { border-color: var(--po-rot); }
.po .po-wr-seite__titel { font-weight: 600; font-size: 14px; }
.po .po-wr-seite__titel small { display: block; font-weight: 400; font-size: 12px; color: var(--po-leise); }
.po .po-wr-seite__status { font-size: 12px; color: var(--po-leise); overflow-wrap: anywhere; }
.po .po-wr-seite.ist-gewaehlt .po-wr-seite__status { color: var(--po-tinte); }
.po .po-wr-seite .po-fehler { font-size: 12px; color: var(--po-rot); }
/* Kasten „Urkunde, nicht Auszug“ (Nachbesserung und alter Weg) */
.po .po-wr-urkunde {
    display: grid; gap: 6px; padding: 12px 14px; margin: 0;
    border: 1px solid var(--po-linie); border-left: 3px solid var(--po-gelb);
    border-radius: var(--po-r-feld); background: var(--po-gelb-t); font-size: 13px;
}
.po .po-wr-urkunde strong { color: var(--po-tinte); font-size: 14px; }
.po .po-wr-urkunde ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.po .po-wr-urkunde li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; color: var(--po-tinte); }
.po .po-wr-ja { color: var(--po-gruen); font-weight: 700; }
.po .po-wr-nein { color: var(--po-rot); font-weight: 700; }
@media (min-width: 700px) {
    .po .po-wr-seiten { grid-template-columns: repeat(2, minmax(0, 220px)); }
}
@media (max-width: 560px) {
    .po .po-datei { align-items: flex-start; }
    .po .po-datei > .po-knopf { display: none; }
    .po .po-wr .po-formular > div:last-child > .po-knopf, .po .po-wr-knopf > .po-knopf { width: 100%; justify-content: center; min-height: 48px; }
}

/* ---------- Fahrstrecke als Onboarding-Kopf auf dem Handy (28.11.2026) ----------
 * Steven: die senkrechte Strecke „nimmt unnötig Platz weg“. Unter 561 px nur
 * Balken + „Schritt X von N: Name“ (poStreckeKurz), die volle Strecke am Rechner. */
.po .po-strecke__kurz { display: none; }
.po .po-strecke__balken { display: grid; grid-template-columns: repeat(var(--po-halte), minmax(0, 1fr)); gap: 4px; }
.po .po-strecke__balken span { height: 4px; border-radius: 999px; background: var(--po-linie); }
.po .po-strecke__balken span.ist-fertig { background: var(--po-tinte); }
.po .po-strecke__balken span.ist-jetzt { background: var(--po-tinte); opacity: .45; }
.po .po-strecke__schritt { display: block; margin: 8px 0 0; font-size: 13px; color: var(--po-leise); text-decoration: none; }
@media (max-width: 560px) {
    .po .po-strecke { padding: 14px 16px; }
    .po .po-strecke .po-bahn { display: none; }
    .po .po-strecke__kurz { display: block; margin-top: 12px; }
    .po .po-strecke__kopf { margin-bottom: 0; }
    .po .po-strecke__kopf h2 { font-size: 18px; }
}
.po .po-wr-warten { padding-top: 16px; }
.po .po-wr-warten p { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--po-leise); font-size: 14px; }
.po .po-wr-ring { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid var(--po-linie); border-top-color: var(--po-tinte); animation: po-wr-drehen .9s linear infinite; }
@keyframes po-wr-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .po .po-wr-ring { animation-duration: 3s; } }

/* ---------- Geführte Einrichtung (cab-portal-betrieb.php), 28.11.2026 ---------- */
.po .po-gefuehrt {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 10px 14px;
    border: 1px solid var(--po-linie); border-radius: var(--po-r-karte); background: var(--po-papier);
}
.po .po-gefuehrt__text { flex: 1 1 200px; min-width: 0; font-size: 14px; }
.po .po-gefuehrt__text span { color: var(--po-leise); }
.po .po-gefuehrt__spaeter { font-size: 13px; color: var(--po-leise); }
.po .po-gefuehrt .po-knopf { min-height: 36px; }

/* ---------- Partnerbedingungen im Portal lesen (cab-betrieb-einrichtung.php), 28.11.2026 ---------- */
.po .po-pb-text {
    max-height: 55vh; overflow-y: auto; padding: 14px 16px; border: 1px solid var(--po-linie);
    border-radius: var(--po-r-feld); background: var(--po-grund); font-size: 14px; line-height: 1.55;
    overscroll-behavior: contain;
}
.po .po-pb-text h2 { margin: 18px 0 6px; font-size: 15px; font-weight: 600; }
.po .po-pb-text h2:first-child { margin-top: 0; }
.po .po-pb-text p { margin: 0 0 10px; }
.po .po-pb-text:focus-visible { outline: 2px solid var(--po-tinte); outline-offset: 2px; }
.po .po-pb-hinweis { margin: 0; font-size: 13px; color: var(--po-leise); }
.po .po-haken input:disabled + span { color: var(--po-leise); }
.po [data-pb-knopf]:disabled { opacity: .45; cursor: not-allowed; }

/* NIRGENDS ULTRABREIT (Steven, 29.11.2026: „prüfe nochmal alle formulare, dass das bei jedem ordentlich
 * ist und nicht so breit gezogen!“). Auf Portalseiten liefen Eingabefelder ueber die ganze Kartenbreite -
 * am grossen Bildschirm 1.800 px fuer eine Hausnummer. Eine Regel fuer alle Seiten statt einer je Seite:
 * Feld, Feldkasten, Feldreihe und Upload hoechstens 760 px. Dialoge sind ohnehin schmaler; Filterleisten
 * und der abgenommene Betriebssitz-Schritt (eigenes Raster) bleiben, wie sie sind. */
.po .po-inhalt :is(.po-f, .po-sk, .po-sk-zelle, .po-feldreihe, .po-sk-raster, .po-datei, .po-fpformular, .po-fpdok__formular, textarea.po-feld):not(dialog *):not(.po-filter *):not(.po-wr-schritt *) {
    max-width: 760px;
}
.po .po-inhalt form > :is(input, select).po-feld:not(dialog *):not(.po-filter *) { max-width: 760px; }
