:root {
  --rot: #b3121a;
  --rot-dunkel: #8a0d13;
  --bg: #f2f1ef;
  --card: #ffffff;
  --text: #1c1b1a;
  --muted: #6b6762;
  --line: #dedbd6;
  --focus: #1d5fd1;
  --k-lage: #1d5fd1;
  --k-meldung: #1d8a4a;
  --k-auftrag: #b3121a;
  --k-funk: #6b6762;
  --k-nachf: #c76a00;
  --k-info: #7a4fc2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
h2 { font-size: 1.35rem; margin: 0; }
h3 { font-size: 1.05rem; margin: 0 0 .75rem; }
[hidden] { display: none !important; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--rot); color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 34px; height: 34px; border-radius: 7px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); flex: none; }
.brand-title { font-weight: 600; font-size: 1.05rem; line-height: 1.1; letter-spacing: .01em; }
.brand-title b { font-weight: 900; }
.brand-sub { font-weight: 500; font-size: .72rem; opacity: .8; letter-spacing: .04em; text-transform: uppercase; margin-left: 2px; }
.brand-org { font-size: .8rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.einsatz-select { flex: 1; min-width: 0; display: flex; justify-content: center; }
.einsatz-select select {
  width: 100%; max-width: 520px; padding: 8px 10px; border-radius: 8px; border: 0;
  font: inherit; font-weight: 600; background: rgba(255,255,255,.95); color: var(--text);
}
.top-meta { display: flex; align-items: center; gap: 10px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.1rem; letter-spacing: .02em; }
.user-btn {
  background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; max-width: 160px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.conn { width: 12px; height: 12px; border-radius: 50%; background: #f5c400; box-shadow: 0 0 0 2px rgba(255,255,255,.6); flex: none; }
.conn.ok { background: #3ddc84; }
.conn.err { background: #222; }

.tabs {
  display: flex; gap: 2px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs button {
  border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted);
  padding: 12px 14px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap;
}
.tabs button.active { color: var(--rot); border-bottom-color: var(--rot); }

main { padding: 16px; max-width: 1500px; margin: 0 auto; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* ---------- Elemente ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card.narrow { max-width: 640px; margin-bottom: 16px; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
input, textarea, select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 1rem; color: var(--text); background: #fff;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  padding: 9px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; min-height: 42px;
}
.btn:hover { background: #f7f6f4; }
.btn.primary { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn.primary:hover { background: var(--rot-dunkel); }
.btn.danger { background: #fff; border-color: var(--rot); color: var(--rot); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: .85rem; }
.btn.big { width: 100%; min-height: 52px; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: default; }
.hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
.check { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text); }
.check input { width: auto; margin: 0; width: 20px; height: 20px; }

.empty-state { text-align: center; padding: 60px 16px; max-width: 420px; margin: 0 auto; }
.empty-state p { color: var(--muted); }

/* ---------- Einsatzkopf ---------- */
.einsatz-kopf {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px;
  background: var(--card); border-left: 6px solid var(--rot); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 16px;
}
.einsatz-kopf .titel { font-size: 1.2rem; font-weight: 700; }
.einsatz-kopf .alarmstufe { background: var(--rot); color: #fff; border-radius: 6px; padding: 1px 8px; font-weight: 700; margin-left: 6px; font-size: .95rem; }
.einsatz-kopf .meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: .9rem; }
.einsatz-kopf .meta b { color: var(--text); font-weight: 600; }
.einsatz-kopf .dauer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.einsatz-kopf .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.status-badge { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; }
.status-badge.aktiv { background: #ffe2e3; color: var(--rot); }
.status-badge.abgeschlossen { background: #e6e4e0; color: var(--muted); }

/* ---------- Tagebuch ---------- */
.tb-grid { display: grid; grid-template-columns: minmax(320px, 420px) 1fr; gap: 16px; align-items: start; }
.entry-form { position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; }
.kat-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.kat {
  --c: var(--muted);
  border: 2px solid var(--c); color: var(--c); background: #fff; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; min-height: 38px;
}
.kat[aria-checked="true"] { background: var(--c); color: #fff; }
.vorlagen { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.vorlagen button {
  border: 1px dashed var(--line); background: #faf9f7; border-radius: 6px; padding: 4px 8px;
  font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer;
}
.fz-pick { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 12px; }
.fz-pick summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.fz-pick .count { background: var(--rot); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .78rem; margin-left: 4px; }
.fz-pick .count:empty { display: none; }
.fz-pick input[type=search] { margin: 8px 0; }
.fz-chips { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.fz-group-title { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fz-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px;
  font: inherit; font-size: .85rem; cursor: pointer; min-height: 34px;
}
.chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.foto-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.foto-btn { margin: 0; color: var(--text); font-size: .95rem; }
.foto-previews { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.foto-previews:empty { display: none; }
.foto-prev { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: #ddd; }
.foto-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-prev .x { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: .8rem; }
.foto-prev .lade { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.7); font-size: .75rem; font-weight: 700; }
.zeit-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.zeit-row input[type=datetime-local] { width: auto; flex: 1; margin: 0; }

.list-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.list-tools input { margin: 0; flex: 1; }
.list-tools select { margin: 0; width: auto; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry {
  --c: var(--muted);
  display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px;
  padding: 12px 4px 12px 0; border-bottom: 1px solid var(--line);
}
.entry:last-child { border-bottom: 0; }
.entry .zeit { text-align: right; font-variant-numeric: tabular-nums; }
.entry .zeit .hm { font-weight: 700; font-size: 1.05rem; }
.entry .zeit .nr { display: block; font-size: .75rem; color: var(--muted); }
.entry .zeit .dat { display: block; font-size: .7rem; color: var(--muted); line-height: 1.1; white-space: nowrap; }
.entry .head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.entry .kat-tag { background: var(--c); color: #fff; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; padding: 1px 6px; }
.entry .vonan { font-weight: 600; font-size: .9rem; }
.entry .text { white-space: pre-wrap; word-wrap: break-word; margin-top: 2px; }
.entry .sub { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; align-items: center; }
.entry .fz-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.entry .fz-tag { font-size: .78rem; background: #efedea; border-radius: 4px; padding: 1px 6px; }
.entry .fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.entry .fotos img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; cursor: zoom-in; display: block; }
.entry.system .text { color: var(--muted); font-style: italic; }
.entry.storniert .text, .entry.storniert .vonan { text-decoration: line-through; color: var(--muted); }
.entry .storno-info { color: var(--rot); font-size: .82rem; font-weight: 600; margin-top: 4px; }
.entry .storno-btn { border: 0; background: none; color: var(--muted); font: inherit; font-size: .78rem; text-decoration: underline; cursor: pointer; padding: 0; }
.nachtrag { background: #fff3d6; color: #8a5a00; border-radius: 4px; padding: 0 5px; font-weight: 600; }
.entry.neu { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: #fff3c4; } to { background: transparent; } }
.list-empty { color: var(--muted); text-align: center; padding: 30px; }

.k-Lage { --c: var(--k-lage); } .k-Meldung { --c: var(--k-meldung); } .k-Auftrag { --c: var(--k-auftrag); }
.k-Funk { --c: var(--k-funk); } .k-Nachforderung { --c: var(--k-nachf); } .k-Info { --c: var(--k-info); }

/* ---------- Kräfteübersicht ---------- */
:root {
  --s-alarmiert: #c76a00; --s-ausgerueckt: #1d5fd1; --s-bereitstellung: #7a4fc2;
  --s-einsatzort: #b3121a; --s-abgerueckt: #6b6762; --s-einsatzbereit: #1d8a4a;
  --s-verfuegbar: #0f8a8a; --s-pause: #8a6d3b;
}
.k-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.k-tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; }
.k-tile .v { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.k-tile .l { font-size: .78rem; color: var(--muted); font-weight: 600; }
.k-tile.warn .v { color: var(--k-nachf); }
.k-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.k-group { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; color: var(--muted); }
.k-group select { width: auto; margin: 0; padding: 7px 9px; }
.k-hide { font-size: .9rem; font-weight: 600; }
.k-sec { margin-bottom: 18px; }
.k-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 0 2px 8px; border-bottom: 2px solid var(--line); margin-bottom: 10px; }
.k-sec-head h3 { margin: 0; font-size: 1.05rem; }
.k-sec-head .meta { color: var(--muted); font-size: .88rem; }
.k-sec-head .btn, .k-sec-head .k-btns { margin-left: auto; }
.k-btns { display: inline-flex; gap: 6px; }
.k-sec-head .k-btns .btn { margin: 0; }
.k-sec-head .auftrag { flex-basis: 100%; font-size: .88rem; }
.k-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.k-card { --sc: var(--muted); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; border-left: 6px solid var(--sc); }
.k-card.done { opacity: .65; }
.k-card .top { display: flex; align-items: flex-start; gap: 8px; }
.k-card .name { font-weight: 800; font-size: 1.08rem; line-height: 1.2; }
.k-card .sub { color: var(--muted); font-size: .82rem; }
.k-card .edit { margin-left: auto; }
.k-card .k-btns { margin-left: auto; }
.k-card .st { display: flex; align-items: center; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.st-pill { background: var(--sc); color: #fff; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 2px 10px; }
.k-card .since { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.k-card .staerke-row { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; margin-bottom: 8px; }
.k-card .staerke-row b { font-variant-numeric: tabular-nums; }
.k-card .missing { color: var(--k-nachf); font-weight: 700; }
.k-card .bem { font-size: .85rem; background: #fff6e5; border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }
.st-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.st-btns button {
  --sc: var(--muted);
  border: 1.5px solid var(--sc); color: var(--sc); background: #fff; border-radius: 7px;
  font: inherit; font-size: .76rem; font-weight: 700; padding: 6px 2px; cursor: pointer; min-height: 36px; line-height: 1.1;
}
.st-btns button[aria-pressed="true"] { background: var(--sc); color: #fff; }
.s-alarmiert, .st-btns .s-alarmiert { --sc: var(--s-alarmiert); } .s-ausgerueckt, .st-btns .s-ausgerueckt { --sc: var(--s-ausgerueckt); } .s-bereitstellung, .st-btns .s-bereitstellung { --sc: var(--s-bereitstellung); }
.s-einsatzort, .st-btns .s-einsatzort { --sc: var(--s-einsatzort); } .s-verfuegbar, .st-btns .s-verfuegbar { --sc: var(--s-verfuegbar); } .s-pause, .st-btns .s-pause { --sc: var(--s-pause); } .s-abgerueckt, .st-btns .s-abgerueckt { --sc: var(--s-abgerueckt); } .s-einsatzbereit, .st-btns .s-einsatzbereit { --sc: var(--s-einsatzbereit); }
.alarm-list { max-height: 45vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 8px; }
.alarm-list .check { font-weight: 500; }
.alarm-list .in { color: var(--muted); font-size: .8rem; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
fieldset.staerke { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 0; margin: 0 0 12px; }
fieldset.staerke legend { font-size: .85rem; font-weight: 700; color: var(--muted); padding: 0 4px; }
.verlauf { font-size: .82rem; color: var(--muted); margin: 4px 0 8px; }
.verlauf table { border-collapse: collapse; }
.verlauf td { padding: 1px 10px 1px 0; }
.dlg-actions.spread { justify-content: space-between; flex-wrap: wrap; }
.danger-text { color: var(--rot); border-color: transparent; }
.link-btn { border: 0; background: none; color: var(--focus); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
.print-only .kraefte-print { margin-top: 6mm; }
.print-only h2 { font-size: 12pt; margin: 6mm 0 2mm; }

/* ---------- Atemschutzüberwachung ---------- */
.ats-banner {
  position: sticky; top: 58px; z-index: 18; background: #ffd400; color: #111; padding: 8px 16px;
  display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ats-banner.rot { background: var(--rot); color: #fff; animation: blink 1s steps(2, start) infinite; }
.ats-banner .a-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 700; }
.ats-banner .a-row span { flex: 1; min-width: 200px; }
.ats-banner .btn { min-height: 34px; padding: 4px 12px; font-size: .85rem; color: var(--text); }
@keyframes blink { 50% { background: #7a0a10; } }
.ats-regel { margin: 0 0 0 auto; }
.ats-hinweis { background: #fff3d6; border-left: 5px solid var(--k-nachf); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-weight: 600; }
.ats-trupps { display: grid; grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); gap: 12px; margin-bottom: 18px; }
.trupp { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; border-left: 6px solid var(--s-ausgerueckt); }
.trupp.rueckzug { border-left-color: var(--k-nachf); }
.trupp.bereit { border-left-color: var(--muted); }
.trupp.vorwarn { box-shadow: 0 0 0 3px #ffd400, var(--shadow); }
.trupp.alarm { box-shadow: 0 0 0 4px var(--rot), var(--shadow); animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px transparent, var(--shadow); } }
.trupp .t-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.trupp .t-name { font-weight: 800; font-size: 1.1rem; }
.trupp .t-sub { color: var(--muted); font-size: .85rem; }
.trupp .t-head .st-pill { margin-left: auto; }
.badge-rt { background: #222; color: #fff; font-size: .7rem; font-weight: 800; border-radius: 4px; padding: 1px 6px; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; }
.t-timer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.t-timer > div { background: #f5f4f2; border-radius: 8px; padding: 6px 10px; }
.t-timer .v { font-size: 1.45rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.t-timer .l { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.t-timer .s { font-size: .75rem; color: var(--muted); }
.t-timer .warn { background: #fff3c4; }
.t-timer .crit { background: var(--rot); color: #fff; }
.t-timer .crit .l, .t-timer .crit .s { color: #ffd9db; }
table.t-m { width: 100%; border-collapse: collapse; font-size: .86rem; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
table.t-m th { text-align: left; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 3px 4px; border-bottom: 1px solid var(--line); }
table.t-m td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
table.t-m td:first-child { line-height: 1.2; }
table.t-m td.krit { color: var(--rot); font-weight: 800; }
table.t-m .ann { color: var(--muted); font-size: .72rem; }
.t-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.t-btns .btn { flex: 1; min-width: 110px; }
.mitglieder { margin-bottom: 4px; }
.m-head, .m-row { display: grid; grid-template-columns: 1fr 120px 90px; gap: 6px; }
.m-head { font-size: .75rem; font-weight: 700; color: var(--muted); }
.m-row { margin-bottom: 6px; }
.m-row input, .m-row select { margin: 0; }
.druck-felder { display: grid; gap: 8px; margin-bottom: 8px; }
.druck-felder label { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 10px; margin: 0; color: var(--text); font-size: 1rem; }
.druck-felder input { font-size: 1.3rem; font-weight: 700; text-align: right; margin: 0; }
.druck-felder .erw { font-size: .78rem; color: var(--muted); font-weight: 500; display: block; }
.abgleich table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.abgleich th { text-align: left; font-size: .72rem; color: var(--muted); text-transform: uppercase; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.abgleich td { padding: 6px; border-bottom: 1px solid var(--line); }
.ok-tag { color: var(--k-meldung); font-weight: 800; } .warn-tag { color: var(--k-nachf); font-weight: 800; }
.beendet-liste { font-size: .9rem; }
.beendet-liste li { margin-bottom: 4px; }

/* ---------- Lagekarte ---------- */
.lage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.lage-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.lage-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; min-height: 34px; }
.lage-tabs button.active { background: var(--text); color: #fff; border-color: var(--text); }
.lage-spacer { flex: 1; }
.small-select { width: auto; margin: 0; padding: 6px 8px; font-size: .9rem; }
.lage-empty { max-width: 640px; }
.lage-main { display: grid; grid-template-columns: 1fr 320px; gap: 10px; }
.lage-map-wrap { position: relative; }
.lage-map { height: calc(100vh - 190px); min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); background: #e8e6e2; }
.lage-map.zeichnen { cursor: crosshair; }
.lage-draw { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 500; background: #fff; border-radius: 999px; box-shadow: 0 2px 12px rgba(0,0,0,.25); padding: 6px 8px 6px 16px; display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.lage-staerke { position: absolute; left: 10px; bottom: 24px; z-index: 450; background: rgba(255,255,255,.95); border: 1.5px solid #222; font-size: .78rem; max-height: 50%; overflow: auto; }
.lage-staerke table { border-collapse: collapse; }
.lage-staerke th, .lage-staerke td { border: 1px solid #555; padding: 2px 6px; text-align: left; white-space: nowrap; }
.lage-staerke th { background: #eee; }
.lage-side { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 190px); min-height: 420px; overflow: hidden; }
.lage-side-tabs { display: flex; border-bottom: 1px solid var(--line); }
.lage-side-tabs button { flex: 1; border: 0; background: none; font: inherit; font-weight: 700; font-size: .85rem; color: var(--muted); padding: 10px 4px; border-bottom: 3px solid transparent; cursor: pointer; }
.lage-side-tabs button.active { color: var(--rot); border-bottom-color: var(--rot); }
.lage-side-body { flex: 1; overflow-y: auto; padding: 10px; }
.lage-side-body input[type=search] { margin: 0 0 8px; }
.pal-kat { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 0 6px; }
.pal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pal-item { border: 1.5px solid transparent; background: #faf9f7; border-radius: 8px; padding: 6px 2px; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 54px; }
.pal-item:hover { border-color: var(--line); }
.pal-item[aria-pressed="true"] { border-color: var(--rot); background: #fff0f0; }
.pal-item svg { max-width: 100%; }
.pal-fz { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; cursor: pointer; background: #fff; width: 100%; font: inherit; text-align: left; }
.pal-fz[aria-pressed="true"] { border-color: var(--rot); background: #fff0f0; }
.pal-fz .n { font-weight: 700; font-size: .9rem; }
.pal-fz .s { font-size: .75rem; color: var(--muted); }
.pal-fz .ok { margin-left: auto; font-size: .75rem; color: var(--k-meldung); font-weight: 700; }
.pal-line { display: flex; align-items: center; gap: 10px; width: 100%; border: 1.5px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; background: #fff; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.pal-line[aria-pressed="true"] { border-color: var(--rot); background: #fff0f0; }
.pal-line svg { flex: none; }
.lage-sel { border-top: 2px solid var(--line); padding: 10px; background: #fbfaf8; }
.lage-sel h4 { margin: 0 0 6px; font-size: .95rem; }
.lage-sel label { margin-bottom: 6px; }
.lage-sel .row { display: flex; gap: 6px; flex-wrap: wrap; }
.lage-sel .row .btn { flex: 1; }
.lz-icon { background: none; border: 0; }
.lz-wrap { position: relative; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
.lz-wrap .lbl { font: 700 12px Arial, sans-serif; text-transform: uppercase; }
.lz-wrap .st { position: absolute; left: -5px; top: -5px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; }
.lz-wrap.sel { outline: 2px dashed var(--rot); outline-offset: 3px; }
.sel-dreh { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: -2px 0 10px; }
.sel-dreh input { width: 54px; margin: 0; padding: 4px 6px; }
.sel-dreh .btn { padding: 4px 7px; }
.sel-dreh .hint:first-child { width: 100%; font-weight: 600; }
.lz-fl-lbl { width: 0; height: 0; }
.lz-fl-lbl .lz-text { position: absolute; left: 0; bottom: 0; transform: translate(6px, -4px); pointer-events: none; }
.lz-text { font: 700 14px Arial, sans-serif; color: #111; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.offline-status { background: #f5f4f2; border-radius: 8px; padding: 8px 12px; margin: 8px 0 12px; font-weight: 600; }
.leaflet-container { font: inherit; }

/* ---------- Zeitwahl ---------- */
.zeit-pick { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.zeit-pick .btn { margin-bottom: 10px; }
.zeit-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.zeit-quick button { border: 1px solid var(--line); background: #faf9f7; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: .82rem; cursor: pointer; }

/* ---------- Beendeter Einsatz: schreibgeschützt ---------- */
.zu-hinweis { display: none; background: #eceae6; border-left: 6px solid #555; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; }
body.einsatz-zu .zu-hinweis { display: block; }
body.einsatz-zu #entryForm, body.einsatz-zu #kAdd, body.einsatz-zu #abAdd, body.einsatz-zu .st-btns, body.einsatz-zu [data-kedit],
body.einsatz-zu [data-abedit], body.einsatz-zu #truppAdd, body.einsatz-zu .t-btns, body.einsatz-zu .storno-btn, body.einsatz-zu .lage-side,
body.einsatz-zu #lageNeu, body.einsatz-zu #snapNeu, body.einsatz-zu .lage-draw, body.einsatz-zu #lageLeer .t-btns,
body.einsatz-zu [data-action="bearbeiten"] { display: none !important; }
body.einsatz-zu .tb-grid { grid-template-columns: 1fr; }
body.einsatz-zu .lage-main { grid-template-columns: 1fr; }

/* ---------- Übersicht (Dashboard) ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; grid-auto-flow: row dense; }
.dash-wetter { grid-column: span 5; }
.dash-ats { grid-column: span 7; }
.dash-kraefte { grid-column: span 5; }
.dash-karte { grid-column: span 7; }
.dash-auftraege { grid-column: span 5; }
.dash-stellen { grid-column: span 12; }
.dash-meldungen { grid-column: span 7; grid-row: span 2; align-self: start; }
.dash-wasser { grid-column: span 5; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dash-head h3 { margin: 0; }
.dash-map { height: 340px; border-radius: 8px; background: #e8e6e2; }
.w-ort { margin: -2px 0 10px; font-size: .92rem; }
.w-now { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.w-temp { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.w-icon { font-size: 2.4rem; line-height: 1; }
.w-wind { display: flex; align-items: center; gap: 10px; background: #f5f4f2; border-radius: 10px; padding: 8px 12px; }
.w-wind svg { flex: none; }
.w-wind .v { font-size: 1.3rem; font-weight: 800; }
.w-wind .l { font-size: .8rem; color: var(--muted); }
.w-rauch { margin-top: 8px; font-size: .9rem; font-weight: 700; color: var(--k-nachf); }
.w-warn { border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; font-size: .88rem; }
.w-warn.s1 { background: #fff6c2; border-left: 6px solid #e5c400; }
.w-warn.s2 { background: #ffe1c2; border-left: 6px solid #f08a00; }
.w-warn.s3 { background: #ffd0d0; border-left: 6px solid #d00000; }
.w-hours { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(52px, 1fr); overflow-x: auto; gap: 4px; margin-top: 12px; font-size: .78rem; text-align: center; font-variant-numeric: tabular-nums; }
.w-hours > div { background: #f7f6f4; border-radius: 6px; padding: 4px 2px; }
.w-hours .h { font-weight: 700; }
.w-hours .t { font-weight: 800; font-size: .9rem; }
.w-hours .n { color: var(--k-lage); }
.w-meta { font-size: .75rem; color: var(--muted); margin-top: 8px; }
.d-ats-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.d-ats-row:last-child { border-bottom: 0; }
.d-ats-row .n { font-weight: 800; }
.d-ats-row .s { font-size: .8rem; color: var(--muted); }
.d-ats-row .c { font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; font-size: 1.05rem; }
.d-ats-row .c small { display: block; font-size: .68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.d-ats-row .crit { color: var(--rot); }
.d-ats-row .warn { color: var(--k-nachf); }
.d-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.d-st > div { border-radius: 8px; padding: 6px 8px; background: #f5f4f2; border-left: 5px solid var(--sc); }
.d-st .v { font-weight: 800; font-size: 1.2rem; }
.d-st .l { font-size: .72rem; color: var(--muted); font-weight: 700; }
.d-fw { padding: 6px 0; border-top: 1px solid var(--line); }
.d-fw-head { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; margin-bottom: 4px; }
.d-fw-head span { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.d-fw-fz { display: flex; flex-wrap: wrap; gap: 4px; }
.d-fz { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--sc); border-left-width: 5px; border-radius: 6px; padding: 2px 7px; font-size: .82rem; font-weight: 600; background: #fff; }
.d-fz i { font-style: normal; font-size: .68rem; font-weight: 800; color: var(--sc); text-transform: uppercase; }
.d-ab { font-size: .9rem; padding: 5px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; }
.d-meld { list-style: none; margin: 0; padding: 0; }
.d-meld li { display: grid; grid-template-columns: 52px auto 1fr auto; gap: 10px; align-items: start; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.d-meld li:last-child { border-bottom: 0; }
.d-meld .z { font-weight: 800; font-variant-numeric: tabular-nums; }
.d-meld .x { white-space: pre-wrap; }
.d-meld img { width: 64px; height: 48px; object-fit: cover; border-radius: 4px; cursor: zoom-in; }

/* ---------- Lagestände (Snapshots) ---------- */
.snap-bar { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.snap-bar .btn { min-height: 32px; }
.snap-bar select { max-width: 220px; }
.snap-banner { position: absolute; top: 10px; left: 60px; right: 10px; z-index: 460; background: #1c1b1a; color: #fff; border-radius: 10px; padding: 8px 14px; font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.snap-banner .btn { min-height: 30px; padding: 2px 10px; font-size: .82rem; }
.lage-main.snap .lage-side { opacity: .45; pointer-events: none; }

/* ---------- Footer ---------- */
.app-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); margin-top: 24px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .82rem; }
.app-footer b { color: var(--text); }
.app-footer a { color: var(--rot); text-decoration: none; font-weight: 600; }
.app-footer a:hover { text-decoration: underline; }

/* ---------- Anmeldung ---------- */
.login { position: fixed; inset: 0; z-index: 100; background: linear-gradient(160deg, #b3121a, #6d0a0f); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.login-box { background: #fff; border-radius: 16px; padding: 22px 22px 16px; width: min(360px, 100%); box-shadow: 0 10px 40px rgba(0,0,0,.35); text-align: center; }
.login-logo { width: 54px; height: 54px; border-radius: 12px; }
.login h1 { margin: 6px 0 0; font-size: 1.7rem; font-weight: 600; }
.login h1 b { font-weight: 900; color: var(--rot); }
.login-org { margin: 0 0 12px; color: var(--muted); font-weight: 600; }
.login label { text-align: left; }
#loginPin { font-size: 1.6rem; letter-spacing: .4em; text-align: center; }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.pinpad button { font: inherit; font-size: 1.4rem; font-weight: 700; min-height: 54px; border-radius: 10px; border: 1px solid var(--line); background: #f7f6f4; cursor: pointer; }
.pinpad button:active { background: #e8e6e2; }
.pinpad .ok { background: var(--rot); color: #fff; border-color: var(--rot); }
.login-err { color: var(--rot); font-weight: 700; min-height: 1.4em; margin: 10px 0 0; }
.login-foot { color: rgba(255,255,255,.75); font-size: .78rem; margin-top: 14px; text-align: center; }
/* Rollen: Bedienelemente ausblenden */
body:not(.rolle-admin) .nur-admin { display: none !important; }
body:not(.rolle-admin) #tabs [data-view="einstellungen"] { display: none; }
body.rolle-lesen #entryForm, body.rolle-lesen #kAdd, body.rolle-lesen #abAdd, body.rolle-lesen .st-btns, body.rolle-lesen [data-kedit],
body.rolle-lesen [data-abedit], body.rolle-lesen #truppAdd, body.rolle-lesen .t-btns, body.rolle-lesen .storno-btn, body.rolle-lesen .lage-side,
body.rolle-lesen #lageNeu, body.rolle-lesen #snapNeu, body.rolle-lesen .lage-draw, body.rolle-lesen #lageLeer .t-btns, body.rolle-lesen #lageOffline,
body.rolle-lesen [data-action="lagemeldung"], body.rolle-lesen .stamm-edit, body.rolle-lesen #fwAdd { display: none !important; }
body.rolle-lesen .tb-grid, body.rolle-lesen .lage-main { grid-template-columns: 1fr; }
body.rolle-lesen [data-action="neuerEinsatz"], body.rolle-mitarbeiter [data-action="neuerEinsatz"],
body.rolle-lesen [data-action="bearbeiten"], body.rolle-mitarbeiter [data-action="bearbeiten"],
body.rolle-lesen [data-action="beenden"], body.rolle-mitarbeiter [data-action="beenden"],
body.rolle-lesen [data-action="oeffnen"], body.rolle-mitarbeiter [data-action="oeffnen"],
body.rolle-lesen #fwAdd, body.rolle-mitarbeiter #fwAdd, body.rolle-lesen .stamm-el, body.rolle-mitarbeiter .stamm-el { display: none !important; }
.rolle-tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; background: #eee; border-radius: 4px; padding: 1px 6px; }

/* ---------- Lagemeldung ---------- */
dialog.dlg-breit { width: min(860px, calc(100vw - 24px)); }
.lm-text { font-size: .88rem; line-height: 1.45; white-space: pre-wrap; }

/* ---------- Großbildschirm ---------- */
body.anzeige-modus { background: #111; }
body.anzeige-modus .topbar, body.anzeige-modus .tabs, body.anzeige-modus .app-footer { display: none !important; }
body.anzeige-modus main { max-width: none; padding: 12px; }
body.anzeige-modus .ats-banner { position: relative; top: 0; margin: 12px 12px 0; border-radius: 12px; }
.anzeige { color: #f2f2f2; min-height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 12px; }
.an-kopf { display: flex; align-items: center; gap: 20px; background: var(--rot); border-radius: 12px; padding: 12px 18px; }
.an-titel { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.an-ort { font-size: 1.2rem; opacity: .9; }
.an-zeit { margin-left: auto; text-align: right; font-size: 1.05rem; }
.an-uhr { font-size: 2.4rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.an-x { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 8px; width: 40px; height: 40px; font-size: 1.2rem; cursor: pointer; align-self: flex-start; }
.anzeige .alarmstufe { font-size: 1.2rem; background: #fff; color: var(--rot); }
.an-grid { flex: 1; display: grid; grid-template-columns: 1.1fr 1.5fr 1.1fr; grid-template-rows: auto auto 1fr; gap: 12px; min-height: 0; }
.an-box { background: #1f1f1f; border-radius: 12px; padding: 12px 14px; overflow: hidden; }
.an-box h3 { margin: 0 0 8px; font-size: 1.15rem; color: #fff; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.an-box h3 span { font-weight: 600; color: #bbb; font-size: .95rem; }
.an-kraefte { grid-row: span 3; overflow-y: auto; }
.an-karte { grid-row: span 3; padding: 0; }
.an-map { height: 100%; min-height: 420px; border-radius: 12px; }
.an-fw { padding: 6px 0; border-top: 1px solid #333; }
.an-fw > b { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.anzeige .d-fz { background: #2a2a2a; color: #f2f2f2; font-size: .95rem; margin: 0 4px 4px 0; }
.an-t { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #333; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.an-t span { color: #ccc; font-weight: 700; }
.an-t .crit { color: #ff5a5a; }
.an-t.alarm { animation: anblink 1s steps(2, start) infinite; }
@keyframes anblink { 50% { background: #5a0d10; } }
.an-meld { grid-column: 3; }
.an-auf { grid-column: 3; }
.an-a { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid #333; font-size: .98rem; }
.an-a .n { font-weight: 800; color: #999; text-align: right; }
.an-a small { color: #8fb6ff; }
.an-a .s { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.an-a .auf-frist { color: #f2f2f2; font-weight: 800; font-variant-numeric: tabular-nums; }
.an-a .auf-frist.rot { color: #ff5a5a; }
.an-a.alarm { animation: anblink 1s steps(2, start) infinite; }
.an-mehr { color: #999; margin: 6px 0 0; font-size: .9rem; }
.an-m { display: grid; grid-template-columns: 50px auto 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid #333; font-size: .95rem; }
.an-m .z { font-weight: 800; }
.an-m .kat-tag { background: var(--c); color: #fff; font-size: .68rem; font-weight: 800; border-radius: 4px; padding: 1px 5px; text-transform: uppercase; height: fit-content; }
.an-wetter { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 1.15rem; }
.an-wetter span { color: #ffb347; font-weight: 700; }
.an-leer { display: grid; place-items: center; height: 100%; color: #888; font-size: 1.3rem; }
.anzeige .lz-wrap { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
@media (max-width: 1100px) { .an-grid { grid-template-columns: 1fr; } .an-kraefte, .an-karte { grid-row: auto; } .an-meld, .an-auf { grid-column: auto; } }

/* ---------- Einsätze & Stammdaten ---------- */
.einsatz-liste { display: grid; gap: 10px; }
.einsatz-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.einsatz-item .info { flex: 1; min-width: 220px; }
.einsatz-item .titel { font-weight: 700; }
.einsatz-item .meta { color: var(--muted); font-size: .88rem; }
.einsatz-item .btns { display: flex; gap: 6px; flex-wrap: wrap; }

.fw-card { margin-bottom: 14px; }
.fw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fw-head h3 { margin: 0; flex: 1; }
table.fz { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.fz th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.fz td { padding: 8px; border-bottom: 1px solid var(--line); }
table.fz td.r { text-align: right; white-space: nowrap; }

/* ---------- Dialoge ---------- */
dialog { border: 0; border-radius: 14px; padding: 20px; width: min(560px, calc(100vw - 24px)); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(20,10,10,.5); }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.lightbox { width: auto; max-width: 96vw; padding: 0; background: #000; }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; }
.lightbox .close { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; border: 0; }

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 50; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.toast.err { background: var(--rot); }
.big-url { font-size: 1.15rem; font-weight: 700; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .dash-wetter, .dash-ats, .dash-kraefte, .dash-karte { grid-column: span 6; }
}
@media (max-width: 900px) {
  .tb-grid { grid-template-columns: 1fr; }
  .entry-form { position: static; max-height: none; }
}
@media (max-width: 640px) {
  main { padding: 12px; }
  .topbar { flex-wrap: wrap; padding: 8px 12px; }
  .brand-sub { display: none; }
  .einsatz-select { order: 3; flex-basis: 100%; }
  .top-meta { margin-left: auto; }
  .topbar { position: static; }
  .tabs { position: static; padding: 0 8px; }
  .entry-form { top: auto; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .einsatz-kopf .actions { margin-left: 0; width: 100%; }
  .einsatz-kopf .actions .btn { flex: 1; }
  .entry { grid-template-columns: 64px 1fr; }
  table.fz .opt { display: none; }
  .k-group { margin-left: 0; }
  .k-toolbar .btn { flex: 1; }
  .row3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .k-summary { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .k-tile { padding: 8px 10px; }
  .k-tile .v { font-size: 1.25rem; }
  .k-tile .l { font-size: .7rem; line-height: 1.2; }
  .k-cards { grid-template-columns: 1fr; }
  .ats-trupps { grid-template-columns: 1fr; }
  .lage-main { grid-template-columns: 1fr; }
  .dash-grid > * { grid-column: span 12 !important; }
  .zeit-pick { grid-template-columns: 1fr 1fr; }
  .zeit-pick .btn { grid-column: span 2; }
  .snap-bar { width: 100%; }
  .snap-bar select { flex: 1; max-width: none; }
  .d-meld li { grid-template-columns: 44px 1fr; }
  .d-meld li .kat-tag, .d-meld li img { display: none; }
  .lage-map { height: 58vh; min-height: 320px; }
  .lage-side { max-height: none; min-height: 0; }
  .lage-side-body { max-height: 40vh; }
  .pal-grid { grid-template-columns: repeat(5, 1fr); }
  .ats-banner { position: static; }
  .t-timer .v { font-size: 1.2rem; }
  .m-head, .m-row { grid-template-columns: 1fr 96px 70px; }
  table.t-m .opt { display: none; }
}


/* ---------- Aufträge ---------- */
:root { --a-offen: #c76a00; --a-bestaetigt: #1d5fd1; --a-inarbeit: #7a4fc2; --a-erledigt: #1d8a4a; }
.tab-badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #6b6762; color: #fff; font-size: .75rem; line-height: 20px; text-align: center; }
.tab-badge.rot { background: var(--rot); animation: blink2 1s steps(2, start) infinite; }
@keyframes blink2 { 50% { opacity: .35; } }
.banner-stack { position: sticky; top: 58px; z-index: 18; }
.banner-stack .ats-banner { position: relative; top: 0; }
.k-tile.rot { background: #ffe4e4; }
.k-tile.rot .v { color: var(--rot); }
.seg { display: inline-flex; background: #e6e4e0; border-radius: 10px; padding: 3px; gap: 3px; margin-bottom: 14px; }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; color: var(--muted); padding: 8px 16px; border-radius: 8px; cursor: pointer; min-height: 40px; }
.seg button[aria-selected="true"] { background: #fff; color: var(--rot); box-shadow: var(--shadow); }
.auf-suche { width: auto; flex: 1; min-width: 180px; max-width: 360px; margin: 0; }
.auf-ton { margin-left: 0; }
.auf-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; align-items: start; }
.auf-card { --sc: var(--a-offen); border-left: 6px solid var(--sc); padding: 12px 14px; }
.auf-card.st-bestaetigt { --sc: var(--a-bestaetigt); } .auf-card.st-inarbeit { --sc: var(--a-inarbeit); }
.auf-card.st-erledigt { --sc: var(--a-erledigt); } .auf-card.st-storniert { --sc: #999; }
.auf-card.fertig { opacity: .7; }
.auf-card.st-storniert .auf-text { text-decoration: line-through; }
.auf-card.ueber { background: #fff1f1; box-shadow: 0 0 0 2px var(--rot), var(--shadow); }
.auf-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.auf-nr { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.auf-ziel { font-weight: 800; font-size: 1.05rem; }
.auf-tag { font-size: .75rem; background: #eceae6; border-radius: 6px; padding: 1px 7px; color: var(--muted); font-weight: 600; }
.auf-pill { margin-left: auto; background: var(--sc); color: #fff; font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 2px 10px; }
.auf-text { font-size: 1.08rem; font-weight: 600; margin: 8px 0 6px; white-space: pre-wrap; }
.auf-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.auf-frist { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.auf-frist.rot { color: var(--rot); }
.auf-rm { background: #eaf6ee; border-radius: 6px; padding: 4px 8px; font-size: .88rem; margin-bottom: 8px; }
.auf-st { grid-template-columns: repeat(4, 1fr); }
.st-btns .as-offen { --sc: var(--a-offen); } .st-btns .as-bestaetigt { --sc: var(--a-bestaetigt); }
.st-btns .as-inarbeit { --sc: var(--a-inarbeit); } .st-btns .as-erledigt { --sc: var(--a-erledigt); }
.auf-aktionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.auf-verlauf { flex-basis: 100%; font-size: .8rem; color: var(--muted); }
.auf-verlauf summary { cursor: pointer; }
.auf-verlauf td { padding: 1px 8px 1px 0; vertical-align: top; }
.wl-wahl { margin-bottom: 12px; max-width: 640px; }
.wl-wahl select { font-weight: 700; font-size: 1.05rem; }
.wl-fertig { grid-column: 1 / -1; margin-top: 6px; }
.wl-fertig summary { cursor: pointer; font-weight: 700; color: var(--muted); padding: 6px 0; }
.wl-fertig .auf-card { margin-bottom: 8px; }
#aufWorklist .auf-st button { min-height: 48px; font-size: .9rem; }
.auf-d-st { grid-template-columns: repeat(5, 1fr); }
.auf-d-st .blink { background: #ffe4e4; }
.auf-d-st .blink .v { color: var(--rot); }
.d-auf { list-style: none; margin: 0; padding: 0; }
.d-auf li { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: .88rem; }
.d-auf li.ueber { background: #fff1f1; }
.d-auf .n { font-weight: 800; color: var(--muted); text-align: right; }
.d-auf .s { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.auf-mini { font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; border-radius: 999px; padding: 1px 8px; background: var(--a-offen); }
.auf-mini.st-bestaetigt { background: var(--a-bestaetigt); } .auf-mini.st-inarbeit { background: var(--a-inarbeit); }
body.einsatz-zu #aufNeu, body.einsatz-zu .auf-st, body.einsatz-zu .auf-aktionen .btn, body.einsatz-zu .k-auf,
body.rolle-lesen #aufNeu, body.rolle-lesen .auf-st, body.rolle-lesen .auf-aktionen .btn, body.rolle-lesen .k-auf { display: none !important; }
@media (max-width: 760px) {
  .auf-liste { grid-template-columns: 1fr; }
  .auf-suche { max-width: none; }
  .seg { display: flex; }
  .seg button { flex: 1; }
  .banner-stack { position: static; }
  .auf-d-st { grid-template-columns: repeat(3, 1fr); }
}


/* ---------- Wasserentnahmestellen ---------- */
.w-pin { display: flex; align-items: center; gap: 3px; }
.w-pin svg { filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
.w-pin .lbl { font-size: 11px; font-weight: 700; color: #0d3fa6; white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; }
.w-pop { font-size: .88rem; line-height: 1.35; }
.w-det { font-size: .8rem; color: var(--muted); margin: 3px 0; }
.w-pop-btns { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.w-pop-btns .btn { min-height: 30px; font-size: .8rem; padding: 3px 8px; }
.w-row { display: grid !important; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; text-align: left; }
.w-d { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-wasser { list-style: none; margin: 0; padding: 0; }
.d-wasser li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.d-wasser .hint { margin: 0; }
.w-acts { display: flex; gap: 4px; }
.w-acts .btn { min-height: 28px; padding: 2px 7px; }
.auf-wasser { background: #e9f0fd; border-radius: 6px; padding: 4px 8px; font-size: .88rem; margin-bottom: 8px; }
.auf-w-links { white-space: nowrap; margin-left: 4px; }
.auf-w-links a { color: var(--focus); }
.wasser-import { margin-top: 16px; }
#lageWasser.primary { background: #1d5fd1; border-color: #1d5fd1; }
body.rolle-lesen .w-acts, body.einsatz-zu .w-acts { display: none; }


/* ---------- GPS-Positionen ---------- */
.gps-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; width: 34px; height: 30px; cursor: pointer; font-size: 1rem; filter: grayscale(1); opacity: .8; }
.gps-btn.an { filter: none; opacity: 1; background: #fff; box-shadow: 0 0 0 3px #3ddc84; }
.gps-btn.fehler { box-shadow: 0 0 0 3px #ffd400; }
.gps-pin { position: relative; display: flex; align-items: center; gap: 4px; }
.gps-person { width: 28px; height: 28px; border-radius: 50%; background: #0a7d4f; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); position: relative; z-index: 1; }
.gps-fz { display: inline-block; background: #fff; border-radius: 6px; padding: 2px; box-shadow: 0 0 0 2px #0a7d4f, 0 1px 4px rgba(0,0,0,.4); position: relative; z-index: 1; line-height: 0; }
.gps-puls { position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: rgba(10,125,79,.35); animation: gpspuls 2s ease-out infinite; }
.gps-pin.alt .gps-puls { display: none; }
.gps-pin.alt .gps-person, .gps-pin.alt .gps-fz { filter: grayscale(1); opacity: .6; }
@keyframes gpspuls { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.gps-lbl { font-size: 11px; font-weight: 800; color: #0a5a39; white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff; line-height: 1.1; }
.gps-lbl small { display: block; font-weight: 600; color: #444; }
.gps-pin.alt .gps-lbl { color: #777; }
#lageGpsBtn.primary { background: #0a7d4f; border-color: #0a7d4f; }
.gps-err { background: #fff6c2; }
body.rolle-lesen .gps-btn { display: none; }


/* ---------- Zugang / Internet ---------- */
.ich-btns { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.qr-box { width: min(320px, 80vw); margin: 0 auto; background: #fff; padding: 8px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-box.abgelaufen { opacity: .15; }
.qr-url { text-align: center; word-break: break-all; }
#geraeteTab tr.gesperrt td { opacity: .6; }
.login-extern-info { text-align: center; margin: 0 0 12px; }
.verbindung-banner { background: #ffd400; }
.lizenz-banner { background: #e9f0fd; color: #0d2a66; }
.mb-feld { position: relative; }
.mb-vorschlag { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); max-height: 320px; overflow: auto; font-weight: 400; }
.mb-vorschlag button { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 7px 10px; cursor: pointer; font: inherit; color: inherit; }
.mb-vorschlag button.akt, .mb-vorschlag button:hover { background: #eef3fb; }
.mb-vorschlag .st { font-weight: 800; color: var(--rot); font-size: .85rem; }
.mb-vorschlag .al { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
.mb-info { background: #f4f2ee; border-left: 4px solid var(--rot); border-radius: 6px; padding: 6px 10px; margin: -4px 0 10px; font-size: .85rem; }
.auf-card.mit-stelle { border-left: 5px solid var(--pc); }
.auf-stelle { background: #f7f5f2; border-radius: 8px; padding: 6px 8px; margin: 6px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.auf-stelle > div.hint { width: 100%; }
.st-aufs { display: grid; gap: 4px; margin: 6px 0; }
.st-auf { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .88rem; border-left: 3px solid var(--line); padding-left: 6px; }
.st-auf.as-inarbeit { border-color: var(--a-inarbeit, #7a4fc2); } .st-auf.as-erledigt { border-color: var(--a-erledigt, #1d8a4a); opacity: .75; }
.st-auf.as-bestaetigt { border-color: var(--a-bestaetigt, #1d5fd1); } .st-auf.as-offen { border-color: var(--k-nachf); }
.st-auf-txt { flex: 1; min-width: 140px; }
.schl-info { background: #eef5ff; border-radius: 6px; padding: 6px 8px; margin: 0 0 8px; font-size: .88rem; }
.lz-eo { display: flex; flex-direction: column; align-items: flex-start; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.lz-eo .lbl { background: #b3121a; color: #fff; font-weight: 700; font-size: 11px; padding: 1px 6px; border-radius: 4px; white-space: nowrap; margin-top: -2px; }
.lz-eo.sel svg path { stroke: #ffd400; stroke-width: 3; }
/* ---------- Einsatz-QR ---------- */
.gast-banner { background: #e9f0fd; color: #0d2a66; }
.eq-kurz { background: var(--bg); border-radius: 8px; padding: 8px 12px; margin: 6px 0 10px; text-align: center; line-height: 1.8; }
.eq-kurz .eq-adr { word-break: break-all; }
.eq-kc { font-family: ui-monospace, Consolas, monospace; font-size: 1.25em; letter-spacing: .1em; white-space: nowrap; }
.eq-senden { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 8px 0 12px; }
.eq-senden-kopf { margin-bottom: 4px; }
.eq-senden label { margin: 0; }
.eq-kurz-druck { margin-top: 2mm; font-size: 9pt; text-align: center; word-break: break-all; }
.eq-gross .eq-gross-kurz { font-size: 1.1rem; font-weight: 500; }
.eq-codes { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin: 6px 0 10px; }
.eq-codes figure { margin: 0; text-align: center; width: 230px; }
.eq-codes svg { width: 210px; height: 210px; background: #fff; }
.eq-codes.gross figure { width: min(42vh, 44vw); } .eq-codes.gross svg { width: 100%; height: auto; }
.eq-leer { text-align: center; padding: 10px 0; }
.eq-gross { position: fixed; inset: 0; background: #fff; z-index: 200; display: grid; place-items: center; text-align: center; padding: 20px; }
.eq-gross h1 { color: var(--rot); margin: 0 0 10px; } .eq-gross p { font-size: 1.3rem; font-weight: 700; }
.eq-gross figcaption { font-size: 1.2rem; font-weight: 700; margin-top: 6px; }
tr.inaktiv td { color: #999; }
/* Oberfläche für Einsatzkräfte (Einsatz-QR): nur Aufträge, Tagebuch, Lagekarte, Einsatzstellen */
body.gast-modus #tabs > button:not([data-view="auftraege"]):not([data-view="tagebuch"]):not([data-view="lage"]):not([data-view="stellen"]),
body.gast-modus .einsatz-select, body.gast-modus .actions, body.gast-modus #aufModus, body.gast-modus #aufNeu, body.gast-modus #wlZiel,
body.gast-modus .storno-btn, body.gast-modus .lage-side, body.gast-modus #lageNeu, body.gast-modus #snapNeu, body.gast-modus .lage-draw,
body.gast-modus #lageOffline, body.gast-modus #lageEinsatzort, body.gast-modus .stab-el, body.gast-modus #entrySG, body.gast-modus .kat.k-Auftrag,
body.gast-modus .kat.k-Funk, body.gast-modus #stNeu, body.gast-modus .st-import, body.gast-modus #view-stellen .st-btns:not(.auf-st), body.gast-modus .user-btn,
body.gast-modus .auf-aktionen .btn, body.gast-modus #lageLeer .t-btns, body.gast-modus .w-acts, body.gast-modus #lizBanner, body.gast-modus #updBanner { display: none !important; }
body.gast-modus .lage-main { grid-template-columns: 1fr; }
body.gast-modus details:has(#fzCount) { display: none; }
body.gast-modus label:has(> #wlZiel) { display: none; }
@media print { body.print-qr main, body.print-qr header { display: none !important; } body.print-qr #print { display: block !important; } }
.eq-druck { display: grid; grid-template-columns: 1fr 1fr; gap: 6mm; }
.eq-karte { border: 1.5px solid #b3121a; border-radius: 4mm; padding: 5mm; break-inside: avoid; page-break-inside: avoid; }
.eq-karte.br { border-color: #7b4fc9; }
.eq-karte h2 { margin: 1mm 0; font-size: 15pt; } .eq-kopf { font-size: 9pt; color: #555; }
.eq-qrs { display: flex; gap: 6mm; justify-content: center; margin: 3mm 0; } .eq-qrs div { text-align: center; } .eq-qrs svg { width: 38mm; height: 38mm; } .eq-qrs small { display: block; font-size: 8pt; }
.eq-karte ol { font-size: 9pt; margin: 0; padding-left: 5mm; }
.archiv-badge { display: inline-block; background: #ece9e4; color: #4a4640; border-radius: 6px; padding: 1px 8px; font-size: .8rem; font-weight: 700; margin-left: 4px; }
.nt-info { font-size: .85rem; color: var(--k-meldung); margin-top: 3px; }
.nachr-btn { position: relative; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; width: 34px; height: 30px; cursor: pointer; font-size: 1rem; color: #fff; }
.nachr-zahl { position: absolute; top: -6px; right: -6px; background: #ffd400; color: #000; border-radius: 999px; font-size: .7rem; font-weight: 800; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; }
body.rolle-lesen .nachr-btn, body.anzeige-modus .nachr-btn { display: none; }
#nachrWerte .check { white-space: nowrap; }
.nachr-liste { display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.nachr-item { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.nachr-item .kopf { font-size: .82rem; color: var(--muted); }
.nachr-item .txt { margin: 3px 0; white-space: pre-wrap; }
.nachr-st { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .82rem; }
.nachr-st .ok { color: var(--k-meldung); font-weight: 600; }
.nachr-st .offen { color: var(--k-nachf); font-weight: 600; }
.dlg-nachr-in { width: min(560px, 94vw); border: 4px solid var(--k-lage); }
.nachr-in-kopf { font-weight: 800; color: var(--k-lage); font-size: 1.05rem; }
.nachr-in-text { font-size: 1.35rem; font-weight: 700; margin: 10px 0; white-space: pre-wrap; line-height: 1.3; }
.btn.big { font-size: 1.1rem; padding: 12px 22px; }
.upd-banner { background: #e6f5ea; color: #0f4d22; }
.upd-zeile { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.upd-zeile > div:first-child { flex: 1; min-width: 0; }
.upd-aend { margin: 4px 0 0; padding-left: 18px; font-size: .9em; }
.upd-sperre { color: var(--rot); font-weight: 600; margin: 6px 0; }
#updInhalt h4 { margin: 12px 0 2px; }
.upd-einst { margin-top: 10px; }
.neu-version { display: block; margin-top: 6px; }
li:has(> .neu-version) { list-style: none; margin-left: -18px; }
@media (max-width: 600px) { .upd-zeile { flex-direction: column; } }
.verbindung-banner a.btn { color: var(--text); }


/* ---------- Mobil: Hamburger-Menü ---------- */
.mobil-nav, .menu-hinter, .menu-kopf { display: none; }
@media (max-width: 760px) {
  .mobil-nav { display: flex; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); padding: 6px 12px; position: sticky; top: 0; z-index: 19; }
  .menu-btn { width: 44px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; flex: none; }
  .menu-btn span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
  body.menu-offen .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-offen .menu-btn span:nth-child(2) { opacity: 0; }
  body.menu-offen .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .menu-titel { font-weight: 800; font-size: 1.1rem; color: var(--rot); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #menuBadge { font-size: .78rem; padding: 2px 8px; }
  .tabs { position: fixed !important; top: 0; left: 0; bottom: 0; width: min(82vw, 320px); z-index: 50; flex-direction: column; gap: 0; padding: 0 0 16px !important;
    background: #fff; border: 0; box-shadow: 4px 0 24px rgba(0,0,0,.25); overflow-y: auto; transform: translateX(-105%); transition: transform .22s ease; }
  body.menu-offen .tabs { transform: none; }
  .tabs button[data-view] { text-align: left; padding: 15px 20px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; display: flex; align-items: center; gap: 8px; }
  .tabs button.active { border-bottom-color: var(--line); border-left-color: var(--rot); background: #fdf1f1; }
  .menu-kopf { display: flex; align-items: center; gap: 6px; background: var(--rot); color: #fff; padding: 16px 16px 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); font-size: 1.15rem; }
  .menu-logo { font-weight: 500; }
  .menu-kopf #menuOrg { font-size: .8rem; opacity: .85; margin-left: 4px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .menu-zu { background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 8px; width: 36px; height: 36px; font-size: 1.1rem; cursor: pointer; }
  .menu-hinter { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 49; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.menu-offen .menu-hinter { opacity: 1; pointer-events: auto; }
  body.menu-offen { overflow: hidden; }
  body.anzeige-modus .mobil-nav { display: none; }
}



/* ---------- Einsatzstellen ---------- */
.st-toolbar .st-import { cursor: pointer; }
.st-ansicht { margin: 0 0 0 auto; }
.st-filter input[type=search] { flex: 1; min-width: 200px; max-width: 360px; margin: 0; }
.st-filter select { width: auto; margin: 0; padding: 8px 9px; }
.st-tile.p1 { border-left: 6px solid #b3121a; } .st-tile.p2 { border-left: 6px solid #e07b00; } .st-tile.p3 { border-left: 6px solid #1d5fd1; } .st-tile.p4 { border-left: 6px solid #6b6762; }
.st-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 10px; align-items: start; }
.st-card { border-left: 7px solid var(--pc, #1d5fd1); padding: 10px 12px; }
.st-card.p1 { --pc: #b3121a; } .st-card.p2 { --pc: #e07b00; } .st-card.p3 { --pc: #1d5fd1; } .st-card.p4 { --pc: #6b6762; }
.st-card.p1.st-offen { background: #fff1f1; }
.st-card.fertig { opacity: .65; border-left-color: #1d8a4a; }
.st-top { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.st-nr { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-prio { background: var(--pc); color: #fff; font-weight: 800; font-size: .78rem; border-radius: 6px; padding: 1px 7px; }
.st-adr { font-size: 1.05rem; }
.st-flag { font-size: 1.1rem; }
.st-pill { margin-left: auto; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #eceae6; color: var(--text); }
.st-offen .st-pill { background: var(--k-nachf); color: #fff; } .st-zugewiesen .st-pill { background: var(--a-bestaetigt); color: #fff; }
.st-inarbeit .st-pill { background: var(--a-inarbeit); color: #fff; } .st-erledigt .st-pill { background: var(--a-erledigt); color: #fff; }
.st-mb { font-weight: 700; margin: 6px 0 2px; }
.st-text { white-space: pre-wrap; font-size: .95rem; }
.st-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .82rem; color: var(--muted); margin: 4px 0; }
.st-meta a { color: var(--focus); font-weight: 700; }
.st-nopos { color: var(--k-nachf); font-weight: 700; }
.st-bem { font-size: .85rem; background: #fff6e5; border-radius: 6px; padding: 3px 8px; margin: 4px 0; }
.st-zuw { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.st-btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.st-btns .btn.ok { border-color: var(--a-erledigt); color: var(--a-erledigt); }
.st-btns .btn.gross { min-height: 46px; flex: 1; font-size: .95rem; }
.st-karte-box { margin-top: 4px; }
.st-karte { height: 68vh; min-height: 380px; border-radius: 10px; background: #e8e6e2; }
.st-karte.zeichnen { cursor: crosshair; outline: 3px solid var(--k-nachf); }
.st-pin { border-radius: 50%; background: var(--pc); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.st-pin.arbeit { box-shadow: 0 0 0 3px #7a4fc2, 0 1px 4px rgba(0,0,0,.45); }
.st-pin.fertig { opacity: .75; }
.st-pop .st-card { box-shadow: none; padding: 4px 4px 4px 10px; margin: 0; }
.leaflet-popup-content { margin: 10px 12px; }
.st-prio-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.st-prio-wahl label { display: inline-flex; align-items: center; gap: 4px; margin: 0; border: 2px solid var(--pc); border-radius: 8px; padding: 6px 10px; color: var(--pc); font-weight: 800; cursor: pointer; }
.st-prio-wahl label input { width: auto; margin: 0; }
.st-prio-wahl .p1 { --pc: #b3121a; } .st-prio-wahl .p2 { --pc: #e07b00; } .st-prio-wahl .p3 { --pc: #1d5fd1; } .st-prio-wahl .p4 { --pc: #6b6762; }
.st-prio-wahl label:has(input:checked) { background: var(--pc); color: #fff; }
.st-flags { display: flex; gap: 18px; margin: 0 0 10px; }
.st-d-st { grid-template-columns: repeat(6, 1fr); }
.wl-titel { margin: 14px 2px 8px; }
.eh-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.eh-card { padding: 10px 12px; border-left: 6px solid #0d3fa6; }
.eh-kopf { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.eh-kopf .meta { color: var(--muted); font-size: .85rem; }
.eh-kopf .k-btns { margin-left: auto; }
body.einsatz-zu #stNeu, body.einsatz-zu .st-import, body.einsatz-zu #ehAdd, body.einsatz-zu .eh-edit,
body.rolle-lesen #stNeu, body.rolle-lesen .st-import, body.rolle-lesen #ehAdd, body.rolle-lesen .eh-edit { display: none !important; }
@media (max-width: 760px) {
  .st-liste, .eh-liste { grid-template-columns: 1fr; }
  .st-ansicht { margin: 0; width: 100%; }
  .st-filter input[type=search] { max-width: none; flex-basis: 100%; }
  .st-filter select { flex: 1; }
  .st-d-st { grid-template-columns: repeat(3, 1fr); }
  .st-karte { height: 60vh; }
}


/* ---------- Telefonverzeichnis ---------- */
.tel-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tel-suche { flex: 1; min-width: 220px; max-width: 460px; margin: 0; }
#telKat, #telGem { width: auto; margin: 0; }
.tel-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.tel-card { padding: 10px 12px; }
.tel-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tel-kopf b { font-size: 1.05rem; }
.tel-fkt { font-size: .85rem; color: var(--muted); }
.tel-nrn { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.tel-nr { display: inline-flex; flex-direction: column; text-decoration: none; background: #eaf6ee; border: 1px solid #b9dfc6; color: #0f5a2c; border-radius: 8px; padding: 4px 10px; font-weight: 800; font-variant-numeric: tabular-nums; min-height: 44px; justify-content: center; }
.tel-nr span { font-size: .68rem; font-weight: 700; color: #4a7d5c; text-transform: uppercase; letter-spacing: .03em; }
.tel-meta { font-size: .85rem; color: var(--muted); }
.tel-meta a { color: var(--focus); }
.tel-bem { font-size: .85rem; background: #fff6e5; border-radius: 6px; padding: 3px 8px; margin: 6px 0 0; }
.tel-gespr { margin-top: 8px; }
body:not(.rolle-einsatzleitung):not(.rolle-admin) .tel-el { display: none !important; }
@media (max-width: 760px) { .tel-liste { grid-template-columns: 1fr; } .tel-suche { max-width: none; flex-basis: 100%; } #telKat, #telGem { flex: 1; } }

/* ---------- Druck ---------- */
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  body { background: #fff; font-size: 10pt; }
  .topbar, .tabs, main, dialog, .toast, .ats-banner, .app-footer, .mobil-nav, .menu-hinter { display: none !important; }
  body.print-lage main { display: block !important; padding: 0; }
  body.print-lage #print { display: none; }
  body.print-lage .view:not(#view-lage), body.print-lage .lage-bar, body.print-lage .lage-side, body.print-lage .lage-draw, body.print-lage .leaflet-control-zoom { display: none !important; }
  body.print-lage .lage-main { display: block; }
  body.print-lage .lage-map { height: 180mm; box-shadow: none; border: .4pt solid #000; }
  /* Querformat nur für den Lagekarten-Druck (benannte Seite), alle anderen Ausdrucke hochkant */
  @page lagequer { size: A4 landscape; }
  body.print-lage { page: lagequer; }
  @page karten { size: A4 portrait; margin: 8mm; }
  body.print-karten { page: karten; }
  .print-only { display: block; }
  .print-only h1 { font-size: 15pt; margin: 0 0 2mm; }
  .print-only .pmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 1mm 8mm; margin-bottom: 4mm; font-size: 9.5pt; }
  .print-only table { width: 100%; border-collapse: collapse; }
  .print-only th, .print-only td { border: .3pt solid #888; padding: 1.2mm 1.6mm; vertical-align: top; text-align: left; }
  .print-only th { background: #eee; font-size: 8.5pt; }
  .print-only tr { break-inside: avoid; }
  .print-only td.t { white-space: pre-wrap; }
  .print-only .storno td { color: #777; }
  .print-only .storno td.t { text-decoration: line-through; }
  .print-only .pfoot { margin-top: 6mm; font-size: 8.5pt; color: #555; }
  .bericht h1 { font-size: 20pt; margin: 0; }
  .bericht h2 { font-size: 12.5pt; margin: 6mm 0 2mm; border-bottom: .6pt solid #b3121a; padding-bottom: 1mm; color: #b3121a; }
  .bericht .b-neu { break-before: page; }
  .bericht h2, .print-only h2 { break-after: avoid; }
  .print-only .sig { break-inside: avoid; }
  .b-kopf { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2pt solid #b3121a; padding-bottom: 2mm; margin-bottom: 4mm; }
  .b-org { font-size: 11pt; font-weight: 700; color: #555; }
  .b-logo { font-size: 16pt; color: #b3121a; } .b-logo b { font-weight: 900; }
  .print-only table.b-daten { width: auto; }
  .print-only .b-daten th, .print-only .b-daten td { border: 0; padding: .8mm 4mm .8mm 0; background: none; font-size: 10pt; }
  .print-only .b-daten th { color: #555; font-weight: 600; }
  .b-kpi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2mm; }
  .b-kpi div { border: .4pt solid #999; border-radius: 2mm; padding: 2mm; font-size: 8pt; color: #555; text-align: center; }
  .b-kpi b { display: block; font-size: 15pt; color: #000; }
  .b-hint { font-size: 8.5pt; color: #555; }
  .b-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; }
  .b-fotos figure { margin: 0; break-inside: avoid; }
  .b-fotos img { width: 100%; max-height: 85mm; object-fit: contain; border: .3pt solid #999; }
  .b-fotos figcaption { font-size: 8pt; color: #444; }
  .print-only .sig { margin-top: 14mm; display: grid; grid-template-columns: 1fr 1fr; gap: 20mm; font-size: 9pt; }
  .print-only .sig div { border-top: .4pt solid #000; padding-top: 1mm; }
}

/* ---------- Einsatzzeit, Ablöse, Versorgung ---------- */
.k-tile.rot { background: #ffe4e4; }
.k-tile.rot .v { color: var(--rot); }
.k-zeit { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 8px; padding: 6px 8px; border-radius: 6px; font-size: .88rem; background: #f3f1ee; }
.k-zeit.z-hinweis { background: #fff4d6; }
.k-zeit.z-warn { background: #ffe4e4; color: var(--rot); font-weight: 600; }
.k-zeit.z-pause { background: #e3f0ff; }
.k-abl { font-size: .85rem; color: #6a4a00; }
.k-zeit-btns { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.abl-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 14px; }
.abl-card { border-left: 6px solid #c79100; padding: 10px 12px; }
.abl-card.faellig.z-hinweis { border-left-color: #e0a800; }
.abl-card.faellig.z-warn { border-left-color: var(--rot); }
.abl-card.eingetroffen { border-left-color: #2e7d32; }
.abl-card .meta { font-size: .85rem; color: var(--muted); }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.vs-runde { border: 1px solid var(--line); border-left: 6px solid var(--muted); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; background: #fff; }
.vs-runde.st-bestellt { border-left-color: #c79100; }
.vs-runde.st-geliefert { border-left-color: #2e7d32; }
.vs-runde.st-storniert { opacity: .55; }
.vs-kopf { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.vs-pill { margin-left: auto; }
.vs-wer { margin-top: 6px; }
.vs-wer summary { cursor: pointer; font-size: .9rem; }
.vs-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 10px; margin-top: 6px; }
.vs-check .in { color: var(--muted); font-size: .8rem; }
.vs-tab .summe td { border-top: 2px solid var(--line); font-weight: 700; }
@media print { .k-zeit-btns { display: none; } }
.vs-runde { --sc: var(--muted); }
.vs-runde.st-bestellt { --sc: #c79100; }
.vs-runde.st-geliefert { --sc: #2e7d32; }
.vs-runde .t-btns { margin-top: 6px; }
.vs-tab th.r { text-align: right; }
#vsStellen .t-btns, #view-versorgung .t-btns { flex-wrap: wrap; }
#view-versorgung .btn { white-space: nowrap; }

/* ---------- Flächenlage: Bereiche im normalen Einsatz ausblenden ---------- */
.flaeche-badge { background: #e3f0ff; color: #0b4a8b; font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 2px 10px; }
.btn.flaeche-an { background: #e3f0ff; border-color: #7aa7d8; color: #0b4a8b; }
.modul-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
body.aus-stellen #tabs [data-view="stellen"], body.aus-stellen #dStellen, body.aus-stellen #wlStellen, body.aus-stellen .res-bei,
body.aus-versorgung #tabs [data-view="versorgung"],
body.aus-ressourcen #tabs [data-view="ressourcen"],
body.aus-einheiten #kEinheiten, body.aus-einheiten #ehAdd,
body.aus-abloese #kAbloese, body.aus-abloese #ablAdd, body.aus-abloese .k-zeit { display: none !important; }

/* ---------- Ressourcen ---------- */
.res-grp-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; }
.res-grp { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.res-grp-kopf { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.res-grp-kopf .btn { margin-left: auto; }
.res-pos { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--line); align-items: start; }
.res-pos:first-of-type { border-top: 0; }
.res-pos.geraet { --rc: #0b4a8b; }
.res-menge { font-weight: 800; font-size: 1.1rem; color: var(--rc, var(--text)); min-width: 3.5em; text-align: right; }
.res-menge small { font-weight: 600; font-size: .75rem; color: var(--muted); }
.res-was { display: flex; flex-direction: column; }
.res-btns { grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.res-erl { margin-top: 10px; }
.res-erl summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.res-tab-wrap { overflow-x: auto; }
.res-tab { width: 100%; }
.res-tab th.r, .res-tab td.r { text-align: right; white-space: nowrap; }
.res-akt { text-align: right; white-space: nowrap; }
.res-akt .btn { margin-left: 4px; }
.res-tab tr.res-unter td { background: #ffe4e4; }
.res-tab tr.res-leer td { color: var(--muted); }
.res-defekt { color: var(--rot); font-size: .78rem; font-weight: 600; }
.res-nf { font-size: .75rem; color: #6a4a00; }
.res-sec .k-sec-head .meta b { color: var(--text); }
.res-verw { display: grid; gap: 10px; margin-top: 18px; }
.res-verw details { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; }
.res-verw summary { cursor: pointer; font-weight: 700; }
.res-verw .res-tab { margin: 8px 0; }
.res-bei { margin-top: 6px; font-size: .85rem; color: #0b4a8b; }
.res-draussen-card { margin-bottom: 18px; }
body.einsatz-zu .res-schreib, body.einsatz-zu .res-btns { display: none !important; }
@media (max-width: 760px) {
  .res-grp-liste { grid-template-columns: 1fr; }
  .res-akt { white-space: normal; }
  .res-akt .btn { margin: 2px 0 2px 4px; }
}
#resFLager, #resFArt, #resFKat { width: auto; margin: 0; }
.res-bs { table-layout: fixed; }
.res-bs .c-lager { width: 20%; } .res-bs .c-bez { width: 30%; } .res-bs .c-bez2 { width: 15%; }
.res-bs .c-zahl { width: 9%; } .res-bs .c-akt { width: 23%; }
.res-bs td { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  #resFLager, #resFArt, #resFKat { flex: 1; }
  .res-bs, .res-bs tbody, .res-bs tr, .res-bs td { display: block; width: auto !important; }
  .res-bs thead { display: none; }
  .res-bs tr { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
  .res-bs td { border: 0 !important; padding: 2px 0 !important; text-align: left !important; }
  .res-bs td.m-lager { font-weight: 700; }
  .res-bs td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: .85rem; }
  .res-bs td[data-l]:empty { display: none; }
  .res-bs td.res-akt { padding-top: 6px !important; display: flex; flex-wrap: wrap; gap: 6px; }
  .res-bs td.res-akt .btn { margin: 0; flex: 1; }
  .res-bs td.res-akt .btn[data-res-bs] { flex: 0 0 auto; }
  .res-bs td:not([data-l]):not(.m-lager):not(.res-akt):empty { display: none; }
}
@media (max-width: 760px) { .res-bs td.res-akt .btn { white-space: nowrap; } }

/* ---------- Bereitstellungsräume ---------- */
body.aus-br #kBr, body.aus-br #brAdd, body.aus-br #wlBr, body.aus-br .br-k, body.einsatz-zu #brAdd { display: none !important; }
.br-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; margin-bottom: 14px; }
.br-card { border-left: 6px solid var(--s-bereitstellung, #7b4fc9); padding: 12px 14px; }
.br-kopf { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.br-name { font-size: 1.05rem; }
.br-sum { margin: 6px 0; font-size: .9rem; }
.br-q { list-style: none; margin: 0 0 8px; padding: 0; }
.br-q li { display: grid; grid-template-columns: 2em 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.br-pos { width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--s-bereitstellung, #7b4fc9); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
.br-fz { display: flex; flex-direction: column; min-width: 0; }
.br-akt { display: flex; gap: 4px; }
.br-akt .btn[disabled] { opacity: .35; }
.br-k { margin-top: 6px; font-size: .85rem; color: var(--s-bereitstellung, #7b4fc9); }
.wl-br { margin-bottom: 12px; border-left: 6px solid var(--s-bereitstellung, #7b4fc9); }
.wl-br-pos { font-size: 1.4rem; margin: 4px 0; }
#bwInfo select { margin-top: 6px; }
@media (max-width: 760px) {
  .br-liste { grid-template-columns: 1fr; }
  .br-q li { grid-template-columns: 2em 1fr; }
  .br-akt { grid-column: 2; }
  .br-akt .btn.primary { flex: 1; }
}
.wl-br-klein { margin: 0 0 10px; text-align: right; }

/* ---------- Bereitstellungsraum: Anforderungen, Sondergerät, Zuteilen ---------- */
.br-anf-liste { display: grid; gap: 6px; margin: 6px 0 10px; }
.br-anf { background: #fff4d6; border: 1px solid #e8cf86; border-radius: 8px; padding: 8px 10px; }
.br-anf-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.br-merkmal { background: #fff; border: 1px solid #e8cf86; border-radius: 999px; padding: 0 8px; font-size: .85rem; }
.br-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0; }
.br-sg { background: #e3f0ff; color: #0b4a8b; border-radius: 999px; padding: 0 8px; font-size: .8rem; font-weight: 600; }
.br-bis { background: #eef3ea; color: #2e5d1f; border-radius: 999px; padding: 0 8px; font-size: .8rem; }
.br-bis.bald { background: #fff4d6; color: #6a4a00; }
.br-bis.ab { background: #ffe4e4; color: var(--rot); font-weight: 700; }
.br-fz { display: flex; flex-direction: column; }
.br-card.gross .br-name { font-size: 1.2rem; }
.br-card.gross .br-akt .btn.primary { padding: 10px 16px; font-size: 1rem; }
.br-card.gross > .btn.gross { width: 100%; padding: 12px; font-size: 1rem; margin-top: 6px; }
.zt-liste { display: grid; gap: 4px; max-height: 45vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; margin-bottom: 8px; }
.zt-zeile { display: flex; gap: 8px; align-items: flex-start; padding: 6px; border-radius: 6px; cursor: pointer; margin: 0; }
.zt-zeile:hover { background: #f6f4f1; }
.zt-zeile.passt { background: #eef7ea; }
.zt-zeile input { width: auto; margin-top: 4px; }
.zt-zeile > span { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; }
.zt-passt { background: #2e7d32; color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 700; }
@media (max-width: 760px) { .br-card.gross .br-q li { grid-template-columns: 2em 1fr; } .br-card.gross .br-akt { grid-column: 1 / -1; display: flex; gap: 6px; } .br-card.gross .br-akt .btn.primary { flex: 1; } }

/* ---------- Pegelstände ---------- */
.dash-pegel { grid-column: span 5; }
.pg-btns { display: flex; gap: 6px; }
.pg-liste { list-style: none; margin: 0; padding: 0; }
.pg-liste li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 4px 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.pg-liste li:first-child { border-top: 0; }
.pg-liste li.alt { opacity: .6; }
.pg-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.pg-name, .pg-wert { display: flex; flex-direction: column; }
.pg-wert { text-align: right; }
.pg-wert b { font-size: 1.15rem; }
.pg-trend { font-size: .8rem; color: var(--muted); }
.pg-trend.steigt { color: var(--rot); font-weight: 700; }
.pg-trend.faellt { color: #2e7d32; }
.pg-spark { color: #0b4a8b; display: block; }
.pg-fuss { margin: 8px 0 0; font-size: .78rem; }
.pg-fehler { color: var(--rot); }
.pg-wahl { max-height: 50vh; overflow-y: auto; margin: 8px 0; }
.pg-grp { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; padding: 4px 10px 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 10px; }
.pg-grp legend { font-weight: 700; padding: 0 4px; }
.pg-marker span { display: inline-block; white-space: nowrap; background: #fff; border: 2px solid var(--pc, #888); border-radius: 6px; padding: 1px 6px; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.3); transform: translate(-50%, -50%); }
body.aus-pegel #dPegel, body.aus-pegel #lagePegel { display: none !important; }
@media (max-width: 760px) { .pg-liste li { grid-template-columns: 12px 1fr auto; } .pg-sp { grid-column: 2 / -1; } .dash-pegel { grid-column: auto; } }
.pg-v { white-space: nowrap; }

/* ---------- Stab S1–S6, Lagemeldung, Lagevortrag ---------- */
body.aus-stab .stab-el, body.aus-stab #tabs [data-view="stab"], body.aus-stab #lmBanner { display: none !important; }
.sg-tag { display: inline-block; background: #3b3a6b; color: #fff; border-radius: 4px; padding: 0 6px; font-size: .72rem; font-weight: 700; margin-left: 4px; vertical-align: middle; }
.list-tools { flex-wrap: wrap; }
.stab-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.stab-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.stab-tabs button.aktiv { background: #3b3a6b; color: #fff; border-color: #3b3a6b; }
.stab-tabs .st-sub { font-weight: 400; }
.stab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.stab-grid .card h3 { margin: 0 0 8px; }
.stab-bes th { text-align: left; font-weight: 600; width: 45%; }
.stab-meine { margin-top: 10px; }
.stab-warn { background: #ffe4e4; color: var(--rot); font-weight: 700; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; }
.stab-next { background: #eef0ff; border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; }
.stab-lm, .stab-bs, .stab-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.stab-lm li, .stab-liste li { padding: 5px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.stab-liste li.rot { color: var(--rot); }
.stab-bs li { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.stab-bs li.abgesagt { opacity: .5; text-decoration: line-through; }
.stab-bs li > span:last-child { display: flex; gap: 4px; flex-shrink: 0; }
.stab-erg { white-space: pre-wrap; margin-top: 2px; }
.stab-beitr { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.stab-beitr span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: .85rem; color: var(--muted); }
.stab-beitr span.ok { background: #eef7ea; color: #2e7d32; border-color: #b8dcb0; font-weight: 700; }
.sg-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.sg-kopf h2 { margin: 0; }
.sg-goto { margin-left: auto; display: flex; gap: 6px; }
.sg-kz { margin-bottom: 14px; }
.sg-eintrag { display: flex; gap: 6px; margin-bottom: 8px; }
.sg-eintrag select { width: auto; margin: 0; }
.sg-eintrag input { flex: 1; margin: 0; }
.stab-pi { border-top: 1px solid var(--line); padding: 6px 0; white-space: pre-wrap; }
#sgNotiz, #kommPlan { width: 100%; }
.lm-text { font-size: .85rem; }
.lm-empf { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 10px; margin-bottom: 8px; }
.lm-akt { flex-wrap: wrap; }
.lm-banner { background: #3b3a6b !important; }
.pill-erledigt { color: #2e7d32; font-size: .8rem; font-weight: 700; }
.pill-abgesagt { color: var(--muted); font-size: .8rem; }
/* Lagevortrag */
.vortrag { color: #f2f2f2; min-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.vt-folie { flex: 1; background: #1c1c22; border-radius: 14px; padding: 28px 36px; font-size: 1.35rem; line-height: 1.45; }
.vt-titel { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-height: 60vh; }
.vt-gross { font-size: 2.6rem; font-weight: 800; }
.vt-klein { font-size: 1rem; color: #aaa; margin-top: 14px; }
.vt-kopf { font-size: 1.9rem; font-weight: 800; margin-bottom: 16px; display: flex; gap: 16px; align-items: baseline; }
.vt-kopf span { font-size: 1.1rem; font-weight: 400; color: #bbb; }
.vt-folie .k-tile { background: #2a2a33; box-shadow: none; }
.vt-folie .k-tile .v { color: #fff; font-size: 2rem; }
.vt-folie .k-tile .l { color: #bbb; font-size: .95rem; }
.vt-folie .k-tile.rot { background: #5a1a1a; }
.vt-text { white-space: pre-wrap; background: #24242c; border-radius: 10px; padding: 14px 18px; margin-top: 10px; }
.vt-text.leer { color: #888; font-style: italic; }
.vt-liste li { margin: 6px 0; }
.vt-karte { height: 62vh; border-radius: 10px; overflow: hidden; }
.vt-pegel { margin-top: 12px; }
.vt-pegel li { border-color: #333 !important; }
.vt-nav { display: flex; align-items: center; gap: 10px; padding: 10px 4px; color: #ddd; flex-wrap: wrap; }
.vt-punkte { display: flex; gap: 6px; margin-left: auto; }
.vt-punkte button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #555; cursor: pointer; padding: 0; }
.vt-punkte button.aktiv { background: #fff; }
@media print {
  .lm-druck { white-space: pre-wrap; font: 10pt/1.4 monospace; }
  .vt-druck { page-break-inside: avoid; border-bottom: .4pt solid #999; padding: 4mm 0; color: #000; }
  .vt-druck .k-summary { display: flex; flex-wrap: wrap; gap: 3mm; }
  .vt-druck .k-tile { border: .3pt solid #999; padding: 1mm 3mm; box-shadow: none; }
  .vt-druck .vt-gross { font-size: 18pt; font-weight: 700; }
  .vt-druck .vt-kopf { font-size: 14pt; font-weight: 700; margin-bottom: 2mm; }
  .vt-druck .vt-text { white-space: pre-wrap; border-left: 1mm solid #999; padding-left: 3mm; }
}
@media (max-width: 760px) { .vt-folie { padding: 16px; font-size: 1.05rem; } .vt-gross { font-size: 1.7rem; } .sg-goto { margin-left: 0; } }
body.vortrag-modus #lizBanner, body.vortrag-modus #verbBanner, body.vortrag-modus #lmBanner, body.vortrag-modus #aufBanner { display: none !important; }
body.vortrag-modus .vortrag { height: calc(100vh - 24px); min-height: 0; }
body.vortrag-modus .vt-folie { overflow-y: auto; }
.vortrag .btn.ghost { color: #eee; border-color: #666; background: transparent; }
.vortrag .btn[disabled] { opacity: .35; }
@media (max-width: 760px) { .sg-eintrag { flex-wrap: wrap; } .sg-eintrag input { flex-basis: 100%; order: -1; } .sg-eintrag select, .sg-eintrag .btn { flex: 1; } }
/* Pegel-Tendenz, Wetter-Vorhersage */
.pg-trend.gleich { color: #555; }
.pg-trend.offen { color: var(--muted); font-style: italic; }
.pg-trend small { font-weight: 400; }
.w-regen.viel b { color: var(--rot); }
.w-tage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.w-tage > div { background: #f6f4f1; border-radius: 8px; padding: 6px 8px; font-size: .85rem; }
.w-tage .h { font-weight: 700; }
.w-tage .ic { font-size: 1.4rem; }
.w-tage .t { font-weight: 700; }
.w-tage .n.viel { color: var(--rot); font-weight: 700; }
.sg-wetter { grid-column: 1 / -1; }
.vt-wetter { margin-top: 14px; background: #24242c; border-radius: 10px; padding: 12px 18px; font-size: 1.1rem; }
.vt-warn { color: #ffb347; font-weight: 700; }
.vt-folie .pg-trend.gleich { color: #ccc; }
@media (max-width: 760px) { .w-tage { grid-template-columns: repeat(2, 1fr); } }
.pg-trend { white-space: nowrap; }
.sg-pegel { grid-column: span 2; }
.sg-eintrag { flex-wrap: wrap; }
.sg-eintrag input { flex-basis: 100%; order: -1; }
.sg-eintrag select, .sg-eintrag .btn { flex: 1; }
@media (max-width: 1100px) { .sg-pegel { grid-column: auto; } }

/* Großbildschirm: Termine, Pegel, Wetter */
.an-unten { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(var(--n, 1), 1fr); gap: 12px; }
.an-unten.n2 { --n: 2; } .an-unten.n3 { --n: 3; }
.an-bs { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid #333; font-size: 1.05rem; }
.an-bs .z { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.an-bs small { display: block; color: #aaa; font-size: .85rem; }
.an-bs .c { color: #ccc; font-weight: 700; font-variant-numeric: tabular-nums; }
.an-bs.naechste { background: #23263a; border-radius: 8px; padding-left: 8px; padding-right: 8px; }
.an-bs.bald .c { color: #ffb347; }
.an-bs.bald { animation: anblink 2s steps(2, start) 3; }
.an-pg { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid #333; font-size: 1.05rem; }
.an-pg small { color: #aaa; font-weight: 400; }
.an-pg .v { font-weight: 800; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.an-pg .td { min-width: 9.5em; text-align: right; color: #ccc; }
.an-pg.steigt .td { color: #ff6b6b; font-weight: 800; }
.an-pg.faellt .td { color: #7bd88f; }
.an-pg.offen .td { color: #888; font-style: italic; }
.an-wjetzt { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.1rem; }
.an-wjetzt .ic { font-size: 1.8rem; }
.an-wjetzt b { font-size: 1.6rem; }
.an-regen { margin: 6px 0; font-size: 1.05rem; }
.an-regen.viel b { color: #ff6b6b; }
.an-warn { background: #5a3a00; color: #ffd27a; border-radius: 6px; padding: 4px 8px; margin: 4px 0; font-weight: 700; }
.an-warn.s3 { background: #5a1a1a; color: #ff9b9b; }
.an-tage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.an-tage > div { background: #2a2a2a; border-radius: 8px; padding: 6px 8px; display: flex; flex-direction: column; font-size: .95rem; }
.an-tage .ic { font-size: 1.4rem; }
.an-tage .viel { color: #ff6b6b; font-weight: 800; }
@media (max-width: 1100px) { .an-unten { grid-template-columns: 1fr; } }
/* Großbildschirm passt immer auf den Bildschirm; Lizenzhinweis dort ausgeblendet */
body.anzeige-modus .banner-stack { position: static; }
body.anzeige-modus #lizBanner { display: none !important; }
.anzeige { height: calc(100vh - 24px); min-height: 0; }
.an-grid { grid-template-rows: auto auto 1fr auto; }
.an-kraefte, .an-karte { grid-row: 1 / span 3; }
.an-unten { max-height: 34vh; min-height: 0; }
.an-unten > .an-box { overflow-y: auto; }
.an-map { min-height: 0; }
@media (max-width: 1100px) { .anzeige { height: auto; } .an-unten { max-height: none; } }
.an-unten .an-wetter { grid-column: auto; }

/* ---------- Mannschaft (namentlich) & Stunden ---------- */
.k-bes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: .88rem; }
.k-bes .btn { margin-left: auto; }
.bes-h { margin: 12px 0 4px; font-size: .95rem; }
.bes-aktiv { list-style: none; margin: 0; padding: 0; max-height: 28vh; overflow-y: auto; }
.bes-aktiv li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px solid var(--line); }
.bes-aktiv li > span { flex: 1; }
.bes-kdt { border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; color: #bbb; font-size: 1rem; }
.bes-kdt.an { color: #e0a800; border-color: #e0a800; background: #fff8e0; }
.bes-liste { max-height: 32vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; margin: 6px 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 10px; }
.bes-m { margin: 2px 0; align-items: flex-start; }
.bes-wo { color: #a05a00; font-size: .8rem; }
.std-sec summary { cursor: pointer; list-style: none; }
.std-sec summary::-webkit-details-marker { display: none; }
.std-sec summary h3::before { content: '▸ '; }
.std-sec[open] summary h3::before { content: '▾ '; }
.std-tools { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.std-tab tr.eigen td { background: #f4f7ff; }
.std-tab tfoot td { border-top: 2px solid var(--line); }
.std-pers td { background: #fafafa; }
.std-st { display: inline-block; margin-right: 10px; white-space: nowrap; font-size: .88rem; }
.mg-funk { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 10px; padding-bottom: 6px; }

/* ---------- Übung ---------- */
.uebung-badge { background: #ffd400; color: #111; font-weight: 800; font-size: .78rem; border-radius: 999px; padding: 2px 10px; letter-spacing: .04em; }
body.uebung::after { content: 'ÜBUNG'; position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); background: #ffd400; color: #111; font-weight: 900; letter-spacing: .3em; padding: 4px 18px; border-radius: 999px; z-index: 900; box-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: none; font-size: .9rem; }
body.uebung .topbar { background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,212,0,.22) 22px 34px); }
.an-uebung { background: #ffd400; color: #111; border-radius: 6px; padding: 0 10px; font-size: 1.4rem; }
@media print { body.uebung #print::before { content: 'ÜBUNG – KEIN ECHTEINSATZ'; display: block; text-align: center; font: 700 14pt sans-serif; border: 2pt solid #000; padding: 2mm; margin-bottom: 4mm; letter-spacing: .2em; } body.uebung::after { display: none; } }
.demo-karte .t-btns .btn { flex: 1 1 260px; }
body:not(.rolle-einsatzleitung):not(.rolle-admin) .el-only { display: none !important; }
.ul-kopf { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 14px; }
.ul-kopf > div:first-child { flex: 1; min-width: 260px; }
.ul-uhr { display: flex; flex-direction: column; align-items: center; }
.ul-uhr span { font-size: 2.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ul-uhr small { color: var(--muted); }
.ul-liste { list-style: none; margin: 0; padding: 0; }
.ul-liste li { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); align-items: start; }
.ul-liste li.erledigt { opacity: .55; }
.ul-liste li.naechste { background: #fff8e0; border-radius: 6px; }
.ul-min { font-weight: 800; font-variant-numeric: tabular-nums; }
.ul-akt { display: flex; gap: 4px; white-space: nowrap; }
.ul-neu { margin-top: 14px; }

/* ---------- Hilfe & Taschenkarten ---------- */
.hilfe-btn { font-weight: 800; }
.dlg-hilfe { width: min(920px, 96vw); }
.hilfe-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 14px; min-height: 340px; }
.hilfe-nav { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 8px; max-height: 60vh; overflow-y: auto; }
.hilfe-nav button { text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font: inherit; cursor: pointer; color: var(--text); }
.hilfe-nav button.aktiv { background: var(--rot); color: #fff; font-weight: 700; }
.hilfe-inhalt h3 { margin-top: 0; }
.hilfe-inhalt li { margin: 6px 0; line-height: 1.45; }
.hilfe-tk { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
@media (max-width: 760px) { .hilfe-wrap { grid-template-columns: 1fr; } .hilfe-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; max-height: none; } }
@media print {
  body.print-karten #print .tk-seite { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  body.print-karten .tk { box-sizing: border-box; width: 97mm; height: 139mm; border: .3pt dashed #888; padding: 5mm 6mm; overflow: hidden; page-break-inside: avoid; break-inside: avoid; display: flex; flex-direction: column; }
  body.print-karten .tk:nth-child(4n+5) { break-before: page; }
  body.print-karten .tk-kopf { font-size: 7pt; color: #555; border-bottom: 1.5pt solid var(--tk); padding-bottom: 1mm; }
  body.print-karten .tk h2 { font-size: 13pt; margin: 2mm 0 2mm; color: var(--tk); }
  body.print-karten .tk ol { margin: 0; padding-left: 5mm; font-size: 10.5pt; line-height: 1.35; flex: 1; }
  body.print-karten .tk li { margin-bottom: 1.6mm; }
  body.print-karten .tk-fuss { font-size: 6.5pt; color: #555; border-top: .3pt solid #aaa; padding-top: 1mm; }
  body.print-karten.uebung #print::before { display: none; }
}
body.rolle-lesen .hilfe-btn { display: inline-block; } .hilfe-btn { filter: none; opacity: 1; color: #fff; }

/* andkaEL-Relay in den Einstellungen */
.relay-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; background: var(--bg); }
.relay-box:empty { display: none; }
.relay-box .relay-kopf { margin-bottom: 6px; }
.relay-box .row2 { margin-top: 8px; }

/* Führung & Ablöse (EL, LtS, S1–S6, Abschnitts-/BR-Leiter) */
.stab-grid .fuehr-karte { grid-column: 1 / -1; }
.fuehr-tab { width: 100%; border-collapse: collapse; }
.fuehr-tab th, .fuehr-tab td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fuehr-tab th { text-align: left; font-weight: 600; width: 30%; }
.fuehr-tab td.r { text-align: right; white-space: nowrap; }
.fuehr-tab .fuehr-gruppe th { border-bottom: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-top: 10px; width: auto; }
.fuehr-tab tr.z-hinweis td.fuehr-zeit { background: #fff4d6; }
.fuehr-tab tr.z-warn td.fuehr-zeit { background: #ffe4e4; color: var(--rot); font-weight: 600; }
.fuehr-zeit { white-space: nowrap; }
.fuehr-ue-titel { margin: 14px 0 6px; font-size: 14px; }
.fuehr-ue { list-style: none; margin: 0; padding: 0; }
.fuehr-ue li { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.fuehr-ue li.offen { background: #fff8e6; }
.fuehr-ue li > span:last-child { display: flex; gap: 4px; }
.pill-offen { background: #fde7b0; color: #7a4b00; border-radius: 10px; padding: 1px 8px; font-size: 11px; font-weight: 600; }
.fuehr-dlg { max-width: 720px; }
.fuehr-auto { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 8px 10px; margin: 6px 0 10px; }
.fuehr-auto pre { margin: 6px 0 0; max-height: 220px; overflow: auto; white-space: pre-wrap; font: 12px/1.45 ui-monospace, Consolas, monospace; }
@media print {
  .fuehr-druck { width: 100%; border-collapse: collapse; margin: 3mm 0; }
  .fuehr-druck th, .fuehr-druck td { border: .4pt solid #000; padding: 2mm; text-align: left; vertical-align: top; font-size: 10pt; }
  .fuehr-druck th { width: 32%; }
  .fuehr-unterschrift td { width: 50%; height: 22mm; }
  #print h2 { font-size: 12pt; margin: 4mm 0 1mm; }
}
@media (max-width: 640px) { .fuehr-tab th { width: auto; } .fuehr-tab td.fuehr-zeit { white-space: normal; } }

/* Lagestand: Veränderungen seit der letzten Lagebesprechung (Lagevortrag) */
.vt-aend { margin-top: 12px; background: #1f2b26; border-left: 5px solid #3fae7a; border-radius: 10px; padding: 10px 16px; font-size: 1.05rem; }
.vt-aend-kopf { font-weight: 700; color: #9fe0bf; margin-bottom: 4px; }
.vt-aend ul { margin: 0; padding-left: 1.2em; }
.vt-aend li { margin: 2px 0; }
.vt-fuehr { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 1rem; color: #ddd; }
@media print {
  .vt-druck .vt-aend { border-left: 1mm solid #666; padding-left: 3mm; margin-top: 2mm; }
  .vt-druck .vt-aend-kopf { font-weight: 700; }
}

/* Fahrzeug-Standort */
.k-btns .k-geortet { border-color: #0a7d4f; color: #0a7d4f; box-shadow: inset 0 0 0 1px #0a7d4f; }
.fz-such { animation: fzSuch 1.2s ease-out infinite; }
@keyframes fzSuch { 0% { stroke-opacity: 1; } 100% { stroke-opacity: .15; } }
.fuehr-badge { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: #1d3a8a; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); position: relative; z-index: 1; white-space: nowrap; }
.fuehr-pin .gps-lbl { color: #1d3a8a; }
.gps-pin.alt .fuehr-badge { filter: grayscale(1); opacity: .6; }
#lageFuehrBtn.primary { background: #1d3a8a; border-color: #1d3a8a; }
.qr-ohne { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: .92rem; }
.qr-kurz { font-size: 1.8rem; font-weight: 800; letter-spacing: .12em; margin: 6px 0 8px; }
