/* Gegenstück zu ESCIce/Design/ESCDesign.swift: gleiche Farben, Schriften und Bausteine.
   Vorerst immer hell (Entscheidung 2026-11-26), daher kein Dark Mode. */
:root {
  --anthrazit: #2B2B2B;
  --blau: #3054E0;
  --hell: #EBEBF3;
  --grau: #666666;
  --mittel: #A9A9A9;   /* nur Flächen und Linien, für Text zu hell */
  --rot: #D7263D;
  --gruen: #1E8E3E;
  --eis: #DFE7FB;
  --gelb: #F2C14E;
  --login-hintergrund: #0B0B0E;
  --login-grau: #A3A3AD;
  /* Breite Überschrift (Ersatz für Michroma) und schmale Fließschrift (Ersatz für Oswald) */
  --titel: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "Roboto Condensed", "Arial Narrow", sans-serif;
  --tabhoehe: 64px;
  --unten: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--hell); color: var(--anthrazit); overscroll-behavior: none; }
body { font-family: var(--text); font-stretch: condensed; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input, select { font: inherit; }

#inhalt { position: fixed; inset: 0 0 calc(var(--tabhoehe) + var(--unten)) 0; overflow: hidden; }
.seite { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.seite[hidden] { display: none; }
.abstand { padding: max(20px, env(safe-area-inset-top)) 20px 28px; display: flex; flex-direction: column; gap: 18px; max-width: 720px; margin: 0 auto; }

/* Tab-Leiste */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabhoehe) + var(--unten)); padding-bottom: var(--unten);
  display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(43,43,43,.1); z-index: 20; }
#tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--grau);
  font-size: 11px; font-weight: 500; min-width: 0; }
#tabs button svg { width: 24px; height: 24px; }
#tabs button[aria-current="page"] { color: var(--blau); }
#tabs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; }

/* Schriften */
.titel { font-family: var(--titel); font-stretch: expanded; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--grau); }
.grau { color: var(--grau); }
.klein { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-stretch: normal; user-select: text; -webkit-user-select: text; }

/* Logo als Vorlage: Farbe über background-color */
.logo { display: inline-block; aspect-ratio: 1300 / 350; background: currentColor;
  -webkit-mask: url(bilder/esc-logo.png) center / contain no-repeat; mask: url(bilder/esc-logo.png) center / contain no-repeat; }

.kopf { display: flex; flex-direction: column; gap: 6px; }
.kopf .logo { height: 26px; margin-bottom: 10px; }
.kopf h1 { margin: 0; font-size: 24px; }

.karte { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.karte h2 { margin: 0; font-size: 16px; }

.pille { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; border-radius: 999px; background: var(--blau);
  color: #fff; font-size: 17px; font-weight: 600; min-height: 44px; }
.pille .kreis { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); display: grid; place-items: center; }
.pille .kreis svg { width: 15px; height: 15px; }
.rahmenknopf { display: inline-flex; align-items: center; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--blau);
  color: var(--blau); font-size: 16px; font-weight: 600; min-height: 44px; }

.segmente { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--anthrazit); }
.segmente button { padding: 7px 14px; border-radius: 999px; color: rgba(255,255,255,.75); font-size: 15px; font-weight: 500; min-height: 44px; }
.segmente button[aria-pressed="true"] { background: #fff; color: var(--anthrazit); }

.hinweis { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: rgba(242,193,78,.25);
  font-size: 14px; font-weight: 500; color: var(--anthrazit); text-align: left; }
.hinweis svg { flex: none; width: 18px; height: 18px; color: #B8860B; }

.plakette { display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--anthrazit); flex: none;
  font-family: var(--titel); font-stretch: expanded; font-weight: 600; line-height: 1; white-space: nowrap; overflow: hidden; }

/* Ablauf */
.ablauf-wahl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gruppe { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 999px; background: #fff;
  font-size: 15px; font-weight: 600; margin-left: auto; min-height: 44px; }
.gruppe select { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.gruppe .punkt { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(43,43,43,.4); }
.gruppe svg { width: 12px; height: 12px; }
.tage { display: flex; gap: 8px; }
.tage button { flex: 1; padding: 10px 4px; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 2px; align-items: center; min-height: 52px; }
.tage button[aria-pressed="true"] { background: var(--anthrazit); color: #fff; }
.tage .t1 { font-size: 13px; }
.tage .t2 { font-size: 13px; font-weight: 500; opacity: .75; }
.zeitleiste { background: #fff; border-radius: 18px; padding: 8px 0; box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.zeile { display: grid; grid-template-columns: 66px 12px 1fr; gap: 14px; padding: 0 16px; }
.zeile .zeit { text-align: right; font-size: 14px; white-space: nowrap; }
.zeile.pause .zeit { font-family: var(--text); font-stretch: condensed; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--grau); padding-top: 1px; }
.strahl { display: flex; flex-direction: column; align-items: center; }
.strahl .p { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.zeile.pause .strahl .p { width: 6px; height: 6px; margin-top: 6px; }
.strahl .l { width: 2px; flex: 1; background: var(--hell); }
.zeile .was { padding-bottom: 18px; display: flex; flex-direction: column; gap: 3px; }
.zeile.pause .was { padding-bottom: 10px; font-size: 14px; color: var(--grau); }
.zeile .block { font-size: 19px; font-weight: 600; }
.zeile .ende { font-size: 16px; font-weight: 600; color: var(--grau); }
.zeile .nacht { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; background: var(--anthrazit); color: #fff;
  font-size: 17px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.zeile .nacht svg { width: 16px; height: 16px; }

/* Infos */
.notruf { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: var(--rot); color: #fff; text-decoration: none; }
.notruf svg { width: 24px; height: 24px; flex: none; }
.notruf .n { font-size: 22px; }
.notruf .t { font-size: 14px; opacity: .85; }
.notruf .rechts { margin-left: auto; width: 16px; height: 16px; }
.standort-notruf { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; }
.standort-notruf svg { color: var(--blau); width: 20px; height: 20px; flex: none; }
.standort-notruf.aus svg { color: var(--rot); }
.rot { color: var(--rot); }
.kanaele { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kanal { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.kanal .k { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; flex: none; }
.regel { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.regel svg { color: var(--rot); width: 14px; height: 14px; margin-top: 3px; flex: none; }
.trenner { height: 1px; background: rgba(43,43,43,.12); }
.nachtfarben { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.nachtfarben span { display: inline-flex; gap: 5px; align-items: center; }
.nachtfarben i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 .5px var(--anthrazit); }
.code { display: flex; justify-content: space-between; align-items: center; min-height: 36px; font-size: 17px; font-weight: 500; gap: 12px; }
.code .mono { font-size: 22px; font-weight: 700; }
.code .mono.wlan { font-size: 17px; font-weight: 600; }
.verweis { text-align: left; width: 100%; }
.verweis .zeile2 { display: flex; justify-content: space-between; align-items: center; }
.verweis svg { color: var(--blau); width: 18px; height: 18px; }
.liste-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 12px 10px; position: sticky; top: 0; background: var(--hell); z-index: 2; }
.liste-kopf h1 { margin: 0; font-size: 17px; text-align: center; flex: 1; }
.textknopf { color: var(--blau); font-size: 17px; min-height: 44px; padding: 0 8px; display: inline-flex; align-items: center; gap: 2px; }
.textknopf svg { width: 20px; height: 20px; }
.textknopf.rot { color: var(--rot); }
.abschnitt { margin: 8px 16px 0; }
.abschnitt h3 { margin: 14px 4px 6px; font-size: 13px; font-weight: 500; color: var(--grau); text-transform: uppercase; letter-spacing: .5px; }
.gruppe-liste { background: #fff; border-radius: 12px; overflow: hidden; }
.gruppe-liste > * + * { border-top: 1px solid rgba(43,43,43,.08); }
.haken { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; width: 100%; text-align: left; font-size: 16px; min-height: 48px; }
.haken svg { width: 22px; height: 22px; flex: none; color: var(--mittel); }
.haken.erledigt svg { color: var(--blau); }
.haken.erledigt span { color: var(--grau); text-decoration: line-through; }

/* Fahrzeuge */
.fz-kopf { display: flex; justify-content: space-between; align-items: baseline; }
.fz-kopf .anzahl { color: var(--blau); font-size: 16px; }
.merkmal { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.merkmal svg { width: 16px; height: 16px; color: var(--blau); margin-top: 2px; flex: none; }

/* Lageplan */
.plan { position: absolute; inset: 0; background: var(--hell); touch-action: none; overflow: hidden; user-select: none; -webkit-user-select: none; }
.plan canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.plan-kopf { position: absolute; top: max(6px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center;
  justify-content: space-between; padding: 12px 20px; border-radius: 999px; background: var(--anthrazit); color: #fff; z-index: 3; pointer-events: none; }
.plan-kopf .links { display: flex; align-items: center; gap: 12px; min-width: 0; }
.plan-kopf .logo { height: 24px; color: #fff; }
.plan-kopf .t1 { font-size: 12px; }
.plan-kopf .t2 { font-size: 10px; font-weight: 500; letter-spacing: 2px; opacity: .7; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legende { display: flex; gap: 4px; }
.legende b { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; }
.plan-unten { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 3; pointer-events: none; }
.plan-unten > * { pointer-events: auto; }
.rundknoepfe { display: flex; flex-direction: column; gap: 6px; }
.rund { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--blau); display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.rund svg { width: 21px; height: 21px; }
.rund[aria-pressed="true"] { background: var(--blau); color: #fff; }
.standort-hinweis { align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px;
  border-radius: 999px; background: rgba(43,43,43,.92); color: #fff; font-size: 15px; font-weight: 500; text-align: left; }
.standort-hinweis svg { width: 18px; height: 18px; flex: none; }
.zielleiste { align-self: stretch; display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12); outline: 3px solid transparent; outline-offset: -3px; }
.zielleiste.angekommen { outline-color: var(--gruen); }
.zielleiste .symbol { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.zielleiste .symbol svg { width: 24px; height: 24px; }
.zielleiste .pfeil svg { transition: transform .3s ease-out; }
.zielleiste .texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zielleiste .zeile1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zielleiste .zeile2 { font-size: 15px; font-weight: 500; color: var(--grau); }
.zielleiste .zeile2.warnung { color: var(--rot); }
.beenden { padding: 0 14px; min-width: 56px; min-height: 48px; border-radius: 999px; background: var(--hell); font-size: 15px; font-weight: 600; }
.laden { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--hell); border-top-color: var(--blau); animation: drehen 1s linear infinite; margin: 8px; flex: none; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Blatt von unten (wie .sheet) */
#schicht:empty { display: none; }
.decke { position: fixed; inset: 0; background: rgba(0,0,0,.25); z-index: 30; display: flex; align-items: flex-end; justify-content: center; animation: ein .15s; }
.blatt { width: 100%; max-width: 720px; background: #fff; border-radius: 22px 22px 0 0; padding: 24px 24px calc(24px + var(--unten));
  display: flex; flex-direction: column; gap: 12px; max-height: 90%; overflow-y: auto; animation: hoch .2s ease-out; }
.blatt h2 { margin: 0; font-size: 20px; }
.blatt .reihe { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@keyframes ein { from { opacity: 0; } }
@keyframes hoch { from { transform: translateY(40px); opacity: .5; } }

/* Karte */
.karte-wrap { position: absolute; inset: 0; }
.karte-wrap .leaflet-container { position: absolute; inset: 0; background: #DDE3EA; font-family: var(--text); }
.karte-oben { position: absolute; top: max(4px, env(safe-area-inset-top)); left: 12px; z-index: 500; display: flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--anthrazit); }
.karte-oben .logo { height: 20px; color: #fff; }
.karte-oben .see { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: #fff; min-height: 32px; }
.karte-oben .sat { width: 32px; height: 32px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.karte-oben .sat svg { width: 17px; height: 17px; }
.karte-oben button { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.karte-unten { position: absolute; left: 14px; right: 14px; bottom: 16px; z-index: 500; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.karte-unten .karte { align-self: stretch; }
.netzhinweis { align-self: stretch; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--anthrazit); color: #fff; text-align: left; }
.netzhinweis svg { width: 20px; height: 20px; flex: none; }
.netzhinweis .t1 { font-size: 14px; }
.netzhinweis .t2 { font-size: 15px; }
.karte-rechts { position: absolute; right: 12px; top: calc(max(4px, env(safe-area-inset-top)) + 60px); z-index: 500; }
.ort-marker { display: grid; place-items: center; }
.ort-marker .stift { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.ort-marker .stift svg { width: 18px; height: 18px; }
.ort-marker .name { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--anthrazit); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.strecken-name { display: inline-block; padding: 3px 7px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -50%); }
.strecken-name.gross { background: var(--blau); color: #fff; font-family: var(--titel); font-stretch: expanded; font-size: 9px; text-transform: uppercase; }
.ich-marker { width: 22px; height: 22px; border-radius: 50%; background: var(--blau); border: 4px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* Abschleppen */
.ab-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; border-radius: 10px; background: rgba(118,118,128,.14); margin: max(10px, env(safe-area-inset-top)) 20px 10px; }
.ab-segment button { padding: 8px 4px; border-radius: 8px; font-size: 14px; font-weight: 500; min-height: 36px; }
.ab-segment button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.ab-seite { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ab-inhalt { flex: 1; overflow-y: auto; }
.suchfeld { display: flex; align-items: center; gap: 8px; padding-left: 12px; min-height: 48px; background: #fff; border-radius: 12px; border: 1px solid rgba(169,169,169,.5); }
.suchfeld svg { width: 18px; height: 18px; color: var(--grau); flex: none; }
.suchfeld input { flex: 1; border: 0; outline: 0; font-size: 17px; background: transparent; min-width: 0; padding: 10px 0; }
.suchfeld button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--mittel); }
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.auswahl { min-height: 52px; padding: 4px 6px; border-radius: 12px; background: #fff; border: 1px solid rgba(169,169,169,.5); font-size: 16px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; line-height: 1.15; }
.auswahl svg { width: 16px; height: 16px; flex: none; }
.auswahl[aria-pressed="true"] { background: var(--blau); border-color: var(--blau); color: #fff; }
.zaehler { display: flex; align-items: center; gap: 8px; }
.zaehler .l { font-size: 17px; font-weight: 500; margin-right: auto; }
.zaehlknopf { width: 52px; height: 52px; border-radius: 12px; background: rgba(48,84,224,.12); color: var(--blau); display: grid; place-items: center; }
.zaehlknopf:disabled { opacity: .35; }
.zaehlknopf svg { width: 22px; height: 22px; }
.zaehler .wert { min-width: 44px; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.schalter { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; min-height: 44px; }
.schalter input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 51px; height: 31px; border-radius: 999px; background: rgba(120,120,128,.25); position: relative; transition: background .2s; flex: none; margin: 0; }
.schalter input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.schalter input[type=checkbox]:checked { background: var(--gruen); }
.schalter input[type=checkbox]:checked::after { transform: translateX(20px); }
.feld { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; min-height: 44px; }
.feld input[type=date], .feld select { font-size: 16px; padding: 6px 10px; border-radius: 8px; border: 0; background: rgba(118,118,128,.12); color: var(--anthrazit); max-width: 60%; }
.ab-fuss { padding: 10px 20px calc(10px); background: rgba(249,249,251,.94); border-top: 1px solid rgba(43,43,43,.08); display: flex; flex-direction: column; gap: 8px; }
.speichern { min-height: 60px; border-radius: 14px; background: var(--blau); color: #fff; font-size: 15px; padding: 8px 12px; }
.speichern:disabled { background: rgba(48,84,224,.35); }
.rueckgaengig { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--anthrazit); color: #fff; font-size: 15px; font-weight: 500; }
.rueckgaengig svg { width: 20px; height: 20px; color: var(--gruen); flex: none; }
.rueckgaengig span { flex: 1; }
.nicht-gespeichert { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--rot); color: #fff; font-size: 16px; font-weight: 600; }
.nicht-gespeichert svg { width: 20px; height: 20px; flex: none; }
.rueckgaengig button { font-size: 16px; font-weight: 600; min-height: 44px; color: #8FA6FF; }
.liste { padding: 0 0 24px; }
.liste h3 { margin: 18px 20px 6px; font-size: 13px; font-weight: 500; color: var(--grau); text-transform: uppercase; letter-spacing: .3px; }
.liste .gruppe-liste { margin: 0 16px; }
.einsatz { display: flex; align-items: center; gap: 10px; padding: 10px 16px; width: 100%; text-align: left; min-height: 56px; }
.einsatz .s { font-size: 17px; font-weight: 600; }
.einsatz .c { font-size: 15px; color: var(--grau); }
.einsatz .n { color: var(--blau); font-size: 16px; margin-left: auto; }
.einsatz .z { font-size: 14px; color: var(--grau); }
.kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kennzahl { background: #fff; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.kennzahl .w { font-size: 22px; font-variant-numeric: tabular-nums; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 16px; }
.tabelle th { font-size: 13px; font-weight: 500; color: var(--grau); text-align: right; width: 52px; padding: 0 0 4px 6px; }
.tabelle th:first-child { text-align: left; width: auto; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
.tabelle td { text-align: right; padding: 7px 0 7px 6px; border-bottom: 1px solid rgba(43,43,43,.08); font-variant-numeric: tabular-nums; font-weight: 500; }
.tabelle td:first-child { text-align: left; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; width: 100%; }
.matrix-wrap { overflow-x: auto; }
.matrix { border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.matrix th { font-size: 13px; font-weight: 500; color: var(--grau); width: 64px; min-width: 64px; padding: 0 6px 6px; vertical-align: bottom; }
.matrix td { text-align: right; padding: 3px 6px; }
.matrix td:first-child { text-align: left; white-space: nowrap; }
.matrix .leer { color: var(--mittel); }
.balken { width: 100%; height: 180px; }
.zweitknopf { min-height: 52px; border-radius: 14px; background: rgba(48,84,224,.12); color: var(--blau); font-size: 17px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.zweitknopf svg { width: 20px; height: 20px; }
.zweitknopf:disabled { opacity: .4; }
.verlinkt { color: var(--blau); font-size: 16px; font-weight: 600; text-align: left; min-height: 44px; }
.formular { display: flex; flex-direction: column; gap: 2px; background: #fff; border-radius: 12px; padding: 4px 16px; }
.formular > * + * { border-top: 1px solid rgba(43,43,43,.08); }
.blatt-kopf { display: flex; justify-content: space-between; align-items: center; margin: -8px -8px 4px; }
.blatt-kopf h2 { font-size: 17px; font-family: var(--text); font-stretch: normal; text-transform: none; letter-spacing: 0; }
.coachliste { display: flex; flex-direction: column; max-height: 50vh; overflow-y: auto; }
.coachliste button { text-align: left; padding: 12px 4px; min-height: 44px; border-bottom: 1px solid rgba(43,43,43,.08); display: flex; justify-content: space-between; }
.coachliste svg { width: 18px; height: 18px; color: var(--blau); }

/* Banner oben */
.banner { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 40; }

/* Login (LoginView.swift): Felder 56 px hoch mit 20 px Schrift, Knopf 64 px – auch mit Handschuhen */
.ohne-tabs #tabs { display: none; }
.ohne-tabs #inhalt { bottom: 0; }
.login-feld { width: 100%; min-width: 0; min-height: 56px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--hell);
  color: var(--anthrazit); font-size: 20px; font-weight: 500; outline: none; -webkit-appearance: none; appearance: none; }
.login-feld:focus { box-shadow: inset 0 0 0 2px var(--blau); }
.login-feld::placeholder { color: rgba(43, 43, 43, .55); opacity: 1; }
.login-reihe { display: flex; gap: 8px; }
.login-auge { flex: none; width: 56px; height: 56px; border-radius: 12px; background: var(--hell); color: var(--anthrazit);
  display: grid; place-items: center; }
.login-auge svg { width: 22px; height: 22px; }
.login-fehler { display: flex; gap: 8px; align-items: center; padding-top: 4px; color: var(--rot); font-size: 17px; font-weight: 600; }
.login-fehler svg { flex: none; width: 20px; height: 20px; }
.login-knopf { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; border-radius: 999px;
  background: var(--blau); color: #fff; font-size: 20px; font-weight: 600; }
.login-knopf svg { width: 18px; height: 18px; stroke-width: 2.6; }
.login-knopf:disabled { opacity: .6; }
.login-text { margin: 0; font-size: 15px; }

/* Angemeldet (InfosView.swift) */
.angemeldet-name { font-family: var(--titel); font-stretch: expanded; font-weight: 600; font-size: 17px; }
.abmelden-knopf { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px;
  background: var(--hell); color: var(--anthrazit); font-size: 17px; font-weight: 600; }
.abmelden-knopf svg { width: 20px; height: 20px; }

/* Login dunkel wie das App-Icon (ESCDesign.loginHintergrund); die Eingabekarte bleibt hell. */
html.login-dunkel, html.login-dunkel body { background: var(--login-hintergrund); }
.login-seite { max-width: 520px; }
@property --b { syntax: "<length>"; inherits: true; initial-value: 230px; }
/* --b = Breite des Logos: 230 px, mit Fokus in einem Feld 130 px (animiert, wie in LoginView.swift) */
.login-logo { --b: 230px; position: relative; width: var(--b); height: var(--b); margin: 0 auto; transition: --b .25s ease-out; }
.login-logo.klein { --b: 130px; }
/* Schein des Icons: Radius 0,75 × b, Mitte bei 38 % einer Fläche von 2,4 × b (also 0,1296 × b über der Logomitte).
   Bewusst ohne overflow:hidden und ohne Hintergrund am Logo selbst; der Schein läuft über den Logo-Kasten hinaus. */
.login-logo::before { content: ""; position: absolute; pointer-events: none; width: calc(var(--b) * 1.5); height: calc(var(--b) * 1.5);
  left: calc(var(--b) * -0.25); top: calc(var(--b) * -0.537);
  background: radial-gradient(circle closest-side at 50% 50%, #2A282E 0, #1C1B20 50%, #101012 75%, #0B0B0E 100%); }
.login-logo img { position: relative; display: block; width: var(--b); height: var(--b);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-composite: intersect; }
/* Das Bild ist am unteren Rand fast schwarz (dunkler als der Hintergrund). „lighten“ hebt alles, was dunkler als der
   Hintergrund ist, auf dessen Farbe an; hellere Stellen (der Schein) bleiben. So gibt es keine Kante. */
.login-logo::after { content: ""; position: absolute; left: 0; top: 0; width: var(--b); height: var(--b); pointer-events: none;
  background: #0B0B0E; mix-blend-mode: lighten; }
.login-titel { margin: 0; font-size: 24px; color: #fff; }
.login-seite .login-text { color: var(--login-grau); }

/* Ranger je Einsatz: eigene Zahl, Spracheingabe, Austausch (AbschleppenView.swift) */
.eigene-zahl { display: flex; align-items: baseline; gap: 8px; }
.eigene-zahl .l { font-size: 15px; color: var(--grau); }
.eigene-zahl .w { font-size: 20px; font-variant-numeric: tabular-nums; }
.eigene-zahl .abstandhalter { flex: 1; }
.abstand-innen { display: flex; flex-direction: column; gap: 18px; }
.sprachknopf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 60px; padding: 8px 12px;
  border-radius: 14px; background: var(--anthrazit); color: #fff; font-size: 16px; }
.sprachknopf.hoert { background: var(--rot); }
.sprachknopf .titel { display: flex; align-items: center; gap: 8px; }
.sprachknopf svg { width: 20px; height: 20px; }
.sprachknopf .live { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blauknopf { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 14px; background: var(--blau); color: #fff; font-size: 17px; font-weight: 600; }
.blauknopf svg { width: 20px; height: 20px; }
.blauknopf:disabled { opacity: .4; }
/* Server-Abgleich (AbgleichKarte und OffenHinweis in iOS) */
.knopf-laden { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: drehen 1s linear infinite; flex: none; }
.abgleich-meldung { display: flex; gap: 8px; align-items: flex-start; font-size: 17px; font-weight: 600; color: var(--rot); }
.abgleich-meldung svg, .offen-hinweis svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.offen-hinweis { display: flex; gap: 8px; align-items: flex-start; padding: 12px; border-radius: 12px; font-size: 16px; font-weight: 600;
  color: var(--anthrazit); background: rgba(215, 38, 61, .12); }

/* Top-10-Listen in der Übersicht (TopListe in AbschleppUebersichtView.swift) */
.top-zeile { display: flex; align-items: center; gap: 10px; }
.top-zeile .platz { width: 24px; text-align: right; font-size: 15px; color: var(--grau); font-variant-numeric: tabular-nums; }
.top-zeile .platz.vorn { color: var(--blau); }
.top-zeile .name-balken { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.top-zeile .name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-zeile .balken-bahn { height: 6px; }
.top-zeile .balken-fuell { height: 6px; border-radius: 3px; background: var(--blau); }
.top-zeile .balken-fuell.blass { opacity: .45; }
.top-zeile .summe { min-width: 36px; text-align: right; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
