/* Farben nach Brand Guidelines Feuerwehr Neuss (dargestellte Farben): Rot, Weiß, Dunkelrot RAL 3000, Grau */
:root { --rot: #E30613; --dunkelrot: #A01917; --grau: #828282; --text: #1d1d1d; --muted: #828282; --line: #e2e2e2; --bg: #f4f4f4; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 Bahnschrift, "Segoe UI", system-ui, sans-serif; color: var(--text);
    /* Fahrzeug-Element aus dem Media Kit (Original-PNG, hellgrau eingefärbt) im Seitenhintergrund */
    background: var(--bg) url("img/fahrzeug-element-grau.png") no-repeat right -7vw bottom calc(33px - 6vh) fixed; /* 33px = Höhe des Testbetrieb-Hinweises */
    /* Element ist 3:1 – bildschirmhoch skaliert reicht es von unten links bis oben rechts (bei sehr breiten Bildschirmen bildschirmbreit) */
    background-size: max(100vw, 300vh) auto; }
.topbar { position: sticky; top: 0; z-index: 1100; box-shadow: 0 2px 6px rgba(0,0,0,.15); display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 52px; background: var(--rot); color: #fff; }
/* Gestaltungselement aus dem CI: diagonale Streifen wie auf den Fahrzeugen */
.topbar::before { content: ""; position: absolute; top: 0; right: 0; width: 320px; height: 100%; pointer-events: none; opacity: .3;
    background: url("img/fahrzeug-element-weiss.png") no-repeat right center / contain; }
.topbar > * { position: relative; z-index: 1; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.topbar .brand-icon { width: 26px; height: 26px; flex: none; }
.topbar .brand-logo { height: 32px; width: auto; display: block; }
.topbar .brand-sep { width: 1px; height: 28px; background: rgba(255,255,255,.45); margin: 0 4px; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 6px 9px; border-radius: 6px; opacity: .85; white-space: nowrap; font-size: 14px; }
.topbar nav a:hover { background: rgba(255,255,255,.18); opacity: 1; }
.topbar nav a.active { background: var(--dunkelrot); opacity: 1; }
/* Menü einzeilig halten: erst Logo, dann Name ausblenden (Name steht im Tooltip von „Abmelden“) */
@media (max-width: 1180px) { .topbar .brand-logo, .topbar .brand-sep { display: none; } .userbox small { display: none; } }
@media (max-width: 980px) { .userbox-name { display: none; } .topbar { gap: 10px; padding: 0 12px; } }
.topbar .env { font-size: 12px; opacity: .7; }
main { max-width: 1280px; margin: 0 auto; padding: 24px; }
h1 { margin: 0 0 18px; font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; color: var(--rot); }
a { color: var(--dunkelrot); }
a:hover { color: var(--rot); }
/* In der roten Kopfzeile bleiben Links beim Überfahren weiß (sonst rot auf rot) */
.topbar a:hover, .topbar a:focus-visible { color: #fff; }
h2 { margin: 0 0 12px; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--rot); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; }
.muted { color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.tile strong { display: block; font-size: 28px; }
.tile span { color: var(--muted); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
button { font: inherit; padding: 8px 16px; border: 1px solid var(--rot); border-radius: 6px; background: var(--rot); color: #fff; cursor: pointer; }
button:hover { background: var(--dunkelrot); border-color: var(--dunkelrot); }
/* Löschen o.ä.: deutlich abgesetzt vom normalen roten Knopf */
button.danger { background: #fff; color: var(--dunkelrot); border-color: var(--dunkelrot); }
button.danger:hover { background: var(--dunkelrot); color: #fff; }
.inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flash { display: block; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; border: 1px solid; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-ok { background: #e9f7ef; border-color: #a9dfbf; }
.flash-warn { background: #fff8e1; border-color: #f2d37a; }
.flash-error { background: #fdecea; border-color: #f1aaa5; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.status-tab { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); border-left-width: 4px; text-decoration: none; color: var(--text); background: #fafbfc; }
.status-tab.active { background: #fff; box-shadow: 0 0 0 2px var(--rot) inset; }
.status-changed { border-left-color: #d98e04; }
.status-new { border-left-color: #1e8e3e; }
.status-deleted { border-left-color: var(--rot); }
.status-invalid, .status-duplicate { border-left-color: #7b3fa0; }
.status-unchanged { border-left-color: #9aa1a9; }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; margin-left: 8px; vertical-align: middle; }
.change { font-size: 13px; margin-bottom: 3px; }
.change .field { color: var(--muted); }
del { background: #fdecea; text-decoration: none; padding: 0 3px; border-radius: 3px; }
ins { background: #e9f7ef; text-decoration: none; padding: 0 3px; border-radius: 3px; }
.issue { color: #7b3fa0; font-size: 13px; }
.compare td { width: 26%; word-break: break-word; }
.compare td:first-child { width: 22%; }
.row-changed td { background: #fff8e1; }

/* Anmeldung, Formulare, Benutzer, Protokoll */
body.guest main { max-width: 600px; }
.narrow { max-width: 420px; }
.narrow.wide { max-width: 560px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.stack label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.feld-paar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; }
.stack .feld-hinweis { margin-top: -8px; }
@media (max-width: 600px) { .feld-paar { grid-template-columns: 1fr; } }
input[type=text], input[type=password], input[type=email], select { font: inherit; padding: 8px 10px; border: 1px solid #c5cad1; border-radius: 6px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--rot); outline-offset: 1px; }
input:disabled { background: #f0f1f3; color: var(--muted); }
.code-input { font-size: 24px; letter-spacing: .3em; text-align: center; max-width: 220px; }
.secret { font: 600 18px/1.6 Consolas, monospace; letter-spacing: .08em; background: #f4f5f7; border: 1px dashed #c5cad1; border-radius: 6px; padding: 8px 12px; margin: 6px 0; user-select: all; }
.small { font-size: 13px; }
ol li { margin-bottom: 8px; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 14px; white-space: nowrap; }
button.link { background: none; border: 0; color: var(--dunkelrot); padding: 0; text-decoration: underline; }
button.link:hover { background: none; color: var(--rot); }
.topbar button.link { color: #fff; }
a.button { display: inline-block; padding: 8px 16px; border-radius: 6px; background: var(--rot); color: #fff; text-decoration: none; }
a.button:hover { background: var(--dunkelrot); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.actions form { display: inline; }
.actions button.link { font-size: 13px; }
.row-inactive td { color: var(--muted); background: #fafafa; }
.copy-field { display: block; width: 100%; margin-top: 8px; font-family: Consolas, monospace; font-size: 13px; }
.inline-form label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); }
.nowrap { white-space: nowrap; }
code { font-family: Consolas, monospace; font-size: 13px; background: #f4f5f7; padding: 1px 5px; border-radius: 4px; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 28px; margin-top: 14px; }
input[type=file] { font: inherit; }
/* Tablet-Vorschau: Nachbau des Objektblocks der EDPweb-Einsatzinfo (Werte aus einsatzinfo.html) */
.tablet-vorschau { max-width: 440px; padding: 10px; background: #f1f3f5; border: 1px solid var(--line); border-radius: 12px; font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; color: #212529; }
.tv-block { padding: 12px; border: 1px solid #dee2e6; border-left: 6px solid #0d6efd; background: #fff; }
.tv-section-header { margin-bottom: 10px; font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: .2px; color: #0d6efd; }
.tv-subline { margin: 6px 0 12px; }
.tv-herkunft { display: inline-flex; padding: 4px 10px; border: 1px solid #e3e6ea; border-radius: 999px; background: #f8f9fa; color: #6c757d; font-size: .82rem; line-height: 1.2; }
.tv-kopf { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.tv-nummer { font-size: .92rem; font-weight: 750; color: #6c757d; letter-spacing: .04em; }
.tv-name { font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.tv-adresse { font-size: .85rem; font-weight: 700; color: #6c757d; }
.tv-dokumente { margin-top: 10px; padding: 10px; border: 1px solid rgba(13,110,253,.20); background: rgba(13,110,253,.04); }
.tv-info-title { margin-bottom: 8px; font-size: .85rem; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: .04em; }
.tv-liste { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 10px; border: 1px solid #dee2e6; background: #f8f9fa; color: #0d6efd; text-decoration: none; font-size: 13px; font-weight: 900; }
.tv-chip small { margin-left: 6px; font-weight: 400; opacity: .7; white-space: nowrap; }
.tv-chip small.tv-gross { color: #b3131b; opacity: 1; font-weight: 600; }
textarea { font: inherit; padding: 8px 10px; border: 1px solid #c5cad1; border-radius: 6px; resize: vertical; }
input[type=datetime-local] { font: inherit; padding: 7px 10px; border: 1px solid #c5cad1; border-radius: 6px; }
.pair { display: flex; gap: 12px; align-items: flex-end; } .pair > label { flex: 1; min-width: 0; } .pair > label.narrow-field { flex: 0 0 110px; }
.pair input { width: 100%; }
.form-actions { display: flex; gap: 16px; align-items: center; margin: 18px 0 0; }
.push-right { margin-left: auto; align-self: center; }
.sicht { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 10px; border: 1px solid; }
.sicht-ok { background: #e9f7ef; border-color: #a9dfbf; }
.sicht-teil { background: #fff8e1; border-color: #f2d37a; }
.sicht-nein { background: #fdecea; border-color: #f1aaa5; }
.karte { height: 420px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; z-index: 0; }
.karte-umschalter { padding: 7px 14px; border: 2px solid rgba(0,0,0,.2); border-radius: 6px; background: #fff; color: var(--text); font: 600 13px/1 Bahnschrift, "Segoe UI", sans-serif; cursor: pointer; background-clip: padding-box; }
.karte-umschalter:hover { background: #f1f1f1; color: var(--rot); }
.karte-leiste { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.karte-marker { width: 22px; height: 22px; border-radius: 50%; background: var(--rot); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rot), 0 2px 6px rgba(0,0,0,.4); cursor: grab; }
button.secondary { background: #fff; color: var(--rot); border: 1px solid var(--rot); }
button.secondary:hover { background: #fdecec; color: var(--dunkelrot); }
.facts { display: grid; grid-template-columns: 220px 1fr; gap: 6px 16px; margin: 0 0 12px; }
.facts dt { color: var(--muted); font-size: 13px; padding-top: 2px; }
.facts dd { margin: 0; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; margin: 0 2px 4px 0; border-radius: 10px; background: #f2f2f2; border: 1px solid #dcdcdc; }
h2 small { font-weight: 400; font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--muted); }
h2.spaced { margin-top: 24px; }
.edp-stand { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 18px; align-items: start; }
.edp-stand .card { margin-bottom: 0; }
.feldliste td { padding: 5px 8px; font-size: 14px; word-break: break-word; }
.feldliste td:first-child { width: 38%; color: var(--muted); }
.feldliste td:first-child small { display: block; font-family: Consolas, monospace; font-size: 11px; opacity: .8; }
.feldliste .leer { color: #b0b5bc; }
.feldliste .mehrzeilig { white-space: pre-line; }
.herkunft { float: right; font-size: 11px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: #fafbfc; }
.herkunft-vb { border-color: #c9b8e6; background: #f5f0fc; color: #5b3a94; }
.herkunft-edp { border-color: #a9dfbf; background: #e9f7ef; color: #1e6b3a; }
.herkunft-portal { border-color: #d6d6d6; background: #f2f2f2; color: #555; }
.taggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; margin: 6px 0 14px; font-size: 13px; }
.taggrid .an { font-weight: 600; } .taggrid .aus { color: #b0b5bc; }
.taggrid .an::before { content: "\2713  "; color: #1e8e3e; } .taggrid .aus::before { content: "\2013  "; }
.legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.legende .herkunft { float: none; }
.elsi-rahmen { background: #d9d9d9; padding: 18px; border-radius: 8px; overflow-x: auto; }
a.tile { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
a.tile:hover { border-color: var(--rot); box-shadow: 0 2px 10px rgba(227,6,19,.15); }
.dash { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: stretch; }
.dash .card { margin-bottom: 18px; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.aufgaben { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.aufgaben li { border-left: 4px solid #9aa1a9; background: #fafbfc; border-radius: 0 6px 6px 0; }
.aufgaben li a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; }
.aufgaben li a:hover { background: #f0f3f7; }
.aufgaben li strong { display: inline-block; min-width: 38px; font-size: 16px; }
.aufgaben .aufgabe-rot { border-left-color: var(--rot); }
.aufgaben .aufgabe-gelb { border-left-color: #d98e04; }
.aufgaben .aufgabe-info { border-left-color: var(--grau); }
.zuordnung td small { display: block; color: var(--muted); margin-top: 3px; }
.zuordnung tr.gruppe td { background: #f4f5f7; font-weight: 600; padding: 6px 10px; }
.regeln li { margin-bottom: 6px; }
.testbetrieb { background: #fff3cd; color: #6b4e00; border-bottom: 1px solid #f2d37a; padding: 6px 24px; font-size: 13px; text-align: center; }
.testbetrieb code { background: transparent; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px 22px; }
.settings-grid label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.settings-grid label > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.settings-grid label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.settings-grid .settings-wide { grid-column: 1 / -1; }
.settings-grid .small { font-weight: 400; }
.angepasst { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 8px; background: #fdecec; color: var(--dunkelrot); border: 1px solid #f3c2c4; }
.settings-save { position: sticky; bottom: 0; display: flex; gap: 16px; align-items: center; padding: 12px 20px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.einst-alle { margin-left: auto; }
/* Einstellungen: Untermenü links (einstellungen.js zeigt je einen Abschnitt; auf dem Handy waagerechte Leiste) */
.einst-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.einst-nav { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 12px 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.einst-nav-gruppe { display: flex; flex-direction: column; gap: 1px; }
.einst-nav-titel { padding: 0 10px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.einst-nav a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.3; }
.einst-nav a > span:first-child { flex: 1; }
.einst-nav a:hover { background: #f4f4f4; color: var(--rot); }
.einst-nav a.aktiv { background: #fdecec; color: var(--dunkelrot); font-weight: 600; box-shadow: inset 3px 0 0 var(--rot); }
.einst-nav a.geaendert::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; }
.einst-nav-zahl { flex: none; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #eef1f5; color: #3b4a5c; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.einst-nav-warn { flex: none; width: 18px; border-radius: 9px; background: var(--rot); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.einst-inhalt > p.muted:first-child { margin-top: 0; }
@media (max-width: 860px) {
    .einst-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .einst-nav { top: 52px; z-index: 50; flex-direction: row; gap: 6px; max-height: none; overflow-x: auto; overflow-y: hidden; margin: 0 0 12px; padding: 8px 0; background: var(--bg); border: 0; border-radius: 0; scrollbar-width: none; }
    .einst-nav::-webkit-scrollbar { display: none; }
    .einst-nav-gruppe { display: contents; }
    .einst-nav-titel { display: none; }
    .einst-nav a { flex: none; padding: 5px 11px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 13.5px; white-space: nowrap; }
    .einst-nav a.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; box-shadow: none; }
    .einst-alle { display: none; }
}
/* Ereignis-Typen: Farben wie die Typ-Kennzeichen in der EDPweb-Einsatzinfo */
.typ-sperrung { --typ: #c2410c; }
.typ-teilsperrung { --typ: #ea580c; }
.typ-behinderung { --typ: #d97706; }
.typ-veranstaltung { --typ: #2563eb; }
.typ-taktik { --typ: #15803d; }
.typ-sonst { --typ: #6b7280; }
.typ-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--typ, #6b7280); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
td.typ-zelle { border-left: 5px solid var(--typ, #6b7280); }
.typ-kopf { margin: 0 0 10px; }
.typ-kopf .typ-badge { font-size: 14px; padding: 4px 14px; }
.typ-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.typ-filter a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-size: 14px; }
.typ-filter a:hover { border-color: var(--typ, var(--grau)); color: var(--text); }
.typ-filter a strong { font-weight: 700; color: var(--muted); }
.typ-filter .typ-punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--typ, #6b7280); }
.typ-filter a.active { background: var(--typ, var(--dunkelrot)); border-color: var(--typ, var(--dunkelrot)); color: #fff; }
.typ-filter a.active strong { color: #fff; }
.typ-filter a.active .typ-punkt { background: #fff; }
/* Startanimation (nach dem Anmelden): Fahrzeug-Element zeichnet sich, dann erscheint die Marke */
.intro { display: none; }
html.intro-aktiv { overflow: hidden; }
html.intro-aktiv .intro { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-start; justify-content: center; padding-top: 30vh; /* Marke über den Streifen */ overflow: hidden; cursor: pointer;
    background: var(--rot); animation: intro-aus .8s ease-in 3.7s forwards; }
.intro-streifen { position: absolute; right: -7vw; bottom: -6vh; height: 100vh; width: auto; max-width: none; opacity: .28;
    clip-path: inset(0 100% 0 0); animation: intro-zeichnen 1.7s cubic-bezier(.25,.8,.25,1) .25s forwards; }
.intro-marke { position: relative; display: flex; align-items: center; gap: 22px; color: #fff; opacity: 0; transform: translateY(14px) scale(.97);
    animation: intro-marke .9s cubic-bezier(.2,.8,.2,1) 1.35s forwards; }
.intro-logo { height: 76px; width: auto; display: block; }
.intro-sep { width: 2px; height: 64px; background: rgba(255,255,255,.55); }
.intro-icon { width: 58px; height: 58px; }
.intro-icon line { stroke-dasharray: 10; stroke-dashoffset: 10; animation: intro-linie .7s ease-out 1.85s forwards; }
.intro-icon circle { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: intro-knoten .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.intro-icon circle:nth-child(1) { animation-delay: 1.6s; }
.intro-icon circle:nth-child(2) { animation-delay: 2.15s; }
.intro-icon circle:nth-child(3) { animation-delay: 2.27s; }
.intro-icon circle:nth-child(4) { animation-delay: 2.39s; }
.intro-icon circle:nth-child(5) { animation-delay: 2.51s; }
.intro-name { font-size: 46px; font-weight: 700; letter-spacing: .03em; }
@keyframes intro-zeichnen { to { clip-path: inset(0 0 0 0); } }
@keyframes intro-marke { to { opacity: 1; transform: none; } }
@keyframes intro-linie { to { stroke-dashoffset: 0; } }
@keyframes intro-knoten { to { transform: scale(1); } }
@keyframes intro-aus { to { opacity: 0; visibility: hidden; } }
@media (max-width: 900px) { .intro-logo, .intro-sep { display: none; } .intro-name { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { html.intro-aktiv .intro { display: none; } }
.spaced-top { margin-top: 18px; }
.pager { display: flex; gap: 18px; margin-top: 14px; }

/* Ereignis in Schritten: Nummern über CSS-Zähler (ausgeblendete Schritte zählen nicht mit) */
.schritte-nav { position: sticky; top: 52px; z-index: 900; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 8px 10px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.05); counter-reset: navschritt; }
.schritte-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; }
.schritte-nav a[hidden] { display: none; }
.schritte-nav a:not([hidden]) { counter-increment: navschritt; }
.schritte-nav a:hover { background: #f4f4f4; color: var(--rot); }
.schritte-nav a.aktiv { background: #fdecec; color: var(--dunkelrot); }
.schritte-nav .schritt-nr::before { content: counter(navschritt); }
.schritte { counter-reset: schritt; }
.schritte .schritt:not([hidden]) { counter-increment: schritt; scroll-margin-top: 120px; }
.schritte .schritt > h2 .schritt-nr::before { content: counter(schritt); }
/* Ziffer im Kreis an ihrer Versalhöhe zentrieren (Bahnschrift hat oben mehr Raum als unten – sonst sitzt sie zu hoch) */
.schritt-nr::before { line-height: 1; text-box: trim-both cap alphabetic; font-variant-numeric: tabular-nums; }
.schritt-nr { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rot); color: #fff; font-size: 14px; font-weight: 700; flex: none; }
.schritte .schritt > h2 { display: flex; align-items: center; gap: 10px; }
.schritte-nav .schritt-nr { width: 22px; height: 22px; font-size: 12px; }
/* Assistent: nur der aktive Schritt ist sichtbar. Die übrigen bleiben unsichtbar im Layout (inert), damit die Karten
   ihre Größe behalten und der Lageplan beim Speichern aus jedem Schritt exportiert werden kann. */
.schritte.assistent { position: relative; }
.schritte.assistent .schritt:not(.schritt-aktiv) { position: absolute; top: 0; left: -300vw; width: 100%; visibility: hidden; }
.schritt-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.schritt-fehlt { color: var(--dunkelrot); font-size: 14px; }
.schritt-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-left: auto; }
.schritt-knoepfe:empty { display: none; }
.schritt-hinweis { margin: 18px 0 0; }
/* Ereignis bearbeiten: alle Abschnitte untereinander, Leiste oben nur zum Springen, eine Speichern-Leiste unten */
.schritte.gesamt [data-schritt-weiter], .schritte.gesamt [data-schritt-zurueck], .schritte.gesamt .schritt-knoepfe { display: none !important; }
.schritte.gesamt .schritt-fuss { margin-top: 12px; padding-top: 10px; }
.schritte.gesamt .schritt-fuss:not(:has(.schritt-fehlt:not(:empty))) { display: none; }
.ereignis-leiste { position: sticky; bottom: 0; z-index: 800; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px;
    margin: 0 0 18px; padding: 12px 16px; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.ereignis-leiste .schritt-fehlt { margin-right: auto; }
.ereignis-leiste .schritt-fehlt:empty { display: none; }
/* Ereignis: Detailseite */
.ed-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 20px; margin-bottom: 14px; }
.ed-kopf .typ-kopf { margin: 0 0 6px; }
.ed-status { margin-left: 8px; vertical-align: middle; }
.ed-zeitraum { margin: 0; font-size: 17px; font-weight: 600; }
.ed-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-aktionen form { display: inline; }
.ed-spalten { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .ed-spalten { grid-template-columns: 1fr; } }
.ed-fakten { grid-template-columns: max-content 1fr; }
.ed-text { white-space: normal; margin: 0; }
.ed-karte { height: 340px; }
.ed-lageplan { display: grid; gap: 12px; }
.ed-lageplan img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.ed-dokumente, .ed-versand { list-style: none; margin: 10px 0 0; padding: 0; }
.ed-dokumente li, .ed-versand li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.ed-dokumente li:last-child, .ed-versand li:last-child { border-bottom: 0; }
.ed-versand small { display: block; color: var(--muted); }
.ed-dokumente li { padding: 0; }
.ed-dokumente a { display: flex; align-items: center; gap: 12px; padding: 9px 4px; color: inherit; text-decoration: none; border-radius: 6px; }
.ed-dokumente a:hover strong { color: var(--rot); text-decoration: underline; }
.ed-dokumente a > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.ed-dokumente small { font-size: 12px; }
.ed-pdf { flex: none; width: 30px; height: 36px; border-radius: 3px; background: var(--rot); color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; }
.ed-verteiler > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; cursor: pointer; font-size: 18px; }
.ed-verteiler > summary .sicht { font-size: 13px; }
.ed-verteiler[open] > summary { margin-bottom: 14px; }
/* Ereignis-Assistent: Plan (optional) – Zeichnen und PDF frei kombinierbar; Zusammenfassung vor dem Speichern */
.schritt > h2 small { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.plan-wahl .mm-knopf { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; font-weight: 400; }
.plan-wahl .mm-knopf strong { display: block; }
.plan-wahl .mm-knopf::after { content: ""; position: absolute; top: 10px; right: 12px; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 4px; background: #fff; }
.plan-wahl .mm-knopf:has(input:checked)::after { content: "✓"; border-color: var(--rot); background: var(--rot); color: #fff; font-size: 13px; line-height: 18px; text-align: center; }
.plan-wahl .mm-knopf > span { padding-right: 26px; }
@media (max-width: 640px) { .plan-wahl { grid-template-columns: 1fr; } }
.plan-hochladen { margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: #fafafa; }
.plan-zeichnen { position: relative; }
/* zugeklappt, aber vermessen (Leaflet braucht eine Größe; die Übersichtskarte wird auch ohne Zeichnung exportiert) */
.plan-zeichnen.plan-zu { position: absolute; top: 0; left: -300vw; width: 100%; visibility: hidden; }
.plan-hinweis { margin: 0; }
.pruef-liste { grid-template-columns: max-content minmax(0, 1fr); gap: 0 18px; margin: 0; }
.pruef-liste dt, .pruef-liste dd { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pruef-liste dd { display: flex; align-items: baseline; gap: 12px; }
.pruef-liste .pruef-wert { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.pruef-liste .pruef-aendern { flex: none; }
@media (max-width: 640px) { .pruef-liste { grid-template-columns: 1fr; } .pruef-liste dt { border-bottom: 0; padding-bottom: 0; } }
abbr.pflicht { color: var(--rot); font-weight: 700; text-decoration: none; cursor: help; }
/* Zeitleiste: Schritte mit Verbindungslinie, erledigt grün, gesperrt blass */
.schritte-nav a + a { position: relative; margin-left: 14px; }
.schritte-nav a + a::before { content: ""; position: absolute; left: -17px; top: 50%; width: 14px; height: 2px; background: var(--line); }
.schritte-nav a.erledigt + a::before { background: #1e8e3e; }
.schritte-nav a.gesperrt { opacity: .45; cursor: not-allowed; }
.schritte-nav a.gesperrt:hover { background: none; color: var(--text); }
.schritte-nav a.gesperrt .schritt-nr { background: #9aa1a9; }
[hidden] { display: none !important; }
.stack-label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin-top: 4px; }
.stack-label + .stack-label { margin-top: 14px; }
.stack-label textarea, .stack-label input { font-weight: 400; }
.typ-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.typ-kopf-info { font-size: 14px; }
h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; color: var(--dunkelrot); }
h3.spaced { margin-top: 22px; }

/* Lageplan-Editor */
.lp-werkzeuge { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.lp-werkzeuge button { background: #fff; color: var(--text); border: 1px solid #c5cad1; padding: 6px 12px; font-size: 14px; }
.lp-werkzeuge button:hover { border-color: var(--rot); color: var(--rot); background: #fff; }
.lp-werkzeuge button.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; }
.lp-werkzeuge [data-aktion="fertig"] { background: #1e8e3e; border-color: #1e8e3e; color: #fff; }
.lp-trenner { flex: 1; }
.lp-haupt { display: grid; grid-template-columns: minmax(0, 960px) minmax(min(240px, 100%), 1fr); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .lp-haupt { grid-template-columns: 1fr; } }
.lp-karte { position: relative; width: 100%; aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 8px; z-index: 0; }
.lp-karte.lp-zeichnen, .lp-karte.lp-zeichnen .leaflet-interactive { cursor: crosshair; touch-action: none; } /* Zeichnen mit dem Finger statt Seite schieben */
.lp-canvas { position: absolute; left: 0; top: 0; z-index: 450; pointer-events: none; }
.lp-seite { display: flex; flex-direction: column; gap: 12px; }
.lp-eigenschaften, .lp-symbole { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fafafa; }
.lp-eigenschaften h4, .lp-symbole h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--dunkelrot); }
.lp-symbole h4 + .lp-symbol-raster { margin-bottom: 10px; }
.lp-feld { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; }
.lp-feld > span:first-child { width: 64px; color: var(--muted); }
.lp-feld input[type=range] { flex: 1; min-width: 100px; accent-color: var(--rot); }
.lp-feld textarea { flex: 1; min-width: 140px; }
.lp-farbe { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid #c5cad1; }
.lp-farbe:hover { border-color: var(--text); }
.lp-farbe.aktiv { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--text); }
.lp-breite { padding: 3px 8px; font-size: 12px; background: #fff; color: var(--text); border: 1px solid #c5cad1; }
.lp-breite:hover { background: #fff; color: var(--rot); border-color: var(--rot); }
.lp-breite.aktiv { background: var(--text); color: #fff; border-color: var(--text); }
.lp-check { display: block; font-size: 13px; margin: 0 0 6px 70px; }
.lp-aktionen { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 13px; }
.lp-aktionen .danger { margin-left: auto; padding: 4px 12px; }
.lp-symbol-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.lp-symbol-raster button { display: flex; align-items: center; justify-content: center; height: 46px; padding: 4px; background: #fff; border: 1px solid #d9dce1; border-radius: 6px; }
.lp-symbol-raster button:hover { background: #fff; border-color: var(--rot); }
.lp-symbol-raster button.aktiv { background: #fdecec; border-color: var(--rot); box-shadow: 0 0 0 2px var(--rot) inset; }
.lp-symbol-raster img { max-width: 100%; max-height: 100%; }
.lp-uebersicht-block { margin-top: 18px; }
.lp-uebersicht { width: min(100%, 640px); aspect-ratio: 3 / 2; border: 1px solid var(--line); border-radius: 8px; z-index: 0; }
.lp-stern { background: url("symbole/stern.svg") no-repeat center / contain; }
.lp-export { position: fixed; left: -40000px; top: 0; }
.lp-status { margin-left: auto; }

/* PDF in Schritt 5 */
.pdf-karte { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--rot); border-radius: 8px; background: #fff; margin-bottom: 18px; }
.pdf-symbol { width: 46px; height: 56px; border-radius: 4px; background: var(--rot); color: #fff; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 13px; flex: none; }
.pdf-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 220px; }
.pdf-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pdf-aktionen form { display: inline; }
a.button.secondary-link { background: #fff; color: var(--rot); border: 1px solid var(--rot); }
a.button.secondary-link:hover { background: #fdecec; color: var(--dunkelrot); }
.anhang-block { margin-top: 6px; }

/* Verteiler-Auswahl in Schritt 6 */
.empfaenger { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 8px 18px; }
.empfaenger legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.empfaenger legend a { font-weight: 400; margin-left: 8px; }
.empfaenger label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 14px; }
.empfaenger label.check small { display: block; color: var(--muted); word-break: break-all; }
.empfaenger .stack-label { grid-column: 1 / -1; }
button:disabled { opacity: .5; cursor: not-allowed; }

/* Verteiler-Verwaltung */
.verteiler-eintrag { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.verteiler-zeile { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; flex: 1; }
.verteiler-zeile label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.verteiler-zeile label.check { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--text); padding-bottom: 8px; }
.verteiler-zeile .verteiler-mail { flex: 1; min-width: 240px; }
.verteiler-zeile .verteiler-zahl input { width: 80px; }
.verteiler-zeile.inaktiv input[type=text] { color: var(--muted); }
.verteiler-loeschen { padding-bottom: 8px; font-size: 13px; }

/* Symbolübersicht */
.symbol-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.symbol-kachel { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: #fafafa; }
.symbol-kachel img { height: 64px; max-width: 100%; object-fit: contain; }
.symbol-kachel figcaption { font-size: 12px; margin-top: 6px; }
.symbol-mini { height: 36px; max-width: 80px; object-fit: contain; }
.spaced-table { margin-top: 14px; }

/* Erledigt-Haken an Schritten (Leiste und Überschrift) */
.schritte-nav a.erledigt::after { content: "\2713"; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 2px; border-radius: 50%; background: #1e8e3e; color: #fff; font-size: 12px; font-weight: 700; }
.schritte-nav a.erledigt .schritt-nr { background: #1e8e3e; }
.schritte .schritt.erledigt > h2::after { content: "\2713  erledigt"; margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: #e9f7ef; border: 1px solid #a9dfbf; color: #1e6b3a; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: pre; }
.schritte .schritt.erledigt > h2 .schritt-nr { background: #1e8e3e; }

/* Benutzer: Funktion und Wache nebeneinander */
.feld-paar.feld-paar-gleich { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Dienstpläne verteilen */
.ablage { position: relative; display: flex !important; align-items: center; justify-content: center; min-height: 92px; padding: 16px; border: 2px dashed #c5cad1; border-radius: 10px; background: #fafafa; text-align: center; cursor: pointer; font-weight: 400 !important; }
.ablage:hover, .ablage.ziehen { border-color: var(--rot); background: #fdecec; }
.ablage.gewaehlt { border-style: solid; border-color: #1e8e3e; background: #e9f7ef; }
.ablage input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ablage-text { pointer-events: none; color: var(--text); }
.gruppen { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px 12px; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 6px 16px; }
.gruppen legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.gruppen .gruppe-wahl { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; }
.gruppen p { grid-column: 1 / -1; margin: 0; }
input[type=date] { font: inherit; padding: 7px 10px; border: 1px solid #c5cad1; border-radius: 6px; }

/* Einsätze: Liste, Einsatzansicht mit Kopierhilfe, Fotos */
.einsatz-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.einsatz-kopf p { margin: 0; }
.art { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 4px; background: var(--grau); color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.art-b { background: var(--rot); }
.art-h { background: #2563eb; }
.einsatz-liste tr.laufend td { background: #fff8e1; }
.seiten { display: flex; gap: 16px; }
.einsatz-titel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.einsatz-titel > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 17px; }
.kopier-hinweis { margin: 0 0 14px; }
button.kopieren { padding: 3px 10px; font-size: 12px; background: #fff; color: var(--dunkelrot); border: 1px solid #e3b4b6; }
button.kopieren:hover { background: #fdecec; color: var(--rot); border-color: var(--rot); }
button.kopieren.gross { padding: 8px 16px; font-size: 14px; background: var(--rot); color: #fff; border-color: var(--rot); }
button.kopieren.gross:hover { background: var(--dunkelrot); color: #fff; }
button.kopieren.kopiert { background: #e9f7ef; color: #1e6b3a; border-color: #a9dfbf; }
button.kopieren.fehler { background: #fff8e1; color: #6b4e00; border-color: #f2d37a; }
h2 button.kopieren { margin-left: 8px; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.kopier-tabelle th { width: 180px; color: var(--muted); font-weight: 400; font-size: 13px; text-transform: none; letter-spacing: 0; }
.kopier-tabelle td.wert { white-space: pre-line; }
.kopier-tabelle td.aktion { width: 1%; white-space: nowrap; text-align: right; }
.zeiten td, .zeiten th { white-space: nowrap; }
.zeiten tfoot td { font-weight: 700; }
.verlauf td { font-size: 14px; }
ul.schlicht { margin: 0; padding-left: 18px; }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 14px; }
.foto-kachel { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fafafa; }
.foto-kachel img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #ddd; }
.foto-kachel figcaption { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; font-size: 14px; }
.foto-aktionen { display: flex; gap: 10px; align-items: center; margin-top: 4px; font-size: 13px; }
.kopier-puffer { position: fixed; left: -9999px; top: 0; }

/* Bildansicht für Einsatzfotos (app.js) – füllt das Fenster, Foto vollständig sichtbar */
html.bild-offen { overflow: hidden; }
.bild-dialog { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    background: rgba(12, 12, 12, .97); color: #fff; display: flex; flex-direction: column; }
.bild-dialog:not([open]) { display: none; }
.bild-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.bild-buehne { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px 64px; }
.bild-gross { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 8px 30px rgba(0,0,0,.5); user-select: none; }
.bild-laden { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: rgba(0,0,0,.6); font-size: 13px; }
.bild-dialog button { appearance: none; border: 0; cursor: pointer; color: #fff; background: rgba(255,255,255,.12); font: inherit; }
.bild-dialog button:hover, .bild-dialog button:focus-visible { background: rgba(255,255,255,.26); }
.bild-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border-radius: 8px; font-size: 38px; line-height: 1; padding: 0 0 6px; }
.bild-zurueck { left: 8px; }
.bild-vor { right: 8px; }
.bild-einzeln .bild-nav { display: none; }
.bild-zu { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; padding: 0 0 3px; }
.bild-leiste { display: flex; align-items: center; gap: 16px; padding: 10px 18px 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.bild-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bild-titel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bild-info { color: rgba(255,255,255,.7); font-size: 13px; }
.bild-zaehler { color: rgba(255,255,255,.7); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bild-aktionen { display: flex; gap: 14px; white-space: nowrap; }
.bild-aktionen a { color: #fff; }
.bild-aktionen a:hover { color: #ffb3b8; }
@media (max-width: 640px) {
    .bild-buehne { padding: 56px 0 8px; }
    .bild-gross { border-radius: 0; }
    .bild-nav { top: auto; bottom: 10px; transform: none; width: 44px; height: 44px; font-size: 30px; background: rgba(0,0,0,.45); }
    .bild-leiste { flex-wrap: wrap; gap: 6px 14px; padding: 10px 14px 16px; }
    .bild-text { flex-basis: 100%; }
    .bild-titel { white-space: normal; }
}

/* Frühbesprechung */
.bs-leiste { position: sticky; top: 52px; z-index: 900; display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 10px 14px; background: rgba(255,255,255,.97); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.bs-datum, .bs-live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.bs-datum a { text-decoration: none; font-size: 18px; padding: 0 6px; }
.bs-datum a.small { font-size: 13px; text-decoration: underline; }
.bs-leitung { padding: 3px 10px; border-radius: 999px; background: #f2f2f2; font-size: 13px; }
.bs-leitung.aktiv { background: #e9f7ef; color: #1e6b3a; font-weight: 600; }
.bs-live button { padding: 4px 12px; font-size: 13px; }
.bs-teilnehmer { flex: 1; min-width: 200px; }
.bs-abschnitt { scroll-margin-top: 140px; transition: box-shadow .3s; }
.bs-fokus { box-shadow: 0 0 0 3px var(--rot); }
.bs-zeigen { margin-left: 8px; padding: 1px 8px; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; background: #fff; color: var(--muted); border: 1px solid var(--line); vertical-align: middle; display: none; }
.ist-leitung .bs-zeigen { display: inline-block; }
.bs-zeigen:hover { background: #fdecec; color: var(--rot); border-color: var(--rot); }
.bs-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bs-kachel { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafafa; display: flex; flex-direction: column; gap: 2px; }
.bs-kachel strong { font-size: 26px; line-height: 1.1; color: var(--rot); }
.bs-kachel small { color: var(--muted); font-size: 12px; }
table.bs-klein td, table.bs-klein th { padding: 5px 8px; font-size: 14px; }
td.zahl { text-align: right; width: 60px; font-weight: 600; }
.bs-auffaellig { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.bs-auffaellig li { padding: 6px 10px; border-left: 4px solid var(--grau); background: #fafafa; border-radius: 0 6px 6px 0; }
.bs-auffaellig li.bs-art-bma { border-left-color: var(--rot); }
.bs-auffaellig li.bs-art-kraefte { border-left-color: #d98e04; }
.bs-einsatz { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; background: #fff; scroll-margin-top: 140px; }
.bs-einsatz summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 12px; cursor: pointer; list-style-position: inside; font-variant-numeric: tabular-nums; }
/* Feste Spalten, damit Uhrzeit, Einsatzart, Stichwort und Ort in allen Zeilen untereinander stehen */
.bs-einsatz[data-einsatz] > summary { display: grid; grid-template-columns: 3em 2em 12em minmax(0, 1fr) auto 19em; gap: 4px 12px; }
.bs-einsatz[data-einsatz] > summary .bs-meta { text-align: right; }
.bs-einsatz[data-einsatz] > summary .art { justify-self: start; }
.bs-ereignis > summary { display: grid; grid-template-columns: 10em minmax(8em, 16em) minmax(0, 1fr) 15em; gap: 4px 12px; }
.bs-ereignis > summary .typ-badge { justify-self: start; }
.bs-marken { display: inline-flex; gap: 6px; }
@media (max-width: 900px) { .bs-einsatz[data-einsatz] > summary, .bs-ereignis > summary { display: flex; } .bs-einsatz[data-einsatz] > summary .bs-meta { text-align: left; } }
.bs-einsatz[open] summary { border-bottom: 1px solid var(--line); background: #fafafa; }
.bs-einsatz-inhalt { padding: 10px 14px 14px; }
.bs-einsatz-aktionen { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; }
.bs-einsatz-aktionen .bs-zeigen { margin-left: 0; }
.bs-ereignis { border-left: 5px solid var(--typ, #6b7280); }
.bs-angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 10px; }
.bs-angaben dt { color: var(--muted); }
.bs-angaben dd { margin: 0; }
.bs-angaben .umbruch { white-space: pre-line; }
.bs-lageplan { display: block; max-width: 100%; max-height: 70vh; border: 1px solid var(--line); border-radius: 6px; }
.bs-zoom { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-left: auto; padding: 3px 10px; border-radius: 8px; background: #eef4ff; font-size: 14px; }
.bs-zoom.leer { background: none; }
.bs-dialog { border: 0; border-radius: 12px; padding: 22px 24px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.bs-dialog::backdrop { background: rgba(0,0,0,.35); }
.bs-dialog h2 { margin-top: 0; }
.bs-dialog label { display: block; margin: 12px 0 0; font-weight: 600; }
.bs-dialog input { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.bs-dialog-knoepfe { display: flex; gap: 10px; margin-top: 18px; }
.bs-zoom .button { padding: 3px 12px; font-size: 13px; }
@media (max-width: 700px) { .bs-zoom { margin-left: 0; } .bs-angaben { grid-template-columns: 1fr; } .bs-angaben dt { margin-top: 4px; } }
.bs-markierung { padding: 1px 8px; border-radius: 999px; background: #fdecec; color: var(--dunkelrot); font-size: 12px; font-weight: 600; }
.bs-notizzahl { padding: 1px 8px; border-radius: 999px; background: #eef2f8; color: #1f4f8f; font-size: 12px; }
.bs-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.bs-fotos img { height: 90px; border-radius: 6px; border: 1px solid var(--line); }
.bs-notizen { margin: 0 0 8px; padding-left: 18px; }
.bs-notizen li { margin-bottom: 4px; }
.bs-notizen li.vormerkung .text { font-weight: 600; }
.bs-notiz-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bs-notiz-form input[type=text] { flex: 1; min-width: 220px; }
.bs-archiv { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.bs-archiv a.aktiv { font-weight: 700; color: var(--rot); }

/* Beamer-Ansicht: ohne Menü, große Schrift */
body.beamer .topbar, body.beamer .testbetrieb, body.beamer main > h1 { display: none; }
body.beamer main { max-width: none; padding: 16px 28px; }
body.beamer { font-size: 19px; }
body.beamer .bs-leiste { top: 0; }
body.beamer h2 { font-size: 22px; }
body.beamer table.bs-klein td, body.beamer table.bs-klein th { font-size: 18px; }
body.beamer .bs-kachel strong { font-size: 40px; }
body.beamer .bs-einsatz summary { font-size: 19px; }

/* Freigabe für Einsatzberichte: Menüzähler, Posteingang, Einsatzansicht */
.nav-zahl { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 5px; border-radius: 9px; background: #fff; color: var(--rot); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.nav-zahl.rot { background: var(--rot); color: #fff; }
tr.pe-ueberfaellig td:first-child { box-shadow: inset 4px 0 0 var(--rot); }
.pe-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; justify-content: flex-end; }
.pe-aktionen form { margin: 0; }
.pe-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.pe-inline input[type=text] { min-width: 180px; }
.pe-nicht-meiner summary { cursor: pointer; color: var(--dunkelrot); text-decoration: underline; padding: 8px 0; }
.pe-nicht-meiner form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; min-width: 260px; }
.fg-box .pe-aktionen { justify-content: flex-start; margin-bottom: 10px; }
.fg-box .pe-inline { margin-top: 10px; }
.bs-bericht { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; background: #fff8e1; border: 1px solid #f2d37a; white-space: nowrap; }
.bs-bericht-abgeschlossen { background: #e9f7ef; border-color: #a9dfbf; }
.bs-bericht-klaerung, .bs-bericht-angefragt { background: #f2f2f2; border-color: #dcdcdc; }
.code-feld { width: 100%; font-family: Consolas, monospace; font-size: 12px; padding: 8px 10px; border: 1px solid #c5cad1; border-radius: 6px; background: #fafafa; }

/* Tablet-Seite (eigene Seite ohne Portal-Rahmen, für Fingerbedienung) */
body.tf { background: var(--bg, #f4f5f7); font-size: 17px; }
.tf-kopf { display: flex; gap: 16px; align-items: center; padding: 14px 20px; background: var(--rot); color: #fff; font-weight: 700; }
.tf-marke { letter-spacing: .03em; }
.tf-inhalt { max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; }
.tf-inhalt h1 { font-size: 22px; margin: 18px 0 4px; }
.tf-einsatz { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tf-einsatz-titel { display: flex; gap: 10px; align-items: center; font-size: 19px; }
.tf-meldung { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 14px 0; }
.tf-meldung.tf-fehler { background: #fdecea; border-color: #f1aaa5; }
.tf-suche { width: 100%; font: inherit; padding: 12px 14px; margin: 10px 0; border: 1px solid #c5cad1; border-radius: 8px; }
.tf-liste { display: flex; flex-direction: column; gap: 8px; }
.tf-person { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-height: 58px; padding: 10px 14px; background: #fff; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.tf-person input { width: 22px; height: 22px; accent-color: var(--rot); }
.tf-person .tf-name { font-weight: 700; flex: 1; }
.tf-person.gewaehlt { border-color: var(--rot); background: #fdecec; }
.tf-person[hidden] { display: none; }
.tf-aktion { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 0; background: linear-gradient(transparent, var(--bg, #f4f5f7) 30%); }
.tf-gross { min-height: 54px; padding: 12px 22px; font-size: 18px; }
.tf-aktion .tf-gross:first-child { flex: 1; }
.tf-erfolg { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 16px; margin-top: 16px; }
.tf-haken { font-size: 56px; line-height: 1; color: #1e7b34; margin: 0; }
.umbruch-alles { word-break: break-all; }

/* Bereich Einsätze: Reiter Einsätze / Statistik / Presse */
.bereich-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 16px; border-bottom: 2px solid var(--line); }
.bereich-tabs a { padding: 8px 16px; margin-bottom: -2px; border-bottom: 3px solid transparent; color: var(--text); text-decoration: none; font-weight: 600; }
.bereich-tabs a:hover { color: var(--rot); }
.bereich-tabs a.aktiv { border-bottom-color: var(--rot); color: var(--rot); }

/* Statistik: Diagramme als SVG */
.diagramm { display: block; width: 100%; height: auto; }
.dg-balken { fill: var(--rot); }
.dg-balken-ff { fill: #8a8f98; }
.dg-balken-vergleich { fill: #f3b3b7; }
.dg-zelle { fill: var(--rot); }
.dg-raster { stroke: #ececec; stroke-width: 1; }
.dg-achse { font-size: 11px; fill: #828282; }
.dg-beschriftung { font-size: 12px; fill: #1d1d1d; }
.dg-wert { font-size: 12px; fill: #555; }
.st-kacheln { margin-bottom: 18px; }
.st-spalten { margin-top: 0; gap: 18px; }

/* Presse-Dashboard */
.presse-kacheln { margin-bottom: 18px; }
.presse-raster { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; }
@media (max-width: 1000px) { .presse-raster { grid-template-columns: 1fr; } }
.presse-karte { height: 340px; border-radius: 8px; border: 1px solid var(--line); }
.presse-einsatz { border: 1px solid var(--line); border-left: 5px solid #9ca3af; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; background: #fff; }
.presse-einsatz.laeuft { border-left-color: var(--rot); }
.presse-einsatz header { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 4px; }
.presse-meldungen { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.presse-text summary { cursor: pointer; color: var(--dunkelrot); margin-top: 6px; }
.presse-text textarea { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #c5cad1; border-radius: 6px; margin: 6px 0; }
.presse-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.presse-fotos img { height: 90px; border-radius: 6px; display: block; }
.presse-zeitleiste { list-style: none; margin: 0; padding: 0; }
.presse-zeitleiste li { padding: 6px 0 6px 10px; border-left: 3px solid var(--line); margin-left: 4px; }
.card[id] { scroll-margin-top: 70px; }

/* Hauptmenü mit Gruppen (Ausklappmenüs) */
.hauptmenue { align-items: center; }
.menu-gruppe { position: relative; }
.menu-knopf { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: #fff; opacity: .85; font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.menu-knopf:hover, .menu-gruppe.offen .menu-knopf { background: rgba(255,255,255,.18); border: 0; opacity: 1; }
.menu-gruppe.active .menu-knopf { background: var(--dunkelrot); opacity: 1; }
.menu-pfeil { transition: transform .15s; }
.menu-gruppe.offen .menu-pfeil { transform: rotate(180deg); }
.menu-liste { display: none; position: absolute; top: 100%; left: 0; padding-top: 10px; z-index: 1200; }
.menu-gruppe.offen .menu-liste { display: block; }
@media (hover: hover) and (min-width: 861px) { .menu-gruppe:hover .menu-liste { display: block; } }
.menu-karte { min-width: 290px; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.topbar .menu-karte a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--text); opacity: 1; text-decoration: none; white-space: normal; }
.topbar .menu-karte a strong { display: block; font-size: 14px; font-weight: 600; }
.topbar .menu-karte a small { display: block; margin-top: 1px; font-size: 12px; color: var(--muted); }
.topbar .menu-karte a:hover, .topbar .menu-karte a:focus-visible { background: #f4f4f4; color: var(--text); }
.topbar .menu-karte a.active { background: #fdecec; }
.topbar .menu-karte a.active strong { color: var(--rot); }
body.beamer .menu-liste { display: none !important; }
.hauptmenue > .menu-gruppe:last-child .menu-liste { left: auto; right: 0; }
@media (max-width: 1100px) { .menu-knopf, .topbar nav > a { padding: 6px 7px; font-size: 13px; } .hauptmenue { gap: 2px; } }
@media (max-width: 940px) { .topbar .brand > span:last-child { display: none; } }

/* Startseite: Begrüßung, Schnellzugriff, Karten je Rolle */
.start-kopf { position: relative; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin: 0 0 18px; padding: 26px 30px; border-radius: 14px; overflow: hidden; color: #fff;
    background: linear-gradient(115deg, var(--rot) 0%, #c8101c 55%, var(--dunkelrot) 100%); box-shadow: 0 6px 20px rgba(160,25,23,.25); }
.start-kopf::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 520px; height: 170px; pointer-events: none; opacity: .18;
    background: url("img/fahrzeug-element-weiss.png") no-repeat right bottom / contain; }
.start-kopf > * { position: relative; z-index: 1; }
.start-datum { margin: 0 0 4px; font-size: 14px; opacity: .85; }
.start-kopf h1 { margin: 0; color: #fff; font-size: 30px; text-transform: none; letter-spacing: 0; }
.start-rolle { margin: 4px 0 0; font-size: 15px; opacity: .9; }
.start-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.start-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 14px; text-decoration: none; }
.start-chip:hover { background: rgba(255,255,255,.26); color: #fff; }
.start-chip.warn { background: #fff; color: var(--dunkelrot); border-color: #fff; font-weight: 600; }
.start-chip.warn:hover { color: var(--dunkelrot); background: #fdecec; }
.start-chip.puls::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: start-puls 1.6s ease-in-out infinite; }
@keyframes start-puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .start-chip.puls::before { animation: none; } }
.start-suche { min-width: min(100%, 360px); }
.start-suche label { display: block; margin-bottom: 6px; font-size: 13px; opacity: .85; }
.start-suche > div { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; background: #fff; border-radius: 10px; color: var(--muted); }
.start-suche input { flex: 1; min-width: 0; border: 0; padding: 8px 4px; font: inherit; background: transparent; color: var(--text); }
.start-suche input:focus { outline: none; }
.start-suche > div:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.start-suche button { padding: 7px 14px; }

.start-schnell { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.start-schnell a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.start-schnell a:hover { border-color: var(--rot); box-shadow: 0 4px 12px rgba(0,0,0,.08); transform: translateY(-1px); color: var(--text); }
.start-schnell-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #fdecec; color: var(--rot); }

.start-raster { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1050px) { .start-raster { grid-template-columns: minmax(0, 1fr); } }
.start-karte { margin-bottom: 18px; border-radius: 14px; }
.start-karte h3 { margin: 16px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.start-karte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.start-karte-kopf h2 { display: inline-flex; align-items: center; gap: 9px; margin: 0; }
.start-karte-kopf h2 .icon { color: var(--rot); }
.start-karte-kopf a { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; text-decoration: none; white-space: nowrap; }
.start-zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.start-zahl { position: relative; display: block; padding: 12px 14px; border-radius: 12px; background: #f7f7f8; color: var(--text); text-decoration: none; border: 1px solid transparent; }
a.start-zahl:hover { border-color: var(--line); background: #f1f1f3; color: var(--text); }
.start-zahl strong { display: block; font-size: 28px; line-height: 1.15; }
.start-zahl > span:last-child { font-size: 13px; color: var(--muted); }
.start-zahl-icon { position: absolute; top: 12px; right: 12px; color: #b8bcc2; }
.start-zahl.rot { background: #fdecec; }
.start-zahl.rot strong, .start-zahl.rot .start-zahl-icon { color: var(--rot); }
.start-zahl.gelb { background: #fff6dd; }
.start-zahl.gelb strong { color: #9a6700; }
.start-zahlen.klein .start-zahl strong { font-size: 22px; }
.start-zahlen.mini { grid-template-columns: repeat(3, 1fr); }
.start-zahlen.mini .start-zahl { padding: 10px 12px; }
.start-zahlen.mini .start-zahl strong { font-size: 22px; }
.start-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.start-liste li a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid #c3c7cd; color: var(--text); text-decoration: none; background: #fff; }
.start-liste li a:hover { background: #fafafa; color: var(--text); }
.start-liste li.laeuft a { border-left-color: var(--rot); }
.start-liste li.ueberfaellig a { border-left-color: var(--rot); background: #fff8f8; }
.start-liste-text { flex: 1; min-width: 0; }
.start-liste-text strong { display: block; }
.start-liste-text small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-liste-zeit { font-size: 13px; color: var(--muted); white-space: nowrap; }
.start-leer { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 12px 14px; border-radius: 10px; background: #eef8f1; color: #1e6b3a; }
.start-hinweis { margin: 0 0 10px; }
.start-hinweis .rot { color: var(--rot); }
.start-verlauf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: end; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.start-verlauf strong { font-size: 20px; }
.start-trend { display: block; margin: 2px 0 4px; font-size: 13px; color: var(--muted); }
.start-trend.hoch { color: #9a6700; }
.start-trend.runter { color: #1e6b3a; }
.diagramm-mini { display: block; width: 100%; height: 64px; }
.dg-mini { fill: #f3b3b7; }
.dg-mini-heute { fill: var(--rot); }
@media (max-width: 640px) { .start-verlauf { grid-template-columns: 1fr; } }
.start-tabelle { margin-top: 4px; }
.start-import { margin: 12px 0 0; }
.start-aenderungen summary { cursor: pointer; margin-top: 10px; color: var(--dunkelrot); }
.start-zoom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.start-zoom .button { display: inline-flex; align-items: center; gap: 8px; }
.start-typen { display: flex; flex-wrap: wrap; gap: 6px; }
.start-typ { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--typ, #6b7280); color: #fff; font-size: 13px; text-decoration: none; }
.start-typ:hover { color: #fff; filter: brightness(1.08); }
.start-ereignisse { list-style: none; margin: 0; padding: 0; }
.start-ereignisse li { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 7px 0 7px 10px; border-left: 4px solid var(--typ, #6b7280); margin-bottom: 6px; }
.start-ereignisse li small { grid-column: 2; }
.start-ereignis-anlass { grid-row: span 2; align-self: center; padding: 2px 8px; border-radius: 6px; background: #f2f2f2; font-size: 12px; white-space: nowrap; }
.start-system { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.start-system li { display: flex; align-items: flex-start; gap: 10px; }
.start-system li strong { display: block; font-size: 14px; }
.start-system li small { display: block; color: var(--muted); }
.start-ampel { flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: #1e9e4a; box-shadow: 0 0 0 3px #e3f5ea; }
.start-system li.warn .start-ampel { background: #e0a100; box-shadow: 0 0 0 3px #fff3cf; }

/* Mängelmelder: Formular (HUB und Handy), Listen, Detail, Druckbogen */
.mm-nr { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--rot); color: #fff; font-size: 14px; vertical-align: 2px; }
.mm-form h2 { display: flex; align-items: center; margin: 0 0 12px; }
.mm-auswahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 12px; }
.mm-knopf { position: relative; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; }
.mm-knopf input { position: absolute; opacity: 0; pointer-events: none; }
.mm-knopf .icon { flex: none; color: var(--rot); }
.mm-knopf small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.mm-knopf:has(input:checked) { border-color: var(--rot); background: #fdecec; }
.mm-knopf:has(input:focus-visible) { outline: 2px solid var(--rot); outline-offset: 2px; }
.mm-feld { display: block; margin: 10px 0; font-weight: 600; font-size: 14px; }
.mm-feld input, .mm-feld select, .mm-feld textarea { display: block; width: 100%; margin-top: 4px; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #c5cad1; border-radius: 8px; background: #fff; }
.mm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.mm-chips span { display: contents; }
.mm-chips span[hidden] { display: none; }
.mm-chips button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #f7f7f8; color: var(--text); font-size: 14px; }
.mm-chips button:hover { background: #fdecec; border-color: var(--rot); color: var(--text); }
.mm-dringlichkeit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.mm-dringlichkeit .mm-knopf { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
.mm-sofort:has(input:checked) { border-color: var(--rot); background: var(--rot); color: #fff; }
.mm-sofort:has(input:checked) small { color: #fde; }
.mm-zeitnah:has(input:checked) { border-color: #d98e04; background: #fff6dd; }
.mm-gelegenheit:has(input:checked) { border-color: #6b7280; background: #f2f3f5; }
@media (max-width: 520px) { .mm-dringlichkeit { grid-template-columns: 1fr; } }
.mm-foto-knopf { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 2px dashed #c5cad1; border-radius: 12px; color: var(--dunkelrot); font-weight: 600; cursor: pointer; background: #fafafa; }
.mm-foto-knopf input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mm-vorschau { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mm-vorschau img { height: 90px; border-radius: 8px; display: block; }
.mm-vorschau-bild { position: relative; }
.mm-vorschau-bild button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; border-radius: 50%; line-height: 1; }
.mm-senden { width: 100%; min-height: 56px; font-size: 18px; font-weight: 700; }
.mm-hub .mm-senden { width: auto; min-width: 260px; }
.mm-hub .card { max-width: 920px; }

/* Handy-Seiten (QR-Formular, Stand) */
body.mm-mobil { background: var(--bg); font-size: 16px; }
.mm-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--rot); color: #fff; font-weight: 700; }
.mm-marke { margin-left: auto; font-size: 13px; opacity: .85; letter-spacing: .03em; }
.mm-inhalt { max-width: 640px; margin: 0 auto; padding: 14px 14px 40px; }
.mm-karte { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.mm-karte h1 { margin: 0 0 8px; font-size: 22px; color: var(--text); text-transform: none; }
.mm-karte h2 { font-size: 17px; }
.mm-bezug { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: 14px; background: linear-gradient(115deg, var(--rot), var(--dunkelrot)); color: #fff; }
.mm-bezug strong { display: block; font-size: 19px; }
.mm-bezug small { opacity: .85; }
.mm-bezug-icon { display: inline-flex; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.16); }
.mm-offen { list-style: none; margin: 0; padding: 0; }
.mm-offen li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mm-offen li small { display: block; color: var(--muted); }
.mm-danke { text-align: center; padding: 22px 16px; margin-bottom: 12px; border-radius: 14px; background: #eef8f1; border: 1px solid #b9e2c6; }
.mm-danke h1 { margin: 6px 0; color: #1e6b3a; text-transform: none; }
.mm-danke-haken { color: #1e9e4a; }
.mm-titel { font-size: 20px !important; }
.mm-text { white-space: normal; background: #fafafa; border-radius: 8px; padding: 10px 12px; }
.mm-technik { margin: 10px 0 0; }
.mm-technik summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.mm-technik pre { max-height: 360px; overflow: auto; margin: 6px 0; padding: 10px 12px; background: #fafafa; border-radius: 8px; font-size: 12px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.mm-schritte { display: flex; gap: 6px; list-style: none; margin: 12px 0; padding: 0; }
.mm-schritte li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); text-align: center; }
.mm-schritte li span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #eceef1; font-weight: 700; }
.mm-schritte li.erreicht { color: var(--text); font-weight: 600; }
.mm-schritte li.erreicht span { background: var(--rot); color: #fff; }
.mm-schritte li.abgelehnt span { background: #6b7280; }

/* Listen und Detail im HUB */
.mm-leiste { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mm-leiste .bereich-tabs { flex: 1; margin: 0; }
.mm-leiste-aktionen { display: flex; align-items: center; gap: 14px; }
.mm-leiste-aktionen a { display: inline-flex; align-items: center; gap: 6px; }
.mm-filter { margin: 0 0 10px; }
.mm-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mm-liste li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 5px solid #9ca3af; border-radius: 10px; padding-right: 12px; }
.mm-liste li.mm-d-sofort { border-left-color: var(--rot); }
.mm-liste li.mm-d-zeitnah { border-left-color: #d98e04; }
.mm-liste li.erledigt { opacity: .7; }
.mm-liste-link { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; color: var(--text); text-decoration: none; min-width: 0; }
.mm-liste-link:hover { color: var(--text); background: #fafafa; }
.mm-liste-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mm-liste-aktion { margin: 0; }
.mm-status { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eceef1; color: #374151; }
.mm-s-neu { background: #fdecec; color: var(--dunkelrot); }
.mm-s-in_arbeit { background: #e8f0fe; color: #1d4ed8; }
.mm-s-wartet { background: #fff6dd; color: #9a6700; }
.mm-s-erledigt { background: #e9f7ef; color: #1e6b3a; }
.mm-sofort-etikett { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--rot); color: #fff; }
.mm-detail { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .mm-detail { grid-template-columns: 1fr; } }
.mm-kopfkarte { border-left: 6px solid #9ca3af; }
.mm-kopfkarte.mm-d-sofort { border-left-color: var(--rot); }
.mm-kopfkarte.mm-d-zeitnah { border-left-color: #d98e04; }
.mm-betrifft { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; margin: 10px 0; }
.mm-betrifft .icon { color: var(--rot); }
.mm-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mm-fotos img { height: 120px; border-radius: 8px; display: block; border: 1px solid var(--line); }
.mm-verlauf { list-style: none; margin: 0; padding: 0; }
.mm-verlauf li { padding: 8px 0 8px 12px; border-left: 3px solid var(--line); margin-left: 4px; }
.mm-verlauf li small { display: block; color: var(--muted); }
.mm-verlauf li span { display: block; }
.mm-v-rueckmeldung { border-left-color: #1d4ed8 !important; }
.mm-v-notiz { border-left-color: #d98e04 !important; background: #fffbea; }
.mm-v-status { border-left-color: var(--rot) !important; }
.mm-kommentar { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.mm-kommentar textarea, .mm-statusform textarea { font: inherit; padding: 8px 10px; border: 1px solid #c5cad1; border-radius: 8px; width: 100%; }
.mm-aktionen form { margin-bottom: 12px; }
.mm-aktionen > form > button .icon { vertical-align: -3px; }
.mm-statusform { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.mm-weitergeben summary { cursor: pointer; color: var(--dunkelrot); }
.mm-weitergeben form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mm-inline-form { display: inline; margin: 0; }
.mm-fahrzeugwahl fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; padding: 6px 12px 10px; }
.mm-fahrzeugwahl legend { font-weight: 600; padding: 0 4px; }
.mm-fahrzeug-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; }
.mm-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 0 18px; }
.mm-mitglieder { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; margin: 8px 0 12px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.start-team { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: #f7f7f8; color: var(--text); text-decoration: none; }
.start-team:hover { background: #f1f1f3; color: var(--text); }
.start-team small { display: block; color: var(--muted); }
.start-team.sofort { background: #fdecec; }
.start-team-zahl { font-size: 24px; font-weight: 700; text-align: center; line-height: 1; }
.start-team-zahl small { font-size: 11px; font-weight: 400; }
.start-mm { list-style: none; margin: 0 0 10px; padding: 0; }
.start-mm li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.start-mm a { color: var(--text); text-decoration: none; }
.start-mm small { display: block; margin-left: 2px; }

/* Druckbogen A4: 2 × 4 Etiketten je 105 × 74 mm */
body.mm-druck { background: #e5e7eb; margin: 0; }
.mm-druck-hinweis { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.mm-bogen { width: 210mm; height: 297mm; margin: 12px auto; padding: 0; background: #fff; display: grid; grid-template-columns: 105mm 105mm; grid-template-rows: repeat(4, 74.25mm); box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.mm-etikett { display: flex; flex-direction: column; margin: 3mm; border: 0.3mm dashed #c5cad1; border-radius: 3mm; overflow: hidden; }
.mm-etikett-kopf { display: flex; align-items: center; justify-content: space-between; padding: 2mm 3mm; background: #E30613; color: #fff; font-weight: 700; font-size: 4.2mm; }
.mm-etikett-kopf img { height: 6mm; width: auto; }
.mm-etikett-inhalt { flex: 1; display: flex; gap: 3mm; padding: 2.5mm 3mm; align-items: center; }
.mm-qr { width: 34mm; height: 34mm; flex: none; }
.mm-qr svg { width: 100%; height: 100%; display: block; }
.mm-etikett-text strong { display: block; font-size: 5mm; line-height: 1.1; }
.mm-etikett-text span { display: block; font-size: 3.4mm; color: #555; margin-bottom: 1.5mm; }
.mm-etikett-text ol { margin: 0; padding-left: 4mm; font-size: 3mm; line-height: 1.35; }
.mm-etikett-fuss { padding: 1mm 3mm 1.5mm; font-size: 2.4mm; color: #777; }
@media print {
    @page { size: A4; margin: 0; }
    body.mm-druck { background: #fff; }
    .mm-druck-hinweis { display: none; }
    .mm-bogen { margin: 0; box-shadow: none; break-after: page; }
    .mm-etikett { border-color: #eee; }
    .mm-etikett-kopf { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Benutzerverwaltung */
.bn-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bn-kopf p { margin: 0; }
.bn-legende summary { cursor: pointer; font-weight: 600; color: var(--dunkelrot); }
.bn-legende h3 { margin: 10px 0 6px; font-size: 14px; }
.bn-tabelle td { vertical-align: top; }
.bn-tabelle .tag { margin-bottom: 3px; }
.bn-spalten { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bn-spalten aside { position: sticky; top: 70px; }
@media (max-width: 1000px) { .bn-spalten { grid-template-columns: 1fr; } .bn-spalten aside { position: static; } }
.bn-form label { display: block; margin: 8px 0; font-weight: 600; font-size: 14px; }
.bn-form label.check, .bn-form .mm-knopf { font-weight: 400; }
.bn-form input[type=text], .bn-form input[type=email], .bn-form select { display: block; width: 100%; margin-top: 4px; font-weight: 400; }
.bn-form h3 { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bn-rollen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.bn-rollen .mm-knopf strong { display: block; }
.bn-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 4px 12px; }
.bn-pflicht { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #fdecec; color: var(--dunkelrot); font-size: 11px; font-weight: 700; }
.bn-warnung { margin-top: 8px; }
.bn-zugriff ul { margin: 0; padding-left: 18px; }
.bn-zugriff li { margin-bottom: 6px; }
/* Rechte und Vorlagen (Benutzerformular, Liste, Übersicht) */
.bn-vorlagen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 8px; }
.bn-vorlagen .mm-knopf strong { display: block; }
.bn-vorlagen .mm-knopf:has(input:checked) { border-color: var(--rot); background: #fdecec; }
.bn-gesperrt { opacity: .6; }
.bn-rechte { width: 100%; font-size: 14px; }
.bn-rechte th, .bn-rechte td { padding: 5px 8px; text-align: left; vertical-align: middle; }
.bn-rechte thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.bn-rechte .bn-bereich th { padding-top: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.bn-rechte select { width: auto; margin: 0; padding: 4px 6px; font-size: 13px; }
.bn-rechte .bn-aus-vorlage { width: 70px; text-align: center; font-weight: 700; color: var(--dunkelrot); }
.bn-rechte tr.bn-zusatz td { background: #eef8f1; }
.bn-rechte tr.bn-entzug td { background: #fdf0e7; }
.bn-rechte tr.bn-entzug td:first-child { text-decoration: line-through; }
.bn-abw-zusatz { color: #1e6b3a; }
.bn-abw-entzug { color: #9a4a00; }
a.tag.bn-abw-zusatz { background: #e9f7ef; }
a.tag.bn-abw-entzug { background: #fdf0e7; text-decoration: line-through; }
.tag.bn-tag-admin { background: var(--dunkelrot); color: #fff; }
.bn-kopf-links { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bn-filter select { width: auto; margin: 0; }
.bn-wer td { vertical-align: top; }
.bn-wer .bn-wer-recht { width: 38%; }
.bn-wer .tag { text-decoration: none; margin: 0 3px 4px 0; display: inline-block; }
form.inline { display: inline; }
.vl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.vl-karte { margin: 0; }
.vl-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vl-kopf h2 { margin: 0 0 6px; }
.vl-kopf h2 a { color: inherit; text-decoration: none; }
.vl-karte ul { margin: 8px 0; }
.vl-karte li { margin-bottom: 3px; }
.konto-rechte { margin: 10px 0; }
.konto-rechte summary { cursor: pointer; color: var(--dunkelrot); font-weight: 600; }
@media (max-width: 640px) {
    .bn-kopf { flex-wrap: wrap; }
    .bn-rechte thead { display: none; }
    .bn-rechte tr:not(.bn-bereich) { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 6px 0; border-bottom: 1px solid var(--line); }
    .bn-rechte tr:not(.bn-bereich) td:first-child { grid-column: 1 / -1; padding-bottom: 0; }
    .bn-rechte .bn-aus-vorlage { text-align: left; width: auto; }
    .bn-wer .bn-wer-recht { width: auto; }
}

/* Systemstatus (Admins) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sy-kopf { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 18px 20px; border-radius: 12px; border: 1px solid; border-left-width: 6px; background: #fff; }
.sy-kopf h2 { margin: 0 0 2px; font-size: 20px; color: inherit; }
.sy-kopf p { margin: 0; color: var(--muted); font-size: 14px; }
.sy-kopf > div { flex: 1; min-width: 0; }
.sy-kopf-symbol { display: inline-flex; flex: none; }
.sy-kopf-ok { border-color: #a9dfbf; border-left-color: #1e9e4a; background: #f2fbf5; color: #1e6b3a; }
.sy-kopf-warn { border-color: #f2d37a; border-left-color: #e0a100; background: #fffaeb; color: #7a5200; }
.sy-kopf-fehler { border-color: #f1aaa5; border-left-color: var(--rot); background: #fdf0ef; color: var(--dunkelrot); }
.sy-sprung { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.sy-sprung a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; font-size: 14px; }
.sy-sprung a:hover { border-color: var(--rot); color: var(--text); }
.sy-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 0 18px; align-items: start; }
.sy-abschnitt { scroll-margin-top: 70px; }
.sy-abschnitt h2 { display: flex; align-items: center; gap: 9px; }
.sy-abschnitt h2 .icon { color: var(--rot); }
.sy-ampel { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: #9aa1a9; box-shadow: 0 0 0 3px #eef0f2; }
.sy-ok .sy-ampel, .sy-ampel.sy-ok { background: #1e9e4a; box-shadow: 0 0 0 3px #e3f5ea; }
.sy-warn .sy-ampel, .sy-ampel.sy-warn { background: #e0a100; box-shadow: 0 0 0 3px #fff3cf; }
.sy-fehler .sy-ampel, .sy-ampel.sy-fehler { background: var(--rot); box-shadow: 0 0 0 3px #fde0df; }
.sy-liste { list-style: none; margin: 0; padding: 0; }
.sy-liste li { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(0, auto); grid-template-areas: "ampel name wert" ". hinweis hinweis"; gap: 2px 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sy-liste li:last-child { border-bottom: 0; }
.sy-liste .sy-ampel { grid-area: ampel; align-self: center; }
.sy-name { grid-area: name; font-weight: 600; font-size: 15px; }
.sy-name a { color: var(--text); text-decoration: none; }
.sy-name a:hover { color: var(--rot); text-decoration: underline; }
.sy-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.sy-wert { grid-area: wert; max-width: 32ch; text-align: right; font-size: 14px; }
.sy-fehler .sy-wert { color: var(--dunkelrot); font-weight: 600; }
.sy-warn .sy-wert { color: #7a5200; font-weight: 600; }
.sy-hinweis { grid-area: hinweis; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.sy-platte { display: block; width: 100%; height: 10px; margin: 0 0 6px; border-radius: 5px; overflow: hidden; }
.sy-platte-frei { fill: #e9ecef; }
.sy-platte-belegt { fill: #8a8f98; }
.sy-platte-belegt.voll { fill: var(--rot); }
.sy-details { margin-top: 10px; }
.sy-details summary { cursor: pointer; color: var(--dunkelrot); }
.sy-punkt-details { grid-column: 2 / -1; margin-top: 4px; font-size: 13px; }
.sy-ordner { list-style: none; margin: 8px 0 0; padding: 0; }
.sy-ordner li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.sy-ordner li > span:first-child { min-width: 0; }
.sy-ordner small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.sy-ordner-groesse { flex: none; text-align: right; }
.sy-ordner li.sy-fehler strong, .sy-ordner li.sy-fehler .sy-ordner-groesse { color: var(--dunkelrot); }
.sy-log { max-height: 320px; overflow: auto; margin: 8px 0 0; padding: 10px 12px; background: #1d1d1d; color: #f2f2f2; border-radius: 8px; font: 12px/1.5 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Posteingang: Reiter, Einsätze als Karten mit klaren Aktionen */
.pi-kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin: 0 0 12px; }
.pi-kopf p { margin: 0; font-size: 16px; }
.pi-rot { color: var(--rot); font-weight: 600; }
.pi-hilfe summary { cursor: pointer; color: var(--dunkelrot); font-size: 14px; }
.pi-hilfe[open] { flex-basis: 100%; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.pi-hilfe ol { margin: 8px 0 4px; padding-left: 20px; }
.pi-hilfe li { margin-bottom: 4px; }
.pi-kopf-text { margin: 0 0 12px; color: var(--muted); }
.pi-leer { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 14px 16px; border-radius: 10px; background: #eef8f1; color: #1e6b3a; }
.pi-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pi-karte { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-left: 5px solid #c3c7cd; border-radius: 12px; }
.pi-karte.ueberfaellig { border-left-color: var(--rot); background: #fffafa; }
.pi-karte.erledigt { border-left-color: #a9dfbf; }
.pi-karte.pi-anfrage { border-left-color: #2563eb; }
.pi-karte.pi-klaerung { border-left-color: #d98e04; }
.pi-inhalt { flex: 1 1 320px; min-width: 0; }
.pi-titel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.pi-titel a { color: var(--text); text-decoration: none; }
.pi-titel a:hover { color: var(--rot); text-decoration: underline; }
.pi-meta { margin-top: 3px; color: var(--muted); font-size: 14px; }
.pi-meta strong { color: var(--text); font-weight: 600; }
.pi-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pi-aktionen form { margin: 0; }
.pi-mehr summary { list-style: none; cursor: pointer; padding: 8px 4px; color: var(--dunkelrot); text-decoration: underline; }
.pi-mehr summary::-webkit-details-marker { display: none; }
.pi-mehr[open] { flex-basis: 100%; }
.pi-mehr form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pi-mehr form input[type=text] { flex: 1 1 260px; min-width: 0; }
.pi-mehr-knopf summary { display: inline-block; padding: 8px 16px; border: 1px solid var(--rot); border-radius: 6px; background: #fff; color: var(--rot); text-decoration: none; }
.pi-mehr-knopf summary:hover { background: #fdecec; }
.pi-mehr-knopf[open] summary { background: #fdecec; }
.pi-liste.kompakt .pi-karte { padding: 10px 14px; }
.pi-liste.kompakt .pi-titel { font-size: 15px; }
.pi-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; background: #f2f2f2; color: var(--text); font-size: 12px; font-weight: 600; }
.pi-inhalt > .pi-chip { margin-bottom: 4px; }
.pi-chip-anfrage { background: #e8f0fe; color: #1d4ed8; }
.pi-chip-klaerung { background: #fff6dd; color: #9a6700; }
.pi-erledigt { margin-top: 16px; }
.pi-erledigt > summary { cursor: pointer; padding: 6px 0; color: var(--dunkelrot); }
.pi-erledigt .pi-liste { margin-top: 8px; }
.pi-zahlen { margin-bottom: 18px; }

/* ===== Handy, Tablet und schmale Fenster ===== */
.menue-toggle, .menue-konto, .filter-knopf, .diagramm-schmal, .zurueck-knopf { display: none; }
main { overflow-wrap: break-word; }
/* Jede Tabelle liegt in einem Rahmen (app.js), der sich seitlich wischen lässt, falls sie zu breit ist */
.tabelle-rahmen { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabelle-rahmen > table { min-width: 100%; }

/* Listen-Tabellen als Karten: app.js setzt „karten“ auf dem Handy und überall dort, wo die Tabelle nicht in die Breite passt */
table.karten, table.karten > tbody, table.karten > tbody > tr, table.karten > tbody > tr > td, table.karten > tbody > tr > th { display: block; }
table.karten { background: none; }
table.karten > thead { display: none; }
table.karten > tbody > tr { position: relative; margin: 0 0 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table.karten > tbody > tr:has(a[href]) { cursor: pointer; }
.card table.karten > tbody > tr { background: #fcfcfc; }
table.karten > tbody > tr > td, table.karten > tbody > tr > th { display: flow-root; width: auto !important; padding: 4px 0 4px 112px; border: 0; text-align: left; white-space: normal; overflow-wrap: anywhere; background: transparent; box-shadow: none; }
table.karten > tbody > tr > td::before, table.karten > tbody > tr > th::before { content: attr(data-label); float: left; width: 104px; margin-left: -112px; padding-top: 2px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; text-transform: none; letter-spacing: 0; overflow-wrap: normal; }
/* erste Zelle als Kopf der Karte, Zellen ohne Spaltennamen ohne Beschriftung */
table.karten > tbody > tr > td:first-child, table.karten > tbody > tr > td[data-label=""], table.karten > tbody > tr > td:not([data-label]) { padding-left: 0; }
table.karten > tbody > tr > td:first-child::before, table.karten > tbody > tr > td[data-label=""]::before, table.karten > tbody > tr > td:not([data-label])::before { content: none; }
table.karten > tbody > tr > td:first-child:not(:only-child) { margin-bottom: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
table.karten > tbody > tr > td.zelle-leer { display: none; }
table.karten > tbody > tr > td.actions { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
table.karten > tbody > tr > td.actions::before { content: none; }
table.karten tr.row-inactive { background: #fafafa; }
table.karten tr.laufend, table.karten tr.row-changed { background: #fff8e1; border-color: #f2d37a; }
table.karten tr.pe-ueberfaellig { border-left: 4px solid var(--rot); }
table.karten tr:has(> td.typ-zelle) { border-left: 5px solid var(--typ, #6b7280); }
table.karten tr:has(> td.typ-sperrung) { --typ: #c2410c; }
table.karten tr:has(> td.typ-teilsperrung) { --typ: #ea580c; }
table.karten tr:has(> td.typ-behinderung) { --typ: #d97706; }
table.karten tr:has(> td.typ-veranstaltung) { --typ: #2563eb; }
table.karten tr:has(> td.typ-taktik) { --typ: #15803d; }

/* Hauptmenü hinter dem Knopf „Menü“: klappt unter der Kopfzeile über die ganze Breite auf, Gruppen als Akkordeon */
@media (max-width: 860px) {
    .topbar { gap: 10px; padding: 0 8px 0 14px; }
    .topbar::before { width: 220px; }
    .topbar .brand > span:last-child { display: inline; }
    .menue-toggle { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 12px; border: 0; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; font-size: 15px; font-weight: 600; }
    .menue-toggle:hover, body.menue-offen .menue-toggle { background: rgba(255,255,255,.28); border: 0; }
    .menue-toggle .nav-zahl { margin-left: 0; }
    /* Zurück-Knopf nur im App-Modus (vom Startbildschirm geöffnet, ohne Browser-Leiste; app.js) */
    .zurueck-knopf:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; min-height: 36px; margin-left: -4px; padding: 0; border: 0; border-radius: 8px; background: rgba(255,255,255,.16); color: #fff; }
    .zurueck-knopf:hover { background: rgba(255,255,255,.28); border: 0; }
    .topbar .userbox { display: none; }
    .topbar .hauptmenue { display: none; position: fixed; top: 52px; left: 0; right: 0; bottom: 0; z-index: 1150; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 12px 28px; background: #fff; color: var(--text); overflow-y: auto; overscroll-behavior: contain; box-shadow: inset 0 6px 8px -6px rgba(0,0,0,.25); }
    body.menue-offen { overflow: hidden; }
    body.menue-offen .topbar .hauptmenue { display: flex; }
    .topbar .hauptmenue > a, .topbar .menu-knopf { display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 12px; border-radius: 8px; color: var(--text); opacity: 1; font-size: 16px; font-weight: 600; white-space: normal; }
    .topbar .hauptmenue > a + a, .topbar .hauptmenue > * + .menu-gruppe, .topbar .menu-gruppe + a { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
    .topbar .hauptmenue > a:hover, .topbar .menu-knopf:hover, .menu-gruppe.offen .menu-knopf { background: #f6f6f6; color: var(--text); }
    .topbar .hauptmenue > a.active, .menu-gruppe.active .menu-knopf, .menu-gruppe.active.offen .menu-knopf { background: #fdecec; color: var(--dunkelrot); }
    .menu-knopf .menu-pfeil { margin-left: auto; width: 14px; height: 14px; }
    .hauptmenue .nav-zahl { background: var(--rot); color: #fff; }
    .menu-liste { position: static; padding: 2px 0 10px; }
    .menu-karte { min-width: 0; margin-left: 14px; padding: 0 0 0 8px; border-left: 3px solid #f3c2c4; border-radius: 0; box-shadow: none; background: none; }
    .topbar .menu-karte a { padding: 10px; }
    .topbar .menu-karte a strong { font-size: 15px; }
    .menue-konto { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 12px 0; border-top: 1px solid var(--line); }
    .menue-konto strong, .menue-konto small { display: block; }
    .menue-konto small { color: var(--muted); font-size: 13px; }
}

/* Handy */
@media (max-width: 700px) {
    :root { --rand: 12px; }
    body { background-size: max(100vw, 220vh) auto; }
    main { padding: 14px var(--rand) 36px; }
    h1 { margin-bottom: 14px; font-size: 21px; overflow-wrap: anywhere; }
    h2 { font-size: 15px; }
    .card { padding: 14px; }
    .testbetrieb { padding: 5px 12px; font-size: 12px; }
    .columns { gap: 18px; }
    .tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
    .tile { padding: 12px 14px; }
    .tile strong { font-size: 24px; }
    .facts { grid-template-columns: 1fr; gap: 0; }
    .facts dt { margin-top: 8px; }
    .diagramm-breit { display: none; }
    .diagramm-schmal { display: block; }
    .foto-raster { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

    /* Eingabefelder: 16px verhindert das automatische Hineinzoomen auf dem iPhone */
    input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=url], select, textarea { font-size: 16px; max-width: 100%; }
    input.code-input { font-size: 24px; }
    .inline-form { gap: 10px; }
    .inline-form > label { flex: 1 1 140px; min-width: 0; }
    .inline-form > label:first-of-type { flex-basis: 100%; }
    .inline-form > label.check { flex: 1 1 100%; flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 15px; }
    .inline-form > label input:not([type=checkbox]):not([type=radio]), .inline-form > label select { width: 100%; }
    .inline-form > button, .inline-form > .button { flex: 1 1 auto; }
    /* Suchformulare mit vielen Feldern: weitere Filter aufklappbar (app.js) */
    .filter-knopf { display: block; flex: 1 1 auto; }
    form.filter-klappbar:not(.filter-offen) > label:not(:first-of-type) { display: none; }
    .pair { flex-direction: column; align-items: stretch; }
    .pair > label.narrow-field { flex: none; }
    .form-actions { flex-wrap: wrap; gap: 10px 16px; }
    .settings-save { flex-wrap: wrap; padding: 10px 14px; }
    .actions { gap: 8px 18px; font-size: 15px; }
    .actions button.link { font-size: 15px; }
    button, a.button { min-height: 40px; }
    button.link, button.kopieren, .lp-farbe, .lp-breite, .bs-zeigen, .mm-chips button, .mm-vorschau-bild button { min-height: 0; }

    /* Reiter und Schrittleisten einzeilig zum Wischen statt mehrzeilig */
    .bereich-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .bereich-tabs a { flex: none; padding: 8px 12px; }
    .schritte-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); border-radius: 0; border-left: 0; border-right: 0; }
    .schritte-nav a { flex: none; }
    .status-tabs { gap: 6px; }
    .status-tab { padding: 6px 10px; font-size: 14px; }

    /* Gestapelte Tabellen (data-mobil="stapel"): Zellen untereinander, Aktionen darunter */
    table.stapel, table.stapel > tbody, table.stapel > tbody > tr, table.stapel > tbody > tr > td, table.stapel > tbody > tr > th { display: block; width: auto; }
    table.stapel > thead { display: none; }
    table.stapel > tbody > tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
    table.stapel > tbody > tr:last-child { border-bottom: 0; }
    table.stapel > tbody > tr > td, table.stapel > tbody > tr > th { padding: 2px 0; border: 0; }
    table.stapel .pe-aktionen { justify-content: flex-start; padding-top: 8px; }
    table.stapel tr.pe-ueberfaellig { padding-left: 10px; box-shadow: inset 4px 0 0 var(--rot); }
    table.stapel tr.pe-ueberfaellig td:first-child { box-shadow: none; }
    .pe-inline input[type=text], .pe-inline select { flex: 1 1 180px; min-width: 0; }
    .pe-nicht-meiner form { min-width: 0; }
    /* Kopiertabelle der Einsatzansicht: Bezeichnung über dem Wert, Knopf rechts daneben */
    table.kopier-tabelle > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: start; }
    table.kopier-tabelle th { grid-column: 1; width: auto; padding: 0; }
    table.kopier-tabelle td.wert { grid-column: 1; grid-row: 2; }
    table.kopier-tabelle td.aktion { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: auto; }
    table.verlauf > tbody > tr { display: flex; flex-wrap: wrap; gap: 0 10px; }
    table.verlauf > tbody > tr > td:last-child { flex: 1 1 100%; }

    /* Startseite */
    .start-kopf { padding: 20px 18px; gap: 16px; border-radius: 12px; }
    .start-kopf h1 { font-size: 24px; }
    .start-suche { min-width: 0; width: 100%; }
    .start-schnell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .start-schnell a { gap: 8px; padding: 8px 10px 8px 8px; font-size: 14px; line-height: 1.25; }
    .start-schnell-icon { flex: none; width: 32px; height: 32px; }
    .start-karte { border-radius: 12px; }
    .start-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .start-zahlen.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    /* Mängelmelder: Aktionen über den Reitern, Knopf unter der Meldung */
    .mm-leiste { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
    .mm-leiste-aktionen { order: -1; justify-content: space-between; }
    .mm-liste li { flex-wrap: wrap; padding-right: 0; }
    .mm-liste-link { flex-basis: 100%; }
    .mm-liste-aktion { padding: 0 14px 12px; }

    /* Systemstatus: Wert unter den Namen statt rechtsbündig daneben */
    .sy-kopf { flex-wrap: wrap; gap: 10px 14px; padding: 14px 16px; }
    .sy-kopf h2 { font-size: 18px; }
    .sy-kopf .button { flex: 1 1 100%; text-align: center; }
    .sy-liste li { grid-template-columns: 12px minmax(0, 1fr); grid-template-areas: "ampel name" ". wert" ". hinweis"; }
    .sy-wert { max-width: none; text-align: left; }
    .sy-sprung { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--rand)); margin-right: calc(-1 * var(--rand)); padding: 0 var(--rand) 4px; scrollbar-width: none; }
    .sy-sprung a { flex: none; }

    /* Posteingang: Aktionen unter dem Einsatz über die volle Breite */
    .pi-karte { padding: 12px 14px; gap: 10px; }
    .pi-aktionen { width: 100%; }
    .pi-aktionen > .button, .pi-aktionen > form { flex: 1 1 auto; text-align: center; }
    .pi-aktionen > form:not(.pe-inline) > button { width: 100%; }
    .pi-aktionen > form.pe-inline { flex-basis: 100%; }

    /* Frühbesprechung: Leiste nicht mitlaufen lassen (nimmt sonst ein Drittel des Bildschirms ein) */
    .bs-leiste { position: static; }
    .bs-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .bs-kachel { padding: 10px 12px; }
    .bs-kachel strong { font-size: 22px; }
    table.bs-klein td, table.bs-klein th { padding: 5px 6px; }
    th { font-size: 11px; letter-spacing: 0; }
    td.zahl { width: auto; }
    table.bs-klein td { font-size: 13px; hyphens: auto; }
    /* Mitlaufende Speichern-Leiste schlank halten */
    .schritt-knoepfe { width: 100%; margin-left: 0; }
    .schritt-knoepfe button, .schritt-knoepfe .button { flex: 1 1 auto; text-align: center; }
    .bs-notiz-form input[type=text] { min-width: 0; flex: 1 1 100%; }
}

/* Kleine Handys */
@media (max-width: 420px) {
    :root { --rand: 10px; }
    .card { padding: 12px; }
    table.karten > tbody > tr > td, table.karten > tbody > tr > th { padding-left: 96px; }
    table.karten > tbody > tr > td::before, table.karten > tbody > tr > th::before { width: 90px; margin-left: -96px; }
}

/* Fußzeile mit Versionsnummer und „Was ist neu?“ */
.fuss { max-width: 1280px; margin: 0 auto; padding: 14px 24px 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.fuss a { color: inherit; }
.fuss a:hover, .fuss a[aria-current] { color: var(--text); }
.fuss-neu { margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: var(--rot); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.fuss-neu[hidden] { display: none; }
/* Was ist neu? */
.nw-stand { margin-top: -6px; }
.nw-version h2 small { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.nw-text { margin: 4px 0 10px; }
.nw-gruppe { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 6px; color: var(--muted); }
.nw-gruppe.nw-neu { color: #1e8e3e; }
.nw-gruppe.nw-behoben { color: var(--dunkelrot); }
.nw-liste { margin: 0; padding-left: 20px; }
.nw-liste li { margin: 4px 0; line-height: 1.45; }
.nw-entwicklung .card { border-style: dashed; }
@media (max-width: 700px) {
    .fuss { padding: 12px var(--rand) 20px; }
    .nw-liste { padding-left: 18px; }
}

/* Einsatzansicht: Freigabe und Presse unten nebeneinander */
.einsatz-verwaltung { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 0 18px; align-items: start; }
@media (max-width: 700px) {
    .einsatz-verwaltung { grid-template-columns: 1fr; }
}

/* Startseite: farbige Lage-Kacheln behalten beim Überfahren ihre Farbe */
a.start-zahl.rot:hover { background: #fbdcdc; border-color: #f3b9b9; }
a.start-zahl.gelb:hover { background: #fdeec2; border-color: #f2d37a; }

/* Fahrzeugstatus */
.fz-hinweis { margin-top: -6px; }
.fz-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.fz-filter-knopf { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.fz-filter-knopf strong { font-variant-numeric: tabular-nums; }
.fz-filter-knopf.aktiv { border-color: var(--text); background: var(--text); color: #fff; }
.fz-punkt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fz-raster { column-width: 300px; column-gap: 16px; }
.fz-gruppe { break-inside: avoid; display: inline-block; width: 100%; }
.fz-gruppe h2 small { font-weight: 400; color: var(--muted); font-size: 14px; text-transform: none; letter-spacing: 0; margin-left: 4px; }
.fz-gruppe-zahlen { margin: -4px 0 10px; }
.fz-liste { list-style: none; margin: 0; padding: 0; }
.fz-fahrzeug { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-top: 1px solid var(--line); }
.fz-fahrzeug:first-child { border-top: 0; }
.fz-status { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #fff; }
.fz-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fz-name strong { overflow-wrap: anywhere; }
.fz-grund { color: #5f6368; font-style: italic; }
.fz-ausfall-knopf { align-self: flex-start; font-size: .85em; margin-top: 2px; }
td .fz-ausfall-knopf { display: inline-block; margin-left: 6px; }
.fz-ausfall-dialog label small { font-weight: 400; }
.fz-ausfall-dialog .bs-dialog-knoepfe { flex-wrap: wrap; align-items: center; }
.fz-einsatz-link { font-size: 13px; font-weight: 600; color: var(--rot); }
.fz-frei { background: #1e8e3e; }
.fz-status.fz-einsatz { background: #e8a200; }
.fz-ort { background: var(--rot); }
.fz-transport { background: #1a6fb5; }
.fz-sprechen { background: #7b3fb3; }
.fz-aus { background: #8a9099; }
.fz-sonst { background: #c3c7cc; color: var(--text); }
.fz-text-ort { color: var(--rot); }
@media (max-width: 700px) {
    .fz-raster { columns: 1; }
    .fz-filter-knopf { padding: 6px 10px; font-size: 13px; }
}

/* Fahrzeugstatus: Ansicht umschalten, eigene Gruppen, Bearbeiten */
.fz-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fz-ansicht { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.fz-ansicht-knopf { padding: 8px 16px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.fz-ansicht-knopf + .fz-ansicht-knopf { border-left: 1px solid var(--line); }
.fz-ansicht-knopf.aktiv { background: var(--rot); color: #fff; }
.fz-ansicht-knopf:not(.aktiv):hover { background: #f4f4f4; color: var(--text); }
.fz-trenner { margin: 8px 0 14px; padding-top: 14px; border-top: 2px solid var(--line); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fz-trenner small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.fz-bearbeiten-gruppen td input[type=text] { width: 100%; }
.fz-bearbeiten-gruppen td input[type=number], .fz-bearbeiten-fahrzeuge td input[type=number] { width: 80px; }
.fz-bearbeiten-fahrzeuge select { min-width: 180px; }
.fz-bearbeiten-fahrzeuge tr.fz-zugeordnet td:first-child { border-left: 4px solid var(--rot); }
.fz-bearbeiten-fahrzeuge tr.fz-fehlt { background: #fff8e1; }
.fz-speichern { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; display: flex; gap: 10px; align-items: center; z-index: 2; }
@media (max-width: 700px) {
    .fz-ansicht { width: 100%; }
    .fz-ansicht-knopf { flex: 1; text-align: center; padding: 8px 10px; }
    .fz-bearbeiten-fahrzeuge select { min-width: 0; width: 100%; }
}

/* eigene Gruppen nebeneinander (wenige Karten – Spalten würden sie untereinander stapeln) */
.fz-raster.fz-eigen { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 16px; align-items: start; }

/* Fahrzeugstatus: Illustration aus dem Media Kit */
.fz-bild { flex: 0 0 64px; height: 30px; display: inline-flex; align-items: center; justify-content: center; }
.fz-bild img { max-width: 64px; max-height: 30px; width: auto; height: auto; object-fit: contain; }
.fz-fahrzeug[data-fz-art="aus"] .fz-bild img { filter: grayscale(1); opacity: .55; }

/* Fahrzeug-Illustration klein in Tabellen und Listen (Einsatz, Frühbesprechung, Statistik, Mängel) */
.fz-zelle { white-space: nowrap; }
.fz-mini { display: inline-flex; width: 48px; height: 20px; margin-right: 8px; vertical-align: middle; align-items: center; justify-content: center; }
.fz-mini img { max-width: 48px; max-height: 20px; width: auto; height: auto; }
.fz-aus-dienst .fz-mini img { filter: grayscale(1); opacity: .55; }
.fz-mittel { display: inline-flex; width: 84px; height: 36px; vertical-align: middle; align-items: center; justify-content: center; margin-right: 4px; }
.fz-mittel img { max-width: 84px; max-height: 36px; width: auto; height: auto; }
@media (max-width: 700px) {
    .fz-zelle { white-space: normal; }
}

/* Statistik: Wachbezirke */
.st-unterkopf { font-size: 15px; margin: 18px 0 8px; }
.st-unterkopf small { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }

/* Statistik: Gebiete aus dem GIS-Arbeitsstand (Karte als SVG aus Gebiete::karte) */
.st-gis-hinweis { margin: 0 0 14px; font-size: 13.5px; }
.st-gebiete-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
.st-gebiete-raster .st-unterkopf:first-child { margin-top: 0; }
.st-karte { margin: 0; }
.gk-karte { display: block; width: 100%; height: auto; }
.gk-ha { fill: #d6e6f5; }
.gk-ea { fill: #dcefc9; }
.gk-luecke { fill: #f8d9d6; }
.gk-unklar { fill: #e2e2e2; }
.gk-lz { fill: none; stroke: #4a4a4a; stroke-width: 1.2; stroke-linejoin: round; }
.gk-label, .gk-wert { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; fill: var(--text); }
.gk-label { font-size: 16px; font-weight: 700; }
.gk-wert { font-size: 13px; }
.gk-standort { stroke: #fff; stroke-width: 1.5; }
circle.gk-wache, .gk-punkt.gk-wache { fill: var(--rot); background: var(--rot); }
circle.gk-geraetehaus, .gk-punkt.gk-geraetehaus { fill: #555; background: #555; }
.gk-legende { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.gk-legende span { display: inline-flex; align-items: center; }
.gk-farbe { display: inline-block; flex: none; width: 12px; height: 12px; margin-right: 6px; border: 1px solid rgba(0,0,0,.15); border-radius: 2px; vertical-align: -1px; }
.gk-farbe.gk-ha { background: #d6e6f5; }
.gk-farbe.gk-ea { background: #dcefc9; }
.gk-farbe.gk-luecke { background: #f8d9d6; }
.gk-farbe.gk-unklar, .gk-farbe.gk-ohne { background: #e2e2e2; }
.gk-punkt { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; }
.st-gebiete details.einklappbar { margin-top: 18px; }
.st-gebiete details.einklappbar > summary .st-unterkopf { margin: 0; }
@media (max-width: 860px) {
    .st-gebiete-raster { grid-template-columns: minmax(0, 1fr); }
}

/* Lagekarte (lage.js) */
.lage-kopf { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.lage-kopf p { margin: 0; }
.lage-zahlen { flex: none; display: flex; gap: 10px; }
.lage-kennzahl { flex: none; display: flex; flex-direction: column; min-width: 150px; padding: 10px 14px; border-radius: 10px; background: #eaf5ea; border: 1px solid #b9dfb9; }
.lage-kennzahl strong { font-size: 28px; line-height: 1.1; color: #1e6b2d; }
.lage-kennzahl span { font-size: 13px; font-weight: 600; }
.lage-kennzahl small { margin-top: 4px; font-size: 12px; color: var(--muted); }
.lage-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin-bottom: 10px; }
.lage-filter label { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; }
.lage-filter .lage-schalter { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 6px; }
.lage-filter .lage-schalter label { flex-direction: row; align-items: center; gap: 5px; font-weight: 400; }
.lage-filter [data-lage-anzahl] { padding-bottom: 6px; }
.lage-filter label[hidden] { display: none; }
.lage-raster { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.lage-karte { height: calc(100vh - 230px); min-height: 460px; border-radius: 10px; border: 1px solid var(--line); }
.lage-seite { display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 230px); min-height: 460px; overflow-y: auto; }
.lage-seite .card { margin: 0; }
.lage-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lage-einsatz-titel { font-weight: 700; }
.lage-wache { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lage-wache:last-child { border-bottom: 0; }
.lage-wache-kopf { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.lage-marke { margin-left: auto; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.lage-marke-frei { background: #e3f3e3; color: #1e6b2d; }
.lage-marke-leer { background: #f1f1f1; color: var(--muted); }
.lage-fahrzeuge { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; }
.lage-fz { display: inline-flex; align-items: center; font-size: 13px; }
.lage-fz .fz-status.fz-klein { margin-right: 5px; }
.leaflet-tooltip.lage-lz-label { padding: 0; background: transparent; border: 0; box-shadow: none; font-weight: 700; font-size: 13px; color: #3c3c3c; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.leaflet-tooltip.lage-lz-label::before { display: none; }
.lage-legende { margin-top: 10px; }
.lage-heat { pointer-events: none; }
.gk-farbe.lage-f-frei { background: rgba(102,187,106,.35); border-color: #2e7d32; }
.gk-farbe.lage-f-heat { width: 42px; background: linear-gradient(90deg, #fee5d9, #fcae91, #fb6a4a, #de2d26, #a50f15); }
.gk-punkt.lage-p-brand { background: #d9480f; }
.gk-punkt.lage-p-th { background: #1a6fb5; }
.gk-punkt.lage-p-einsatz { background: #E30613; }
.gk-punkt.lage-p-fahrzeug { background: #1e8e3e; }
@media (max-width: 960px) {
    .lage-kopf { flex-direction: column; align-items: stretch; gap: 8px; }
    .lage-zahlen .lage-kennzahl { flex: 1; min-width: 0; }
    .lage-filter > label { flex: 1 1 140px; }
    .lage-filter select, .lage-filter input[type=date] { width: 100%; }
    .lage-raster { grid-template-columns: minmax(0, 1fr); }
    .lage-karte { height: 62vh; min-height: 340px; }
    .lage-seite { max-height: none; min-height: 0; }
}

/* Fahrzeugstatus: Status 1 (frei über Funk) hellgrün, Status 2 (Wache) dunkelgrün */
.fz-status.fz-s1 { background: #8fd18f; color: #0b3d0b; }
/* Frühbesprechung: Liste der BMA-Alarme */
.bs-alarmliste { margin: 4px 0 2px; padding-left: 18px; font-size: 14px; }
.bs-auffaellig .bs-alarmliste li { margin: 2px 0; padding: 0; border: 0; background: none; list-style: disc; }

/* Presse: Rückblick als kompakte Liste, Einsatz-Detailansicht */
.presse-titel { font-weight: 700; color: inherit; text-decoration: none; }
.presse-titel:hover, .presse-titel:focus { color: var(--dunkelrot); text-decoration: underline; }
.presse-rueckblick h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin: 14px 0 4px; }
.presse-rueckblick h3:first-child { margin-top: 0; }
.presse-zeile { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.presse-zeile:hover, .presse-zeile:focus { background: #f6f7f9; }
.presse-zeile:hover strong { color: var(--dunkelrot); }
.presse-zeile .zeit { color: var(--muted); font-variant-numeric: tabular-nums; }
.presse-zeile .text { min-width: 0; }
.presse-zeile .info { text-align: right; white-space: nowrap; }
.presse-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; }
.presse-detail .card { margin-top: 0; margin-bottom: 18px; }
.presse-textfeld { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid #c5cad1; border-radius: 6px; margin: 0 0 8px; }
@media (max-width: 1000px) { .presse-detail { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .presse-zeile { grid-template-columns: 44px minmax(0, 1fr); }
    .presse-zeile .art { display: none; }
    .presse-zeile .info { grid-column: 2; text-align: left; white-space: normal; }
}
/* Presse: ganze Einsatzkarte führt zur Detailansicht */
.presse-einsatz[data-href] { cursor: pointer; transition: box-shadow .15s; }
.presse-einsatz[data-href]:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.presse-einsatz textarea, .presse-einsatz details { cursor: auto; }
.presse-details { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--dunkelrot); white-space: nowrap; }

/* Einsatznummer: EDP-Nummer (vor der Leitstellen-Schnittstelle) grau */
.nr-edp { color: var(--muted); font-size: .92em; }

/* Statistik: Sammelkarte eines Fahrzeugs (kleines Extra) */
.sk-zeile { cursor: pointer; }
.sk-zeile:hover td, .sk-zeile:focus td { background: #fbf1f1; }
.sk-zeile:focus { outline: 2px solid var(--rot); outline-offset: -2px; }
.sk-dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; overflow: visible; }
.sk-dialog::backdrop { background: rgba(20, 8, 8, .72); backdrop-filter: blur(3px); }
.sk-buehne { display: flex; flex-direction: column; align-items: center; gap: 14px; perspective: 900px; padding: 16px; }
.sk-karte { --rahmen: #828282; --rahmen2: #b9b9b9; --glanz-x: 50%; --glanz-y: 30%;
    position: relative; width: min(320px, calc(100vw - 48px)); aspect-ratio: 63 / 88; border-radius: 16px; padding: 9px;
    background: linear-gradient(135deg, var(--rahmen), var(--rahmen2) 45%, var(--rahmen) 70%, var(--rahmen2));
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45); transition: transform .12s ease-out; transform-style: preserve-3d;
    animation: sk-rein .45s cubic-bezier(.2, .9, .3, 1.2); font-family: Bahnschrift, "Segoe UI", system-ui, sans-serif; color: #1d1d1d; }
@keyframes sk-rein { from { transform: rotateY(-90deg) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.sk-legendaer { --rahmen: #b8860b; --rahmen2: #ffe27a; }
.sk-episch { --rahmen: #8e9aa6; --rahmen2: #f2f5f7; }
.sk-selten { --rahmen: #8a4b1f; --rahmen2: #e0a36b; }
.sk-ungewoehnlich { --rahmen: #A01917; --rahmen2: #E30613; }
.sk-innen { position: relative; height: 100%; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
    background: #fff url("img/fahrzeug-element-grau.png") no-repeat right -40px bottom -10px / 190% auto; }
.sk-kopf { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: linear-gradient(90deg, var(--dunkelrot), var(--rot)); color: #fff; }
.sk-rang { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--dunkelrot); font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 3px var(--rahmen); }
.sk-titel { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.sk-titel strong { font-size: 19px; letter-spacing: .02em; overflow-wrap: anywhere; }
.sk-titel span { font-size: 12px; opacity: .9; text-transform: uppercase; letter-spacing: .06em; }
.sk-bild { position: relative; flex: 1 1 auto; min-height: 92px; display: grid; place-items: center; margin: 8px 10px 4px; border-radius: 8px;
    background: radial-gradient(ellipse at 50% 80%, rgba(227, 6, 19, .14), rgba(255, 255, 255, 0) 70%), linear-gradient(#f7f7f7, #ececec); border: 1px solid #e2e2e2; }
.sk-bild img { max-width: 88%; max-height: 108px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.sk-ohne-bild { font-size: 30px; font-weight: 700; color: var(--dunkelrot); opacity: .35; letter-spacing: .04em; }
.sk-seltenheit { position: absolute; right: 6px; bottom: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--rahmen); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sk-werte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px 10px; }
.sk-wert { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 6px; background: rgba(255, 255, 255, .85); border: 1px solid #ececec; }
.sk-wert strong { font-size: 17px; color: var(--dunkelrot); line-height: 1.1; white-space: nowrap; }
.sk-wert strong small { font-size: 10px; color: var(--muted); font-weight: 400; }
.sk-wert span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #555; }
.sk-balken { height: 6px; margin: 4px 12px 0; border-radius: 3px; background: #2f7bcc; overflow: hidden; }
.sk-balken-b { display: block; height: 100%; background: var(--rot); }
.sk-legende { display: flex; justify-content: space-between; margin: 2px 12px 0; font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: .04em; }
.sk-faehigkeiten { display: flex; flex-direction: column; gap: 4px; padding: 6px 10px 4px; }
.sk-faehigkeit { display: flex; flex-direction: column; padding: 5px 8px; border-left: 3px solid var(--rot); background: rgba(255, 255, 255, .9); border-radius: 0 6px 6px 0; line-height: 1.2; }
.sk-faehigkeit strong { font-size: 13px; }
.sk-faehigkeit span { font-size: 11.5px; color: #444; }
.sk-fuss { display: flex; justify-content: space-between; margin-top: auto; padding: 5px 12px; font-size: 10px; color: #fff; background: #1d1d1d; letter-spacing: .04em; }
.sk-glanz { position: absolute; inset: 0; border-radius: 16px; pointer-events: none; mix-blend-mode: soft-light;
    background: radial-gradient(circle at var(--glanz-x) var(--glanz-y), rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 45%); }
.sk-legendaer .sk-glanz { mix-blend-mode: color-dodge; opacity: .55;
    background: radial-gradient(circle at var(--glanz-x) var(--glanz-y), rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 40%),
                linear-gradient(115deg, transparent 20%, rgba(255, 0, 128, .25) 35%, rgba(255, 230, 0, .25) 45%, rgba(0, 255, 200, .25) 55%, transparent 70%); }
.sk-schliessen { background: rgba(255, 255, 255, .92); color: var(--dunkelrot); border: 0; border-radius: 999px; padding: 7px 18px; font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .sk-karte { animation: none; transition: none; } }
/* Fahrzeugstatus: Fahrzeugbild öffnet per Doppelklick/langem Drücken die Sammelkarte (ohne Hinweis – kleines Extra) */
[data-sammelkarte-url] { -webkit-touch-callout: none; user-select: none; }
[data-sammelkarte-url] img { -webkit-user-drag: none; pointer-events: none; }

/* Einsatzansicht (laufender Einsatz): aktueller Fahrzeugstatus vor dem Fahrzeug, Farben wie im Fahrzeugstatus */
.fz-status.fz-klein { width: 24px; height: 24px; border-radius: 6px; font-size: 13px; margin-right: 8px; vertical-align: middle; }
.fz-status.fz-leer { background: transparent; border: 1px dashed #c3c7cc; }

/* Live-Anzeige laufender Einsätze: grüner, pulsierender Punkt mit Uhrzeit der letzten Aktualisierung */
.live-anzeige { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: #e7f6ec; color: #136c2e; font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; vertical-align: middle; }
.live-anzeige small { font-weight: 400; letter-spacing: 0; font-size: 12px; }
.live-punkt { width: 8px; height: 8px; border-radius: 50%; background: #1e8e3e; box-shadow: 0 0 0 0 rgba(30, 142, 62, .6); animation: live-puls 2s infinite; }
@keyframes live-puls { 0% { box-shadow: 0 0 0 0 rgba(30, 142, 62, .55); } 70% { box-shadow: 0 0 0 7px rgba(30, 142, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 142, 62, 0); } }
.live-anzeige.veraltet { background: #eceef1; color: #5f6670; }
.live-anzeige.veraltet .live-punkt { background: #8a9099; animation: none; }
@media (prefers-reduced-motion: reduce) { .live-punkt { animation: none; } }

.start-karte-kopf h2 .live-anzeige { margin-left: 4px; text-transform: none; }
@media (max-width: 480px) { .start-karte-kopf { flex-wrap: wrap; row-gap: 6px; } }
/* Wachbuch */
.wb-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.wb-tage { display: flex; align-items: center; gap: 6px; }
.wb-tage a.button { padding: 7px 12px; }
.wb-datum { margin: 0; }
.wb-datum input[type=date] { font: inherit; padding: 7px 10px; border: 1px solid #c5cad1; border-radius: 6px; }
.wb-werkzeuge { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.wb-werkzeuge a.button { padding: 7px 12px; display: inline-flex; align-items: center; gap: 6px; }
a.fz-filter-knopf { text-decoration: none; }
.wb-titel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; color: var(--text); text-transform: none; font-size: 20px; letter-spacing: 0; margin: 6px 0 14px; }
.wb-titel small { font-size: 14px; font-weight: 400; }
.wb-raster { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1050px) { .wb-raster { grid-template-columns: minmax(0, 1fr); } }
.wb-raster h2 .muted, .wb-raster h2 .sicht { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.wb-unter { font-size: 14px; margin: 14px 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.wb-wache { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: #eef1f5; color: #3b4a5c; white-space: nowrap; }
.wb-w-mitte { background: #e8f0fb; color: #1f4e8c; }
.wb-w-sued { background: #eaf6ee; color: #23683a; }
.wb-w-beide { background: #f3ecfa; color: #5b3a85; }
.wb-eintraege, .wb-liste, .wb-aufgaben, .wb-termine, .wb-einsaetze { list-style: none; margin: 0; padding: 0; }
.wb-eintraege > li { border-left: 3px solid var(--line); padding: 6px 0 8px 12px; margin-bottom: 8px; }
.wb-eintraege > li.wb-k-uebergabe { border-left-color: #e0a800; }
.wb-eintraege > li.wb-k-fuhrpark { border-left-color: #1f4e8c; }
.wb-eintraege > li.wb-j-vorkommnis, .wb-eintraege > li.wb-j-defekt { border-left-color: var(--rot); }
.wb-erledigt { opacity: .6; }
.wb-erledigt .wb-text, .wb-aufgaben .wb-erledigt .wb-aufgabe-text { text-decoration: line-through; }
.wb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; }
.wb-meta .tag { margin: 0; }
.wb-text { margin-top: 4px; overflow-wrap: anywhere; }
.wb-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.wb-aktionen form { margin: 0; }
button.klein { padding: 3px 10px; font-size: 13px; }
.wb-bearbeiten summary { cursor: pointer; color: var(--dunkelrot); font-size: 13px; }
.wb-bearbeiten form { margin-top: 6px; }
.wb-inline { display: inline; margin: 0; }
button.wb-x { font-size: 18px; line-height: 1; text-decoration: none; padding: 0 4px; color: var(--muted); }
button.wb-x:hover { color: var(--rot); }
.wb-liste li, .wb-termine li, .wb-einsaetze li { padding: 5px 0; border-bottom: 1px solid #f0f0f0; overflow-wrap: anywhere; }
.wb-liste li:last-child, .wb-termine li:last-child, .wb-einsaetze li:last-child { border-bottom: 0; }
.wb-termine li.heute { background: #fff8e1; margin: 0 -8px; padding: 5px 8px; border-radius: 6px; }
.wb-aufgaben li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; }
.wb-aufgaben li:last-child { border-bottom: 0; }
.wb-abhaken { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; }
.wb-abhaken input[type=text] { width: 9em; padding: 4px 8px; font-size: 13px; }
.wb-aufgabe-text { flex: 1; min-width: 12em; }
.wb-kasten { width: 22px; height: 22px; flex: none; padding: 0; border: 2px solid #9aa3ad; border-radius: 5px; background: #fff; display: inline-block; position: relative; }
button.wb-kasten:hover { border-color: var(--rot); background: #fdecec; }
.wb-kasten.an { background: #23683a; border-color: #23683a; }
.wb-kasten.an::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wb-neu-eintrag { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.wb-neu-eintrag > summary { cursor: pointer; color: var(--dunkelrot); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.wb-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.wb-form textarea, .wb-form > input[type=text] { width: 100%; box-sizing: border-box; }
.wb-form input[type=time], .wb-form input[type=date] { font: inherit; padding: 7px 10px; border: 1px solid #c5cad1; border-radius: 6px; }
.wb-dateien { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 100%; }
.wb-dateien input { max-width: 100%; }
.wb-anhaenge { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.wb-anhaenge img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.wb-datei { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.wb-arbeiten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 8px 24px; }
.wb-arbeiten-wache .wb-unter { margin-top: 0; }
.wb-bereich { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 8px; align-items: center; margin-bottom: 6px; font-size: 14px; }
.wb-bereich input { width: 100%; box-sizing: border-box; padding: 6px 8px; }
.wb-bereich input + input { grid-column: 2; }
.wb-bereich input[readonly], .wb-kopf-form input[readonly] { background: #f7f7f7; border-color: #e2e2e2; }
.wb-freigabe { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px 10px; margin-bottom: 10px; }
.wb-freigabe.frei { border-color: #a9dfbf; background: #f4fbf7; }
.wb-freigabe .wb-unter { margin-top: 8px; }
.wb-freigabe p { margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wb-freigabe form { margin: 0; }
button.wb-wahl { padding: 3px 12px; background: #fff; color: var(--text); border: 1px solid #c5cad1; font-size: 13px; }
button.wb-wahl.aktiv { background: var(--rot); border-color: var(--rot); color: #fff; }
.wb-kopf-form { display: grid; gap: 6px; margin-top: 8px; }
.wb-kopf-form label { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; }
.wb-kopf-form input { padding: 6px 8px; min-width: 0; }
.wb-kopf-form button { justify-self: start; margin-top: 4px; }
.wb-vertraulich { border-color: #f1aaa5; }
.wb-neu > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.wb-neu .wb-liste { margin-top: 10px; }
.wb-abschluss a { font-weight: 600; }
.wb-regel { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 6px 0 2px; margin: 0; }
.wb-regel > select, .wb-regel > input[name=tag] { width: auto; flex: none; }
.wb-regel > input[name=tag] { width: 4.5em; }
.wb-regel > input[name=text] { flex: 1 1 14em; width: auto; }
.wb-regel-eintrag { border-bottom: 1px solid #f0f0f0; padding-bottom: 4px; }
.wb-zeile { display: grid; grid-template-columns: 10em minmax(10em, 1fr) auto 4.5em auto auto; gap: 6px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f0f0f0; margin: 0; }
.wb-regel.inaktiv, .wb-zeile.inaktiv, .wb-liste-zeile.inaktiv { opacity: .55; }
.wb-regel select, .wb-regel input[type=text] { padding: 6px 8px; min-width: 0; box-sizing: border-box; }
.wb-zeile input[type=text], .wb-zeile select, .wb-liste-zeile input[type=text] { width: 100%; box-sizing: border-box; padding: 6px 8px; min-width: 0; }
.wb-regel label.check, .wb-zeile label.check, .wb-liste-zeile label.check { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.wb-liste-zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 8px; align-items: center; padding: 4px 0; margin: 0; }
.wb-verwaltung-listen { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
@media (max-width: 900px) {
    .wb-zeile { grid-template-columns: 1fr 1fr; }
    .wb-zeile > :nth-child(2) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .wb-werkzeuge { margin-left: 0; }
    .wb-titel { font-size: 18px; }
    .wb-bereich { grid-template-columns: 1fr; }
    .wb-bereich input + input { grid-column: 1; }
    .wb-kopf-form label { grid-template-columns: 1fr; gap: 2px; }
    .wb-abhaken input[type=text] { width: 100%; }
}
.wb-vorschlaege { position: absolute; z-index: 1200; list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid #c5cad1; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.15); max-width: calc(100vw - 24px); max-height: 260px; overflow-y: auto; }
.wb-vorschlaege li { padding: 7px 12px; cursor: pointer; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-vorschlaege li:hover, .wb-vorschlaege li.aktiv { background: #fdecec; color: var(--dunkelrot); }
.wb-offen { font-size: 13px; margin: 6px 0; padding: 6px 10px; background: #fff8e1; border: 1px solid #f2d37a; border-radius: 6px; }
.wb-offen ul { margin: 2px 0 0; padding-left: 18px; }
.wb-offen a { color: var(--text); }
.wb-vollstaendig { color: #23683a; font-size: 13px; }
.wb-unvollstaendig a { color: inherit; }
/* Wachbuch: Bedienung (Sprungleiste, Status, Schnelleintrag, Speichern im Hintergrund) */
.wb-status { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 10px; }
.wb-status-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 14px; font-size: 13px; text-decoration: none; background: #eef1f5; color: #3b4a5c; border: 1px solid transparent; }
.wb-status-chip.offen { background: #fff8e1; border-color: #f2d37a; color: #6b5200; }
.wb-status-chip.frei { background: #eaf6ee; border-color: #a9dfbf; color: #23683a; }
.wb-sprung { position: sticky; top: 52px; z-index: 50; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 0 0 12px; background: var(--bg); scrollbar-width: none; }
.wb-sprung::-webkit-scrollbar { display: none; }
.wb-sprung a { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; font-size: 13.5px; white-space: nowrap; }
.wb-sprung a:hover { border-color: var(--rot); color: var(--rot); }
.wb-sprung a span { font-size: 11.5px; font-weight: 700; background: #eef1f5; border-radius: 9px; padding: 0 6px; }
.wb-sprung a.wb-sprung-neu { background: var(--rot); border-color: var(--rot); color: #fff; }
.card[id], section[id] { scroll-margin-top: 110px; }
.wb-schnell { border-left: 4px solid var(--rot); }
.wb-schnell .wb-form { margin-top: 0; }
.wb-schnell-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.wb-schnell-kopf input[type=time] { font: inherit; padding: 7px 10px; border: 1px solid #c5cad1; border-radius: 6px; }
.wb-mobil-lage { display: none; }
.wb-mobil-lage > summary { cursor: pointer; }
@media (max-width: 1050px) { .wb-mobil-lage { display: block; } .wb-nur-breit { display: none !important; } }
.wb-heute { background: #fff8e1; border: 1px solid #f2d37a; border-radius: 6px; padding: 6px 10px; margin-bottom: 10px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wb-neu > details > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.wb-uebergabe-stand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); }
.wb-verdeckt > summary { cursor: pointer; color: var(--dunkelrot); font-weight: 600; }
.wb-verdeckt[open] > summary { margin-bottom: 8px; }
.wb-weitere { margin: 4px 0 8px; }
.wb-weitere > summary { cursor: pointer; color: var(--dunkelrot); font-size: 14px; margin-bottom: 6px; }
.wb-bereich { grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 1.2em; }
.wb-bereich > input { grid-column: 2; }
.wb-bereich > .wb-gespeichert { grid-column: 3; grid-row: 1; font-weight: 700; font-size: 13px; text-align: center; color: var(--muted); }
.wb-gespeichert.ok { color: #23683a; }
.wb-gespeichert.fehler { color: var(--rot); }
.wb-toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1300; max-width: min(560px, calc(100vw - 24px)); padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); font-size: 14px; background: #1d1d1d; color: #fff; }
.wb-toast-ok { background: #23683a; }
.wb-toast-warn { background: #8a6d00; }
.wb-toast-error { background: var(--dunkelrot); }
@media (max-width: 600px) {
    .wb-bereich { grid-template-columns: minmax(0, 1fr) 1.2em; }
    .wb-bereich > span:first-child { grid-column: 1 / -1; }
    .wb-bereich > input, .wb-bereich input + input { grid-column: 1; }
    .wb-bereich > .wb-gespeichert { grid-column: 2; grid-row: 2; }
    .wb-sprung { margin-left: calc(-1 * var(--rand, 16px)); margin-right: calc(-1 * var(--rand, 16px)); padding-left: var(--rand, 16px); padding-right: var(--rand, 16px); }
}
/* Einsatz: Fahrzeuge und Zeiten */
.zeiten .fz-zeiten-knopf { display: none; }
table.karten.zeiten > tbody > tr > td.fz-zeiten-knopf { display: block; padding: 6px 0 0; }
table.karten.zeiten > tbody > tr:not(.zeiten-offen) > td.fz-zeit { display: none; }
table.karten.zeiten > tfoot td.fz-zeiten-knopf { display: none; }
tr.fz-entzogen { opacity: .5; }
tr.fz-entzogen img { filter: grayscale(1); }
tr.fz-entzogen td { text-decoration: none; }
.zeitstrahl { list-style: none; margin: 0; padding: 0 0 0 4px; }
.zeitstrahl li { position: relative; display: grid; grid-template-columns: 3.4em minmax(0, 1fr); gap: 10px; padding: 4px 8px 4px 18px; border-left: 2px solid var(--line); font-size: 14px; }
.zeitstrahl li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid #9aa3ad; }
.zeitstrahl li time { font-variant-numeric: tabular-nums; color: var(--muted); }
.zeitstrahl li.zs-einsatz::before { border-color: var(--rot); background: var(--rot); }
.zeitstrahl li.zs-s4::before { border-color: #1f4e8c; }
.zeitstrahl li.zs-s1::before, .zeitstrahl li.zs-s2::before { border-color: #23683a; }
.zeitstrahl li.zs-entzogen { color: var(--muted); }
.zeitstrahl li.zs-neuester { background: #fff8e1; border-radius: 0 6px 6px 0; }
.zeitstrahl li.zs-neuester::before { background: #e0a800; border-color: #e0a800; }
.zeitstrahl li.zs-neuester time { color: var(--text); font-weight: 700; }
/* Einsatzverlauf als Zeitstrahl */
.zs-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.zs-filter .fz-filter-knopf strong { font-size: 12px; }
.zs-rahmen[data-zs-ansicht="meldung"] .zs-verlauf li:not(.zs-art-meldung):not(.zs-art-einsatz),
.zs-rahmen[data-zs-ansicht="rueckmeldung"] .zs-verlauf li:not(.zs-art-rueckmeldung):not(.zs-art-einsatz),
.zs-rahmen[data-zs-ansicht="status"] .zs-verlauf li:not(.zs-art-status):not(.zs-art-einsatz) { display: none; }
.zs-verlauf li { align-items: start; }
.zs-verlauf .zs-typ { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 0 7px; border-radius: 9px; background: #eef1f5; color: #3b4a5c; margin-right: 2px; }
.zs-verlauf li.zs-art-rueckmeldung .zs-typ { background: #e8f0fb; color: #1f4e8c; }
.zs-verlauf li.zs-art-rueckmeldung::before { border-color: #1f4e8c; background: #e8f0fb; }
.zs-verlauf li.zs-art-status { color: #555; font-size: 13.5px; }
.zs-verlauf li.zs-art-status .zs-typ { background: #f3f3f3; color: var(--muted); }
.zs-verlauf li.zs-art-status::before { width: 8px; height: 8px; left: -5px; top: 11px; }
.zs-verlauf li.zs-art-meldung::before { border-color: #6b7280; }
.zs-verlauf li span { overflow-wrap: anywhere; }
.zs-verlauf li.zs-art-rueckmeldung { background: #f3f7fd; border-radius: 0 6px 6px 0; }
.zs-verlauf li.zs-art-rueckmeldung.zs-neuester { background: #fff8e1; }
/* Einklappbare Karte (Einsatzdaten) */
details.einklappbar > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.einklappbar > summary::-webkit-details-marker { display: none; }
details.einklappbar > summary h2 { margin: 0; }
details.einklappbar > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--dunkelrot); border-bottom: 2px solid var(--dunkelrot); transform: rotate(45deg); margin: -4px 0 0 4px; transition: transform .15s; }
details.einklappbar:not([open]) > summary::after { transform: rotate(-45deg); margin-top: 0; }
details.einklappbar[open] > summary { margin-bottom: 12px; }
/* Zeitstrahl: neue Einträge ploppen auf */
@keyframes zs-ploppen {
    0% { transform: scale(.96) translateY(-8px); opacity: 0; background: #ffe08a; }
    12% { transform: scale(1.02); opacity: 1; background: #ffe08a; box-shadow: 0 4px 14px rgba(224,168,0,.45); }
    25% { transform: scale(1); }
    100% { background: #fff8e1; box-shadow: none; }
}
.zs-verlauf li.zs-ploppt { animation: zs-ploppen 6s ease-out; border-radius: 0 6px 6px 0; }
.zs-verlauf li.zs-ploppt::before { background: #e0a800; border-color: #e0a800; box-shadow: 0 0 0 4px rgba(224,168,0,.3); }
@media (prefers-reduced-motion: reduce) { .zs-verlauf li.zs-ploppt { animation: none; background: #ffe08a; } }
/* Posteingang rechts beim angemeldeten Benutzer (im Handy-Menü weiterhin als Eintrag) */
.topbar .hauptmenue > a.menue-nur-mobil { display: none; }
.userbox-post { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; color: #fff; opacity: .92; font-weight: 600; }
.userbox-post:hover, .userbox-post.active { background: rgba(255,255,255,.16); opacity: 1; color: #fff; }
.userbox-post .nav-zahl { margin-left: 0; }
@media (max-width: 1180px) { .userbox-post > span:not(.nav-zahl) { display: none; } }
@media (max-width: 860px) { .topbar .hauptmenue > a.menue-nur-mobil { display: flex; } }
/* Übersicht: Karte Wachbuch */
.start-wachbuch-wachen { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.start-wachbuch-wachen a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.start-wachbuch-wachen a:hover { border-color: var(--rot); }
.start-wachbuch-termine { margin-top: 10px; }
.start-wachbuch-termine li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff8e1; border-radius: 6px; font-size: 14px; }
/* Demo-Modus */
.demo-kennung { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 10px; background: #fff; color: var(--rot); font-size: 12px; font-weight: 800; letter-spacing: .08em; }

/* Zeitkontrolle: Zeiten je Quelle mit Kürzel (EDP, Leitstelle, DIVERA) */
.zk-zeiten { display: grid; grid-template-columns: auto auto; gap: 2px 6px; align-items: center; justify-content: start; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zk-q { display: inline-block; min-width: 30px; padding: 1px 4px; border-radius: 3px; font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; text-align: center; color: #fff; }
.zk-edp { background: #3a3f44; }
.zk-ls { background: #1a6fb5; }
.zk-div { background: #7b3fb3; }
.zk-ab { color: var(--dunkelrot); font-weight: 700; }
.zk-leer { color: var(--muted); }
.zk-legende { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--muted); }
.zk-legende .zk-q { margin-left: 8px; }
.zk-legende .zk-q:first-child { margin-left: 0; }
.zk-tabelle td { vertical-align: top; }
/* Mein Konto und „Wer ist wo?“ */
.topbar .userbox-name { color: #fff; text-decoration: none; }
.topbar .userbox-name:hover, .topbar .userbox-name.active { text-decoration: underline; color: #fff; }
.topbar nav a.menue-konto-link, .topbar nav a.menue-konto-link.active, .topbar nav a.menue-konto-link:hover { flex: 1; min-width: 0; padding: 4px 0; background: none; color: var(--text); opacity: 1; text-decoration: none; }
.topbar nav a.menue-konto-link:hover strong, .topbar nav a.menue-konto-link.active strong { color: var(--rot); }
.konto-daten { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 10px; }
.konto-daten dt { color: var(--muted); font-size: 13px; }
.konto-daten dd { margin: 0; overflow-wrap: anywhere; }

.start-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.start-status-titel { font-size: 14px; opacity: .92; }
.start-status-titel small { opacity: .85; }
.start-status-wahl { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.start-status-knopf { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff; font-size: 14px; }
.start-status-knopf:hover { background: rgba(255,255,255,.3); border-color: #fff; }
.start-status-knopf.aktiv, .start-status-knopf.aktiv:hover { background: #fff; color: var(--dunkelrot); border-color: #fff; font-weight: 700; }
.start-status-knopf:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.ps-wahl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ps-wahl .mm-knopf { min-height: 48px; justify-content: center; text-align: center; }
@media (max-width: 700px) { .ps-wahl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ps-speichern { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 6px 0 0; }
.ps-suche { display: flex; align-items: center; gap: 8px; max-width: 440px; margin: 0 0 6px; padding: 2px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.ps-suche:focus-within { border-color: var(--rot); }
.ps-suche input { flex: 1; min-width: 0; border: 0; padding: 9px 4px; font: inherit; background: transparent; color: var(--text); }
.ps-suche input:focus { outline: none; }
.ps-raster { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 12px; }
@media (max-width: 1100px) { .ps-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ps-raster { grid-template-columns: minmax(0, 1fr); } }
.ps-spalte { border-top: 4px solid var(--rot); }
.ps-mobil { border-top-color: #2b7bb9; }
.ps-weg { border-top-color: var(--grau); }
.ps-liste { list-style: none; margin: 0; padding: 0; }
.ps-person { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ps-person:last-child { border-bottom: 0; }
.ps-person[hidden] { display: none; }
.ps-name small { font-size: 12px; }
.ps-abteilung { display: block; }
.ps-zeile { font-size: 13px; color: var(--muted); }
.ps-zeile em { font-style: normal; color: var(--dunkelrot); }
.ps-person.veraltet .ps-name strong { color: var(--muted); }
.ps-notiz { font-size: 13px; }
.ps-nummern { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 2px; }
.ps-nummern a { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; font-size: 14px; text-decoration: none; }
.ps-nummern a:hover span { text-decoration: underline; }
.ps-ohne summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; cursor: pointer; }
.ps-ohne summary h2 { display: inline; margin: 0; }
.ps-liste-breit { columns: 3 260px; column-gap: 28px; margin-top: 12px; }
.ps-liste-breit .ps-person { break-inside: avoid; }
.ps-kompakt .ps-person { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.ps-kompakt .ps-nummern { flex-wrap: nowrap; gap: 2px; margin: 0; }
.ps-kompakt .ps-nummern a { padding: 6px; border-radius: 8px; }
.ps-kompakt .ps-nummern a:hover { background: #fdecec; }
.ps-felder:has([data-ps-bis][hidden]) { grid-template-columns: minmax(0, 1fr); }
.ps-felder input { width: 100%; box-sizing: border-box; }
