/* LenkZentrale – Design 3: elegantes Glas mit Glanz (Glassmorphism) auf tiefem Navy, Orange als Akzent.
   Glasflächen: halbtransparent, weichgezeichneter Hintergrund, feiner Lichtrand oben. Fehler immer im Vordergrund. */
@font-face { font-family: 'Inter'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #060910; --solid: #0d131c; --solid2: #121a25;
  --text: #f4f6f9; --muted: #95a1b0; --faint: #5f6b7b; --silber: #ccd5df;
  --orange: #ff8a1f; --orange2: #f25f00; --orange-weich: rgba(255, 138, 31, .15); --orange-linie: rgba(255, 138, 31, .5);
  --verlauf: linear-gradient(135deg, #ffa043 0%, #f25f00 100%);
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --ok: #34d399; --warn: #fbbf24; --bad: #f87171; --info: #7cc4ff;
  /* Glas */
  --glas: linear-gradient(155deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .03) 45%, rgba(255, 255, 255, .02) 100%);
  --glas-stark: linear-gradient(155deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .045) 50%, rgba(255, 255, 255, .03) 100%);
  --glas-rand: rgba(255, 255, 255, .11);
  --glanz: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .02);
  --blur: blur(24px) saturate(160%);
  --schatten: 0 18px 50px rgba(0, 0, 0, .35);
  --r: 22px; --r-sm: 14px;
  --font: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --stunde: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
/* Lichtflächen hinter dem Glas (fest, damit nichts beim Scrollen ruckelt) */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 460px at 88% 6%, rgba(255, 128, 20, .26), transparent 70%),
    radial-gradient(520px 420px at 12% 92%, rgba(70, 140, 255, .16), transparent 70%),
    radial-gradient(480px 380px at 55% 55%, rgba(150, 90, 255, .08), transparent 70%),
    radial-gradient(900px 600px at 30% -10%, rgba(255, 255, 255, .04), transparent 70%),
    var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--orange); text-underline-offset: 3px; }
::selection { background: rgba(255, 138, 31, .35); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.laden { display: grid; place-items: center; height: 100vh; color: var(--muted); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: 28px; } h2 { font-size: 16.5px; letter-spacing: -.01em; } h3 { font-size: 14px; }
.muted { color: var(--muted); } .klein { font-size: 13px; } .mono { font-family: var(--mono); font-feature-settings: normal; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.kicker { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* gemeinsame Glasfläche */
.karte, .kachel, .zahl-kachel, .nav, .monat, .kal, .gruppe, .ansicht-menu, dialog, .mobil-nav, .mobil-kopf, .bubble, #toast {
  background: var(--glas); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glas-rand); box-shadow: var(--glanz), var(--schatten);
}

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100vh; padding: 14px 0 14px 14px; gap: 0; }
.inhalt-spalte { min-height: 0; }
.nav { display: flex; flex-direction: column; padding: 16px 14px; gap: 4px; overflow-y: auto; border-radius: 26px; }
.marke { padding: 0 2px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.marke img { width: 100%; height: auto; display: block; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.marke small { display: block; text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav button { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid transparent; background: none; border-radius: 14px; color: var(--muted); cursor: pointer; text-align: left; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.nav button:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.nav button.aktiv { background: linear-gradient(135deg, rgba(255, 138, 31, .2), rgba(255, 138, 31, .06)); border-color: rgba(255, 138, 31, .28); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.nav button.aktiv svg { color: var(--orange); }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav .zahl { margin-left: auto; background: var(--verlauf); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 8px; box-shadow: 0 4px 12px rgba(242, 95, 0, .4); }
.nav .fuss { margin-top: auto; padding: 12px 6px 2px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sync-punkt { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 7px; vertical-align: 1px; }
.sync-punkt.ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18), 0 0 10px rgba(52, 211, 153, .6); } .sync-punkt.laeuft { background: var(--orange); } .sync-punkt.fehler { background: var(--bad); }
main { overflow: auto; padding: 22px 30px 64px; }
.kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.kopf h1 { margin-right: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mobil-kopf, .mobil-nav { display: none; }

/* ---------- Bausteine ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--glas-rand); background: var(--glas-stark); backdrop-filter: blur(12px); color: var(--text); cursor: pointer; white-space: nowrap; font-weight: 550; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); transition: background .2s, border-color .2s, transform .08s, filter .2s, box-shadow .2s; }
.btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: scale(.98); }
.btn.primaer { background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 48%), var(--verlauf); border: 1px solid rgba(255, 190, 120, .45); color: #fff; font-weight: 650; text-shadow: 0 1px 1px rgba(120, 40, 0, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px rgba(242, 95, 0, .35); }
.btn.primaer:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 30px rgba(242, 95, 0, .45); }
.btn.gefahr { border-color: rgba(248, 113, 113, .4); color: var(--bad); background: rgba(248, 113, 113, .08); }
.btn.klein { min-height: 34px; padding: 5px 14px; font-size: 13.5px; }
.btn.icon { padding: 6px 14px; font-size: 20px; line-height: 1; }
.btn:disabled { opacity: .5; cursor: default; }
.gruppe { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; box-shadow: var(--glanz); }
.gruppe button { border: 0; background: none; padding: 7px 14px; min-height: 34px; border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 550; transition: background .2s, color .2s; }
.gruppe button:hover { color: var(--text); }
.gruppe button.aktiv { background: rgba(255, 255, 255, .14); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.karte { border-radius: var(--r); padding: 22px 24px; }
.karte + .karte, .zwei + .karte, .karte + .zwei { margin-top: 18px; }
.karte h2 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.karte h2 .btn { margin-left: auto; }
.raster { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.zwei { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.zwei > div > .karte + .karte { margin-top: 18px; }
.kachel { border-radius: var(--r); padding: 20px 22px; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; }
.kachel:hover { border-color: var(--orange-linie); transform: translateY(-3px); box-shadow: var(--glanz), 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 138, 31, .15); }
.kachel .zeile { display: flex; align-items: center; gap: 10px; }
/* Inhalt bleibt immer im Kästchen: lange Hinweise umbrechen statt herausragen */
.kachel { min-width: 0; overflow: hidden; overflow-wrap: anywhere; }
.kachel > * { min-width: 0; max-width: 100%; }
.kachel .chip { white-space: normal; max-width: 100%; text-align: left; }
.punkt { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 550; background: rgba(255, 255, 255, .08); color: var(--silber); white-space: nowrap; border: 1px solid rgba(255, 255, 255, .08); line-height: 1.4; }
button.chip { cursor: pointer; }
.chip.ok { color: var(--ok); background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .22); }
.chip.warn { color: var(--warn); background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .25); }
.chip.bad { color: var(--bad); background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .25); }
.chip.info { color: var(--orange); background: var(--orange-weich); border-color: rgba(255, 138, 31, .28); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 18px; }
.zahl-kachel { border-radius: var(--r); padding: 18px 20px; }
.zahl-kachel span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.zahl-kachel b { display: block; font-size: 28px; font-weight: 650; letter-spacing: -.025em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.leer { padding: 36px 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line2); border-radius: var(--r); background: rgba(255, 255, 255, .02); }
.hinweis { border-radius: 16px; padding: 12px 16px; font-size: 14px; background: rgba(124, 196, 255, .08); border: 1px solid rgba(124, 196, 255, .22); backdrop-filter: blur(10px); }
.hinweis.warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .32); }
.hinweis.bad { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); }
.hinweis + .hinweis { margin-top: 8px; }
.suche { min-width: 240px; }
table.liste { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.liste th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.liste td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste tr.klickbar { cursor: pointer; } table.liste tr.klickbar:hover td { background: rgba(255, 255, 255, .04); }
table.liste tr.klickbar:hover td:first-child { border-radius: 12px 0 0 12px; } table.liste tr.klickbar:hover td:last-child { border-radius: 0 12px 12px 0; }
td.betrag, th.betrag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fortschritt { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.fortschritt > div { height: 100%; background: var(--verlauf); border-radius: 99px; box-shadow: 0 0 10px rgba(255, 138, 31, .5); }

/* ---------- Formulare ---------- */
label.feld { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
input, select, textarea { background: rgba(0, 0, 0, .25); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 14px; min-height: 46px; color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .24); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 4px rgba(255, 138, 31, .18); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--orange); flex: none; box-shadow: none; }
input[type=color] { padding: 4px; height: 46px; cursor: pointer; }
textarea { min-height: 90px; resize: vertical; }
select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2395a1b0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
select option { background: var(--solid2); }
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.formular .voll { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); cursor: pointer; min-height: 32px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.preistabelle input { min-width: 74px; text-align: right; padding: 7px 10px; min-height: 38px; border-radius: 11px; }
.preistabelle td, .preistabelle th { padding: 6px; }

/* ---------- Dialog ---------- */
dialog { border-radius: 28px; background: linear-gradient(155deg, rgba(34, 44, 60, .82), rgba(16, 22, 32, .9)); color: var(--text); padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--glanz), 0 40px 120px rgba(0, 0, 0, .65); }
dialog[open] { animation: auf .22s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes auf { from { opacity: 0; transform: translateY(12px) scale(.97); } }
dialog::backdrop { background: rgba(3, 6, 10, .55); backdrop-filter: blur(8px); }
dialog.breit { width: min(880px, calc(100vw - 24px)); }
.dlg-kopf { display: flex; align-items: center; gap: 10px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(24, 32, 45, .82); backdrop-filter: blur(16px); z-index: 1; }
.dlg-kopf h2 { margin-right: auto; font-size: 19px; }
.dlg-inhalt { padding: 20px 24px; }
.dlg-fuss { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: rgba(16, 22, 32, .85); backdrop-filter: blur(16px); }
.dlg-fuss .links { margin-right: auto; }
.x { border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.x:hover { background: rgba(255, 255, 255, .12); color: var(--text); }

/* Meldungen (Fehler, Hinweise): immer im Vordergrund, nur per Knopf zu schließen */
dialog.meldung { width: min(440px, calc(100vw - 32px)); text-align: center; padding: 30px 26px 22px; border-radius: 30px; }
dialog.meldung::backdrop { background: rgba(3, 6, 10, .7); backdrop-filter: blur(10px); }
.meldung .symbol { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; }
.meldung .symbol svg { width: 34px; height: 34px; }
.meldung.fehler { border-color: rgba(248, 113, 113, .45); }
.meldung.fehler .symbol { background: radial-gradient(circle at 35% 30%, rgba(248, 113, 113, .3), rgba(248, 113, 113, .1)); color: var(--bad); box-shadow: 0 0 0 8px rgba(248, 113, 113, .06), 0 0 30px rgba(248, 113, 113, .25); }
.meldung.hinweis-m { border-color: rgba(251, 191, 36, .45); }
.meldung.hinweis-m .symbol { background: radial-gradient(circle at 35% 30%, rgba(251, 191, 36, .3), rgba(251, 191, 36, .1)); color: var(--warn); box-shadow: 0 0 0 8px rgba(251, 191, 36, .06), 0 0 30px rgba(251, 191, 36, .2); }
.meldung h2 { font-size: 20px; margin-bottom: 8px; }
.meldung p { margin: 0 0 22px; color: var(--silber); font-size: 15px; line-height: 1.55; white-space: pre-line; }
.meldung .btn { width: 100%; min-height: 50px; font-size: 15.5px; }
.meldung .mehr-zahl { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* kurze Erfolgsmeldung unten */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none; transition: .25s; border-color: rgba(52, 211, 153, .35); padding: 11px 20px 11px 14px; border-radius: 999px; z-index: 100; max-width: calc(100vw - 32px); display: flex; align-items: center; gap: 10px; font-weight: 500; background: linear-gradient(155deg, rgba(40, 52, 68, .85), rgba(20, 28, 40, .9)); }
#toast::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(52, 211, 153, .2); color: var(--ok); font-size: 13px; font-weight: 800; flex: none; }
#toast.sichtbar { opacity: 1; transform: translateX(-50%); }

/* ---------- Unterschrift ---------- */
.unterschrift { position: relative; border: 1px solid var(--line2); border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.unterschrift canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.unterschrift .linie { position: absolute; left: 18px; right: 18px; bottom: 36px; border-top: 1px dashed #b8c2cc; pointer-events: none; }
.unterschrift .platzhalter { position: absolute; left: 18px; bottom: 12px; font-size: 12.5px; color: #8a96a1; pointer-events: none; }
.unterschrift .weg { position: absolute; right: 10px; top: 10px; background: #eef2f6; color: #1b2b3a; border: 0; border-radius: 99px; padding: 5px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.unterschriften { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.stundenwahl label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.stundenwahl label:last-child { border-bottom: 0; }
.themen { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.themen button { cursor: pointer; }
.themen button:hover { color: var(--text); background: var(--orange-weich); }

/* ---------- Termine als Bubble ---------- */
.bubble { position: relative; display: flex; align-items: stretch; gap: 16px; padding: 14px 16px 14px 14px; margin-bottom: 12px; border-radius: 22px; cursor: pointer; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.bubble::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 120px at 0% 0%, color-mix(in srgb, var(--farbe) 22%, transparent), transparent 70%); pointer-events: none; }
.bubble:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--farbe) 55%, transparent); box-shadow: var(--glanz), 0 22px 50px rgba(0, 0, 0, .45); }
.bubble:last-child { margin-bottom: 0; }
.b-zeit { position: relative; flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border-radius: 18px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--farbe) 40%, transparent), color-mix(in srgb, var(--farbe) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--farbe) 50%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px color-mix(in srgb, var(--farbe) 22%, transparent); }
.b-zeit b { font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.b-zeit span { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .85); margin-top: 3px; font-variant-numeric: tabular-nums; }
.b-zeit small { font-size: 11px; color: rgba(255, 255, 255, .6); margin-top: 1px; }
.b-inhalt { position: relative; min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.b-titel { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-art { font-size: 13.5px; color: var(--silber); }
.b-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.b-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09); color: var(--silber); }
.b-tag i { width: 8px; height: 8px; border-radius: 50%; }
.b-auto { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; }
.bubble.abgesagt { opacity: .55; } .bubble.abgesagt .b-titel { text-decoration: line-through; }
.bubble.blocker .b-zeit { background: repeating-linear-gradient(135deg, rgba(142, 154, 170, .2) 0 6px, rgba(142, 154, 170, .08) 6px 12px); border-color: var(--line2); }

/* ---------- Ausbildungsakte, Dokumente, Notizen ---------- */
.akte-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.akte-punkt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; transition: border-color .2s, background .2s; }
.akte-punkt:hover { border-color: var(--line2); background: rgba(255, 255, 255, .06); }
.akte-symbol { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.akte-punkt.erfuellt .akte-symbol { background: rgba(52, 211, 153, .16); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35); }
.akte-punkt.offen .akte-symbol { background: rgba(251, 191, 36, .14); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .35); }
.akte-punkt.nicht_noetig { opacity: .6; }
.akte-punkt.nicht_noetig .akte-symbol { background: rgba(255, 255, 255, .06); color: var(--muted); }
.akte-text { min-width: 0; flex: 1; }
.akte-text b { display: block; font-size: 14px; font-weight: 600; }
.akte-text small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dok { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 6px; }
.dok-symbol { font-size: 18px; }
.dok-name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dok-name small { display: block; color: var(--muted); font-size: 11.5px; }
label.btn input[type=file] { display: none; }
.notiz { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; font-size: 14px; }
.notiz:hover { border-color: var(--line2); }
.notiz-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* ---------- Kalender ---------- */
.kal-leiste { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; position: relative; padding-right: 130px; }
.kal-leiste .titel { font-weight: 650; font-size: 28px; letter-spacing: -.03em; margin-right: auto; }
.kal-leiste select { width: auto; min-width: 190px; border-radius: 999px; }
.kal-leiste > .ansicht-wahl { position: absolute; right: 0; top: 0; }
#ansichtBtn svg { width: 17px; height: 17px; color: var(--orange); }
.ansicht-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 296px; border-radius: 24px; padding: 8px; background: linear-gradient(155deg, rgba(40, 52, 70, .9), rgba(18, 25, 36, .94)); animation: auf .18s ease-out; }
.ansicht-menu[hidden] { display: none; }
.ansicht-menu > button { display: block; width: 100%; text-align: left; border: 1px solid transparent; background: none; border-radius: 16px; padding: 10px 14px; cursor: pointer; color: var(--text); }
.ansicht-menu > button b { font-weight: 600; }
.ansicht-menu > button small { display: block; color: var(--muted); font-size: 12.5px; }
.ansicht-menu > button:hover { background: rgba(255, 255, 255, .06); }
.ansicht-menu > button.aktiv { background: var(--orange-weich); border-color: rgba(255, 138, 31, .25); }
.ansicht-menu > button.aktiv b { color: var(--orange); }
.ansicht-menu .trenner { height: 1px; background: var(--line); margin: 6px 6px 10px; }
.ansicht-menu .feld { padding: 0 8px 8px; }
.kal { border-radius: var(--r); overflow: auto; max-height: calc(100vh - 170px); }
.kal-grid { display: grid; min-width: 100%; position: relative; }
.kal-kopf { position: sticky; top: 0; z-index: 3; background: rgba(22, 30, 42, .92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 10px 6px; font-size: 12.5px; text-align: center; min-height: 58px; color: var(--muted); }
.kal-kopf b { display: block; font-size: 16px; color: var(--text); font-weight: 650; }
.kal-kopf.heute b { color: var(--orange); }
.kal-kopf .punkt { display: inline-block; width: 9px; height: 9px; margin-right: 5px; }
.kal-ecke { position: sticky; top: 0; left: 0; z-index: 4; background: rgba(22, 30, 42, .92); border-bottom: 1px solid var(--line); }
.kal-zeiten { position: sticky; left: 0; z-index: 2; background: rgba(14, 20, 29, .9); backdrop-filter: blur(16px); border-right: 1px solid var(--line); }
.kal-zeiten div { height: var(--stunde); font-size: 12px; font-weight: 600; color: var(--silber); text-align: right; padding: 0 9px; transform: translateY(-8px); font-variant-numeric: tabular-nums; }
.kal-spalte { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--stunde) / 2 - 1px), rgba(255, 255, 255, .025) calc(var(--stunde) / 2 - 1px), rgba(255, 255, 255, .025) calc(var(--stunde) / 2), transparent calc(var(--stunde) / 2), transparent calc(var(--stunde) - 1px), var(--line) calc(var(--stunde) - 1px), var(--line) var(--stunde)); cursor: copy; }
.kal-spalte:hover { background-color: rgba(255, 255, 255, .015); }
.kal-spalte.heute { background-color: rgba(255, 138, 31, .04); }
.jetzt { position: absolute; left: 0; right: 0; height: 2px; background: var(--orange); z-index: 2; pointer-events: none; box-shadow: 0 0 10px var(--orange); }
.jetzt::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.termin { position: absolute; border-radius: 12px; padding: 5px 8px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid; z-index: 1; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 16px rgba(0, 0, 0, .3); transition: filter .15s, transform .15s; }
.termin:hover { z-index: 5; filter: brightness(1.18); transform: translateY(-1px); }
.termin .t-zeit { display: inline-block; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; font-style: normal; font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; padding: 1px 7px; margin-bottom: 2px; border-radius: 99px; background: rgba(0, 0, 0, .3); color: #fff; }
.termin b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.termin span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.termin.abgesagt { opacity: .45; } .termin.abgesagt b { text-decoration: line-through; }
.termin.durchgefuehrt::after { content: "✓"; position: absolute; right: 7px; top: 4px; font-weight: 800; color: var(--ok); }
.termin.unterschrieben::after { content: "✓✓"; }
.termin.blocker { background: repeating-linear-gradient(135deg, rgba(142, 154, 170, .16) 0 6px, rgba(142, 154, 170, .07) 6px 12px) !important; border-color: var(--faint) !important; color: var(--muted) !important; }
.agenda .tag { margin-bottom: 20px; }
.agenda .tag h3 { font-size: 13px; color: var(--muted); margin: 0 0 10px 4px; font-weight: 600; letter-spacing: .02em; }

/* Monatsansicht */
.monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.monat .wt { padding: 12px 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.mtag { min-height: 114px; padding: 7px 7px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; transition: background .15s; }
.mtag:nth-child(7n + 7) { border-right: 0; }
.mtag:hover { background: rgba(255, 255, 255, .04); }
.mtag.fremd { background: rgba(0, 0, 0, .18); }
.mtag.fremd .nr { color: var(--faint); }
.mtag .nr { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 99px; font-size: 14px; font-weight: 600; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.mtag.heute .nr { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%), var(--verlauf); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 16px rgba(242, 95, 0, .45); }
.mtag.gewaehlt { box-shadow: inset 0 0 0 2px var(--orange), inset 0 0 30px rgba(255, 138, 31, .12); background: rgba(255, 138, 31, .05); }
.mtag .e { font-size: 11.5px; line-height: 1.4; padding: 2px 7px; margin-top: 3px; border-left: 3px solid; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #eef3f8; font-weight: 500; }
.mtag .e b { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 2px; }
.mtag .e:hover { filter: brightness(1.25); }
.mtag .e.abgesagt { text-decoration: line-through; opacity: .5; }
.mtag .mehr { font-size: 11.5px; color: var(--muted); margin-top: 3px; padding-left: 4px; font-weight: 500; }
.mtag .punkte { display: none; gap: 3px; flex-wrap: wrap; padding: 2px 3px 0; }
.mtag .punkte i { width: 6px; height: 6px; border-radius: 50%; }
.tagesliste h2 { flex-wrap: wrap; }
.tagesliste { background: var(--glas); }

/* ---------- Start / Anmeldung ---------- */
.start { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.start .box { width: min(460px, 100%); }
.start .logo-start { display: block; width: min(380px, 92%); height: auto; margin: 0 auto 20px; border-radius: 28px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08), 0 0 80px rgba(255, 128, 20, .15); }
.start .karte { padding: 28px; border-radius: 28px; }
.start .karte h2 { font-size: 21px; }
.start form { display: grid; gap: 14px; }
.start .wechsel { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.start .btn { min-height: 50px; font-size: 15.5px; }
.link { background: none; border: 0; color: var(--orange); cursor: pointer; padding: 6px; font-weight: 500; }
.einrichtung-kopf { display: flex; align-items: center; gap: 16px; margin: 6px 0 20px; }
.einrichtung-kopf img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }

/* ---------- Mobil ---------- */
@media (max-width: 820px) {
  body { font-size: 15.5px; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; min-height: 100vh; padding: 0; }
  .inhalt-spalte { height: auto !important; }
  .nav { display: none; }
  .mobil-kopf { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); border-radius: 0 0 22px 22px; border-top: 0; background: linear-gradient(155deg, rgba(30, 40, 55, .75), rgba(14, 20, 29, .8)); }
  .mobil-kopf img { width: 36px; height: 36px; border-radius: 11px; }
  .mobil-kopf b { font-size: 16px; letter-spacing: -.01em; }
  .mobil-kopf small { display: block; color: var(--muted); font-size: 12px; line-height: 1.2; }
  .mobil-kopf .sync-punkt { margin-left: auto; }
  main { padding: 16px 14px calc(104px + env(safe-area-inset-bottom)); }
  h1 { font-size: 24px; }
  .mobil-nav { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; border-radius: 26px; padding: 6px; background: linear-gradient(155deg, rgba(40, 52, 70, .72), rgba(16, 22, 32, .82)); box-shadow: var(--glanz), 0 20px 50px rgba(0, 0, 0, .55); }
  .mobil-nav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 10.5px; font-weight: 600; padding: 7px 0 6px; border-radius: 20px; }
  .mobil-nav button.aktiv { color: var(--orange); background: linear-gradient(180deg, rgba(255, 138, 31, .22), rgba(255, 138, 31, .08)); border-color: rgba(255, 138, 31, .25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
  .mobil-nav svg { width: 23px; height: 23px; }
  .mobil-nav .zahl { position: absolute; top: 3px; right: calc(50% - 22px); background: var(--verlauf); color: #fff; font-size: 10px; font-weight: 700; border-radius: 99px; padding: 0 5px; line-height: 16px; }
  .zwei, .formular { grid-template-columns: 1fr; }
  .karte { padding: 18px; }
  .kal { max-height: none; }
  .kal-leiste { padding-right: 0; }
  .kal-leiste .titel { min-width: 0; width: 100%; order: -1; font-size: 24px; padding-right: 120px; }
  .suche { min-width: 0; width: 100%; }
  input, select, textarea { font-size: 16px; }
  dialog { max-height: calc(100dvh - 16px); border-radius: 24px; }
  .dlg-fuss .btn { flex: 1; }
  .dlg-fuss .links { flex-basis: 100%; order: 9; }
  .mtag { min-height: 62px; padding: 4px; }
  .mtag .e, .mtag .mehr { display: none; }
  .mtag .punkte { display: flex; }
  .mtag .nr { font-size: 13px; min-width: 26px; height: 26px; }
  .zahl-kachel b { font-size: 23px; }
  .bubble { gap: 12px; padding: 12px; }
  .b-zeit { width: 80px; }
  .b-zeit b { font-size: 22px; }
  .b-titel { font-size: 15.5px; }
}
/* weniger Bewegung, wenn gewünscht */
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }

/* Supportzugang (Jelivo-Superadmin im Konto der Fahrschule) – immer gut sichtbar oben */
.support-banner { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
  padding: 12px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 138, 31, .26), rgba(242, 95, 0, .16));
  border: 1px solid var(--orange-linie); box-shadow: var(--glanz), 0 10px 30px rgba(0, 0, 0, .3); backdrop-filter: var(--blur); }
.support-banner > div { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.support-banner span { font-size: 13px; color: var(--silber); }
/* Konto und Sicherheit, Zugänge */
.sicherheit-zeilen { display: grid; gap: 2px; margin-bottom: 12px; }
.sicherheit-zeilen > div { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sicherheit-zeilen > div:last-child { border-bottom: 0; }
.sicherheit-zeilen .chip { margin-right: 6px; }
@media (max-width: 820px) { .sicherheit-zeilen > div { grid-template-columns: minmax(0, 1fr); } .sicherheit-zeilen .btn { justify-self: start; } }
.zugaenge .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.zugaenge .aktionen { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.zugaenge td { vertical-align: top; }
/* Skeleton-Screens: Umriss der Seite, solange Inhalte laden (statt leerer Seite) */
.skelett { position: relative; overflow: hidden; background: rgba(255, 255, 255, .06); border-radius: 10px; }
.skelett::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); animation: skelett-glanz 1.4s ease-in-out infinite; }
@keyframes skelett-glanz { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skelett::after { animation: none; } }
.skelett-zeile { height: 14px; margin: 10px 0; }
.skelett-start { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 18px; height: 100vh; padding: 14px; }
.skelett-start .s-nav { border-radius: 26px; }
.skelett-start .s-inhalt { display: grid; grid-template-rows: 48px 1fr; gap: 18px; padding: 10px 6px; }
.skelett-start .s-kopf { width: 40%; height: 34px; }
.skelett-start .s-flaeche { border-radius: 22px; }
@media (max-width: 820px) { .skelett-start { grid-template-columns: minmax(0, 1fr); } .skelett-start .s-nav { display: none; } }
/* Fahrzeuge: Reifen, Wartung; Übernahme im Schülerformular; Firmenlogo */
.reifen-zeile { display: grid; grid-template-columns: 90px repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; margin-top: 8px; }
.reifen-zeile > b { padding-bottom: 10px; font-size: 13px; }
@media (max-width: 820px) { .reifen-zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reifen-zeile > b { grid-column: 1 / -1; padding: 6px 0 0; } }
.reifen-anzeige { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.angaben-liste { display: grid; gap: 2px; }
.angaben-liste > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.angaben-liste > div > span { color: var(--muted); }
.uebernahme-box { border: 1px solid var(--line2); border-radius: 16px; padding: 12px 14px; background: rgba(255, 255, 255, .02); }
.firmenlogo-vorschau { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.firmenlogo-vorschau img { max-width: 220px; max-height: 90px; background: #fff; border-radius: 10px; padding: 8px; }
/* Fahrzeugakte */
.fzakte-neu { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.fzakte-neu select { flex: 1; min-width: 220px; }

/* Abo und Zahlung: Tarif-Auswahl */
.tarif-wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.tarif-karte { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--text); cursor: pointer; font: inherit; }
.tarif-karte b { font-size: 16px; }
.tarif-karte .tarif-preis { font-size: 18px; font-weight: 700; color: var(--orange); }
.tarif-karte small { color: var(--muted); }
.tarif-karte.aktiv { border-color: var(--orange); background: var(--orange-weich); box-shadow: 0 0 0 1px var(--orange-linie); }
/* Update-Hinweis in den installierten Apps */
.update-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 211, 153, .18), rgba(124, 196, 255, .12)); border: 1px solid rgba(52, 211, 153, .45); box-shadow: var(--glanz); }
.update-banner > div:first-child { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.update-banner span { font-size: 13px; color: var(--silber); }
.update-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
/* Posten beim Anlegen eines Schülers: Haken + änderbarer Betrag */
.posten-gruppe { display: grid; gap: 6px; margin-bottom: 10px; }
.posten-gruppe > b { font-size: 13px; color: var(--muted); }
.posten-zeile { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto auto; gap: 8px; align-items: center; }
.posten-zeile input[name^="pb_"] { text-align: right; padding: 6px 10px; min-width: 0; }
@media (max-width: 520px) { .posten-zeile { grid-template-columns: minmax(0, 1fr) 84px auto; } .posten-zeile .chip { grid-column: 1 / -1; justify-self: start; } }
/* 0.14: Gruppentermine, Aufgaben, Rechte */
.teilnehmer-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 14px; max-height: 220px; overflow: auto; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 12px; }
.teilnehmer-liste .check { min-width: 0; overflow-wrap: anywhere; }
#tnSuche { margin-top: 6px; }
.rechte-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 16px; margin: 6px 0; }
.rechte-liste .check { min-width: 0; }
.zugang-box { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line2); }
.zugang-box h3 { margin: 0 0 10px; font-size: 15px; }
.termin.aufgabe { border-style: dashed !important; }
.termin.aufgabe.durchgefuehrt { opacity: .6; }
.bubble.aufgabe .b-zeit { border-style: dashed; }

/* 0.15: B197, Auslastung, Zahlungsvereinbarung */
.b197-zeile { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.b197-zeile span { color: var(--muted); }
.b197-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.b197-liste { margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.abschnitt { font-size: 17px; margin: 26px 0 12px; }
.tacho-gesamt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 12px; }
.tacho-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tacho-karte { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin: 0 !important; }
.tacho-kopf { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tacho-kopf b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tacho-karte small { color: var(--muted); font-size: 12.5px; min-height: 1.2em; }
.tacho { width: 100%; max-width: 260px; margin: 8px auto 4px; display: block; overflow: visible; }
.tacho-karte.gross .tacho { max-width: 340px; }
.tacho-zone { fill: none; stroke-width: 4; stroke-linecap: butt; }
.tacho-zone.z1 { stroke: rgba(124, 196, 255, .45); } .tacho-zone.z2 { stroke: rgba(52, 211, 153, .6); } .tacho-zone.z3 { stroke: rgba(251, 191, 36, .7); }
.tacho-grund { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 14; stroke-linecap: round; }
.tacho-wert { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.tacho.wenig .tacho-wert { stroke: var(--info); } .tacho.gut .tacho-wert { stroke: var(--ok); } .tacho.voll .tacho-wert { stroke: var(--warn); } .tacho.ueber .tacho-wert { stroke: var(--bad); }
.tacho-zeiger { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.tacho-nabe { fill: var(--text); }
.tacho-zahl { fill: var(--text); font-size: 28px; font-weight: 700; }
.tacho-unter { fill: var(--muted); font-size: 11.5px; }
.tacho.ueber .tacho-zahl { fill: var(--bad); }
.tacho-werte { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-size: 13px; color: var(--muted); text-align: center; }
.tacho-werte b { color: var(--text); }
@media (max-width: 820px) { .tacho-gesamt { grid-template-columns: 1fr; } }

/* ---------- Nachrichten: Chat, Terminanfragen, Meldungen ---------- */
.reiter { display: flex; gap: 6px; flex-wrap: wrap; }
.reiter-zahl { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: 11.5px; line-height: 18px; text-align: center; }
.chat-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; align-items: start; }
.chat-liste { padding: 6px; max-height: calc(100vh - 210px); overflow: auto; }
.chat-eintrag { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; padding: 10px; border: 1px solid transparent; border-radius: 14px; background: none; color: inherit; cursor: pointer; }
.chat-eintrag:hover { background: rgba(255, 255, 255, .04); }
.chat-eintrag.aktiv { background: linear-gradient(135deg, rgba(255, 138, 31, .16), rgba(255, 138, 31, .04)); border-color: rgba(255, 138, 31, .28); }
.chat-avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--orange-weich); color: var(--orange); }
.chat-avatar.gruppe { background: rgba(124, 196, 255, .15); color: var(--info); }
.chat-text { flex: 1; min-width: 0; display: grid; }
.chat-text b, .chat-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-text small { color: var(--muted); }
.chat-meta { display: grid; justify-items: end; gap: 4px; font-size: 12px; color: var(--muted); }
.chat-meta .zahl { background: var(--verlauf); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; line-height: 17px; }
.chat-fenster { display: flex; flex-direction: column; height: calc(100vh - 210px); min-height: 420px; padding: 0; overflow: hidden; }
.chat-fenster.leer { display: grid; place-items: center; padding: 20px; }
.chat-kopf { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-titel { flex: 1; min-width: 140px; display: grid; }
.chat-titel small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-aktionen { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-verlauf { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.chat-tag { align-self: center; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .06); padding: 2px 10px; border-radius: 10px; margin: 8px 0 4px; }
.blase { max-width: min(76%, 560px); align-self: flex-start; padding: 8px 12px 5px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--solid2); border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.blase.ich { align-self: flex-end; border-radius: 16px; border-bottom-right-radius: 5px; background: linear-gradient(155deg, rgba(255, 138, 31, .24), rgba(255, 138, 31, .12)); border-color: rgba(255, 138, 31, .32); }
.blase.geloescht { font-style: italic; color: var(--muted); }
.blase.gemeldet { border-color: rgba(248, 113, 113, .55); }
.blase .von { font-size: 12px; font-weight: 600; color: var(--info); margin-bottom: 2px; white-space: normal; }
.blase .zeit { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; white-space: normal; }
.blase .zeit .link { padding: 0 2px; font-size: 11px; color: var(--muted); }
.blase .zeit .link:hover { color: var(--bad); }
.blase img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; margin: 2px 0 4px; }
.chat-eingabe { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); }
.chat-eingabe textarea { flex: 1; min-height: 44px; max-height: 160px; resize: none; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .25); color: var(--text); }
.chat-eingabe .btn.icon { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; cursor: pointer; }
.chat-hinweis { padding: 12px 16px; border-top: 1px solid var(--line); }
.meldung-verlauf { max-height: 320px; border: 1px solid var(--line2); border-radius: 12px; }
@media (max-width: 820px) {
  .chat-fenster { height: calc(100dvh - 330px); min-height: 320px; }
  .chat-kopf { padding: 10px 12px; gap: 8px; }
  .chat-aktionen .btn { padding: 4px 10px; }
  .chat-liste { max-height: none; }
  .blase { max-width: 88%; }
}

.ton-zeile { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.ton-zeile select { margin-left: 6px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .25); color: var(--text); }

/* Einstellungen: eigener Zugang mit Abmelden */
.mein-zugang .zugang-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

