:root {
  --rot: #b71c1c; --rot-d: #8e1414; --rot-l: #fbeaea;
  --ink: #1d232a; --ink-2: #4a5561; --ink-3: #7b8692;
  --line: #e2e6ea; --bg: #f5f6f8; --card: #fff;
  --ok: #1e7a46; --ok-l: #e7f5ed; --warn: #b26a00;
  --r: 10px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  font-size: 14.5px; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--rot); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 1.1rem 0 .5rem; }
code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; font-size: .85em; word-break: break-all; }
.dim { color: var(--ink-3); font-weight: 400; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.2rem;
  background: var(--ink); color: #fff; padding: .55rem 1.2rem; flex-wrap: wrap; }
.brand { display: flex; gap: .6rem; align-items: center; }
.brand .mark { height: 40px; width: auto; display: block; }
.brand strong { display: block; font-size: .98rem; }
.brand small { display: block; color: #aeb8c2; font-size: .75rem; }
.menu nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.menu nav a { color: #d5dbe1; padding: .45rem .75rem; border-radius: 7px; font-weight: 500; }
.menu nav a:hover { background: #2c343d; text-decoration: none; color: #fff; }
.menu nav a.on { background: #fff; color: var(--ink); }
.tools { margin-left: auto; display: flex; gap: .7rem; align-items: center; }
.jahr label { color: #aeb8c2; font-size: .8rem; display: flex; gap: .4rem; align-items: center; }
.jahr select { background: #2c343d; color: #fff; border: 1px solid #3b4550; border-radius: 7px; padding: .35rem .5rem; font: inherit; }

main { max-width: 1250px; margin: 0 auto; padding: 1.3rem 1.2rem 5rem; }
footer { text-align: center; color: var(--ink-3); font-size: .75rem; padding: 1rem; }
.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .35rem; padding: .5rem .95rem; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: #c6ccd2; text-decoration: none; background: #fafbfc; }
.btn.primary { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn.primary:hover { background: var(--rot-d); }
.btn.danger { color: var(--rot); border-color: #efc4c4; }
.btn.danger:hover { background: var(--rot-l); }
.btn.small { padding: .32rem .65rem; font-size: .82rem; font-weight: 500; }

/* Karten */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 0 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; border-top: 3px solid var(--rot); }
.tile span { display: block; color: var(--ink-2); font-size: .8rem; font-weight: 600; }
.tile b { display: block; font-size: 1.9rem; font-variant-numeric: tabular-nums; margin: .15rem 0; }
.tile small { color: var(--ink-3); font-size: .78rem; }
.tile.small b { font-size: 1.35rem; }
.tile small.ohne-entsch { display: block; }   /* 3.8.18: Einsätze ohne Einsatzentschädigung */

/* Tabellen */
.tablewrap { overflow-x: auto; }
.tablewrap.short { max-height: 420px; overflow-y: auto; }
table.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.grid.narrow { width: auto; min-width: 320px; }
.grid th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3);
  font-weight: 600; padding: .5rem .6rem; border-bottom: 2px solid var(--line); background: #fff; position: sticky; top: 0; }
.grid td { padding: .42rem .6rem; border-bottom: 1px solid #eef0f2; }
.grid tbody tr:hover { background: #fafbfc; }
.grid tfoot td { font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.grid .num { text-align: right; }
.grid .nr { width: 3rem; color: var(--ink-3); }
.grid .strong { font-weight: 700; }
.grid .zero { color: #c3c9cf; }
.grid tr.muted td { color: var(--ink-3); }
.grid tr.click { cursor: pointer; }
.nowrap { white-space: nowrap; }
.empty { color: var(--ink-3); text-align: center; padding: 1.5rem; }

.tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .05rem .4rem; border-radius: 4px; background: #eef0f3; color: var(--ink-2); vertical-align: 1px; }
.tag.night { background: #e6e9f5; color: #34407a; }
.tag.nacht { background: #000; color: #fff; }
.tag.tagzeit { background: #a9d8f5; color: #000; }
.tag.nacht, .tag.tagzeit { min-width: 2.6rem; text-align: center; }
/* Einsatztypen */
.tag.typ { min-width: 2.6rem; text-align: center; color: #fff; }
.tag.typ-B   { background: #c62828; }
.tag.typ-TH  { background: #1565c0; }
.tag.typ-THV { background: #ef6c00; }
.tag.typ-THT { background: #2e7d32; }
.tag.typ-BMA { background: #6a1b9a; }
.tag.typ-SO  { background: #616161; }
.warn { color: var(--warn); font-weight: 600; }
.kat { font-size: .78rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; background: #eef0f3; white-space: nowrap; }
.k-einsatz { background: var(--rot-l); color: var(--rot); }
.k-jf_ausbildung, .k-jf_veranstaltung { background: #e7f0fb; color: #1f4e8c; }
.count { display: inline-block; min-width: 1.6rem; text-align: center; font-size: .78rem; background: var(--ink); color: #fff; border-radius: 99px; padding: .05rem .45rem; margin-left: .3rem; vertical-align: 2px; }

/* Balken */
.bars { display: grid; gap: .35rem; }
.bar { display: grid; grid-template-columns: 170px 1fr 90px 90px; align-items: center; gap: .8rem; color: var(--ink); padding: .2rem .3rem; border-radius: 6px; }
.bar:hover { background: #f7f8fa; text-decoration: none; }
.bar .track { height: 12px; background: #f0f2f4; border-radius: 99px; overflow: hidden; }
.bar .fill { display: block; height: 100%; background: var(--rot); border-radius: 99px; }
.bar .val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar .sub { color: var(--ink-3); font-size: .8rem; }

/* Chips */
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { padding: .35rem .75rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .86rem; }
.chip em { font-style: normal; color: var(--ink-3); margin-left: .2rem; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.on em { color: #aeb8c2; }
.chip:hover { text-decoration: none; border-color: #c6ccd2; }

/* Formulare */
.form label, .fields label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.fields { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; margin-bottom: .8rem; }
.fields .wide { flex: 1 1 280px; }
.fieldbtn { display: flex; align-items: flex-end; }
input, select { font: inherit; font-weight: 400; color: var(--ink); padding: .48rem .6rem; border: 1px solid #cfd5db; border-radius: 7px; background: #fff; }
input:focus, select:focus { outline: 2px solid #f1b5b5; border-color: var(--rot); }
label.check { flex-direction: row; align-items: center; gap: .5rem; margin: .7rem 0; }
.hint { color: var(--ink-3); font-size: .82rem; margin: .5rem 0 0; }
.links { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .5rem; }

/* Anwesenheit */
.att-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.att-head h2 { margin: 0; }
.att-tools { display: flex; gap: .5rem; flex-wrap: wrap; }
.att-tools input[type=search] { min-width: 200px; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: .4rem; }
.pitem { display: flex !important; flex-direction: row !important; align-items: center; gap: .55rem !important;
  border: 1px solid var(--line); border-radius: 8px; padding: .35rem .45rem .35rem .6rem; cursor: pointer;
  font-size: .9rem !important; font-weight: 500 !important; color: var(--ink) !important; background: #fff; user-select: none; }
.pitem:hover { border-color: #c6ccd2; }
.pitem.on { border-color: var(--ok); background: var(--ok-l); }
.pitem input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--ok); margin: 0; }
.pitem .pname { flex: 1; }
.pitem .hrs { width: 62px; padding: .25rem .4rem; text-align: right; }
.pitem:not(.on) .hrs { visibility: hidden; }
.pitem.hidden { display: none !important; }
details summary { cursor: pointer; font-weight: 600; margin: 1rem 0 .5rem; color: var(--ink-2); }
.actions { display: flex; gap: .6rem; align-items: center; }
.actions .grow { flex: 1; }
.actions.sticky { position: sticky; bottom: 0; background: rgba(245,246,248,.94); backdrop-filter: blur(4px); padding: .8rem 0; border-top: 1px solid var(--line); }
.only-einsatz, .only-lehrgang { display: none !important; }
form[data-kat=einsatz] .only-einsatz { display: flex !important; }
form[data-kat=lehrgang] .only-lehrgang { display: flex !important; }

/* Meldungen */
.flashes { display: grid; gap: .4rem; margin-bottom: 1rem; }
.flash { padding: .6rem .9rem; border-radius: 8px; background: var(--ok-l); color: #14532d; border: 1px solid #bfe3cd; }
.flash.warnung { background: #fff4e0; color: #8a5200; border-color: #f3d39b; }
.flash.fehler { background: var(--rot-l); color: var(--rot-d); border-color: #f0c2c2; }

@media (max-width: 760px) {
  .bar { grid-template-columns: 110px 1fr 70px; }
  .bar .sub { display: none; }
  .tools { margin-left: 0; }
}
.tile small b { display: inline; font-size: inherit; margin: 0; color: var(--ink); }
.empty-start { border-left: 4px solid var(--rot); }
.empty-start p { margin: .4rem 0 .8rem; }
.wappen-row { display: flex; gap: 1rem; align-items: center; }
.wappen-vorschau { height: 90px; width: auto; }
.cols.tight { gap: 0 1.5rem; }
.steps { margin: .3rem 0 .6rem; padding-left: 1.3rem; line-height: 1.7; }
.actions form { display: inline; }

/* =====================================================================
   Bildschirm-Layout ab 1200 px Breite (FullHD): volle Breite, keine
   Seiten-Scrollbalken – lange Listen scrollen innerhalb ihrer Karte.
   ===================================================================== */
.layout { display: grid; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col > .card, .layout > .card { margin-bottom: 0; }
.card.grow { display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.tiles.zwei { grid-template-columns: 1fr 1fr; }

@media (min-width: 1200px) {
  :root { font-size: 14px; }
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
  .top { flex: none; padding: .4rem 1.2rem; }
  main { flex: 1; min-height: 0; overflow: auto; max-width: none; width: 100%;
         padding: 12px 20px 14px; display: flex; flex-direction: column; }
  .pagehead { flex: none; margin-bottom: 10px; }
  h1 { font-size: 1.35rem; }
  .flashes { flex: none; }
  .card { padding: .85rem 1rem; }
  .tiles { margin-bottom: 0; gap: 12px; }
  .tile { padding: .6rem .9rem; }
  .tile b { font-size: 1.6rem; margin: .05rem 0; }
  .grid td { padding: .22rem .55rem; }
  .grid th { padding: .38rem .55rem; }
  .bars { gap: .15rem; }
  .bar { padding: .1rem .3rem; grid-template-columns: 150px 1fr 80px 80px; }

  /* Seiten mit festem Raster füllen die Fensterhöhe */
  main.voll .layout { flex: 1; min-height: 0; }
  main.voll .col { min-height: 0; }
  main.voll .card.grow { flex: 1; min-height: 0; }
  main.voll .scrollbox { flex: 1; min-height: 0; overflow: auto; }
  .scrollbox .grid thead th { position: sticky; top: 0; z-index: 1; }
  .scrollbox .grid tfoot td { position: sticky; bottom: 0; background: #fff; z-index: 1; }

  .layout.uebersicht { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .layout.einsaetze { grid-template-columns: 300px minmax(0, 1.7fr) minmax(0, 1fr); }
  .layout.mitglieder { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .layout.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .layout.konfig { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
  .konfig-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .konfig-form .card { margin: 0; }
  .konfig-form .actions { grid-column: 1 / -1; }
  .cols { gap: 0 14px; }
  .actions.sticky { padding: .6rem 0; }
  .plist { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .3rem; }
  .pitem { padding: .22rem .4rem .22rem .55rem !important; }
  .pitem .hrs { padding: .15rem .35rem; }
  h3 { margin: .7rem 0 .35rem; }
  .hint { font-size: .8rem; }
}

.updatebar { display: block; flex: none; background: #fff4d6; color: #7a4b00; border-bottom: 1px solid #f0d58a;
  padding: .35rem 1.2rem; font-weight: 600; font-size: .88rem; }
.updatebar:hover { background: #ffecb8; text-decoration: none; }
.tag.neu { background: #fff4d6; color: #7a4b00; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
ul.hint { margin: .4rem 0 0; padding-left: 1.2rem; }
.tiles.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.drei .tile b { font-size: 1.45rem; }
.tiles.drei .tile small { display: block; line-height: 1.25; }

/* ===== 1.5.0: Stammdaten ===== */
.pagehead .grow { flex: 1; }
.pagehead h1 .tag.dg { font-size: .8rem; vertical-align: 3px; background: #0e1a4f; color: #fff; }
.tag.dg { background: #e6e9f5; color: #0e1a4f; }
.mliste { display: flex; flex-direction: column; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) 128px auto; gap: .4rem; align-items: center;
  padding: .12rem .3rem; border-bottom: 1px solid #f0f2f4; border-radius: 5px; }
.mrow.on { background: var(--ok-l); }
.mrow label { display: flex; align-items: center; gap: .45rem; min-width: 0; cursor: pointer; font-size: .85rem; }
.mrow label b { min-width: 3.1rem; font-size: .8rem; }
.mrow label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.mrow input[type=date] { font-size: .78rem; padding: .1rem .25rem; width: 128px; }
.mrow input[type=date].ablauf { border-color: var(--rot); color: var(--rot); }
.mrow .mleer { font-size: .72rem; color: var(--ink-3); width: 128px; text-align: center; }
.mrow:not(.on) input[type=date] { opacity: .45; }
.hinweis { background: #fff4d6; color: #6b4300; border-radius: 6px; padding: .4rem .6rem; font-size: .84rem; margin-bottom: .5rem; }
.hinweis.ok { background: var(--ok-l); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: .2rem; }
.chip { font-size: .68rem; font-weight: 700; padding: 0 .3rem; border-radius: 4px; background: #eef0f3; color: var(--ink-2); }
.chip.fs { background: #e6f0fb; color: #1c4f86; }
.chip.abz { background: #fff4d6; color: #7a4b00; }
/* Fällig-Karte */
.faellig-liste { list-style: none; margin: 0; padding: 0; }
.faellig-liste li { display: grid; grid-template-columns: 10px minmax(150px, 220px) minmax(0, 1fr); gap: .5rem; align-items: center;
  padding: .18rem .2rem; border-bottom: 1px solid #f0f2f4; font-size: .85rem; }
.faellig-liste .punkt { width: 9px; height: 9px; border-radius: 50%; background: #8aa0c8; }
.faellig-liste .rot .punkt { background: var(--rot); }
.faellig-liste .gelb .punkt { background: #e2a300; }
.faellig-liste li a { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.faellig .scrollbox { max-height: 132px; overflow: auto; }
/* Qualifikations-Matrix */
.matrix { width: auto; }
.matrix th.rot90, .matrix td.x { min-width: 34px; }
.matrix tbody td:first-child { min-width: 200px; }
.matrix th.rot90 { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; padding: .4rem .15rem; text-align: left; font-size: .72rem; }
.matrix td.x { text-align: center; color: var(--ok); font-weight: 700; padding: .2rem .1rem; }
.matrix td.x.alt { color: var(--rot); }
.matrix tbody td:first-child { white-space: nowrap; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.tabs a { padding: .3rem .7rem; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: .85rem; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.katform td { padding: .15rem .3rem !important; }
.katform input { font-size: .82rem; padding: .15rem .3rem; width: 100%; }
.katform input.kurz { width: 5rem; } .katform input.zahl { width: 3.5rem; }
@media (min-width: 1200px) {
  .layout.person3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .layout.person3 .col > .card:not(.grow) { flex: none; }
  .layout.mitglieder3 { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .konfig-form #mitglieder ~ .actions { grid-column: auto; align-self: end; }
}
.grid.list td { vertical-align: middle; }
.chips { line-height: 1.3; }
@media (min-width: 1200px) {
  main.voll .layout.person3 { grid-template-rows: minmax(0, 1fr); }
  main.voll .layout.person3 > div.col:first-of-type { overflow: auto; padding-right: 2px; }
}

/* ===== 1.6.0 ===== */
.ampel { display: inline-block; min-width: 2.4rem; text-align: center; font-weight: 700; font-size: .78rem;
  padding: .02rem .35rem; border-radius: 10px; }
.ampel.gruen { background: var(--ok-l); color: var(--ok); }
.ampel.gelb { background: #fff4d6; color: #7a4b00; }
.ampel.rot { background: var(--rot-l); color: var(--rot); }
.tile.ampel-tile.gruen { border-top-color: var(--ok); } .tile.ampel-tile.gelb { border-top-color: #e2a300; }
.chips-check { display: flex; flex-wrap: wrap; gap: 0 .9rem; }
.chips-check label.check { margin: .15rem 0; font-weight: 500; }
.mehrjahr td.num { white-space: nowrap; }
.mehrjahr .mj-wert { display: inline-block; min-width: 3.2rem; }
.mehrjahr .mj-bar { display: inline-block; width: 56px; height: 6px; background: #eef0f3; border-radius: 3px; margin-left: .4rem; vertical-align: 1px; }
.mehrjahr .mj-bar i { display: block; height: 100%; background: var(--rot); border-radius: 3px; }
.mehrjahr tr.abschnitt td { background: #f3f5f8; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
form.jahr.inline { display: flex; gap: .6rem; }
form.jahr.inline label { display: flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 600; }
@media (min-width: 1200px) { .actions.nur-schmal { display: none; } }

/* ===== 1.6.2: Anstehende Termine ===== */
.termin-liste { list-style: none; margin: 0; padding: 0; }
.termin-liste li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.2rem; align-items: baseline;
  padding: .32rem .5rem .32rem .7rem; border-bottom: 1px solid #f0f2f4; border-left: 3px solid #8aa0c8; }
.termin-liste li.gelb { border-left-color: #e2a300; }
.termin-liste li.rot { border-left-color: var(--rot); background: var(--rot-l); }
.termin-liste .wann { display: flex; flex-direction: column; line-height: 1.2; }
.termin-liste .wann b { font-size: .86rem; }
.termin-liste .wann small { color: var(--ink-3); font-size: .74rem; }
.termin-liste .was { font-size: .9rem; color: var(--ink); }
.termin-liste .was a { font-weight: 650; }
.card.faellig .scrollbox { max-height: 150px; overflow: auto; }

/* ===== 1.7.0: PA-Haken, Nachweise ===== */
.pitem .pa { display: inline-flex; align-items: center; gap: .15rem; font-size: .68rem; font-weight: 700; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 .25rem; cursor: pointer; }
.pitem .pa input { width: 13px !important; height: 13px !important; margin: 0; accent-color: #1c4f86; }
.pitem .pa:has(input:checked) { background: #e6f0fb; color: #1c4f86; border-color: #9cc0e6; }
.pitem:not(.on) .pa { display: none; }
form[data-kat=einsatz] .not-einsatz { display: none !important; }
.st { display: inline-block; min-width: 5.6rem; text-align: center; font-size: .76rem; font-weight: 600; padding: .05rem .35rem; border-radius: 5px; }
.st.ok { background: var(--ok-l); color: var(--ok); }
.st.bald { background: #fff4d6; color: #7a4b00; }
.st.abgelaufen, .st.fehlt { background: var(--rot-l); color: var(--rot); }
.st.na { color: #c4cad1; background: none; }
.bereit { font-weight: 700; }
.bereit.ja { color: var(--ok); } .bereit.nein { color: var(--rot); }
.matrix2 td, .matrix2 th { text-align: center; }
.matrix2 td:first-child, .matrix2 th:first-child { text-align: left; }
.pcheck { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .15rem .6rem; max-height: 210px; overflow: auto;
  border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; }
.pcheck label { display: flex !important; flex-direction: row !important; align-items: center; gap: .4rem; font-weight: 500 !important; font-size: .84rem !important; }

/* ===== 1.7.1: PA-Details beim Erfassen ===== */
.pitem { flex-wrap: wrap; }
.pitem .pa-det { display: none; flex-basis: 100%; gap: .25rem; padding-left: 1.6rem; margin-top: .15rem; align-items: center; }
.pitem .pa-det i { font-style: normal; font-size: .7rem; color: var(--ink-3); }
.pitem.on:has(.pa-cb:checked) .pa-det { display: flex; }
.pitem .pa-det input { width: 0; flex: 1; min-width: 0; padding: .12rem .3rem !important; font-size: .76rem; text-align: right; }
.pitem .pa-det input::placeholder { text-align: left; font-size: .7rem; }
.btn.nav-btn[disabled] { opacity: .45; }

/* ---------- 2.0: Benutzermenü, Anmeldung, Verwaltung ---------- */
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; background: var(--rot);
  color: #fff; display: grid; place-items: center; font-weight: 600; user-select: none; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu-box { position: absolute; right: 0; top: 42px; background: #fff; color: var(--ink); border-radius: var(--r);
  box-shadow: 0 8px 30px rgba(0,0,0,.18); min-width: 220px; padding: .4rem; z-index: 20; }
.usermenu-kopf { padding: .5rem .6rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.usermenu-kopf b, .usermenu-kopf small { display: block; }
.usermenu-kopf small { color: var(--ink-3); font-size: .78rem; }
.usermenu-box a, .usermenu-box button { display: block; width: 100%; text-align: left; padding: .5rem .6rem; border-radius: 7px;
  color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer; }
.usermenu-box a:hover, .usermenu-box button:hover { background: var(--bg); text-decoration: none; }
.jahr optgroup { color: #aeb8c2; }

body.auth { min-height: 100vh; display: grid; place-items: center; background: var(--ink); padding: 1rem; }
.auth-box { background: var(--card); border-radius: 14px; width: 100%; max-width: 420px; padding: 1.8rem 1.8rem 1.4rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.auth-box.breit { max-width: 640px; }
.auth-kopf { display: flex; gap: .8rem; align-items: center; margin-bottom: 1.3rem; }
.auth-kopf img { height: 46px; }
.auth-kopf strong { display: block; font-size: 1.1rem; }
.auth-kopf small { color: var(--ink-3); }
.auth-box label { display: block; margin-bottom: .8rem; font-weight: 500; }
.auth-box label input { display: block; width: 100%; margin-top: .3rem; }
.auth-box .btn.primary { width: 100%; justify-content: center; padding: .65rem; }
input.code { font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.qr { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; margin: .8rem 0 1rem; }
.qr svg { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 8px; background: #fff; flex: none; }
.geheimnis { font-family: Consolas, monospace; font-size: 1rem; letter-spacing: .08em; word-spacing: .3em;
  background: var(--bg); padding: .5rem .7rem; border-radius: 7px; display: inline-block; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem .9rem; font-family: Consolas, monospace;
  font-size: 1.05rem; background: var(--bg); padding: .9rem 1.1rem; border-radius: 8px; margin: .8rem 0; }
.einmalpw { font-family: Consolas, monospace; font-size: 1.35rem; letter-spacing: .05em; background: var(--bg);
  padding: .7rem 1rem; border-radius: 8px; display: inline-block; margin: .4rem 0 .8rem; user-select: all; }
.tag.ok { background: var(--ok-l); color: var(--ok); }
.tag.aus { background: #eef0f3; color: var(--ink-3); }
.tag.rot { background: var(--rot-l); color: var(--rot); }
.rechte td select { min-width: 9rem; }
.webrechte th:not(:first-child), .webrechte td:not(:first-child) { text-align: center; width: 7rem; }
.webrechte label.check { justify-content: center; margin: 0; min-height: 2.75rem; }

/* Bereich Webseite (Redaktion) */
.tag.wst-entwurf { background: #fff4d6; color: #7a5200; }
.tag.wst-eingereicht { background: #e3ecfb; color: #1c4a9c; }
.tag.wst-veroeffentlicht { background: var(--ok-l); color: var(--ok); }
.web-hinweis { border-left: 4px solid #1c4a9c; }
.web-hinweis .card-head { flex-wrap: wrap; gap: .6rem; margin: 0; }
.web-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.web-kachel { display: flex; flex-direction: column; gap: .15rem; color: var(--ink); margin: 0; }
.web-kachel:hover { text-decoration: none; border-color: #c6ccd2; }
.web-kachel b { font-size: 1.9rem; line-height: 1.1; }
.web-filter { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.web-filter .grow { flex: 1; }
.web-filter input[type=search] { min-width: 14rem; flex: 0 1 22rem; }
.web-form textarea { width: 100%; font: inherit; line-height: 1.5; resize: vertical; }
.web-form > label, .web-upload > label { margin-bottom: .8rem; }
.web-form fieldset { border: 0; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.web-form legend { font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
.textregeln { margin: -.3rem 0 1rem; font-size: .85rem; color: var(--ink-2); }
.textregeln summary { cursor: pointer; color: var(--rot); }
.textregeln ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.web-bilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.web-bilder.klein { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: .8rem; }
.web-bild { display: flex; flex-direction: column; gap: .4rem; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; background: #fff; }
.web-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: #eef0f3; }
.web-bild input[type=text], .web-bild input:not([type]) { width: 100%; }
.web-bild-wahl { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; }
.web-bild-wahl label.check { margin: 0; }
.web-bild form { display: flex; flex-direction: column; gap: .4rem; }
.web-upload { border-top: 1px solid var(--line); padding-top: .8rem; }
form.web-upload { border-top: 0; }
.web-mediathek { margin: .5rem 0 1rem; }
.web-mediathek summary { cursor: pointer; font-weight: 600; }
.web-baustein { margin-bottom: 1.1rem; }
.web-baustein input:not([type]) { width: 100%; }
.web-baustein-kopf { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; margin-bottom: .35rem; }
.web-baustein-kopf label.check { margin: 0 0 0 auto; }
.web-form fieldset.web-felder { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.web-info { background: #e3ecfb; color: #1c4a9c; border-radius: 8px; padding: .6rem .8rem; }
.web-fahrzeuge { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .2rem 1rem; margin-bottom: .8rem; }
.web-fahrzeuge label.check { margin: .3rem 0; min-height: 2.2rem; }
.web-fakten { display: grid; grid-template-columns: auto 1fr; gap: .3rem .9rem; margin: .6rem 0; }
.web-fakten dt { color: var(--ink-3); font-size: .82rem; }
.web-fakten dd { margin: 0; }
.web-fz-tabelle input:not([type]) { width: 100%; min-width: 9rem; }
.web-fz-tabelle input.kurz { width: 5rem; min-width: 0; }
.admin-tabs { margin-bottom: 1rem; }
@media print { .top, .no-print { display: none !important; } body.auth { background: #fff; } .auth-box { box-shadow: none; } }

/* ===== 2.0.1 ===== */
/* Zusatzdatum in Listen: Berufung (Führungskräfte), Ende einer Funktion */
.mzusatz { display: inline-flex; align-items: center; gap: .25rem; font-size: .7rem; color: var(--ink-3); white-space: nowrap; }
.mrow:not(.on) .mzusatz { opacity: .55; }
.clip { margin-left: .3rem; font-size: .75rem; text-decoration: none; flex: none; }
.clip:hover { text-decoration: none; filter: brightness(.8); }
h3.doc-gruppe { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin: .7rem 0 .25rem; }
h3.doc-gruppe:first-of-type { margin-top: .2rem; }
.doc-liste { list-style: none; margin: 0; padding: 0; }
.doc-liste li { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; border-bottom: 1px solid #f0f2f4; font-size: .85rem; }
.doc-liste li a { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-liste li small { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-liste li .btn { flex: none; padding: 0 .4rem; }
details.doc-neu summary { margin: .7rem 0 .3rem; font-size: .85rem; }
.grid.hist td { padding: .15rem .3rem; font-size: .82rem; }
.grid.hist .btn { padding: 0 .4rem; }
/* Führerscheinkontrolle */
.fsk { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .84rem; margin-top: .4rem;
  padding-top: .5rem; border-top: 1px solid var(--line); }
.fsk-neu { display: inline-flex; gap: .3rem; align-items: center; }
.fsk-neu input[type=date] { font-size: .78rem; padding: .1rem .25rem; width: 128px; }
.fs-zahlen { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.fs-zahlen .st { min-width: 0; padding: .1rem .5rem; }
.card.fs-karte { flex: none; }
.chip.fs.abgelaufen { color: var(--rot); background: var(--rot-l); }
/* Anmeldung: Auswahl 2FA / Passwort, Passwortregeln */
.wahl { display: flex; flex-direction: column; gap: .3rem; margin: .2rem 0 .8rem; }
.wahl label.check { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .45rem; font-weight: 500; }
.wahl label.check small { flex-basis: 100%; padding-left: 1.5rem; }
.pw-selbst { background: var(--bg); border-radius: 8px; padding: .6rem .8rem; margin-bottom: .8rem; }
ul.pwregeln { list-style: none; margin: .2rem 0 .8rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .15rem .8rem; font-size: .82rem; }
ul.pwregeln li { color: var(--rot); }
ul.pwregeln li::before { content: "✘ "; font-weight: 700; }
ul.pwregeln li.ok { color: var(--ok); }
ul.pwregeln li.ok::before { content: "✔ "; }
.auth-box ul.pwregeln { grid-template-columns: 1fr 1fr; margin-top: -.3rem; }

/* ===== 2.0.2: Marke, Burgermenü, Handy ===== */
:root { --marke: #10263F; }
.top { background: var(--marke); }
body.auth { background: var(--marke); }
.brand { color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand .mark { height: 38px; }
.brand > div { min-width: 0; }
.brand strong, .brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu nav a:hover { background: rgba(255,255,255,.1); }
.jahr select { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.jahr select option, .jahr select optgroup { background: var(--marke); }
.fest { display: flex; gap: .7rem; align-items: center; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  background: none; cursor: pointer; place-items: center; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: #fff;
  border-radius: 2px; position: relative; transition: transform .15s, background .15s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.top.offen .burger span { background: transparent; }
.top.offen .burger span::before { transform: translateY(6px) rotate(45deg); }
.top.offen .burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* breite Bildschirme: Menü steht direkt im Kopf */
@media (min-width: 1200px) {
  .menu { display: contents; }
}
/* schmaler: Menü klappt über den Burger auf */
@media (max-width: 1199.98px) {
  .top { gap: .6rem; padding: .5rem .9rem; }
  .brand { flex: 1; order: 0; }
  .fest { order: 1; }
  .burger { display: grid; order: 2; }
  .menu { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: .5rem; padding: .3rem 0 .5rem;
    max-height: calc(100vh - 64px); overflow-y: auto; }
  .top.offen .menu { display: flex; }
  .menu nav { flex-direction: column; gap: .1rem; }
  .menu nav a { padding: .7rem .8rem; font-size: 1rem; }
  .menu .tools { margin-left: 0; flex-wrap: wrap; gap: .8rem; padding-top: .7rem; border-top: 1px solid rgba(255,255,255,.15); }
  .menu .tools:empty { display: none; }
  .menu .jahr label { font-size: .9rem; }
}

/* Spalten passen sich an; nichts darf breiter als der Bildschirm werden */
.layout { grid-template-columns: minmax(0, 1fr); }
.cols { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.scrollbox { overflow-x: auto; }

@media (max-width: 700px) {
  :root { font-size: 15px; }
  main { padding: .9rem .7rem 4rem; }
  .card { padding: .85rem .8rem; }
  .card-head { flex-wrap: wrap; }
  h1 { font-size: 1.3rem; }
  .brand small { font-size: .7rem; }
  .fest .neu span { display: none; }
  .fest .neu { padding: .45rem .8rem; font-size: 1.1rem; }
  input, select, textarea { font-size: 16px; }  /* kein automatisches Zoomen auf iPhones */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .tiles.drei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { padding: .6rem .75rem; }
  .tile b { font-size: 1.45rem; }
  .termin-liste li { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .faellig-liste li { grid-template-columns: 10px minmax(0, 1fr); }
  .faellig-liste li > :last-child { grid-column: 2; }
  .fields > label, .fields .wide { flex: 1 1 100%; }
  .fields input, .fields select { width: 100%; }
  .actions { flex-wrap: wrap; }

  /* Listen als Karten (Beschriftungen setzt app.js) */
  table.grid.karten, table.grid.karten tbody, table.grid.karten tfoot, table.grid.karten tr,
  table.grid.karten td { display: block; width: 100%; }
  table.grid.karten thead { display: none; }
  table.grid.karten tr { border: 1px solid var(--line); border-radius: 8px; margin-bottom: .5rem; padding: .45rem .7rem;
    background: #fff; }
  table.grid.karten tfoot tr { background: #f3f5f8; }
  table.grid.karten tr.abschnitt { border: 0; background: none; padding: .7rem 0 .2rem; margin: 0; }
  table.grid.karten td { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
    padding: .15rem 0; border: 0; text-align: right; min-height: 0; }
  table.grid.karten td[data-label]::before { content: attr(data-label); flex: none; max-width: 45%; text-align: left;
    color: var(--ink-3); font-size: .78rem; font-weight: 600; }
  table.grid.karten td.kt { order: -1; display: block; text-align: left; font-size: 1.02rem; font-weight: 700;
    padding-bottom: .3rem; margin-bottom: .2rem; border-bottom: 1px solid #f0f2f4; }
  table.grid.karten td.kt::before { display: none; }
  table.grid.karten td.voll { display: block; text-align: left; }
  table.grid.karten td.leer, table.grid.karten tbody td.zero, table.grid.karten tr.click td.aktion { display: none; }
  table.grid.karten tr { display: flex; flex-direction: column; }
  table.grid.karten .chips { justify-content: flex-end; }
  table.grid.karten.narrow { min-width: 0; }
  .tablewrap.short { max-height: none; }
}

/* Anmeldung und Impressum mit Logo */
body.auth { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.auth-logo img { display: block; height: 150px; max-width: 100%; margin: 0 auto 1.3rem; }

.auth-fuss { color: #aeb8c2; font-size: .8rem; text-align: center; }
.auth-fuss a { color: #fff; }
.impressum h3 { margin: 1rem 0 .3rem; }
.impressum p { margin: 0 0 .4rem; line-height: 1.5; }
.ergaenzen { background: #fff4d6; color: #7a4b00; padding: 0 .3rem; border-radius: 4px; }
@media (max-width: 700px) {
  .auth-box { padding: 1.3rem 1.1rem 1.1rem; }
  .auth-logo img { height: 110px; margin-bottom: 1rem; }

}
@media print { .burger, .fest { display: none !important; } }
.wappen-row form { min-width: 0; }
input[type=file] { max-width: 100%; }

/* ===== 2.2.0: Fahrzeuge im Einsatz, Besatzung, Einsatznotizen ===== */
.nur-einsatz, .only-einsatz-text { display: none; }
form[data-kat=einsatz] .nur-einsatz { display: block; }
form[data-kat=einsatz] .only-einsatz-text { display: inline; }
form[data-kat=einsatz] .not-einsatz-text { display: none; }
.fields label.notiz { flex: 1 1 100%; }
textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .48rem .6rem; border: 1px solid #cfd5db; border-radius: 7px;
  background: #fff; width: 100%; resize: vertical; min-height: 6.5rem; line-height: 1.45; }
textarea:focus { outline: 2px solid #f1b5b5; border-color: var(--rot); }
.fz-liste { display: grid; gap: .4rem; }
.fz-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; border: 1px solid var(--line); border-radius: 8px;
  padding: .45rem .7rem; background: #fff; }
.fz-zeile.on { border-color: var(--ok); background: var(--ok-l); }
.fz-wahl { display: flex !important; flex-direction: row !important; align-items: center; gap: .5rem !important; cursor: pointer;
  flex: 0 0 19rem; min-width: 0; font-size: .92rem !important; color: var(--ink) !important; }
.fz-wahl input { width: 18px; height: 18px; accent-color: var(--ok); margin: 0; }
.fz-wahl small { color: var(--ink-3); font-weight: 500; }
.fz-crew { font-size: .76rem; font-weight: 600; color: var(--ok); }
.fz-zeiten { display: none; flex-wrap: wrap; gap: .4rem .8rem; }
.fz-zeile.on .fz-zeiten { display: flex; }
.fz-zeiten label { display: flex; flex-direction: column; gap: .15rem; font-size: .72rem; font-weight: 600; color: var(--ink-2); }
.fz-zeiten input { padding: .2rem .35rem; font-size: .85rem; width: 7.2rem; }
/* Fahrzeug und Funktion bleiben innerhalb der Kachel: zwei Spalten, die schrumpfen dürfen */
.pitem { min-width: 0; }
.pitem .fz-det { display: none; flex-basis: 100%; min-width: 0; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: .25rem; padding-left: 1.6rem; margin-top: .15rem; }
form[data-kat=einsatz] .pitem.on .fz-det { display: grid; }
.pitem .fz-det select { width: 100%; min-width: 0; padding: .12rem .2rem; font-size: .76rem; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .fz-wahl { min-width: 0; flex: 1 1 100%; }
  .fz-zeiten { display: none; width: 100%; }
  .fz-zeile.on .fz-zeiten { display: grid; grid-template-columns: 1fr 1fr; }
  .fz-zeiten input { width: 100%; }
}
/* 2.2.1: Belegung je Fahrzeug */
.fz-crew.voll { color: #7a4b00; }
.fz-crew.ueber { color: var(--rot); }
.fz-warn { font-size: .78rem; font-weight: 700; color: var(--rot); }
.fz-warn:empty { display: none; }
.fz-zeile:has(.fz-warn:not(:empty)) { border-color: var(--rot); background: var(--rot-l); }
/* 2.2.1: Haupt-/Nebenbericht, Gäste */
.nur-neben { display: none !important; }
form[data-bericht=neben] .nur-neben { display: flex !important; }
form[data-bericht=neben] .nur-haupt { display: none !important; }
.berichtsart { margin-bottom: .4rem; }
.nur-einsatz-inline { display: none; }
form[data-kat=einsatz] .nur-einsatz-inline { display: inline-block; }
.gaeste { display: grid; gap: .35rem; margin-bottom: .5rem; }
.gast-zeile { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1.6fr) auto auto auto; gap: .35rem; align-items: center; }
form:not([data-kat=einsatz]) .gast-zeile { grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1.6fr) auto; }
.gast-zeile select { font-size: .85rem; padding: .3rem .35rem; }
@media (max-width: 700px) {
  .gast-zeile, form:not([data-kat=einsatz]) .gast-zeile { grid-template-columns: 1fr auto; }
  .gast-zeile [name=gast_info], .gast-zeile select { grid-column: 1 / -1; }
  .gast-zeile .btn { grid-row: 1; grid-column: 2; }
}
/* 2.2.5: Speichern-Leiste auf dem Handy einzeilig */
.nur-schmal { display: none; }
@media (max-width: 700px) {
  .actions.sticky { flex-wrap: nowrap; gap: .4rem; padding: .45rem 0; }
  .actions.sticky .btn { padding: .5rem .75rem; }
  .actions.sticky .nur-breit { display: none; }
  .actions.sticky .nur-schmal { display: inline; }
}
/* Verwaltung → Benutzer: Rechte-Raster (Bereiche × Wehren) */
.raster th, .raster td { vertical-align: middle; }
.raster td select { min-width: 8.5rem; width: 100%; }
.raster tr.vorlage td { background: var(--bg); }
.raster td:first-child { min-width: 12rem; }
#rechte-raster[hidden] { display: none; }
@media (max-width: 640px) {
  .raster td:first-child { min-width: 8rem; }
  .raster td:first-child small { display: none; }
}

/* ---- Webseite: Editor mit Werkzeugleiste (2.4.0) ---- */
.editor-leiste { position: relative; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; padding: 5px;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--bg); margin-top: .3rem; }
.editor-leiste.klein { border-bottom: 1px solid var(--line); border-radius: 8px; margin-bottom: .3rem; width: max-content; }
.editor-leiste select { min-height: 32px; padding: 2px 6px; font-size: .9rem; width: auto; }
.editor-knopf { min-width: 34px; min-height: 32px; padding: 2px 8px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; line-height: 1; }
.editor-knopf:hover { background: #fff; border-color: var(--line); }
.editor-knopf.an { background: #fff; border-color: var(--ink-3); }
.editor-knopf:disabled { opacity: .4; cursor: default; }
.editor-trenner { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--line); }
.editor-a { font-weight: 700; border-bottom: 3px solid var(--rot); padding: 0 2px; }
.ea { display: inline-block; width: 16px; height: 12px; vertical-align: middle;
  background: linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
              linear-gradient(currentColor, currentColor) 0 50% / 70% 2px no-repeat,
              linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; }
.ea-c { background-position: 0 0, 50% 50%, 0 100%; }
.ea-r { background-position: 0 0, 100% 50%, 0 100%; }
.ea-j { background-size: 100% 2px, 100% 2px, 100% 2px; }
.editor-palette { position: absolute; z-index: 20; top: 100%; left: 50%; display: flex; gap: 6px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.editor-palette[hidden] { display: none; }
.editor-palette button { width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; outline: 1px solid var(--line); cursor: pointer; }
.editor { border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: .7rem .9rem; background: #fff; overflow: auto;
  resize: vertical; max-height: 70vh; line-height: 1.55; font-weight: 400; }
.editor:focus { outline: 2px solid var(--rot); outline-offset: -1px; }
.editor.leer::before { content: attr(data-platzhalter); color: var(--ink-3); pointer-events: none; }
.editor p { margin: 0 0 .8em; }
.editor h2 { font-size: 1.35rem; margin: .8em 0 .4em; }
.editor h3 { font-size: 1.15rem; margin: .8em 0 .4em; }
.editor h4 { font-size: 1rem; margin: .8em 0 .3em; }
.editor blockquote { margin: 0 0 .8em; padding-left: 1rem; border-left: 4px solid var(--line); color: var(--ink-2); }
.editor a { color: var(--rot); text-decoration: underline; }
textarea.editor-quelle { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; border-radius: 0 0 8px 8px; min-height: 14em; }

/* Bilder groß ansehen */
.web-zoom-huelle { position: relative; display: block; }
.web-zoom { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 6px;
  background: rgba(13, 27, 69, .75); color: #fff; font-size: 1.1rem; line-height: 1; cursor: zoom-in; }
.web-zoom:hover { background: rgba(13, 27, 69, .95); }
dialog.bild-gross { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
dialog.bild-gross::backdrop { background: rgba(10, 15, 30, .85); }
dialog.bild-gross img { display: block; max-width: 96vw; max-height: 92vh; object-fit: contain; border-radius: 6px; background: #111; }
.bild-gross-zu { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.3); }

/* ---- Webseite → Seiten: Listen-Einträge und Bildauswahl (2.5.0) ---- */
.liste-editor { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 .6rem; }
.liste-eintrag { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.liste-eintrag > summary { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; cursor: pointer; list-style: none; }
.liste-eintrag > summary::-webkit-details-marker { display: none; }
.liste-eintrag > summary::before { content: "▸"; color: var(--ink-3); }
.liste-eintrag[open] > summary::before { content: "▾"; }
.liste-eintrag[open] > summary { border-bottom: 1px solid var(--line); background: var(--bg); border-radius: 8px 8px 0 0; }
.liste-titel { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste-steuer { display: flex; gap: .3rem; }
.liste-felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem .9rem; padding: .8rem; }
.liste-feld { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.liste-feld.breit { grid-column: 1 / -1; }
.liste-feld-name { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.liste-bild { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.liste-bild img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; background: #eef0f3; }
.liste-bilder-reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .5rem; }
.liste-bilder-kachel { display: flex; flex-direction: column; gap: .3rem; border: 1px solid var(--line); border-radius: 8px; padding: .4rem; }
.liste-bilder-kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; background: #eef0f3; }
.liste-bilder-knoepfe { display: flex; gap: .3rem; }
.liste-bilder-knoepfe .danger { margin-left: auto; }
dialog.bildwahl { width: min(960px, 96vw); max-height: 90vh; border: 0; border-radius: 10px; padding: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.bildwahl::backdrop { background: rgba(10, 15, 30, .6); }
.bildwahl-kopf { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.bildwahl-bild { cursor: pointer; text-align: left; font: inherit; }
.bildwahl-bild:hover { border-color: var(--rot); }

/* ---- Mediathek mit Ordnern und Jahren (2.5.1) ---- */
.mediathek { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 1rem; align-items: start; }
.ordner-nav { position: sticky; top: 4.5rem; display: flex; flex-direction: column; gap: 2px; padding: .7rem; }
.ordner-nav h2 { margin: .2rem .4rem .5rem; font-size: 1rem; }
.ordner-nav a { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem .6rem; border-radius: 7px; text-decoration: none; color: var(--ink); }
.ordner-nav a:hover { background: var(--bg); }
.ordner-nav a.on { background: var(--ink); color: #fff; }
.ordner-nav a.leer { color: var(--ink-3); }
.ordner-nav b { font-weight: 600; font-size: .85rem; opacity: .8; }
.web-upload > summary { cursor: pointer; list-style: none; }
.web-upload > summary h2 { display: inline; }
.jahr-kopf { position: sticky; top: 3.6rem; z-index: 2; background: var(--card); margin: 1rem -1rem .6rem; padding: .5rem 1rem; border-bottom: 1px solid var(--line); font-size: 1.25rem; }
.web-bild-felder { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.web-bild-felder select, .web-bild-felder input { min-width: 0; font-size: .85rem; }
@media (max-width: 800px) {
  .mediathek { grid-template-columns: 1fr; }
  .ordner-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .ordner-nav h2 { width: 100%; }
}
.bildwahl-ordner { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .6rem; }
.bildwahl-ordner .chip.on { background: var(--ink); color: #fff; }

/* ---- Webseite → Menü (2.5.1) ---- */
.umschalter { margin-bottom: .6rem; }
.umschalter .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.menue-editor { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 .3rem; }
.menue-liste { display: flex; flex-direction: column; gap: .4rem; }
.menue-liste.leer::before { content: "Noch kein Eintrag."; color: var(--ink-3); font-size: .9rem; }
.menue-zeile { display: grid; grid-template-columns: minmax(140px, 1fr) 150px minmax(180px, 1.4fr) auto auto auto auto; gap: .4rem; align-items: center;
  padding: .45rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.menue-zeile input, .menue-zeile select { min-width: 0; }
.menue-zeile .menue-ziel[hidden] { display: none; }
.menue-editor > .btn { align-self: flex-start; }
.menue-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.menue-ico.leer { display: grid; place-items: center; font-weight: 700; }
.menue-symbol { position: relative; }
.menue-symbol-knopf { min-width: 44px; justify-content: center; }
.menue-symbol-wahl { position: absolute; right: 0; top: 110%; z-index: 30; display: grid; grid-template-columns: repeat(4, 74px); gap: 4px; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.15); }
.menue-symbol-wahl[hidden] { display: none; }
.menue-symbol-option { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border: 1px solid transparent; border-radius: 8px;
  background: none; cursor: pointer; color: var(--ink); font: inherit; }
.menue-symbol-option:hover { border-color: var(--line); background: var(--bg); }
.menue-symbol-option small { font-size: .72rem; color: var(--ink-2); }
@media (max-width: 800px) {
  .menue-zeile { grid-template-columns: 1fr 1fr; }
  .menue-zeile > input:first-child { grid-column: 1 / -1; }
  .menue-zeile .menue-ziel { grid-column: 1 / -1; }
}
.web-termin[hidden] { display: none; }
.web-abschnitt { margin: 1.6rem 0 .2rem; padding-top: .9rem; border-top: 2px solid var(--line); font-size: 1.05rem; color: var(--ink); }
.web-abschnitt:first-of-type { margin-top: .4rem; }

/* 2.5.4: Erfassung abgeschlossen (Schloss) */
.schloss { display: inline-flex; vertical-align: -2px; margin-right: .4rem; }
.schloss svg { width: 14px; height: 14px; overflow: visible; }
.schloss svg rect { fill: currentColor; }
.schloss svg path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.schloss.zu { color: var(--ink-3); }
.schloss.offen { color: var(--warn); }
fieldset.erfassung { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.gesperrt > * { opacity: .62; }
fieldset.gesperrt input, fieldset.gesperrt select, fieldset.gesperrt textarea { background: #f1f3f5; cursor: not-allowed; }
.abschluss-karte { border-left: 4px solid var(--ink-3); }
.abschluss-zeile { display: flex; align-items: flex-start; gap: .1rem; margin: 0; }
.abschluss-zeile .schloss { margin-top: 3px; }
.freischalten { margin-top: .6rem; }
.freischalten summary { cursor: pointer; color: var(--rot); font-weight: 600; }
.freischalten-form { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; margin-top: .5rem; }
.freischalten-form label { flex: 1 1 320px; display: flex; flex-direction: column; gap: .2rem; }
.freischalten { color: var(--ink-2); }
.abschluss-haken { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; }
.abschluss-haken input { width: 18px; height: 18px; accent-color: var(--ok); }
.abschluss-status { display: inline-flex; align-items: center; color: var(--ink-2); font-weight: 600; }
p.freigeschaltet { margin: 0 0 .6rem; }

/* 2.6.0: Seiten-Editor mit Live-Vorschau */
.editor-leiste [hidden], .editor-werkzeuge[hidden], .editor-meldung[hidden] { display: none !important; }
.editor-leiste { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: .6rem .8rem; position: sticky; top: 0; z-index: 20; }
.editor-leiste .grow { flex: 1; }
.editor-seite { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.editor-seite select { font-size: 1rem; padding: .35rem .5rem; min-width: 12rem; }
.editor-ansicht { display: inline-flex; }
.editor-ansicht .btn { border-radius: 0; }
.editor-ansicht .btn:first-child { border-radius: 8px 0 0 8px; }
.editor-ansicht .btn:last-child { border-radius: 0 8px 8px 0; margin-left: -1px; }
.editor-ansicht .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.editor-status { color: var(--ok); font-weight: 600; font-size: .9rem; }
.editor-status.offen { color: var(--warn); }
.editor-hilfe { margin: .5rem 0 .6rem; color: var(--ink-2); font-size: .92rem; }
.editor-buehne { background: #dfe3e8; border-radius: var(--r); padding: 10px; display: flex; justify-content: center; }
.editor-buehne iframe { width: 100%; height: calc(100vh - 230px); min-height: 480px; border: 0; background: #fff;
  border-radius: 6px; box-shadow: 0 2px 14px rgba(0,0,0,.12); transition: width .25s; }
.editor-buehne iframe.handy { width: 390px; }
.editor-werkzeuge { position: absolute; z-index: 40; display: flex; gap: 2px; background: var(--ink); padding: 4px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.editor-werkzeuge button { background: transparent; color: #fff; border: 0; border-radius: 5px; padding: .3rem .55rem; font: inherit;
  font-size: .85rem; cursor: pointer; min-width: 2rem; }
.editor-werkzeuge button:hover, .editor-werkzeuge button:focus-visible { background: rgba(255,255,255,.18); }
.editor-fenster { width: min(860px, 96vw); max-height: 88vh; border: 0; border-radius: 12px; padding: 0; box-shadow: 0 12px 48px rgba(0,0,0,.35); }
.editor-fenster::backdrop { background: rgba(15,23,42,.45); }
.editor-fenster-kopf { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--card); z-index: 2; }
.editor-fenster-kopf h2 { margin: 0; font-size: 1.1rem; }
.editor-fenster-kopf .grow { flex: 1; }
.editor-fenster-inhalt { padding: .8rem 1rem 1.2rem; }
.editor-fenster > .hint { padding: 0 1rem; }
.editor-fenster input { width: 100%; }
.editor-textfeld { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; min-height: 5rem; background: #fff; }
.zeilen-editor { display: grid; gap: .35rem; }
.zeilen-kopf, .zeilen-zeile { display: grid; grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)) auto; gap: .4rem; align-items: center; }
.zeilen-kopf span { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.zeilen-knoepfe { display: inline-flex; gap: 2px; }
.zeilen-editor > .btn { justify-self: start; margin-top: .3rem; }
.editor-meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ok); color: #fff;
  padding: .7rem 1.2rem; border-radius: 10px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: 92vw; }
.editor-meldung.fehler { background: var(--rot); }
@media (max-width: 700px) {
  .editor-hilfe { display: none; }
  .editor-buehne { padding: 0; }
  .editor-buehne iframe { height: calc(100vh - 260px); }
  .zeilen-kopf { display: none; }
  .zeilen-zeile { grid-template-columns: 1fr; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
}

/* Soziale Medien (2.7.0) */
.teilen .teilen-kanal { border-top: 1px solid var(--line, #ddd); padding-top: .6rem; margin-top: .6rem; }
.teilen .teilen-kanal textarea { width: 100%; font-family: inherit; }
.teilen-bilder { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0; }
.teilen-bilder img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; }
.teilen-verlauf { margin-top: .8rem; }
.teilen [hidden] { display: none !important; }

/* 3.0.0: Einsatzentschädigung (blaues €), Träger, Material */
.eur { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%;
  font-size: 10px; font-weight: 800; line-height: 1; margin-right: .4rem; vertical-align: 0; box-sizing: border-box; }
.eur.voll { background: #1e6fd9; color: #fff; }
.eur.entwurf { border: 1.6px solid #1e6fd9; color: #1e6fd9; }
.eur.leer { border: 1.2px dashed #b9c7da; color: #b9c7da; }
/* 3.8.17: ohne Einsatzentschädigung – grau, schräg durchgestrichen */
.eur.kein { position: relative; border: 1.2px solid #9aa5b4; color: #9aa5b4; }
.eur.kein::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; border-top: 1.6px solid #c62828;
  transform: rotate(-45deg); }
.abrechnung-hinweis { display: flex; align-items: flex-start; gap: .2rem; color: #1b4f99; }
/* 3.8.15: € je Person in der Einsatzansicht – wer noch in keiner Abrechnung steht, fällt orange auf */
.eur-person .eur { margin: 0 0 0 .15rem; vertical-align: -1px; }
.eur-person .eur.leer { border: 0; background: #e8890c; color: #fff; }
.abrechnung-hinweis .eur-offen { color: #b45309; }
.vw-rechte { display: grid; gap: .3rem; margin: .3rem 0 .9rem 1.6rem; }
.vw-rechte small, .pruefarten small { font-weight: 400; }
.pruefarten { display: grid; gap: .25rem; margin-bottom: .6rem; }
.mv-liste { display: grid; gap: .4rem; }
.mv-zeile { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mv-zeile select { flex: 1 1 260px; }
.zusatz-zeile { border-bottom: 1px solid var(--line); padding: .5rem 0 .7rem; }
.zusatz-zeile .check { display: inline-flex; margin-right: 1rem; }
.hinweis-karte { border-left: 4px solid #e2a300; }
ul.kompakt { margin: .3rem 0 .4rem; padding-left: 1.1rem; }
ul.kompakt li { margin: .15rem 0; }
.filterzeile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem .8rem; }
.grid tbody.person-block tr.summe td { border-bottom: 2px solid var(--line); background: #fafbfd; }
details.korrektur summary { cursor: pointer; color: var(--ink-3); font-size: .8rem; }
details.korrektur form { margin-top: .4rem; min-width: 320px; }
.traeger-tabelle td { vertical-align: middle; }
.jahr-wahl label { display: flex; gap: .4rem; align-items: center; font-size: .8rem; font-weight: 600; }
input.kurz { width: 6.5rem; }
.kosten-tabelle input.kurz { width: 4.6rem; }
.kosten-tabelle td, .kosten-tabelle th { padding-left: .3rem; padding-right: .3rem; }

/* ---------------------------------------------------------------- 3.1.0: Auswertungen */
.ausw { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ausw-nav { position: sticky; top: .5rem; display: flex; flex-direction: column; gap: 1px; font-size: .88rem; }
.ausw-nav b { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2, #5b6570); margin: .9rem .6rem .25rem; }
.ausw-nav a { padding: .35rem .6rem; border-radius: 6px; color: var(--ink); }
.ausw-nav a:hover { background: #fff; text-decoration: none; }
.ausw-nav a.on { background: var(--rot-l); color: var(--rot); font-weight: 600; }
.ausw-wahl { display: none; }
.ausw-kopf { flex-wrap: wrap; }
.ausw-filter { display: flex; gap: .6rem; align-items: center; }
.ausw-filter label { display: flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.ausw-filter select { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 600; }
.ausw-intro { margin-top: -.3rem; }
.ausw-gruppen { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 1rem; align-items: start; }
.ausw-gruppe h2 { font-size: .95rem; margin: 1.1rem 0 .5rem; }
.ausw-gruppe .ausw-kacheln { grid-template-columns: 1fr; gap: .6rem; }
.ausw-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.ausw-kachel { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; color: var(--ink);
  border-left: 3px solid var(--line); transition: border-color .15s, box-shadow .15s; }
.ausw-kachel:hover { border-left-color: var(--rot); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.ausw-kachel .titel { grid-column: 1 / -1; font-weight: 600; margin-bottom: .3rem; }
.ausw-kachel b { font-size: 1.6rem; line-height: 1.1; }
.ausw-kachel .einheit { color: var(--ink-2, #5b6570); }
.ausw-kachel .text { grid-column: 1 / -1; color: var(--ink-2, #5b6570); margin-top: .35rem; font-size: .8rem; }
.ausw-kachel.warn { border-left-color: var(--rot); }
.ausw-kachel.warn b { color: var(--rot); }
.downloads .download { display: flex; flex-direction: column; gap: .3rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: .9rem 1rem; color: var(--ink); }
.downloads .download:hover { border-color: var(--rot); }
.downloads .download small { color: var(--ink-2, #5b6570); }
.kpi-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: .8rem 1rem; display: flex; flex-direction: column; gap: .15rem; }
.kpi span { font-size: .8rem; color: var(--ink-2, #5b6570); }
.kpi b { font-size: 1.6rem; line-height: 1.15; }
.kpi small { font-size: .78rem; color: var(--ink-2, #5b6570); }
.kpi.warn b { color: var(--rot); }
.kpi .delta.hoch::first-letter, .kpi .delta.runter::first-letter { font-size: .7rem; }
.ausw-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 1rem; align-items: start; }
.ausw-raster.breit-schmal { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
/* 3.2.0: festes Vier-Spalten-Raster (gleiche Spalten wie die Kennzahlen-Reihe) */
.ausw-vier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 .8rem; align-items: stretch; }
.ausw-vier > .card { min-width: 0; }
.ausw-vier > .span2 { grid-column: span 2; }
.kpi-reihe.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1200px) { .ausw-vier, .kpi-reihe.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ausw-vier, .kpi-reihe.vier { grid-template-columns: 1fr; } .ausw-vier > .span2 { grid-column: auto; } }
tr.gewaehlt td { background: var(--rot-l); }
/* Diagramme (SVG): eine Datenreihe, ein Farbton; Werte als Hover-Text */
.dg { width: 100%; height: auto; max-height: 340px; display: block; font: 12px/1 inherit; overflow: visible; }
.dg-balken { fill: #c4453c; }
.dg-treffer { fill: transparent; }
a:hover .dg-balken, .dg-balken:hover { fill: var(--rot-d); }
.dg a { cursor: pointer; }
.dg-name, .dg-achse { fill: #5b6570; font-size: 11.5px; }
.dg-wert { fill: var(--ink, #1f2933); font-size: 11.5px; font-weight: 600; }
.dg-gitter { stroke: #edf0f2; stroke-width: 1; }
.dg-basis { stroke: #c9cfd4; stroke-width: 1; }
.dg-linie { fill: none; stroke: #c4453c; stroke-width: 2; stroke-linejoin: round; }
.dg-punkt { fill: #c4453c; stroke: #fff; stroke-width: 2; }
.dg-heat { max-width: 420px; }
.dg-zelle.s0 { fill: #f3f4f6; } .dg-zelle.s1 { fill: #f8d9d4; } .dg-zelle.s2 { fill: #efaa9f; }
.dg-zelle.s3 { fill: #e0786a; } .dg-zelle.s4 { fill: #c4453c; } .dg-zelle.s5 { fill: #8e1414; }
.dg-zahl { fill: #1f2933; font-size: 11px; font-weight: 600; } .dg-zahl.hell { fill: #fff; }
@media (max-width: 900px) {
  .ausw { grid-template-columns: minmax(0, 1fr); }   /* 3.8.10: 1fr wuchs mit breiten Tabellen über den Rand */
  .ausw-nav { display: none; }
  .ausw-wahl { display: block; margin-bottom: .6rem; }
  .ausw-wahl select { width: 100%; }
  .ausw-raster.breit-schmal { grid-template-columns: 1fr; }
}
@media print {
  .ausw { display: block; }
  .ausw-nav, .ausw-wahl, .ausw-kopf .btn, .ausw-filter select { display: none !important; }
  .card, .kpi { break-inside: avoid; box-shadow: none; }
  main.voll { height: auto !important; overflow: visible !important; }
}

/* ---------------------------------------------------------------- 3.1.0: Material nach Gerätetyp */
.typsuche { display: block; font-weight: 600; }
.typsuche input { width: 100%; font-size: 1.05rem; padding: .6rem .8rem; margin-top: .3rem; }
.typgruppen { columns: 2 380px; column-gap: 1rem; }
.typgruppe { break-inside: avoid; }
.typgruppe h2 { font-size: .95rem; }
.typkacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.typkachel { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .7rem; border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink); background: #fff; }
.typkachel:hover, .typkachel:focus { border-color: var(--rot); background: var(--rot-l); outline: none; }
.typkachel small { color: var(--ink-2, #5b6570); font-size: .76rem; }
.typkachel[hidden], .typgruppe[hidden] { display: none; }
fieldset.mehrfach { border: 1px solid var(--line); border-radius: 8px; padding: .3rem .6rem .5rem; display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
fieldset.mehrfach legend { font-size: .8rem; font-weight: 600; padding: 0 .3rem; }
dl.merkmale { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .9rem; margin: 0; }
dl.merkmale dt { color: var(--ink-2, #5b6570); }
dl.merkmale dd { margin: 0; font-weight: 600; }
.feldeditor input:not([type=checkbox]), .feldeditor select { width: 100%; min-width: 80px; }
.feldeditor td { vertical-align: middle; }
.blattwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .3rem .8rem; margin-bottom: .6rem; }
.blattwahl label.check { display: block; }
.blattwahl small { display: block; margin-left: 1.5rem; font-weight: 400; }

/* ---------------------------------------------------------------- 3.1.0: Knopf-Menüs (Mitglieder: Listen & Drucken) */
details.knopfmenue { position: relative; }
details.knopfmenue > summary { list-style: none; cursor: pointer; margin: 0; font-weight: 600; color: var(--ink); }
details.knopfmenue > summary::-webkit-details-marker { display: none; }
.knopfmenue-box { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 260px; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: .35rem; display: flex; flex-direction: column; }
.knopfmenue-box a { padding: .45rem .6rem; border-radius: 6px; color: var(--ink); }
.knopfmenue-box a:hover { background: var(--rot-l); color: var(--rot); }
.knopfmenue-box b { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2, #5b6570); padding: .5rem .6rem .2rem; }
/* 3.2.0: Einstiegsseite Dienste & Einsätze */
.dienst-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.dienst-kachel { position: relative; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
.dienst-kachel:hover { border-left-color: var(--rot); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.dienst-kachel-link { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: .4rem;
  padding: .9rem 1rem 2.9rem; color: var(--ink); text-decoration: none; height: 100%; }
.dienst-kachel-link .titel { grid-column: 1 / -1; font-weight: 600; margin-bottom: .3rem; }
.dienst-kachel-link b { font-size: 1.6rem; line-height: 1.1; }
.dienst-kachel-link .einheit { color: var(--ink-2, #5b6570); }
.dienst-kachel-link .text { grid-column: 1 / -1; color: var(--ink-2, #5b6570); margin-top: .35rem; font-size: .8rem; }
.dienst-kachel-link .offen { color: var(--rot); font-weight: 600; }
.dienst-kachel .dienst-neu { position: absolute; left: 1rem; bottom: .7rem; }
.dienst-kachel.k-rand-einsatz { border-left-color: var(--rot); }
/* 3.2.0: Kopfbogen-Editor – Blatt im Maßstab A4 (1 mm = --mm, Schrift in pt wie im PDF) */
.kb-felder { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 1rem; align-items: start; }
.kb-leiste { position: sticky; top: .5rem; }
.kb-leiste h2 { margin-top: .4rem; }
.kb-zeile { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; align-items: end; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.kb-zeile b { grid-column: 1 / -1; font-size: .85rem; }
.kb-knoepfe { flex-wrap: wrap; }
.kb-buehne { container-type: inline-size; max-width: 860px; }
.kb-blatt { --mm: calc(100cqw / 210); --kb-farbe: #0E1A4F; position: relative; width: 100%; aspect-ratio: 210 / 297; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.08); font-family: Helvetica, Arial, sans-serif; color: #111;
  overflow: hidden; }
.kb-blatt .kb-text { outline: none; border-radius: 2px; white-space: pre-wrap; min-height: 1em; }
.kb-blatt .kb-text:hover { background: #fff7d6; }
.kb-blatt .kb-text:focus { background: #fff2b8; box-shadow: 0 0 0 1px #e0b400; }
.kb-blatt .kb-text:empty::before { content: attr(data-platzhalter); color: #b6bcc4; font-weight: 400; white-space: pre-wrap; }
.kb-kopf { position: absolute; top: calc(var(--mm) * 12); left: calc(var(--mm) * 25); right: calc(var(--mm) * 16); color: var(--kb-farbe); }
.kb-kopf.mit-logo { right: calc(var(--mm) * 46); }
.kb-kopf .kb-text { font-size: calc(var(--mm) * .3528 * var(--pt)); line-height: 1.4; }
.kb-kopf .kb-text.fett { font-weight: 700; }
.kb-mitte .kb-kopf { text-align: center; }
.kb-logo { position: absolute; top: calc(var(--mm) * 10); right: calc(var(--mm) * 16); height: calc(var(--mm) * 26); width: auto; }
.kb-absender { position: absolute; top: calc(var(--mm) * 45); left: calc(var(--mm) * 25); width: calc(var(--mm) * 85);
  font-size: calc(var(--mm) * .3528 * 7); color: #6b7280; text-decoration: underline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-anschrift { position: absolute; top: calc(var(--mm) * 51); left: calc(var(--mm) * 25); font-size: calc(var(--mm) * .3528 * 10.5); line-height: 1.3; }
.kb-info { position: absolute; top: calc(var(--mm) * 45); left: calc(var(--mm) * 118); right: calc(var(--mm) * 16);
  font-size: calc(var(--mm) * .3528 * 8.5); line-height: 1.25; }
.kb-info-fest { margin-top: calc(var(--mm) * 3); }
.kb-betreff { position: absolute; top: calc(var(--mm) * 102); left: calc(var(--mm) * 25); right: calc(var(--mm) * 16);
  font-size: calc(var(--mm) * .3528 * 13); font-weight: 700; line-height: 1.3; }
.kb-brieftext { position: absolute; top: calc(var(--mm) * 118); left: calc(var(--mm) * 25); right: calc(var(--mm) * 16);
  font-size: calc(var(--mm) * .3528 * 10); line-height: 1.4; }
.kb-beispiel { color: #a3aab3; }
.kb-fuss { position: absolute; bottom: calc(var(--mm) * 10); left: calc(var(--mm) * 25); right: calc(var(--mm) * 16);
  border-top: 1px solid #c9ced8; padding-top: calc(var(--mm) * 2.5); display: grid; grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--mm) * 2); font-size: calc(var(--mm) * .3528 * 7); line-height: calc(var(--mm) * 3.4); color: #6b7280; }
.kb-falz { position: absolute; left: 0; width: calc(var(--mm) * 5); border-top: 1px solid #c9ced8; }
.kb-falz.loch { width: calc(var(--mm) * 7); }
@media (max-width: 900px) { .kb-felder { grid-template-columns: 1fr; } .kb-leiste { position: static; } }
/* 3.2.1: Speichern-Knöpfe – grau ohne Änderung, rot bei Änderung, nach dem Speichern kurz grün */
.btn.ungeaendert[disabled], .btn.primary.ungeaendert[disabled] { background: #eef0f2; border-color: #dfe3e7; color: #9aa3ad;
  opacity: 1; cursor: default; box-shadow: none; }
.btn.ungeaendert:not(.primary)[disabled] { background: #f6f7f8; }
.btn.geaendert { background: var(--rot); border-color: var(--rot); color: #fff; }
.btn.geaendert:hover { background: var(--rot-d); }
.btn.speichert { background: #1f9d55 !important; border-color: #1f9d55 !important; color: #fff !important;
  transition: background .25s, border-color .25s; }
.btn.gespeichert { animation: fwms-gespeichert 2.2s ease-out; }
.btn.gespeichert::before { content: "✓ "; }
@keyframes fwms-gespeichert {
  0%, 45% { background: #1f9d55; border-color: #1f9d55; color: #fff; }
  100% { background: #eef0f2; border-color: #dfe3e7; color: #9aa3ad; }
}
@media (prefers-reduced-motion: reduce) { .btn.gespeichert { animation-duration: .01s; } }
/* 3.2.1: Verbrauchsmaterial aus dem Einsatz anlegen */
.mv-neu { margin-top: .6rem; }
.mv-neu summary { margin: .3rem 0; font-size: .9rem; }
.mv-typen { display: flex; flex-wrap: wrap; gap: .4rem; }
/* 3.2.1: Bescheid – Eingaben links untereinander, Einsatzbericht der Wehr rechts */
.fields.untereinander { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.fields.untereinander > label { flex: none; width: 100%; }
.bescheid-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.bescheid-layout > form { margin-bottom: 0; }
.bescheid-bericht { position: sticky; top: .5rem; display: flex; flex-direction: column; padding-bottom: .6rem; }
.bescheid-bericht iframe { width: 100%; height: calc(100vh - 7rem); min-height: 520px; border: 1px solid var(--line);
  border-radius: 6px; background: #f3f4f6; }
@media (max-width: 1100px) {
  .bescheid-layout { grid-template-columns: 1fr; }
  .bescheid-bericht { position: static; }
  .bescheid-bericht iframe { height: 70vh; }
}
/* 3.2.2: Einsatzlisten – Nummer, Typ und Stichwort in eigenen Spalten, damit die Typen untereinander stehen */
th.spalte-nr, td.spalte-nr { width: 3.2rem; font-variant-numeric: tabular-nums; }
th.spalte-typ, td.spalte-typ { width: 4.6rem; }
td.spalte-typ .tag { display: inline-block; min-width: 2.6rem; text-align: center; }
/* 3.2.2: Kachel-Übersichten (Auswertungen, Träger) – überall 1rem Abstand wie zwischen den Karten, alle Kacheln gleich hoch */
.ausw-gruppen { gap: 0 1rem; margin-bottom: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ausw-gruppe h2 { margin: .9rem 0 .5rem; }
.ausw-gruppe .ausw-kacheln { gap: 1rem; grid-auto-rows: 7.6rem; }
.ausw-gruppe .ausw-kachel { height: 100%; overflow: hidden; align-content: start; }
.ausw-gruppe .ausw-kachel .text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dienst-kacheln { gap: 1rem; grid-auto-rows: 1fr; }
/* 3.2.2: Bescheid – Haken und Begründung nebeneinander auf Höhe der Zeile; Reiter Einsatzbericht / Bescheid */
.nicht-berechnen { display: flex; align-items: center; gap: .5rem; }
.nicht-berechnen input[type=checkbox] { width: auto; flex: none; margin: 0; }
.nicht-berechnen input:not([type]) { flex: 1 1 auto; min-width: 8rem; }
.bescheid-layout table.grid td { vertical-align: middle; }
.reiter-kopf { display: flex; align-items: center; gap: .3rem; margin-bottom: .6rem; border-bottom: 1px solid var(--line); }
.reiter-kopf .reiter { background: none; border: 0; border-bottom: 2px solid transparent; padding: .45rem .7rem; margin-bottom: -1px;
  font: inherit; font-weight: 600; color: var(--ink-2, #5b6570); cursor: pointer; }
.reiter-kopf .reiter:hover { color: var(--ink); }
.reiter-kopf .reiter.on { color: var(--rot); border-bottom-color: var(--rot); }
.reiter-kopf .grow { flex: 1; }
/* 3.3.0: weitere Angaben aus MP-Feuer im Einsatz */
details.zusatzdaten summary { margin: .3rem 0; font-size: .9rem; }
details.zusatzdaten dl { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: .3rem 0 0; font-size: .9rem; }
details.zusatzdaten dt { color: var(--ink-2, #5b6570); }
details.zusatzdaten dd { margin: 0; }

/* 3.3.1: Materialakte – Felder oben ausrichten, Hinweise unter einem Feld verschieben die Nachbarn nicht mehr */
.fields.oben { align-items: flex-start; }
.fields.oben > label.check { margin: 0; min-height: 2.2rem; padding-top: 1.35rem; box-sizing: content-box; }
.fields.oben > label.check small { align-self: center; }
.fields.oben > fieldset.mehrfach { margin: 0; }

/* 3.4.0: Gerätenummer */
th.spalte-geraetenr, td.spalte-geraetenr { white-space: nowrap; font-variant-numeric: tabular-nums; width: 8.5rem; }
.tag.geraetenummer { background: #1f2a44; color: #fff; letter-spacing: .03em; }
input.nur-lesen { background: #f3f4f6; color: var(--ink-2); }

/* 3.4.1: einheitliche Abstände – zwischen Kacheln 14px, zwischen Feldern und Knöpfen .8rem */
:root { --abstand: 14px; --feldabstand: .8rem; }
.card { margin-bottom: var(--abstand); }
.tiles { gap: var(--abstand); }
@media (min-width: 900px) { .tiles { gap: var(--abstand); } }
form .actions, .card > .actions { margin-top: var(--feldabstand); }
.fields + .actions, .fields + fieldset + .actions { margin-top: 0; }
form > label + label { margin-top: var(--feldabstand); }

/* 3.4.1: Materialakte in Kacheln – beide Spalten beginnen oben, kein zusätzlicher Rahmen um das Formular */
.layout.akte { align-items: start; }
fieldset.karten { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--abstand); }
.layout.akte .col > .actions { margin-top: 0; }
.layout.akte .card > h2 { margin-top: 0; }
.layout.akte label.notiz { margin-top: var(--feldabstand); }
.layout.akte .frist { margin: .2rem 0; }
[data-standort-feld][hidden] { display: none !important; }
.inventur-wahl { display: flex; gap: .5rem; align-items: center; }

/* 3.4.2: Fotos */
.foto-reihe { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--abstand); align-items: stretch; }
.foto-reihe > .card { margin-bottom: 0; }
.foto-karte { display: flex; flex-direction: column; align-items: center; gap: var(--feldabstand); }
.foto-karte h2 { align-self: stretch; margin: 0; }
.passbild { width: 126px; aspect-ratio: 35 / 45; object-fit: cover; border-radius: 6px; border: 1px solid var(--line);
            display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--ink-3);
            font-size: .75rem; }
.foto-knoepfe { display: flex; flex-direction: column; gap: .4rem; align-items: stretch; width: 100%; }
.foto-knoepfe .btn { justify-content: center; }
label.datei-knopf { flex-direction: row; cursor: pointer; font-weight: 600; color: inherit; }
.geraetefoto { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 8px;
               border: 1px solid var(--line); background: var(--bg); }
.geraetefoto.leer { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--ink-3);
                    font-size: .85rem; }
.foto-karte.breit { align-items: stretch; }
.foto-karte.breit .foto-knoepfe { flex-direction: row; flex-wrap: wrap; }
.foto-karte.breit .foto-knoepfe .btn { flex: 1 1 auto; }
@media (max-width: 700px) { .foto-reihe { grid-template-columns: 1fr; } }
form + .hint, .actions + .hint, .fields + .hint, table + .hint { margin-top: var(--feldabstand); }
/* 3.4.2: Materialakte dreispaltig – Angaben | Prüfungen und Bestandteile | Foto, Prüfen, Verlauf, Abgang */
@media (min-width: 1100px) {
  .layout.akte.drei-spalten { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}

/* 3.5.0: Katalog – Modellbilder und Piktogramme */
[data-neues-modell][hidden], [data-eigentuemer-name][hidden] { display: none !important; }
.modellbild { display: block; object-fit: contain; background: #fff; border-radius: 6px; }
.modellbild.klein { width: 44px; height: 44px; border: 1px solid var(--line); }
.modellbild.piktogramm, img.piktogramm { opacity: .55; }
.modellbild.piktogramm.klein { padding: 5px; background: var(--bg); }
table.katalog .spalte-bild { width: 56px; padding-top: .25rem; padding-bottom: .25rem; }
.typkachel.mit-bild { align-items: flex-start; }
.typkachel.mit-bild .modellbild, .typkachel.mit-bild > img.piktogramm { width: 100%; height: 84px; margin-bottom: .2rem; }
.typkachel.mit-bild > img.piktogramm { object-fit: contain; padding: 14px; background: var(--bg); border-radius: 6px; }
.typkachel.mit-bild .modellbild.piktogramm { padding: 14px; background: var(--bg); }
.typkacheln.modelle { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.zwischentitel { font-size: .95rem; margin: var(--abstand) 0 .5rem; color: var(--ink-2); }
.geraetefoto.mit-piktogramm { flex-direction: column; gap: .5rem; }
.geraetefoto.mit-piktogramm img.piktogramm { width: 45%; max-width: 160px; height: auto; }
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagehead.unter { margin-top: 0; }
@media (min-width: 1100px) {
  .layout.akte.zwei-spalten { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
}
img.piktogramm.vorschau { width: 56px; height: 56px; align-self: end; }
/* 3.5.0: Zentrallager */
table.lager .spalte-wahl, .grid .spalte-wahl { width: 2rem; }
table.lager tr.gruppenkopf td { background: var(--bg); border-top: 1px solid var(--line); }
table.lager tr.gruppenkopf .btn { margin-left: .6rem; }
table.lager input.kurz { width: 5rem; margin-left: .4rem; }
.neu-vom-traeger { border-left-color: var(--rot); }
.mehrzeilig { white-space: pre-line; margin: 0; }
button.unsichtbar { position: absolute; width: 0; height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
details.feld-neu { margin-top: var(--feldabstand); }
details.feld-neu > summary { cursor: pointer; font-weight: 600; color: var(--rot); margin-bottom: var(--feldabstand); }
/* 3.5.2: Suche in langen Auswahlfeldern */
input.auswahl-suche { padding: .3rem .6rem; font-size: .85rem; border-style: dashed; }
input.auswahl-suche.ohne-treffer { border-color: var(--rot); }
select.auswahl-offen { height: auto; padding: .2rem; }
select.auswahl-offen option { padding: .2rem .4rem; }
.filterzeile input.auswahl-suche { max-width: 14rem; }
/* 3.5.2: Herstellerseite */
dl.kontakt { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 var(--feldabstand); }
dl.kontakt dt { color: var(--ink-3); font-size: .8rem; font-weight: 600; padding-top: .1rem; }
dl.kontakt dd { margin: 0; }
label > input[name="hersteller_frei"] { margin-top: .25rem; }
/* 3.5.2: Feldgröße der Gerätedaten */
.fields label.feld-kurz { flex: 0 0 auto; } .fields label.feld-kurz > input, .fields label.feld-kurz > select { width: 6.5rem; }
.fields label.feld-mittel { flex: 0 0 auto; } .fields label.feld-mittel > input, .fields label.feld-mittel > select { width: 15rem; max-width: 100%; }
table.feldeditor select[name=f_breite] { min-width: 6.5rem; }
/* 3.5.2: PDF-Beschreibungen mit Symbol */
ul.pdf-liste { list-style: none; margin: 0 0 var(--feldabstand); padding: 0; display: flex; flex-direction: column; gap: .4rem; }
ul.pdf-liste li { display: flex; align-items: center; gap: .8rem; }
a.pdf-kachel { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: .45rem .6rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
a.pdf-kachel:hover, a.pdf-kachel:focus { border-color: var(--rot); background: var(--rot-l); outline: none; }
a.pdf-kachel img { flex: none; }
a.pdf-kachel span { display: flex; flex-direction: column; min-width: 0; }
a.pdf-kachel b { overflow-wrap: anywhere; }
a.pdf-kachel small { color: var(--ink-3); font-size: .76rem; }
[data-pdf-meldung] { color: var(--rot); }

/* 3.5.4: Import / Export – ein Raster, zwei gleich breite Spalten, Kacheln je Zeile gleich hoch */
.layout.impexp { gap: var(--abstand); }
.layout.impexp > .card { display: flex; flex-direction: column; min-width: 0; }
.layout.impexp > .card > h2 { margin-top: 0; }
.layout.impexp > .card > .hint:last-child { margin-top: auto; margin-bottom: 0; padding-top: var(--feldabstand); }
.layout.impexp .actions .check { margin: 0; }
@media (min-width: 1000px) {
  .layout.impexp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .layout.impexp > .breit { grid-column: 1 / -1; }
}

/* 3.6.0: Materialkatalog als Kacheln, Ansicht umschalten */
.ansichtwahl { display: inline-flex; }
.ansichtwahl .btn { border-radius: 0; }
.ansichtwahl .btn:first-child { border-radius: 6px 0 0 6px; }
.ansichtwahl .btn:last-child { border-radius: 0 6px 6px 0; margin-left: -1px; }
.ansichtwahl .btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.katalogkacheln .typkachel b { font-size: .86rem; line-height: 1.25; }
.katalogkacheln .typkachel.muted { opacity: .6; }
.katalogkacheln .kachelfuss { display: flex; gap: .4rem; align-items: center; margin-top: auto; }
.aus-suche, .aus-filter, table.grid tr.aus-suche, table.grid tr.aus-filter { display: none !important; }

/* 3.6.0: Tabellen sortieren und filtern (Symbol neben der Spaltenüberschrift) */
.grid th.mit-filter { white-space: nowrap; }
.th-filter { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  margin-left: .3rem; padding: 0 2px; border: 1px solid transparent; border-radius: 4px; background: none;
  color: #b3bbc4; cursor: pointer; vertical-align: -3px; font-size: .7rem; }
.th-filter:hover, .th-filter:focus-visible { color: var(--ink); border-color: var(--line); background: var(--bg); outline: none; }
.th-filter[data-sort="auf"], .th-filter[data-sort="ab"] { color: var(--ink); }
.th-filter[data-sort="auf"]::after { content: "↑"; margin-left: 1px; }
.th-filter[data-sort="ab"]::after { content: "↓"; margin-left: 1px; }
.th-filter.aktiv { color: #fff; background: var(--rot); border-color: var(--rot); }
.tabfilter { position: absolute; z-index: 50; width: 270px; max-width: calc(100vw - 16px); background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(20, 30, 40, .16); padding: .45rem;
  font-size: .86rem; color: var(--ink); }
.tabfilter .tf-sort, .tabfilter .tf-unsort { display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: .38rem .5rem; border-radius: 5px; font: inherit; color: inherit; cursor: pointer; }
.tabfilter .tf-sort:hover, .tabfilter .tf-unsort:hover { background: var(--bg); }
.tabfilter hr { border: 0; border-top: 1px solid var(--line); margin: .35rem 0; }
.tabfilter .tf-suche { width: 100%; margin-bottom: .35rem; }
.tabfilter .tf-werte { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; padding: .25rem 0; }
.tabfilter .tf-werte label { display: flex; gap: .4rem; align-items: center; padding: .2rem .5rem; cursor: pointer;
  font-weight: 400; margin: 0; font-size: .86rem; color: var(--ink); }
.tabfilter .tf-werte label[hidden] { display: none; }
.tabfilter .tf-werte label:hover { background: var(--bg); }
.tabfilter .tf-werte input { margin: 0; width: auto; }
.tabfilter .tf-alle { border-bottom: 1px solid #eef0f2; }
.tabfilter .tf-knoepfe { display: flex; gap: .5rem; align-items: center; margin-top: .45rem; }
.tabfilter .tf-knoepfe .grow { flex: 1; }
@media print { .th-filter, .tabfilter { display: none !important; } }
.hinweis-karte.artwechsel { margin: var(--abstand, 14px) 0; padding: .8rem 1rem; background: #fffaf0; border-radius: 8px; }
.hinweis-karte.artwechsel[hidden] { display: none; }
.hinweis-karte.artwechsel p { margin: 0 0 .6rem; }
.artwechsel-wahl { display: flex; flex-direction: column; margin: .6rem 0; }
.artwechsel-wahl label.check { margin: .25rem 0; font-weight: 500; }
.artwechsel-wahl input[type=radio] { width: 18px; height: 18px; margin: 0; flex: none; }

/* 3.6.2: Bilder in Katalog und Materialakte gleich groß – feste Bildhöhe wie im Katalog, weißer Grund */
img.geraetefoto { background: #fff; }

/* 3.6.3: Bildspalte in Listen (Material, Katalog) */
.grid th.spalte-bild, .grid td.spalte-bild { width: 56px; padding-top: .25rem; padding-bottom: .25rem; }
/* 3.6.3: jede zweite Zeile ganz zart blau – app.js setzt .zebra, damit es auch nach Filtern/Sortieren stimmt */
.grid tbody tr.zebra { background: #f4f8fd; }
.grid tbody tr.zebra:hover, .grid tbody tr:hover { background: #eaf1fa; }
.grid tbody tr.zebra td .modellbild.piktogramm.klein { background: #fff; }
@media print { .grid tbody tr.zebra { background: none; } }

/* 3.6.4: Auswahl-Leiste über der Materialliste (Ausrüstungssatz zusammenstellen) */
.auswahl-leiste { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem 1rem; padding-bottom: var(--feldabstand);
  margin-bottom: var(--feldabstand); border-bottom: 1px solid var(--line); }
.auswahl-leiste label { display: flex; flex-direction: column; gap: .15rem; font-size: .85rem; margin: 0; }
.auswahl-leiste label[hidden] { display: none; }
.auswahl-leiste select, .auswahl-leiste input[type=text] { min-width: 15rem; }
.auswahl-leiste > span { padding-bottom: .35rem; }

/* 3.6.5: Name und Art des neuen Satzes bleiben verborgen, bis „Neuen Satz bilden“ gewählt ist */
.fields > label[hidden] { display: none; }

/* 3.6.6: Vorschlagsfeld als Auswahlliste – das Textfeld für „Anderer Eintrag …“ steht darunter */
select.vorschlag-wahl + input:not([hidden]) { margin-top: 6px; }

/* ---- 3.7.0: Verbrauch im Bericht (Zeilen mit Bild, Auswahlfenster mit Kacheln), Füllstand, Nachbestellen ---- */
.mv-zeile[hidden] { display: none; }
.mv-zeile { padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.mv-zeile .mv-name { flex: 1 1 180px; min-width: 0; }
.mv-zeile input.kurz { width: 6.5rem; flex: 0 0 auto; }
.mv-zeile select { flex: 0 0 auto; width: auto; }
.mv-zeile .mv-einheit { min-width: 2.5rem; }
.mv-zeile .mv-rest { flex: 0 1 auto; font-size: .85rem; }
.mv-zeile .mv-entnahme { flex: 1 1 220px; display: flex; flex-direction: column; }
.mv-zeile .mv-entnahme select { width: 100%; }
.mv-zeile [data-mv-weg] { margin-left: auto; }
dialog.mv-fenster { width: min(980px, 96vw); max-height: 90vh; border: 0; border-radius: 10px; padding: 1rem; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog.mv-fenster::backdrop { background: rgba(10, 15, 30, .6); }
.mv-fenster-kopf { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; flex-wrap: wrap; }
.mv-fenster-kopf h2 { margin: 0; font-size: 1.1rem; }
.mv-fenster-kopf .mv-suche { flex: 1 1 200px; }
.mv-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.mv-kachel { display: flex; flex-direction: column; gap: .25rem; align-items: stretch; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .5rem; cursor: pointer; }
.mv-kachel[hidden] { display: none; }
.mv-kachel:hover, .mv-kachel:focus-visible { border-color: var(--rot); outline: none; box-shadow: 0 0 0 2px rgba(200, 30, 30, .15); }
.mv-kachel .modellbild { width: 100%; height: 96px; }
.mv-kachel .modellbild.piktogramm { padding: 18px; background: var(--bg); }
.mv-kachel b { font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.mv-kachel small { font-size: .8rem; }
progress.fuellstand { appearance: none; -webkit-appearance: none; width: 90px; height: 8px; border: 0; border-radius: 4px;
  background: #e5e7eb; vertical-align: middle; overflow: hidden; }
progress.fuellstand::-webkit-progress-bar { background: #e5e7eb; border-radius: 4px; }
progress.fuellstand::-webkit-progress-value { background: #16a34a; border-radius: 4px; }
progress.fuellstand::-moz-progress-bar { background: #16a34a; border-radius: 4px; }
progress.fuellstand.gelb::-webkit-progress-value { background: #d97706; }
progress.fuellstand.gelb::-moz-progress-bar { background: #d97706; }
progress.fuellstand.rot::-webkit-progress-value { background: #dc2626; }
progress.fuellstand.rot::-moz-progress-bar { background: #dc2626; }
.mv-kachel progress.fuellstand { width: 100%; }
.fuellstand-zeile { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 .2rem; }
.fuellstand-zeile progress.fuellstand { width: 160px; height: 10px; }
.card.nachbestellen table.grid td { vertical-align: middle; }
.card.nachbestellen form { margin: 0; }
@media (max-width: 640px) {
  .mv-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-zeile .mv-name { flex-basis: calc(100% - 60px); }
}

/* 3.7.1: Knopf „Verbrauchtes Material hinzufügen“ links unter der Liste; Anlegen im Auswahlfenster */
.mv-knopf { margin: .6rem 0 .2rem; }
dialog.mv-fenster .mv-neu { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .6rem; }

/* 3.7.1: Listen nur ansehen (Wehr) – Felder gesperrt, ohne Rahmen des fieldset */
fieldset.still { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.feld-text { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }

/* 3.7.2: Knopf in einer Zeile mit beschrifteten Feldern (oben ausgerichtet) – auf Höhe der Eingabefelder */
.fields.oben > .fieldbtn.unter-label { padding-top: 1.45rem; }
.fields.oben > .fieldbtn.unter-label .btn { min-height: 2.35rem; }

/* ---- 3.7.2: Rückfragen und Hinweise im eigenen Fenster ---- */
dialog.frage-fenster { width: min(460px, calc(100vw - 2rem)); border: 0; border-radius: 12px; padding: 1.2rem 1.3rem 1.1rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35); color: var(--ink); background: #fff; }
dialog.frage-fenster::backdrop { background: rgba(10, 15, 30, .6); }
dialog.frage-fenster h2 { margin: 0 0 .6rem; font-size: 1.1rem; }
dialog.frage-fenster .frage-text { margin: 0 0 1.1rem; white-space: pre-line; line-height: 1.45; overflow-wrap: anywhere; }
.frage-knoepfe { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.frage-knoepfe .btn { min-width: 7rem; min-height: 2.4rem; }
.frage-knoepfe .btn[hidden] { display: none; }
@media (max-width: 520px) {
  dialog.frage-fenster { padding: 1rem; }
  .frage-knoepfe { flex-direction: column-reverse; }
  .frage-knoepfe .btn { width: 100%; min-height: 2.8rem; }
}

/* ---- 3.7.3: farbige Piktogramme (Wasser, Schaummittel) in voller Farbe ---- */
img.piktogramm[src*="piktogramme/wasser."], img.piktogramm[src*="piktogramme/schaum."] { opacity: 1; }

/* ---- 3.8.0: Fuhrpark ---- */
.tabs.unterreiter { margin: -.4rem 0 1rem; }
.tabs.unterreiter a { font-size: .8rem; padding: .22rem .6rem; }
.tabs.unterreiter a.on { background: var(--rot); border-color: var(--rot); }
.tag.gelb { background: #fff4d6; color: #7a4b00; }
h3.wehr-titel { margin: 1rem 0 .5rem; }
h3.wehr-titel:first-of-type { margin-top: .2rem; }
.fzkacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; }
.fzkachel { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  color: var(--ink); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fzkachel:hover, .fzkachel:focus { border-color: var(--rot); box-shadow: 0 2px 10px rgba(0, 0, 0, .07); text-decoration: none; outline: none; }
.fzkachel.muted { opacity: .6; }
.fzkachel-bild { height: 130px; background: #fff; display: flex; align-items: center; justify-content: center; padding: .6rem;
  border-bottom: 1px solid var(--line); }
.fzkachel-bild .fzbild { max-width: 100%; max-height: 100%; }
.fzkachel-text { display: flex; flex-direction: column; gap: .25rem; padding: .55rem .7rem .7rem; }
.fzkachel-text b { font-size: .95rem; }
.fzkachel-text small { color: var(--ink-2); font-size: .78rem; }
.fzkachel-fuss { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; font-size: .78rem; }
img.fzbild { display: block; object-fit: contain; background: #fff; }
img.fzbild.piktogramm { opacity: .45; width: 72px; height: 72px; }
img.fzbild.klein { width: 64px; height: 40px; }
img.fzbild.piktogramm.klein { width: 40px; height: 40px; }
img.fzbild.gross { width: 100%; height: auto; max-height: 360px; margin-bottom: .6rem; }
.fzbilder { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; margin-bottom: .6rem; }
.fzbild-eintrag { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: .35rem; background: #fff; display: flex; flex-direction: column; gap: .25rem; }
.fzbild-eintrag img.fzbild { width: 100%; height: 70px; }
.fzbild-eintrag figcaption { font-size: .74rem; color: var(--ink-2); }
.fzbild-knoepfe { display: flex; flex-wrap: wrap; gap: .2rem; align-items: center; }
.fzbild-knoepfe select { font-size: .74rem; padding: .1rem .2rem; max-width: 100%; }
.fzbild-knoepfe .btn.small { padding: .1rem .35rem; font-size: .72rem; }
.ampel-text { display: inline-flex; align-items: center; gap: .35rem; }
.ampel-text i { width: .7rem; height: .7rem; border-radius: 50%; background: #c4cad1; flex: none; }
.ampel-text.rot i { background: #dc2626; }
.ampel-text.gelb i { background: #e2a300; }
.ampel-text.gruen i { background: #16a34a; }
.ampel-text.grau i { background: #8b95a1; }
.ampel-text.offen i { background: #fff; border: 2px solid #c4cad1; }
.ampel-text.rot { color: var(--rot); font-weight: 600; }
table.grid.kompakt td { padding: .35rem .45rem; vertical-align: top; }
table.grid.kompakt { margin-bottom: .5rem; }
form.inline { display: inline; margin: 0; }
details.aufklapp { margin-top: .6rem; border-top: 1px solid var(--line); padding-top: .5rem; }
details.aufklapp > summary { cursor: pointer; font-weight: 600; color: var(--rot); padding: .2rem 0; }
details.aufklapp[open] > summary { margin-bottom: .5rem; }
.pruefplan-zeile { border-bottom: 1px dashed var(--line); padding: .45rem 0; }
.pruefplan-zeile:last-of-type { border-bottom: 0; }
.fields.eng { gap: .4rem .6rem; margin-top: .35rem; }
.mangel { border-left: 3px solid #e2a300; padding: .1rem 0 .3rem .6rem; margin-bottom: .7rem; }
.mangel.behoben { border-left-color: var(--ok); opacity: .75; }
.mangel.in_arbeit { border-left-color: #1c4a9c; }
.mangel p { margin: 0 0 .3rem; }
table.daten { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.daten th { text-align: left; font-weight: 600; color: var(--ink-2); padding: .25rem .6rem .25rem 0; width: 45%; vertical-align: top; }
table.daten td { padding: .25rem 0; }
table.daten tr + tr th, table.daten tr + tr td { border-top: 1px solid var(--line); }
.vorformatiert { white-space: pre-line; }
img.qr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
h3.raum-titel { margin: .8rem 0 .3rem; }
h3.raum-titel:first-of-type { margin-top: 0; }
ul.beladung, ul.beladung-kurz, ul.dokliste { list-style: none; margin: 0; padding: 0; }
ul.beladung li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; border-bottom: 1px solid var(--line); }
ul.beladung li:last-child { border-bottom: 0; }
ul.beladung-kurz li, ul.dokliste li { padding: .2rem 0; }
.card.form.schmal { max-width: 640px; }
input.mittel { max-width: 9rem; }
.mitte { text-align: center; }
table.fahrer-matrix th.mitte { font-size: .78rem; line-height: 1.2; }
table.fahrtenbuch td { vertical-align: middle; }
.card.vorschlaege { border-left: 4px solid #e2a300; }
.fahrt-kopf { display: flex; align-items: center; gap: .9rem; margin: .2rem 0 .8rem; }
.fahrt-bild { width: 120px; height: 70px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.fahrt-bild .fzbild { max-width: 100%; max-height: 100%; }
.fahrt-kopf h1 { font-size: 1.3rem; }
.fahrt-kopf p { margin: .1rem 0 0; }
main.schmal-handy { max-width: 640px; margin-left: auto; margin-right: auto; }
.btn.gross { width: 100%; min-height: 3rem; font-size: 1.05rem; }
@media (max-width: 640px) {
  .fzkacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .fzkachel-bild { height: 90px; }
  .fahrt-handy .fields.oben > label { flex: 1 1 calc(50% - .5rem); }
  .fahrt-handy .fields.oben > label.wide { flex-basis: 100%; }
  .fahrt-handy input, .fahrt-handy select { font-size: 16px; min-height: 2.6rem; }
}
@media print {
  .tabs.unterreiter, .filterzeile, .ansichtwahl { display: none; }
}
form.jahrwahl label { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-2); }
form.jahrwahl select { min-width: 5.5rem; }

/* 3.8.1: Bezeichnung und Einheit in einer Zeile – alle Eingabefelder einer Reihe auf gleicher Höhe */
.fields label > .feldname { white-space: nowrap; }

/* 3.8.1: Datums- und Zeitfelder (vor allem iOS-Safari): keine eigene Mindestbreite, Wert linksbündig, gleiche Höhe
   wie die übrigen Felder – sonst ragen sie über den Rand und verschieben die Reihe */
.fields > label { min-width: 0; }
input[type=date], input[type=time], input[type=datetime-local] { min-width: 0; max-width: 100%; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value,
input[type=datetime-local]::-webkit-date-and-time-value { text-align: left; }
@supports (-webkit-touch-callout: none) {
  input[type=date], input[type=time], input[type=datetime-local] { -webkit-appearance: none; appearance: none;
    display: block; min-height: 2.6rem; line-height: 1.5; }
}

/* 3.8.1: Eingabefelder in Tabellen in derselben Schriftgröße wie in den Formularen (Handy: 16 px gegen Zoomen) */
@media (min-width: 701px) {
  table.grid td input:not([type=checkbox]):not([type=radio]), table.grid td select, table.grid td textarea { font-size: .8rem; }
}
table.raeume td { vertical-align: middle; padding-left: .3rem; padding-right: .3rem; }
table.raeume th { padding-left: .3rem; padding-right: .3rem; }
table.raeume td:first-child { width: 32%; }
table.raeume td:nth-child(4) { width: 45%; }
table.raeume input.raum-name, table.raeume input.raum-bem { width: 100%; min-width: 5rem; }
table.raeume input.raum-sort { width: 3.2rem; text-align: right; }
table.raeume select { width: auto; }
table.raeume td:nth-child(5), table.raeume td:last-child { width: 1%; white-space: nowrap; }
.btn-symbol { border: 0; background: none; padding: .3rem; line-height: 0; cursor: pointer; border-radius: 6px; }
.btn-symbol.loeschen { color: var(--rot); }
.btn-symbol.loeschen:hover:not(:disabled) { background: var(--rot-l); }
.btn-symbol:disabled { color: #c4cad1; cursor: not-allowed; }

/* 3.8.1: Fahrzeugseite der Wehr – Bild und Daten nebeneinander, rechts Prüfungen/Mängel/Dokumente, darunter die
   Beladung als große Fläche */
.fz-seite { display: grid; gap: 1rem; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, .85fr);
  grid-template-areas: "bild daten rand" "beladung beladung rand"; grid-template-rows: auto 1fr; }
.fz-seite > .card { margin: 0; }
.fz-seite .fz-bild { grid-area: bild; }
.fz-seite .fz-daten { grid-area: daten; }
.fz-seite .fz-rand { grid-area: rand; display: flex; flex-direction: column; gap: 1rem; }
.fz-seite .fz-rand > .card { margin: 0; }
.fz-seite .fz-beladung { grid-area: beladung; }
.beladung-raeume { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .4rem 1.4rem; }
.beladung-raeume .raum-gruppe.lang { grid-column: 1 / -1; }
.beladung-raeume .raum-gruppe.lang ul.beladung { columns: 250px; column-gap: 1.4rem; }
.beladung-raeume .raum-gruppe ul.beladung li { break-inside: avoid; }
.beladung-raeume h3.raum-titel { margin-top: .4rem; }
@media (max-width: 1100px) {
  .fz-seite { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "bild daten" "beladung beladung" "rand rand"; grid-template-rows: none; }
}
@media (max-width: 700px) {
  .fz-seite { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bild" "daten" "beladung" "rand"; }
}

/* ---- 3.8.2: Schaummittel – Kachel mit dem Füllstand des Vorrats (IBC) ---- */
.material-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 440px)); gap: .8rem; margin-bottom: 1rem; }
.ibc-kachel { display: flex; gap: 1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: .8rem 1rem; color: inherit; text-decoration: none; }
a.ibc-kachel:hover { border-color: #c2187a; }
.ibc-kachel.rot { border-color: var(--rot); }
.ibc-bild { width: 104px; flex: none; }
.ibc-tank { fill: #fff; stroke: #6b7280; stroke-width: 2; }
.ibc-deckel { fill: #6b7280; }
.ibc-inhalt { fill: #e0569f; }
.ibc-gitter { fill: none; stroke: #6b7280; stroke-width: 1; opacity: .55; }
.ibc-schwelle { fill: none; stroke: var(--rot); stroke-width: 1.5; stroke-dasharray: 4 3; }
.ibc-palette { fill: none; stroke: #6b7280; stroke-width: 2; stroke-linejoin: round; }
.ibc-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; font-size: .85rem; }
.ibc-text small { font-size: .8rem; color: var(--ink-2, #5b6570); }
.ibc-text > b { font-size: 1.35rem; line-height: 1.2; }
.ibc-text > b .dim { font-size: .9rem; font-weight: 400; }
.ibc-prozent { color: #a3155f; font-weight: 600; }
.ibc-gesamt { margin-top: .3rem; padding-top: .3rem; border-top: 1px solid var(--line); }
.ibc-text .tag { align-self: flex-start; }
@media (max-width: 520px) { .ibc-bild { width: 76px; } }

/* ---- 3.8.3: Material-Übersicht – Kacheln der Vorräte in einer Reihe, Prüfungen rechts daneben ---- */
.material-oben { display: flex; flex-wrap: wrap; gap: .8rem; align-items: stretch; margin-bottom: 1rem; }
.material-oben > .ibc-kachel { flex: 0 1 400px; min-width: min(100%, 300px); }
.material-oben > .hinweis-karte { flex: 1 1 340px; min-width: 0; margin: 0; }
.sack-huelle { fill: #fff; }
.sack-inhalt { fill: #d9b46c; }
.ibc-kachel.sack .ibc-prozent { color: #86642a; }
a.ibc-kachel.sack:hover { border-color: #b08a45; }
.sack-rand { fill: none; stroke: #6b7280; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
img.piktogramm[src*="piktogramme/kraftstoff."], img.piktogramm[src*="piktogramme/oel."] { opacity: 1; }
/* ---- 3.8.3: Träger-Einstellungen – Haken nebeneinander, Kategorien zweispaltig ---- */
.haken-zeilen { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-bottom: .7rem; }
.kat-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.kat-liste > .fields { display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.kat-liste > .fields > label.wide { flex: 1 1 auto; min-width: 0; margin: 0; }
.kat-liste > .fields > label.check { flex: none; margin: 0; white-space: nowrap; }
@media (max-width: 700px) { .kat-liste { grid-template-columns: 1fr; } }

/* ---- 3.8.6: Kacheln ohne den Rahmen des fieldset (nur die Mehrfachauswahl behält ihren) ---- */
.card fieldset:not(.mehrfach), form.card > fieldset:not(.mehrfach) { border: 0; padding: 0; margin: 0; min-width: 0; }
/* ---- 3.8.6: Tabellen mit Eingabefeldern – Textfelder füllen ihre Spalte, Zahlenfelder bleiben schmal, alles linksbündig ---- */
table.eingabe-tabelle { width: 100%; }
table.eingabe-tabelle th, table.eingabe-tabelle td { text-align: left; }
table.eingabe-tabelle td { padding-left: .3rem; padding-right: .3rem; }
table.eingabe-tabelle input:not([type=checkbox]):not(.kurz):not(.zahl) { width: 100%; min-width: 7rem; box-sizing: border-box; }
table.eingabe-tabelle input.kurz, table.eingabe-tabelle input.zahl { width: 4.2rem; }
table.eingabe-tabelle td:has(> input.kurz), table.eingabe-tabelle td:has(> input.zahl), table.eingabe-tabelle td:has(> input[type=checkbox]),
table.eingabe-tabelle td:has(> .btn-symbol) { width: 1%; white-space: nowrap; }
.katform.eingabe-tabelle input { font-size: inherit; padding: .3rem .45rem; }
/* ---- 3.8.6: Prüfarten in den Träger-Einstellungen zweispaltig, Monate ohne Beschriftung je Zeile ---- */
.kat-liste > .fields > label:not(.wide):not(.check) { flex: none; margin: 0; }
.kat-liste input.monate { width: 3.6rem; text-align: right; }
/* ---- 3.8.6: Tablet – Spaltenköpfe dürfen umbrechen, damit Tabellen nicht seitlich überstehen ---- */
.grid.eingabe-tabelle th, .grid.eingabe-tabelle th.mit-filter { white-space: normal; vertical-align: bottom; line-height: 1.25; }
@media (max-width: 1199.98px) {
  .grid th, .grid th.mit-filter { white-space: normal; vertical-align: bottom; line-height: 1.25; }
  .tablewrap .grid th, .tablewrap .grid td { padding-left: .35rem; padding-right: .35rem; overflow-wrap: anywhere; hyphens: auto; }
  .tablewrap .grid td .tag, .tablewrap .grid td .ampel, .tablewrap .grid td .ampel-text, .tablewrap .grid td.num,
  .tablewrap .grid td.spalte-geraetenr { overflow-wrap: normal; hyphens: manual; white-space: nowrap; }
  .tablewrap .grid th { font-size: .7rem; letter-spacing: 0; }
  table.eingabe-tabelle input:not([type=checkbox]):not(.kurz):not(.zahl) { min-width: 4.6rem; }
  table.eingabe-tabelle input.kurz, table.eingabe-tabelle input.zahl { width: 3.6rem; }
}

/* ---- 3.8.6: Massenbearbeitung in der Materialliste ---- */
dialog.massen-fenster { width: min(620px, calc(100vw - 2rem)); border: 0; border-radius: 12px; padding: 1.2rem 1.3rem 1.1rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35); color: var(--ink); background: #fff; }
dialog.massen-fenster::backdrop { background: rgba(10, 15, 30, .6); }
dialog.massen-fenster h2 { margin: 0 0 .8rem; font-size: 1.1rem; }
.auswahl-leiste .trenner { align-self: stretch; width: 1px; background: var(--line); margin: 0 .2rem; }

/* ---- 3.8.8: Kästchen überall gleich – eigene Zeichnung statt der des Browsers (die je nach Lage mal dünn, mal fett geriet) ---- */
input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; box-sizing: border-box; width: 18px; height: 18px;
  margin: 0; padding: 0; border: 2px solid #5b6570; border-radius: 4px; background: #fff; display: inline-grid; place-content: center;
  vertical-align: middle; cursor: pointer; }
input[type=checkbox]::before { content: ""; width: 10px; height: 10px; transform: scale(0); background: #fff;
  clip-path: polygon(14% 52%, 0 67%, 38% 100%, 100% 22%, 86% 8%, 37% 70%); }
input[type=checkbox]:checked { background: var(--ink); border-color: var(--ink); }
input[type=checkbox]:checked::before { transform: scale(1); }
input[type=checkbox]:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
input[type=checkbox]:disabled { border-color: #c4cad1; background: #f1f3f5; cursor: not-allowed; }
input[type=checkbox]:disabled:checked { background: #9aa3ad; border-color: #9aa3ad; }
.pitem input[type=checkbox]:checked { background: var(--ok); border-color: var(--ok); }
/* ---- 3.8.8: Leiste „Massenverarbeitung“ über der Materialliste ---- */
.auswahl-leiste.massen { align-items: center; }
.massen-kopf { display: flex; flex-direction: column; gap: .1rem; margin-right: .4rem; line-height: 1.2; }
.massen-kopf > b { font-size: 1rem; }
.massen-kopf > span { font-size: .85rem; color: var(--ink-2, #5b6570); }

/* ---- 3.8.8: Bestätigungsfenster „Akten löschen“ ---- */
.massen-liste { max-height: 40vh; overflow-y: auto; margin: .2rem 0 .8rem; padding-left: 1.2rem; }
.massen-liste li { margin: .15rem 0; }

/* ---- 3.8.8: Modelle überführen – Gegenüberstellung Wehr / Katalog ---- */
table.vergleich th, table.vergleich td { vertical-align: top; text-align: left; }
table.vergleich tbody th { width: 15%; font-size: .85rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
table.vergleich td { width: 37%; overflow-wrap: anywhere; }
table.vergleich .mitte { width: 11%; text-align: center; white-space: nowrap; }
table.vergleich .vorformatiert { white-space: pre-line; }
.vergleich-bild { width: 160px; height: 120px; }

/* ---- 3.8.9: Ausrüstungssatz in der Materialliste einklappbar, Stift öffnet die Akte ---- */
.grid th.spalte-stift, .grid td.spalte-stift { width: 2rem; padding-left: 0; padding-right: 0; text-align: center; }
a.btn-symbol.stift { display: inline-block; color: var(--blau, #1d4f91); }
a.btn-symbol.stift:hover { background: #e3edf9; }
table.grid tr.satz-zu { display: none !important; }
table.grid tr.satz-zeile { cursor: pointer; }
.satz-knopf { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.satz-pfeil { display: inline-block; width: 1em; color: var(--blau, #1d4f91); transition: transform .12s; }
tr.satz-offen .satz-pfeil { transform: rotate(90deg); }
.satz-zahl { white-space: nowrap; }
table.grid tr.teil-zeile[data-ebene="1"] td.spalte-name { padding-left: 1.6rem; }
table.grid tr.teil-zeile[data-ebene="2"] td.spalte-name { padding-left: 2.8rem; }
table.grid tr.teil-zeile[data-ebene="3"] td.spalte-name { padding-left: 4rem; }
.satz-leiste { display: flex; justify-content: flex-end; margin: 0 0 .4rem; }
@media print { table.grid tr.satz-zu { display: table-row !important; } .satz-leiste, .spalte-stift { display: none; } }

/* ---- 3.8.9: Kacheln der Material-Übersicht – Werte als saubere Liste, Zahl und Einheit bleiben zusammen ---- */
.material-oben > .ibc-kachel { flex: 1 1 330px; max-width: 460px; align-items: flex-start; }
.ibc-kachel .ibc-bild { align-self: center; }
.ibc-text { flex: 1 1 auto; }
.ibc-text > b { white-space: nowrap; }
.kachel-unter { color: var(--ink-2); }
.kachel-werte { display: grid; grid-template-columns: 1fr auto; gap: .12rem .9rem; margin: .4rem 0 0; padding-top: .4rem;
  border-top: 1px solid var(--line); }
.kachel-werte.ohne-linie { border-top: 0; padding-top: 0; margin-top: .2rem; }
.kachel-werte dt { color: var(--ink-2); min-width: 0; }
.kachel-werte dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kachel-werte .summe { color: var(--ink); font-weight: 700; }
.kachel-werte dt.summe:not(:first-child), .kachel-werte dt.summe:not(:first-child) + dd { border-top: 1px solid var(--line); padding-top: .25rem; margin-top: .15rem; }
.kachel-werte .rot { color: var(--rot); font-weight: 600; }
.kachel-werte:empty { display: none; }
a.stoff-kachel:hover { border-color: #6b7280; }
.sorten { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .3rem; }
.sorte { display: flex; flex-direction: column; align-items: center; gap: .1rem; text-align: center; min-width: 0; }
.sorte svg { width: 52px; height: auto; }
.sorte b { font-size: 1.15rem; line-height: 1.2; white-space: nowrap; }
.sorte > span { color: var(--ink-2); }
.sorte .kanne { stroke-width: 2.5; stroke-linejoin: round; }
.sorte .griff, .sorte .tuelle, .sorte .praegung { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sorte .praegung { stroke-width: 2; opacity: .55; }
.sorte.diesel .kanne { fill: #4b5563; } .sorte.diesel path { stroke: #1f2937; } .sorte.diesel .praegung { stroke: #e5e7eb; }
.sorte.benzin .kanne { fill: #4ade80; } .sorte.benzin path { stroke: #15803d; }
.sorte.gemisch .kanne { fill: #fb923c; } .sorte.gemisch path { stroke: #c2410c; }
.sorte.leer svg { opacity: .35; } .sorte.leer b { color: var(--ink-3); font-weight: 600; }
.oel-bild { width: 84px; flex: none; align-self: center; }
.oel-kanne { fill: #e6c95c; stroke: #7a5a10; stroke-width: 3; stroke-linejoin: round; }
.oel-rand { fill: none; stroke: #7a5a10; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.oel-tropfen { fill: #e6c95c; stroke: #7a5a10; stroke-width: 2.5; stroke-linejoin: round; }
@media (max-width: 520px) { .oel-bild { width: 64px; } .sorte svg { width: 44px; } }

/* ---- 3.8.9: PDF im Fenster der Seite (Einsatzbericht in „Einsätze und Kosten“) ---- */
.pdf-knopf { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .15rem .25rem; font: inherit;
  color: var(--ink); cursor: pointer; border-radius: 6px; white-space: nowrap; }
.pdf-knopf:hover { background: var(--rot-l); color: var(--rot-d); }
.pdf-symbol { flex: none; }
dialog.pdf-fenster { width: min(900px, calc(100vw - 2rem)); height: min(88vh, 1100px); max-width: none; max-height: none; border: 0;
  border-radius: 12px; padding: 0; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); background: #fff; color: var(--ink); overflow: hidden; }
dialog.pdf-fenster[open] { display: flex; flex-direction: column; }
dialog.pdf-fenster::backdrop { background: rgba(10, 15, 30, .6); }
.pdf-kopf { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.pdf-kopf h2 { margin: 0; font-size: 1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-kopf .grow { flex: 1 1 auto; }
dialog.pdf-fenster iframe { flex: 1 1 auto; width: 100%; border: 0; background: #f0f1f3; }

/* 3.8.9: Einsätze und Kosten – die Auswahl „Kostenpflicht“ nimmt den anderen Spalten nicht mehr den Platz (iPad) */
table.einsatz-kosten select[name=tatbestand] { width: 13rem; max-width: 100%; text-overflow: ellipsis; }
@media (max-width: 1100px) { table.einsatz-kosten select[name=tatbestand] { width: 9.5rem; } }

/* ---- 3.8.9: Impressum und Datenschutz (Angaben aus der Administration) ---- */
.recht-titel { margin-bottom: 1rem; }
.recht-knoepfe { margin-top: 1.2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.impressum .mehrzeilig { white-space: pre-line; }
.impressum ul { margin: 0 0 .4rem; padding-left: 1.2rem; line-height: 1.5; }
.impressum li { margin-bottom: .3rem; }

/* ===== 3.8.10: Handy und iPad – nichts darf seitlich über den Rand ragen ===== */
html, body { overflow-x: clip; }                 /* letzte Sicherung gegen seitliches Verschieben am iPhone */
img, video, canvas, iframe { max-width: 100%; }
.pagehead > *, .card-head > *, .actions > * { min-width: 0; }
.pagehead h1 { overflow-wrap: anywhere; }
.btn { max-width: 100%; }
@media (max-width: 700px) {
  /* Kopf der Materialliste: Inventur-Auswahl darf umbrechen */
  .inventur-wahl { flex: 1 1 100%; flex-wrap: wrap; }
  .inventur-wahl select { flex: 1 1 12rem; min-width: 0; }
  /* Speichern-Leisten: lieber zweizeilig als abgeschnitten */
  .actions.sticky { flex-wrap: wrap; }
  .btn { white-space: normal; text-align: center; }
  /* Eingabetabellen als Karten: Zeile = Karte, Felder untereinander bzw. nebeneinander, Beschriftung darüber */
  .tablewrap:has(> table.eingabe-tabelle) { overflow-x: visible; }
  table.eingabe-tabelle, table.eingabe-tabelle tbody { display: block; width: 100%; }
  table.eingabe-tabelle thead { display: none; }
  table.eingabe-tabelle tr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .45rem .6rem; padding: .6rem 0;
    border-bottom: 1px solid var(--line); }
  table.eingabe-tabelle tbody tr:last-child { border-bottom: 0; }
  table.eingabe-tabelle td { display: flex; flex-direction: column; gap: .15rem; padding: 0 !important; border: 0 !important;
    width: auto !important; white-space: normal !important; text-align: left !important; flex: 0 1 auto; min-width: 0; }
  table.eingabe-tabelle td[data-label]::before { content: attr(data-label); font-size: .72rem; font-weight: 600; color: var(--ink-3); }
  table.eingabe-tabelle td.leer { display: none; }
  table.eingabe-tabelle td:has(> input:not([type=checkbox]):not(.kurz):not(.zahl)),
  table.eingabe-tabelle td:has(> select), table.eingabe-tabelle td:has(> textarea) { flex: 1 1 100%; }
  table.eingabe-tabelle td:has(> input[type=checkbox]) { flex-direction: row-reverse; align-items: center; justify-content: flex-end; }
  table.eingabe-tabelle td:has(> .btn-symbol) { margin-left: auto; }
  table.eingabe-tabelle input:not([type=checkbox]):not(.kurz):not(.zahl), table.eingabe-tabelle select { width: 100%; min-width: 0; }
  table.eingabe-tabelle input.kurz { width: 7.5rem; } table.eingabe-tabelle input.zahl { width: 5.5rem; }
  table.eingabe-tabelle tr.vorlage { background: var(--bg); border-radius: 8px; padding: .6rem; }
  table.eingabe-tabelle td small { font-size: .75rem; }
  /* Qualifikations-Matrix: bleibt eine Tabelle zum Wischen, die Namensspalte bleibt dabei stehen */
  .matrix tbody td:first-child { min-width: 9rem; max-width: 11rem; white-space: normal; }
}
/* Matrix: erste Spalte beim seitlichen Wischen fest (Handy und iPad) */
.tablewrap .matrix tbody td:first-child, .tablewrap .matrix thead th:first-child { position: sticky; left: 0; z-index: 1;
  background: #fff; box-shadow: 1px 0 0 var(--line); }
.tablewrap .matrix tbody tr.zebra td:first-child { background: #f4f8fd; }
/* iPad hochkant: die breite Fahrzeugtabelle (Konfiguration, Webseite) ebenfalls als Karten */
@media (min-width: 701px) and (max-width: 1000px) {
  .tablewrap:has(> table.web-fz-tabelle) { overflow-x: visible; }
  table.web-fz-tabelle, table.web-fz-tabelle tbody { display: block; width: 100%; }
  table.web-fz-tabelle thead { display: none; }
  table.web-fz-tabelle tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .45rem .6rem; padding: .6rem 0;
    border-bottom: 1px solid var(--line); align-items: end; }
  table.web-fz-tabelle td { display: flex; flex-direction: column; gap: .15rem; padding: 0 !important; border: 0 !important; min-width: 0;
    width: auto !important; white-space: normal !important; }
  table.web-fz-tabelle td[data-label]::before { content: attr(data-label); font-size: .72rem; font-weight: 600; color: var(--ink-3); }
  table.web-fz-tabelle td:nth-child(-n+2) { grid-column: span 2; }
  table.web-fz-tabelle input:not([type=checkbox]), table.web-fz-tabelle select { width: 100% !important; min-width: 0; }
  table.web-fz-tabelle td:has(> input[type=checkbox]) { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: .4rem; }
  table.web-fz-tabelle td.leer { display: none; }
}

/* 3.8.11: Handy – Materialakte mit dem Foto ganz oben */
@media (max-width: 700px) {
  .layout.akte > .col:has(> .foto-karte) { display: contents; }
  .layout.akte > .col > .foto-karte, .layout.akte > .foto-karte { order: -1; }
}

/* 3.8.11: Handy – in Listen mit Bild stehen Auswahlhaken, Stift, Bild und Bezeichnung in einer Zeile */
@media (max-width: 700px) {
  table.grid.karten tr:has(> td.spalte-bild) { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: .6rem; }
  table.grid.karten tr:has(> td.spalte-bild) > td { flex: 1 1 100%; }
  table.grid.karten tr:has(> td.spalte-bild) > td:is(.spalte-wahl, .spalte-stift, .spalte-bild) { flex: none; width: auto;
    order: -2; padding: 0 0 .35rem; }
  table.grid.karten tr:has(> td.spalte-bild) > td.spalte-wahl::before,
  table.grid.karten tr:has(> td.spalte-bild) > td.spalte-stift::before,
  table.grid.karten tr:has(> td.spalte-bild) > td.spalte-bild::before { display: none; }
  table.grid.karten tr:has(> td.spalte-bild) > td.kt { flex: 1 1 0; min-width: 0; order: -1; align-self: center;
    border-bottom: 0; margin: 0; padding: 0 0 .35rem; overflow-wrap: anywhere; }
}

/* 3.8.11: Handy – Fahrtenbuch: Vorschläge aus Berichten untereinander, Knöpfe brechen um */
@media (max-width: 700px) {
  table.vorschlagliste, table.vorschlagliste tbody { display: block; width: 100%; }
  table.vorschlagliste tr { display: flex; flex-wrap: wrap; gap: .3rem .6rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
  table.vorschlagliste td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
  table.vorschlagliste td:nth-child(n+2) { flex: 1 1 100%; }
  table.vorschlagliste td:last-child { display: flex; flex-wrap: wrap; gap: .4rem; }
  table.vorschlagliste td:last-child form { margin: 0; }
}

/* 3.8.11: Handy – Fahrt eintragen: zwei feste Spalten, nichts ragt über den Rand; Datum, Fahrer, Anlass … über
   die ganze Breite, Abfahrt und Ankunft darunter nebeneinander; Datum und Uhrzeit linksbündig */
@media (max-width: 700px) {
  .fahrt-handy .fields.oben, .fahrt-form .fields.oben { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .8rem; align-items: end; }
  .fahrt-handy .fields.oben > label, .fahrt-form .fields.oben > label { min-width: 0; width: auto; flex: none; }
  .fahrt-handy .fields.oben > label.zeile, .fahrt-form .fields.oben > label.zeile,
  .fahrt-form .fields.oben > label.wide { grid-column: 1 / -1; }
  .fahrt-handy .fields input, .fahrt-handy .fields select, .fahrt-form .fields input, .fahrt-form .fields select {
    width: 100%; max-width: 100%; min-width: 0; font-size: 16px; min-height: 2.6rem; }
  .fahrt-handy input[type=date], .fahrt-handy input[type=time], .fahrt-form input[type=date], .fahrt-form input[type=time] {
    text-align: left; }
}
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { margin-left: 0; margin-right: auto; }

/* ---- 3.8.13: Material als Kacheln je Standort, Schnellerfassung ---- */
.ansicht-leiste { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; }
.ansicht-leiste .grow { flex: 1 1 auto; }
.standort-abschnitt .card-head h2 .dim { font-weight: 400; }
.standortkacheln .typkachel { position: relative; }
.standortkacheln .typkachel b { overflow-wrap: anywhere; }
.standortkacheln .kachelfuss { flex-wrap: wrap; row-gap: .15rem; }
.standortkacheln .tag.anzahl { background: var(--ink); color: #fff; white-space: nowrap; }
.standortkacheln .raum { white-space: nowrap; }
.kachel-punkt { position: absolute; top: .45rem; right: .45rem; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.kachel-punkt.rot { background: #dc2626; } .kachel-punkt.gelb { background: #e2a300; }
.schnell-form h2 { margin: 1rem 0 .4rem; font-size: 1rem; } .schnell-form h2:first-child { margin-top: 0; }
.schnell-neu[hidden], .schnell-form label[hidden] { display: none; }
@media (max-width: 700px) { .typkacheln.standortkacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { .ansicht-leiste { display: none; } }

/* ---- 3.8.14: zuletzt geöffnetes Element markiert; Beladung im Fuhrpark als anklickbare Felder ---- */
table.grid tbody tr.zuletzt, table.grid tbody tr.zuletzt.zebra { background: #fff3d6; box-shadow: inset 4px 0 0 #e2a300; }
table.grid tbody tr.zuletzt:hover { background: #ffe9b8; }
.typkachel.zuletzt, .kachel.zuletzt, .tile.zuletzt { background: #fff3d6; border-color: #e2a300; box-shadow: 0 0 0 2px rgba(226, 163, 0, .35); }
li.zuletzt > a:not(.posten) { background: #fff3d6; box-shadow: 0 0 0 3px #fff3d6; border-radius: 4px; }
ul.beladung.felder { display: grid; gap: .3rem; }
ul.beladung.felder li { display: block; padding: 0; border: 0; }
.beladung-raeume .raum-gruppe.lang ul.beladung.felder { columns: auto; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: .4rem; }
ul.beladung.felder .posten { display: flex; align-items: center; gap: .55rem; padding: .3rem .5rem; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; min-height: 2.9rem; transition: background .1s, border-color .1s; }
ul.beladung.felder .posten .posten-name { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
ul.beladung.felder .posten small { margin-left: auto; white-space: nowrap; }
ul.beladung.felder a.posten:hover, ul.beladung.felder a.posten:focus-visible { background: #eaf1fa; border-color: #9db8d9; outline: none; }
ul.beladung.felder a.posten:active { background: #d7e5f6; }
ul.beladung.felder li.zuletzt .posten, ul.beladung.felder .posten.zuletzt { background: #fff3d6; border-color: #e2a300; box-shadow: inset 4px 0 0 #e2a300; }
@media print { .zuletzt, ul.beladung.felder li.zuletzt .posten { background: none !important; box-shadow: none !important; } }

/* 3.8.14: Suche in der Kopfzeile einer Liste, links neben dem Knopf und gleich hoch */
.card-head .kopfsuche { flex: 1 1 auto; justify-content: flex-end; align-items: stretch; flex-wrap: nowrap; }
.card-head .kopfsuche input[type=search] { flex: 0 1 26rem; min-width: 8rem; margin: 0; }
.card-head .kopfsuche .btn { white-space: nowrap; }
@media (max-width: 700px) { .card-head .kopfsuche { flex-wrap: wrap; } .card-head .kopfsuche input[type=search] { flex: 1 1 100%; } }
@media print { .card-head .kopfsuche input[type=search], .card-head .kopfsuche button { display: none; } }
/* 3.8.19: Kacheln einer Zeile sind gleich hoch (alle Seiten). Raster- und Flex-Zeilen strecken ihre Kacheln;
   in Spalten (.col) läuft die letzte Kachel bis unten, die Zeilen darüber gleicht app.js an (kachelZeilen). */
:has(> .card) { align-items: stretch !important; }
.layout > .card, .layout > .col, .layout > form { align-self: stretch !important; }
.col > .card:not(:has(~ .card)), .fz-seite .fz-rand > .card:not(:has(~ .card)) { flex-grow: 1; }   /* letzte Kachel, auch vor Knopfleisten */
.kachel-messen .col > .card, .kachel-messen .fz-rand > .card { flex-grow: 0 !important; }
.kachel-messen .card { height: max-content !important; }
/* 3.8.19 / 3.9.0: Fotos zum Einsatz / Dienst – Ablage, Vorschau mit „Übernehmen“, eine Bilderliste */
.berichtsfotos .foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; margin: .8rem 0; }
.foto-kachel { margin: 0; display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding: .45rem; border-radius: 8px; background: #f7f8fa; }
.foto-kachel.entfernt { display: none; }
.foto-kachel .foto-bild { position: relative; display: block; line-height: 0; }
.foto-kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #eef0f3; }
.foto-kachel input:not([type]), .foto-kachel input[type=text] { width: 100%; }
.foto-wahl { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .7rem; font-size: .88rem; min-height: 2rem; }
.foto-wahl .check { margin: 0; }
.foto-wahl .grow { flex: 1; }
.foto-wahl .btn-symbol.loeschen { margin-left: auto; }
.foto-online { position: absolute; left: .4rem; top: .4rem; line-height: 1.4; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.foto-kachel:has(input[name=tf]:checked) img { outline: 3px solid var(--ok); outline-offset: -3px; }
.foto-dateiname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 75%; }
.foto-ablage { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .9rem; padding: 1rem;
  border-radius: 8px; background: #f4f6f9; color: var(--ink-3); text-align: center; transition: background .15s; }
.foto-ablage-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.berichtsfotos.ziehen .foto-ablage { background: var(--rot-l); color: var(--rot); }
.foto-vormerkung { margin-top: .8rem; padding: .8rem; border-radius: 8px; background: #fff8e6; }
.foto-vormerkung .foto-raster { margin: .5rem 0; }
.foto-vormerkung .foto-kachel { background: #fff; }
.foto-vormerk-text { margin: 0; font-weight: 600; color: var(--ink-2); }
.foto-vormerk-knoepfe { display: flex; justify-content: flex-end; gap: .5rem; }
.foto-status { margin: .5rem 0 0; font-size: .88rem; color: var(--ok); font-weight: 600; }
.foto-status:empty { display: none; }
.foto-status.fehler { color: var(--rot); }
.card .berichtsfotos.im-bericht { border: 0; padding: 0; margin: 1rem 0; background: none; }
.card .berichtsfotos.im-bericht .card-head h2 { font-size: 1rem; }
.web-weitere { margin: .4rem 0 .6rem; }
.web-rechte { margin: .4rem 0 1rem; }
@media (max-width: 700px) {
  .berichtsfotos .foto-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foto-ablage-text { display: none; }   /* am Handy wird nicht gezogen */
}
/* 3.8.19: Gerätetyp-Gruppen (Material anlegen) als Raster statt Zeitungsspalten – Gruppen einer Zeile gleich hoch */
.typgruppen { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 0 1rem; }
@media (max-width: 700px) { .typgruppen { grid-template-columns: minmax(0, 1fr); } }
/* 3.9.1: Gerätetyp- und Modellkacheln mit Bild – Name zentriert, lange Wörter mit Silbentrennung statt über den Rand */
.typgruppen .typkachel.mit-bild { align-items: stretch; text-align: center; min-width: 0; }
.typgruppen .typkachel.mit-bild b { display: block; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; line-height: 1.25; }
.typgruppen .typkachel.mit-bild small { overflow-wrap: anywhere; }
/* 3.9.1: Beschreibungen (PDF) mit Stift und Mülleimer */
ul.pdf-liste li { gap: .3rem; }
ul.pdf-liste li > .btn-symbol, ul.pdf-liste li > form { flex: none; }
ul.pdf-liste li > a.pdf-kachel { margin-right: .4rem; }
/* 3.9.1: einheitlicher Piktogrammsatz (grau mit rotem Erkennungsmerkmal) – in voller Farbe statt abgeblendet */
.modellbild.piktogramm, img.piktogramm { opacity: 1; }
dialog[id^="dok-titel-"] label { display: flex; flex-direction: column; gap: .3rem; }
dialog[id^="dok-titel-"] input[name=titel] { width: min(26rem, 100%); }

/* =====================================================================
   3.10.0: Zugang für Kameraden („Meine Feuerwehr“), Prüfanzeige, Zugänge
   ===================================================================== */
.ampel-text i.gruen { background: #16a34a; } .ampel-text i.gelb { background: #e2a300; }
.ampel-text i.rot { background: #dc2626; } .ampel-text i.grau { background: #b3bcc6; }
.tag.gruen { background: var(--ok-l); color: var(--ok); }
.ok-text { color: var(--ok); font-weight: 600; }
.fehlertext { background: var(--rot-l); color: var(--rot-d); border: 1px solid #f0c2c2; border-radius: 8px; padding: .55rem .8rem; }
@media (min-width: 1000px) { .layout.zwei-spalten { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

/* ---- Meine Feuerwehr ---- */
body.ich { background: var(--bg); }
.ich-kopf .fest { margin-left: auto; }
.ich-kopf .ich-fwms { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.ich-wehrwahl { display: flex; gap: .3rem; flex-wrap: wrap; }
.ich-main { max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.1rem 2rem; }
.ich-main h1 { margin: .2rem 0 .8rem; }
.ich-zurueck { display: inline-block; margin-bottom: .5rem; font-weight: 600; }
.ich-fuss { text-align: center; color: var(--ink-3); font-size: .78rem; padding: 1rem 0 2rem; }
.ich-gruss { display: flex; align-items: center; gap: .9rem; margin: .3rem 0 1.1rem; }
.ich-gruss h1 { margin: 0; }
.ich-gruss p { margin: .15rem 0 0; }
.ich-initialen { width: 56px; height: 56px; border-radius: 50%; background: var(--marke, #10263F); color: #fff; display: grid;
  place-items: center; font-weight: 700; font-size: 1.2rem; flex: none; letter-spacing: .02em; }
.ich-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ich-kachel { display: flex; flex-direction: column; margin: 0; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.ich-kachel:hover { text-decoration: none; border-color: #c6ccd2; box-shadow: 0 4px 14px rgba(16,38,63,.08); }
.ich-kachel p { margin: .22rem 0; }
.ich-kachel-kopf { display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.ich-kachel-kopf h2 { margin: 0; }
.ich-symbol { color: var(--rot); flex: none; }
.ich-zeile { display: flex; align-items: center; gap: .4rem; }
.ich-zeile .ich-symbol { width: 18px; height: 18px; color: var(--ink-3); }
.ich-zahl { font-size: 1.25rem; }
.ich-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.ich-raster > .card { margin: 0; }
.ich-formular .card { margin-bottom: 0; }
.ich-aktionen { display: flex; gap: .6rem; margin: 1rem 0 0; }
.ich-formular > .ich-aktionen { position: sticky; bottom: 0; background: rgba(245,246,248,.94); padding: .8rem 0; }
.ich-eintrag { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem 1rem; padding: .5rem 0;
  border-bottom: 1px solid var(--line); }
.ich-eintrag:last-child { border-bottom: 0; }
label.ich-haken { display: flex; flex-direction: row; align-items: flex-start; gap: .6rem; margin: .55rem 0; font-weight: 400;
  font-size: .9rem; color: var(--ink); cursor: pointer; }
label.ich-haken input { margin-top: .15rem; flex: none; }
.ich-wahl { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .9rem; padding: 0; border: 0; }
.ich-wahl legend { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; padding: 0; }
.ich-wahl.senkrecht { flex-direction: column; align-items: flex-start; }
.wahl-knopf { position: relative; cursor: pointer; }
.wahl-knopf input, .stufen input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wahl-knopf span { display: inline-block; padding: .42rem .8rem; border-radius: 99px; border: 1px solid #cfd5db; background: #fff;
  font-size: .88rem; color: var(--ink-2); }
.wahl-knopf input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.wahl-knopf input:focus-visible + span, .stufen input:focus-visible + span { outline: 2px solid #f1b5b5; outline-offset: 1px; }
.ich-tabelle { width: 100%; }
.ich-tiles { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ich-jahre { display: flex; flex-wrap: wrap; gap: .3rem; margin: -.3rem 0 .9rem; }
.fs-anleitung { margin-top: .8rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.fs-anleitung ol { margin: .3rem 0 .6rem 1.2rem; padding: 0; }

/* Seiten einer Bescheinigung (Ziehen/Ablegen, Auswählen, Kamera) */
.seiten-ablage { border: 2px dashed #cfd5db; border-radius: var(--r); padding: .9rem; margin: .8rem 0; background: #fafbfc; }
.seiten-ablage.ziehen { border-color: var(--rot); background: var(--rot-l); }
.seiten-ablage > p { margin: 0 0 .6rem; }
.seiten-knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; }
.seiten-liste { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; }
.seiten-liste:empty { display: none; }
.seite { display: flex; flex-direction: column; gap: .25rem; background: #fff; border-radius: 8px; padding: .35rem; position: relative; }
.seite-bild { display: grid; place-items: center; height: 140px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.seite-bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.seite-bild.pdf::after { content: "PDF"; font-weight: 700; color: var(--rot); font-size: 1.4rem; }
.seite-name { font-size: .72rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seite .btn-symbol { position: absolute; top: .4rem; right: .4rem; background: #fff; }

/* ---- Prüfanzeige: Kugel mit Fortschrittsring, Haken / X (Vorgabe 03.12.2026) ---- */
.pruef-kugel { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1.4rem 0; }
.pruef-kugel[hidden] { display: none; }
.kugel-buehne { position: relative; width: 150px; height: 150px; flex: none; }
.kugel-buehne.klein { width: 56px; height: 56px; }
.kugel-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.kugel-ring circle { fill: none; stroke-width: 5; }
.kugel-ring .ring-grund { stroke: #e2e6ea; }
.kugel-ring .ring-fort { stroke: var(--rot); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100;
  transition: stroke-dashoffset .35s ease; }
.pruef-kugel.unbestimmt .ring-fort { stroke-dashoffset: 72; transform-origin: 60px 60px; animation: kugel-drehen 1.1s linear infinite; }
.kugel { position: absolute; inset: 20px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #ffd9cf 16%, #ff7a59 38%, #c62828 62%, #5b1a3a 82%, #10263F 100%);
  box-shadow: 0 0 22px rgba(198,40,40,.45), inset -8px -10px 22px rgba(16,38,63,.55);
  animation: kugel-atmen 2.6s ease-in-out infinite; overflow: hidden; }
.kugel::after { content: ""; position: absolute; inset: -30%; border-radius: 50%; mix-blend-mode: screen; opacity: .55;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(120,170,255,.75) 30%, transparent 45% 65%, rgba(255,200,120,.7) 75%, transparent 90%);
  animation: kugel-drehen 4.5s linear infinite; }
.kugel-buehne.klein .kugel { inset: 4px; }
.kugel-text { margin: 0; font-weight: 600; color: var(--ink-2); text-align: center; }
@keyframes kugel-atmen { 0%, 100% { transform: scale(.94); filter: saturate(1); } 50% { transform: scale(1.03); filter: saturate(1.25); } }
@keyframes kugel-drehen { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .kugel, .kugel::after, .pruef-kugel.unbestimmt .ring-fort { animation: none; }
}
.pruef-ergebnis { display: flex; align-items: center; gap: 1.1rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.pruef-ergebnis h2 { font-size: 1.35rem; margin: 0 0 .25rem; }
.pruef-ergebnis p { margin: .2rem 0; }
.pruef-ergebnis.ok { border-left: 5px solid var(--ok); }
.pruef-ergebnis.fehler { border-left: 5px solid #dc2626; }
.pruef-zeichen { width: 72px; height: 72px; flex: none; }
.pruef-zeichen circle { stroke: none; }
.pruef-ergebnis.ok .pruef-zeichen circle { fill: var(--ok); }
.pruef-ergebnis.fehler .pruef-zeichen circle { fill: #dc2626; }
.pruef-zeichen path { fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; animation: zeichen-ziehen .5s .15s ease-out forwards; }
@keyframes zeichen-ziehen { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pruef-zeichen path { animation: none; stroke-dashoffset: 0; } }
.pruef-wartet { display: flex; align-items: center; gap: 1rem; border-left: 5px solid #e2a300; }
.pruef-wartet h2 { margin: 0 0 .2rem; }
.pruef-wartet p { margin: 0; }

/* ---- Führerschein aufnehmen ---- */
.fs-aufnahme { max-width: 720px; margin: 0 auto; }
.fs-schritte { display: flex; gap: .4rem; list-style: none; padding: 0; margin: .4rem 0 .8rem; counter-reset: schritt; }
.fs-schritte li { flex: 1; text-align: center; font-size: .8rem; font-weight: 600; color: var(--ink-3); padding: .35rem .3rem;
  border-bottom: 3px solid var(--line); counter-increment: schritt; }
.fs-schritte li::before { content: counter(schritt) ". "; }
.fs-schritte li.on { color: var(--rot); border-bottom-color: var(--rot); }
.fs-schritte li.fertig { color: var(--ok); border-bottom-color: var(--ok); }
.fs-schritte li.fertig::before { content: "✓ "; }
.fs-kamera { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0b1320; border-radius: 14px; overflow: hidden; }
.fs-kamera video, .fs-kamera .fs-vorschau { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fs-rahmen { position: absolute; left: 8%; right: 8%; top: 50%; aspect-ratio: 85.6 / 54; transform: translateY(-50%);
  border: 3px solid rgba(255,255,255,.92); border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0,0,0,.38); pointer-events: none; }
.fs-kamera.aufgenommen .fs-rahmen { display: none; }
.fs-zaehler { position: absolute; inset: 0; display: grid; place-items: center; font-size: 4.5rem; font-weight: 800; color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.fs-kippbilder { display: flex; gap: .5rem; margin-top: .6rem; }
.fs-kippbilder img { width: 31%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.fs-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: .9rem 0; }
.btn.gross { padding: .75rem 1.4rem; font-size: 1rem; }
.fs-bild-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.fs-bild-raster figure { margin: 0; }
.fs-bild-raster img { width: 100%; border-radius: 8px; display: block; background: var(--bg); }
.fs-bild-raster figure.kipp img { max-height: 200px; object-fit: contain; }
.fs-bild-raster figcaption { font-size: .78rem; color: var(--ink-2); margin-top: .2rem; }
details.ablehnen summary { margin: .9rem 0 .4rem; font-size: .88rem; }
details.ablehnen label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .5rem; }

/* ---- Übersicht: Kameraden ---- */
.kamerad-hinweis { border-left-color: #e2a300; }
.aenderungen-liste { list-style: none; margin: 0; padding: 0; }
.aenderungen-liste li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .4rem 0;
  border-bottom: 1px solid var(--line); }
.aenderungen-liste li:last-child { border-bottom: 0; }
.aenderungen-liste small { display: block; }
.zugang-hinweis p { margin: .2rem 0; }

/* ---- Zugänge ---- */
.zugang-leiste { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: .8rem 0 1rem; }
.zugang-leiste input[type=search] { flex: 1 1 220px; max-width: 360px; }
.filter-knoepfe { display: flex; flex-wrap: wrap; gap: .3rem; }
.filter-knoepfe .count { background: var(--ink-3); }
.zugang-einstellungen summary { margin: 0; }
.zugang-einstellungen form { margin-top: .6rem; }
.zugang-gruppe { margin-bottom: 1.2rem; }
.zugang-gruppe > h2 { margin: 0 0 .5rem; }
details.zugang { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: .4rem; }
details.zugang.weg { display: none; }
details.zugang > summary { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: 0; padding: .6rem .9rem;
  list-style: none; color: var(--ink); font-weight: 400; }
details.zugang > summary::-webkit-details-marker { display: none; }
details.zugang > summary::before { content: "▸"; color: var(--ink-3); transition: transform .15s; }
details.zugang[open] > summary::before { transform: rotate(90deg); }
details.zugang[open] > summary { border-bottom: 1px solid var(--line); }
.z-name { font-weight: 600; min-width: 13rem; }
.z-rollen { display: flex; flex-wrap: wrap; gap: .25rem; }
.tag.rolle { background: #e6e9f5; color: #34407a; }
.tag.z-status.aktiv { background: var(--ok-l); color: var(--ok); }
.tag.z-status.eingeladen { background: #fff4d6; color: #7a4b00; }
.tag.z-status.gesperrt, .tag.z-status.abgelaufen { background: var(--rot-l); color: var(--rot); }
.z-info { margin-left: auto; font-size: .8rem; }
.z-inhalt { padding: .3rem .9rem .9rem; }
.z-inhalt h3 { margin: .9rem 0 .4rem; }
.rollen-knoepfe { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.rolle-knopf { font: inherit; font-size: .84rem; padding: .38rem .75rem; border-radius: 99px; border: 1px solid #cfd5db;
  background: #fff; color: var(--ink-2); cursor: pointer; }
.rolle-knopf[aria-pressed="true"] { background: var(--rot); border-color: var(--rot); color: #fff; }
.recht-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: .45rem; }
.recht-kachel { background: var(--bg); border-radius: 8px; padding: .45rem .55rem; border-left: 3px solid transparent; }
.recht-kachel.an { border-left-color: var(--rot); }
.recht-name { display: block; font-weight: 600; font-size: .84rem; margin-bottom: .3rem; }
.stufen { display: inline-flex; flex-wrap: wrap; }
.stufen label { position: relative; cursor: pointer; }
.stufen span { display: inline-block; padding: .2rem .5rem; font-size: .76rem; border: 1px solid #cfd5db; background: #fff;
  margin-left: -1px; color: var(--ink-2); }
.stufen label:first-child span { border-radius: 6px 0 0 6px; margin-left: 0; }
.stufen label:last-child span { border-radius: 0 6px 6px 0; }
.stufen input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; position: relative; }
.stufen input:disabled + span { opacity: .45; cursor: not-allowed; }
.z-zeile { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-top: .5rem; }
.z-zeile label.ich-haken { margin: .35rem 0; }
.z-rechte .actions { margin-top: .9rem; }
.z-aktionen { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; padding-top: .7rem;
  border-top: 1px dashed var(--line); }
.z-aktionen form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.z-verbinden { margin-top: .6rem; }
.z-zuordnen summary { margin: .7rem 0 .3rem; font-size: .85rem; }
.z-zuordnen-liste { display: flex; flex-wrap: wrap; gap: .3rem; }
@media (max-width: 700px) {
  .z-name { min-width: 0; flex: 1 1 100%; }
  .z-info { margin-left: 0; flex: 1 1 100%; }
  .ich-main { padding: .8rem .7rem 1.5rem; }
  .pruef-ergebnis { flex-direction: column; text-align: center; }
}
/* Elemente mit „hidden“ bleiben verborgen, auch wenn ihre Klasse (z. B. .btn) eine Anzeigeart setzt */
body.ich [hidden], .zugang-gruppe[hidden], details.zugang [hidden] { display: none !important; }
fieldset.ohne-rahmen { border: 0; padding: 0; margin: 0; min-width: 0; }

/* =====================================================================
   3.11.0: Prüfanzeige im Farbschema von FWMS (Dunkelblau und Feuerwehrrot statt Grün), Erkennung
   ===================================================================== */
.pruef-ergebnis.ok { border-left-color: var(--marke); }
.pruef-ergebnis.ok .pruef-zeichen circle { fill: var(--marke); }
.pruef-ergebnis.ok h2 { color: var(--marke); }
.pruef-ergebnis.fehler { border-left-color: var(--rot); }
.pruef-ergebnis.fehler .pruef-zeichen circle { fill: var(--rot); }
.pruef-ergebnis.fehler h2 { color: var(--rot-d); }
.pruef-ergebnis ul { margin: .3rem 0 .5rem 1.1rem; padding: 0; text-align: left; }
.pruef-ergebnis li { margin: .15rem 0; }
.pruef-zeichen { filter: drop-shadow(0 3px 8px rgba(16,38,63,.25)); }
.pruef-wartet { border-left-color: var(--marke); }
.fs-schritte li.fertig { color: var(--marke); border-bottom-color: var(--marke); }
.fs-schritte li.fehler { color: var(--rot); border-bottom-color: var(--rot); }
.fs-schritte li.fehler::before { content: "✕ "; }
.fs-knoepfe.links { justify-content: flex-start; margin: .6rem 0 0; }
.kugel-ring .ring-grund { stroke: #dfe4ea; }
.erkannt-kopf { background: #eef2f7; border-left: 4px solid var(--marke); border-radius: 8px; padding: .6rem .8rem; margin: .2rem 0 .9rem; }
.erkannt-kopf ul { margin: .3rem 0 0 1.1rem; padding: 0; font-size: .88rem; color: var(--ink-2); }
.erkannt-kopf ul:empty { display: none; }
.card.klaerung { border-left: 4px solid var(--rot); }
.card.klaerung p { margin: .2rem 0; }
@media (max-width: 700px) { .pruef-ergebnis ul { display: inline-block; } }

/* ---- 3.11.3: Kleidergrößen – Standardbekleidung und Einsatzbekleidung als Teile einer Kachel ---- */
h3.feld-gruppe { margin: .9rem 0 .45rem; }
.card > h2 + h3.feld-gruppe, .fields > h3.feld-gruppe:first-child { margin-top: .1rem; }
.fields > h3.feld-gruppe { flex: 1 1 100%; margin-bottom: -.2rem; }

/* 3.11.3: Ergebnis der Führerscheinprüfung – was gelesen und eingetragen wurde */
table.fs-gelesen { margin: .6rem auto; text-align: left; border-collapse: collapse; font-size: .92rem; }
table.fs-gelesen th, table.fs-gelesen td { padding: .22rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.fs-gelesen thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
table.fs-gelesen tbody th { font-weight: 700; }
table.fs-gelesen[hidden] { display: none; }
/* 3.13.0: Akte in Reitern – jeder Reiter zeigt die Kacheln seines Teils nebeneinander */
.tabs.akte-reiter { flex: none; margin: 0 0 var(--abstand, 14px); }
.tabs.akte-reiter a.on { background: var(--marke, #10263f); border-color: var(--marke, #10263f); color: #fff; }
.akte-teil { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: var(--abstand, 14px); align-items: start; }
.akte-teil > .col, .akte-teil .foto-reihe { display: contents; }
.akte-teil .card { margin: 0; min-width: 0; }
.akte-teil .scrollbox { max-height: none; overflow: visible; }
@media print { .tabs.akte-reiter { display: none; } }

/* 3.12.0: Doppelmitgliedschaft */
.tag.zweit { background: #e8edf3; color: var(--marke, #10263f); font-weight: 600; white-space: nowrap; }
.tag.doppelt { background: #fff4e0; color: #8a5200; white-space: nowrap; }
.doppel-zeile { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.zweit-hinweis p { margin: 0 0 .4rem; }
.zweit-akte .feld-text b { font-weight: 600; }
a.btn.disabled { opacity: .45; pointer-events: none; }
