/*
 * Dashboard FF Michlgleinz-Unterbergla — eigene Bausteine über dem App-Grundstil.
 *
 * Farben aus dem Wappen: Feuerwehr-Rot führt (Einsätze, Knöpfe), das Gold des
 * Gemeindewappens steht für Tätigkeiten, Schiefer für Übungen. Sonst Grautöne.
 */

:root {
  --rot: #d0101a;
  --rot-dunkel: #a80d15;
  --rot-hell: rgba(208, 16, 26, 0.1);
  --gold: #c9973a;
  --gold-text: #8a6516;
  --gold-hell: rgba(201, 151, 58, 0.16);
  --schiefer: #3a4a5c;
  --schiefer-hell: rgba(58, 74, 92, 0.12);
  --art-einsatz: var(--rot);
  --art-uebung: var(--schiefer);
  --art-taetigkeit: var(--gold);
}

/* Am Handy keine Glas-Unschärfe auf den festen Leisten (Grafikspeicher iPhone). */
@media (max-width: 1023px) {
  .tabbar,
  .topbar::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .tabbar {
    background: rgba(249, 249, 251, 0.97);
  }
  .topbar::before {
    background: rgba(247, 247, 250, 0.97);
  }
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------- Anmeldung */

.ff-kopf {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 3px solid var(--rot);
}
.login .login-kopf.ff-kopf img.ff-wappen {
  width: 84px;
  max-width: 84px;
  height: auto;
  flex-shrink: 0;
}
.login {
  --l-rot: #d0101a;
}
.login .btn.primaer {
  border-radius: 999px;
}
.ff-schrift {
  display: grid;
  line-height: 1.15;
  color: #14181c;
}
.ff-schrift span {
  font-size: 13px;
  font-weight: 600;
  color: var(--rot);
}
.ff-schrift span:last-child {
  color: #545d66;
  font-weight: 500;
}
.ff-schrift b {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* ------------------------------------------------------------ Navigation */

.sidebar-wappen {
  width: 44px !important;
  height: auto !important;
  object-fit: contain;
}
.sidebar-neu {
  margin: 0 4px 16px;
  width: calc(100% - 8px);
}

.tab-neu {
  position: relative;
  color: var(--ink-2);
}
.tab-neu-kreis {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -16px;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(249, 249, 251, 0.97),
    0 6px 14px -6px rgba(168, 13, 21, 0.8);
  transition: transform 0.16s var(--ease-out);
}
.tab-neu-kreis svg {
  width: 24px !important;
  height: 24px !important;
  stroke-width: 2.4 !important;
}
.tab-neu:active .tab-neu-kreis {
  transform: scale(0.92);
}
.tab-neu > span:last-child {
  margin-top: 1px;
}

.mehr-konto {
  margin-top: 14px;
}
.neu-zeile .zeile-text span {
  white-space: normal;
}

/* Farbige Symbolkacheln in Listen */
.zeile-symbol.grau {
  background: #8e8e93;
}
.zeile-symbol.gelb {
  background: #c27c0e;
}
.zeile-symbol.rot {
  background: var(--rot);
}
.zeile-symbol.gruen {
  background: #1f8a3a;
}

/* -------------------------------------------------------------- Kennzahlen */

.zahlen-reihe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.zahlen-reihe.vier {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.zahl-kachel {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 14px 16px 13px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}
.zahl-kachel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--ink-4);
}
.zahl-kachel.einsatz::before,
.zahl-kachel.rot::before {
  background: var(--art-einsatz);
}
.zahl-kachel.uebung::before {
  background: var(--art-uebung);
}
.zahl-kachel.taetigkeit::before,
.zahl-kachel.gelb::before {
  background: var(--art-taetigkeit);
}
.zahl-kachel.stunden::before {
  background: var(--ink);
}
.zahl-kachel b {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.zahl-kachel span {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.3;
}
a.zahl-kachel:active {
  transform: scale(0.98);
}

@media (min-width: 640px) {
  .zahlen-reihe.vier {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------- Werkzeugleiste */

.werkzeugleiste {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.werkzeug-reihe {
  display: flex;
  gap: 10px;
  min-width: 0;
}
.werkzeug-reihe > * {
  min-width: 0;
}
.werkzeug-reihe .suche-feld {
  flex: 1;
}
.werkzeug-reihe select.eingabe {
  width: auto;
  flex-shrink: 0;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
select.eingabe {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}
@media (min-width: 900px) {
  .werkzeugleiste {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
  }
}

.gruppen-kopf {
  margin: 20px 4px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-transform: none;
}
.gruppen-kopf:first-child {
  margin-top: 0;
}

/* ---------------------------------------------------------- Einsatzzeilen */

.einsatz-zeile {
  align-items: flex-start;
  --einzug: 72px;
}
.einsatz-zeile .zeile-pfeil {
  align-self: center;
}
.datum-block {
  display: grid;
  place-items: center;
  align-content: center;
  width: 46px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--rot-hell);
  color: var(--rot-dunkel);
  line-height: 1;
}
.datum-block b {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.datum-block span {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
}
.datum-block.uebung {
  background: var(--schiefer-hell);
  color: var(--schiefer);
}
.datum-block.taetigkeit {
  background: var(--gold-hell);
  color: var(--gold-text);
}
.zeile-marken {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.zeile-marken .abzeichen {
  font-size: 12px;
  padding: 2px 8px;
}
.abzeichen svg {
  width: 13px;
  height: 13px;
}
.abzeichen.klar {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--linie);
}
.abzeichen.art-einsatz {
  background: var(--rot-hell);
  color: var(--rot-dunkel);
}
.abzeichen.art-uebung {
  background: var(--schiefer-hell);
  color: var(--schiefer);
}
.abzeichen.art-taetigkeit {
  background: var(--gold-hell);
  color: var(--gold-text);
}

/* -------------------------------------------------------------- Detailseite */

.detail-raster {
  display: grid;
  gap: 14px;
}
.detail-raster .spalte {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}
.detail-raster .karte + .karte {
  margin-top: 0;
}
@media (min-width: 1100px) {
  .detail-raster {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}
.karte-kopf .rechts {
  margin-left: auto;
}
.karte-kopf .hilfe {
  margin-left: auto;
}
.karte-inhalt {
  padding: 4px 6px 8px;
}
.karte-inhalt > .liste {
  background: transparent;
}

.seitenkopf .rechts .btn {
  flex: 0 0 auto;
}
.start-kopf .schnell-knoepfe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.start-kopf .schnell-knoepfe .btn {
  padding-inline: 12px;
  --rand-x: 12px;
}
@media (max-width: 420px) {
  .start-kopf .schnell-knoepfe {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 640px) {
  .start-kopf .schnell-knoepfe {
    display: flex;
  }
}

.dienstgrad {
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  height: 26px;
  padding: 0 7px;
  flex-shrink: 0;
  border-radius: 7px;
  background: var(--fuellung);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.liste-zeile:has(.dienstgrad) {
  --einzug: 80px;
}

.angaben {
  display: grid;
  gap: 0;
  padding: 4px 12px 8px;
}
.angabe {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--linie);
}
.angabe:last-child {
  border-bottom: 0;
}
.angabe dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.angabe dd {
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.foto-raster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px 10px 4px;
}
@media (min-width: 640px) {
  .foto-raster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.foto-kachel {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--fuellung-2);
  color: var(--ink-2);
  text-decoration: none;
}
.foto-kachel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.foto-neu,
.pdf-kachel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 8px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}
.foto-neu {
  box-shadow: inset 0 0 0 1.5px var(--linie-stark);
  background: transparent;
  color: var(--rot);
}
.foto-neu svg,
.pdf-kachel svg {
  width: 26px;
  height: 26px;
}
.pdf-kachel span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.kopier-zeile .zeile-text span {
  margin: 0 0 1px;
  font-size: 13px;
}
.kopier-zeile .zeile-text b {
  white-space: normal;
  word-break: break-word;
}
.loesch-bereich {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.leer-liste {
  padding: 16px;
  color: var(--ink-2);
  font-size: 15px;
}
.leer-liste.gut {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f8a3a;
  font-weight: 600;
}

/* ------------------------------------------------------------- Formulare */

.formular-karte .karte-kopf {
  padding-bottom: 10px;
}
.formular-inhalt {
  display: grid;
  gap: 14px;
  padding: 2px 16px 18px;
}
.formular-inhalt .liste {
  background: var(--surface-2);
}
.formular-inhalt .liste-zeile {
  --einzug: 54px;
}
.formular-inhalt.eingerueckt {
  padding: 4px 0 0;
}
.feld-reihe {
  display: grid;
  gap: 14px;
}
@media (min-width: 560px) {
  .feld-reihe {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feld-reihe.drei {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 559px) {
  .feld-reihe.drei {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feld-reihe.drei > :first-child {
    grid-column: 1 / -1;
  }
}
input.eingabe[type='date'],
input.eingabe[type='time'] {
  min-height: 46px;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
}
input.eingabe::-webkit-date-and-time-value {
  text-align: left;
}
textarea.eingabe {
  resize: vertical;
  min-height: 74px;
  font-family: inherit;
}
.eingabe:disabled {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  opacity: 1;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--linie);
}

.wahl-knopf {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.wahl-knopf > svg {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--ink-3);
}
.wahl-wert {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.wahl-wert b {
  font-weight: 650;
  white-space: nowrap;
}
.wahl-wert span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}
.wahl-leer {
  color: var(--ink-3);
}

.vorschlaege {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -6px;
}
.vorschlaege:empty {
  display: none;
}
.vorschlag {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--fuellung-2);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.vorschlag:active {
  transform: scale(0.96);
}
.dauer-anzeige {
  margin-top: -6px;
}

/* Wahlknöpfe (Anforderung, Geräte, Rolle) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-wahl {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--linie-stark);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.16s var(--ease-out);
}
.chip-wahl svg {
  width: 0;
  height: 16px;
  stroke-width: 3;
  opacity: 0;
  transition:
    width 0.2s var(--ease-out),
    opacity 0.2s ease;
}
.chip-wahl[aria-checked='true'] {
  background: var(--rot);
  box-shadow: none;
  color: #fff;
  font-weight: 600;
}
.chip-wahl[aria-checked='true'] svg {
  width: 16px;
  opacity: 1;
}
.chip-wahl:active {
  transform: scale(0.96);
}

/* Fahrzeuge mit km */
.kfz-zeile {
  padding: 0 12px 0 0;
  gap: 0;
  min-height: 56px;
}
.kfz-wahl .zeile-text {
  min-width: 0;
}
.kfz-wahl .zeile-text span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kfz-wahl {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 8px 12px 8px 16px;
  border: 0;
  background: none;
  text-align: left;
}
.kfz-zeile[aria-checked='true'] .auswahl-kreis {
  background: var(--rot);
  box-shadow: none;
  color: #fff;
}
.kfz-zeile[aria-checked='true'] .auswahl-kreis svg {
  transform: scale(1);
}
.km-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--ink-2);
  font-size: 15px;
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.kfz-zeile[aria-checked='true'] .km-box {
  opacity: 1;
  pointer-events: auto;
}
.km-feld {
  width: 84px;
  min-height: 40px;
  padding: 8px 10px;
  text-align: right;
}

/* Kameraden */
.abschnitt-zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
  margin: 4px 2px -4px;
}
.abschnitt-zeile:empty {
  display: none;
}
.person-zeile {
  min-height: 50px;
  padding-right: 6px;
}
.lenker-knopf {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--linie-stark);
  color: var(--ink-3);
  font-size: 16px;
  font-weight: 750;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.16s var(--ease-out);
}
.lenker-knopf[aria-pressed='true'] {
  background: var(--rot);
  box-shadow: none;
  color: #fff;
}
.lenker-knopf:active {
  transform: scale(0.92);
}
.zeile-plus .zeile-text b {
  color: var(--rot);
  font-weight: 600;
}

.schalter-zeile[aria-checked='true'] .auswahl-kreis {
  background: var(--rot);
  box-shadow: none;
  color: #fff;
}
.schalter-zeile[aria-checked='true'] .auswahl-kreis svg {
  transform: scale(1);
}

.formular-fuss {
  position: sticky;
  bottom: calc(var(--unten) + var(--tab) + 10px);
  z-index: 5;
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.formular-fuss .btn {
  width: min(100%, 420px);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.35),
    0 8px 24px -8px rgba(168, 13, 21, 0.6);
}
@media (min-width: 1024px) {
  .formular-fuss {
    bottom: 18px;
  }
}
.bericht-formular .karte + .karte,
.kontakt-formular .karte + .karte {
  margin-top: 14px;
}
.bericht-formular,
.kontakt-formular {
  max-width: 820px;
}

/* ------------------------------------------------------- Auswahlfenster */

.auswahl {
  display: grid;
  gap: 10px;
}
.auswahl .suche-feld {
  position: sticky;
  top: 0;
  z-index: 2;
}
.auswahl-liste {
  background: var(--surface-2);
}
.auswahl-gruppe {
  padding: 14px 16px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
}
.auswahl-zeile .zeile-text span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.auswahl-zaehler {
  margin-right: auto;
  align-self: center;
  color: var(--ink-2);
  font-size: 15px;
}
.zeile-haken {
  color: var(--rot);
  flex-shrink: 0;
}

/* ---------------------------------------------------------- Unterschrift */

.unterschrift-feld {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 150px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1.5px var(--linie-stark);
  cursor: pointer;
}
.unterschrift-feld img {
  max-width: 100%;
  max-height: 160px;
}
.unterschrift-leer {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--ink-2);
}
.unterschrift-leer svg {
  width: 34px;
  height: 34px;
  color: var(--rot);
  margin-bottom: 4px;
}
.unterschrift-leer b {
  color: var(--ink);
  font-size: 17px;
}
.unterschrift-leer span {
  font-size: 14px;
}

.unterschrift-vollbild {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: calc(var(--oben) + 8px) max(12px, env(safe-area-inset-right)) calc(var(--unten) + 10px) max(12px, env(safe-area-inset-left));
  background: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.22s ease,
    transform 0.32s var(--ease-sheet);
}
.unterschrift-vollbild.offen {
  opacity: 1;
  transform: none;
}
.unterschrift-kopf {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}
.unterschrift-kopf > :first-child {
  justify-self: start;
}
.unterschrift-kopf > :last-child {
  justify-self: end;
}
.unterschrift-titel {
  display: grid;
  justify-items: center;
  line-height: 1.25;
}
.unterschrift-titel b {
  font-size: 17px;
}
.unterschrift-titel span {
  font-size: 14px;
  color: var(--ink-2);
}
.unterschrift-flaeche {
  position: relative;
  border-radius: 16px;
  background: #fbfbfd;
  box-shadow: inset 0 0 0 1.5px var(--linie-stark);
  overflow: hidden;
}
.unterschrift-leinwand {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  z-index: 2;
}
.unterschrift-hinweis {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 18px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.unterschrift-hinweis svg {
  width: 40px;
  height: 40px;
}
.unterschrift-hinweis.weg {
  opacity: 0;
}
.unterschrift-linie {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 26%;
  height: 1.5px;
  background: var(--linie-stark);
  pointer-events: none;
}
.unterschrift-fuss {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
}

/* ---------------------------------------------------------------- Stunden */

.stunden-zeile {
  align-items: center;
}
.stunden-balken {
  display: flex !important;
  gap: 2px;
  height: 6px;
  margin: 6px 0 4px !important;
  border-radius: 999px;
  overflow: hidden;
  background: var(--fuellung-2);
}
.stunden-balken i,
.legende i.einsatz,
.legende i.uebung,
.legende i.taetigkeit {
  display: block;
  background: var(--art-einsatz);
}
.stunden-balken i.uebung,
.legende i.uebung {
  background: var(--art-uebung);
}
.stunden-balken i.taetigkeit,
.legende i.taetigkeit {
  background: var(--art-taetigkeit);
}
.stunden-balken i:empty {
  min-width: 0;
}
.stunden-wert {
  display: flex;
  align-items: baseline;
  gap: 3px;
  flex-shrink: 0;
  min-width: 56px;
  justify-content: flex-end;
}
.stunden-wert b {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.stunden-wert span {
  color: var(--ink-2);
  font-size: 14px;
}
.legende.links {
  justify-content: flex-start;
  margin: 0 4px 10px;
}
.legende i {
  border-radius: 3px;
}

/* -------------------------------------------------------------- Mitglieder */

.zugang-box {
  display: grid;
  gap: 12px;
  margin-top: 6px;
  padding: 14px;
  border-radius: var(--radius-s);
  background: var(--surface-2);
}
.zugang-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.zugang-kopf svg {
  color: var(--rot);
}
.zugang-daten {
  display: grid;
  gap: 8px;
}
.zugang-daten .liste-zeile {
  border-radius: 12px;
  background: var(--surface);
}
.zugang-daten .btn {
  justify-self: start;
}

/* --------------------------------------------------------------- Fahrzeuge */

.fahrzeug-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.fahrzeug-karte {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 16px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s var(--ease-out);
}
.fahrzeug-karte:active {
  transform: scale(0.98);
}
.fahrzeug-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fahrzeug-kurz {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--rot);
}
.kennzeichen {
  padding: 2px 8px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.fahrzeug-name {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.35;
}
.fahrzeug-zahlen {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-2);
}
.fahrzeug-zahlen b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------------- Wartung */

.ampel {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink-4);
}
.ampel.rot {
  background: var(--rot);
}
.ampel.gelb {
  background: #e8a317;
}
.ampel.gruen {
  background: #34c759;
}
.pruefung-zeile {
  --einzug: 40px;
}
.pruefung-zeile .abzeichen {
  max-width: 44%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zahl-kachel.rot b {
  color: var(--rot-dunkel);
}
.zahl-kachel.gelb b {
  color: var(--gold-text);
}
@media (max-width: 479px) {
  .pruefung-zeile {
    flex-wrap: wrap;
    padding-left: 16px;
  }
  .pruefung-zeile .zeile-text {
    flex-basis: calc(100% - 28px);
  }
  .pruefung-zeile .abzeichen {
    max-width: none;
    margin-left: 24px;
  }
}

/* ----------------------------------------------------------- Jahresbericht */

.jahr-satz {
  margin: -4px 4px 18px;
  color: var(--ink-2);
  font-size: 15px;
}
.monats-diagramm {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 180px;
  padding: 10px 10px 0;
}
.monat-saeule {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-width: 0;
  text-align: center;
}
.saeule {
  display: flex;
  flex-direction: column;
  align-self: end;
  min-height: 0;
  border-radius: 5px 5px 2px 2px;
  overflow: hidden;
}
.saeule i {
  display: block;
  flex-basis: 0;
  background: var(--art-einsatz);
}
.saeule i.uebung {
  background: var(--art-uebung);
}
.saeule i.taetigkeit {
  background: var(--art-taetigkeit);
}
.saeule-zahl {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  min-height: 16px;
}
.saeule-monat {
  padding-top: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.wert-zeile {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
}
.wert-titel {
  display: grid;
  min-width: 0;
}
.wert-titel b {
  font-weight: 600;
}
.wert-titel span {
  font-size: 13px;
  color: var(--ink-2);
}
.wert-balken {
  height: 8px;
  border-radius: 999px;
  background: var(--fuellung-2);
  overflow: hidden;
}
.wert-balken i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rot);
}
.wert-zahl {
  min-width: 28px;
  text-align: right;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.rangliste {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 12px 6px 34px;
}
.rangliste li {
  padding: 8px 0;
  border-bottom: 0.5px solid var(--linie);
}
.rangliste li:last-child {
  border-bottom: 0;
}
.rangliste li::marker {
  color: var(--ink-3);
  font-weight: 600;
}
.rangliste li {
  display: list-item;
}
.rangliste li > span {
  display: inline-block;
  max-width: calc(100% - 70px);
}
.rangliste li > b {
  float: right;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- Druckblätter */

.druck-wurzel {
  min-height: 100dvh;
  background: #e9e9ee;
}
.druck {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: calc(var(--oben) + 12px) 12px calc(var(--unten) + 40px);
}
.druck-leiste {
  position: sticky;
  top: calc(var(--oben) + 8px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.druck-leiste .btn:not(.primaer) {
  background: #fff;
}
.blatt {
  width: min(100%, 210mm);
  min-height: 0;
  padding: clamp(18px, 5vw, 16mm) clamp(16px, 5vw, 18mm);
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 4px;
}
.blatt-kopf {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #c8102e;
}
.blatt-wappen {
  width: 70px;
  height: auto;
}
.blatt-band {
  display: flex;
  flex: 1;
  min-width: 0;
}
.band-rot {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #e30613;
  color: #fff;
  font-size: 14px;
}
.band-schwarz {
  display: grid;
  flex: 1;
  padding: 4px 12px;
  background: #111;
  color: #fff;
  line-height: 1.05;
}
.band-schwarz b {
  font-size: 24px;
  font-weight: 800;
}
.band-schwarz span {
  font-size: 12px;
  font-weight: 700;
}
.blatt-titel {
  margin: 18px 0 2px;
  text-align: center;
  font-size: 20px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.blatt-titel.klein {
  margin-top: 0;
}
.blatt-unter {
  text-align: center;
  font-size: 12px;
  color: #444;
  margin-bottom: 14px;
}
.blatt-h {
  margin: 14px 0 4px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blatt-text {
  min-height: 22px;
  padding: 2px 2px 3px;
  border-bottom: 1px solid #555;
  font-family: 'Bradley Hand', 'Segoe Print', var(--font);
  font-size: 16px;
  color: #1a3a8a;
  white-space: pre-wrap;
}
.blatt-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.blatt-reihe .blatt-zeile {
  flex: 1 1 150px;
}
.blatt-zeile {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 3px 0;
}
.blatt-label {
  flex-shrink: 0;
  font-size: 13px;
}
.blatt-wert {
  flex: 1;
  min-width: 0;
  min-height: 20px;
  padding: 0 2px 1px;
  border-bottom: 1px solid #555;
  font-family: 'Bradley Hand', 'Segoe Print', var(--font);
  font-size: 15px;
  color: #1a3a8a;
  word-break: break-word;
}
.blatt-zeile.punkte .blatt-wert {
  border-bottom: 1px dotted #555;
  font-family: var(--font);
  color: #111;
  background: #eef4fd;
}
.blatt-kreuze,
.blatt-geraete {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.blatt-kreuz {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}
.kaestchen {
  display: inline-grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid #111;
  font-size: 11px;
  line-height: 1;
  color: #1a3a8a;
  font-weight: 700;
}
.blatt-kfz {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}
.blatt-kfz-zeile {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.blatt-km {
  font-family: 'Bradley Hand', 'Segoe Print', var(--font);
  color: #1a3a8a;
}
.blatt-unterschriften {
  margin-top: 26px;
}
.blatt-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.blatt-tabelle th,
.blatt-tabelle td {
  padding: 5px 8px;
  border: 1px solid #555;
  text-align: left;
}
.blatt-tabelle th:first-child,
.blatt-tabelle td:first-child {
  width: 34px;
  text-align: center;
  font-weight: 700;
}
.blatt-fuss {
  margin-top: 16px;
  font-size: 11.5px;
  color: #555;
}
.blatt-unterschrift {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 26px;
}
.blatt-unterschrift > div {
  display: grid;
  justify-items: center;
  min-width: 40%;
}
.blatt-unterschrift img {
  max-width: 230px;
  max-height: 90px;
}
.blatt-unterschrift span {
  width: 100%;
  padding-top: 4px;
  border-top: 1px solid #111;
  text-align: center;
  font-size: 13px;
}
.unterschrift-platz {
  height: 70px;
}

/* ---------------------------------------------------------------- Drucken */

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  html,
  body,
  .druck-wurzel {
    background: #fff !important;
  }
  .druck {
    display: block;
    padding: 0;
  }
  .druck-leiste,
  .sidebar,
  .tabbar,
  .topbar,
  .nicht-drucken,
  .toasts {
    display: none !important;
  }
  .blatt {
    width: auto;
    padding: 0;
    border-radius: 0;
    break-after: page;
  }
  .blatt:last-child {
    break-after: auto;
  }
  .inhalt {
    padding: 0 !important;
    margin: 0 !important;
  }
  .jahresbericht .karte,
  .zahl-kachel {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc;
  }
}
.abschnitt-zeile:has(> .ueberzeile:only-child:empty) {
  display: none;
}
.werkzeug-reihe {
  flex-wrap: wrap;
}
.werkzeug-reihe .suche-feld {
  flex: 1 1 180px;
}
.band-schwarz,
.band-rot {
  min-width: 0;
}
@media (max-width: 420px) {
  .blatt-wappen {
    width: 50px;
  }
  .band-rot {
    padding: 6px 8px;
    font-size: 11.5px;
  }
  .band-schwarz {
    padding: 4px 8px;
  }
  .band-schwarz b {
    font-size: 18px;
  }
  .band-schwarz span {
    font-size: 10.5px;
  }
}
@media (max-width: 380px) {
  .blatt-band {
    flex-direction: column;
  }
  .band-rot {
    padding: 4px 8px;
  }
  .blatt-zeile {
    flex-wrap: wrap;
  }
  .blatt-zeile .blatt-wert {
    flex-basis: 100%;
  }
}
.blatt {
  min-width: 0;
  overflow-wrap: anywhere;
}
