/* Aerolaunch – Designsystem
   Leitidee: der Windsack am Platz. Signalorange = die eine Hauptaktion und „hier passiert gerade etwas“,
   Höhenblau = Ortsschild (wo bin ich). Annunciator-Farben (Grün/Amber/Rot) nur für Status.
   (Die Variablennamen --taxi/--plate stammen aus der ersten Fassung und bleiben, damit nichts bricht.) */

@font-face { font-family: "Atkinson"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Atkinson"; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: "Atkinson"; font-weight: 700; font-display: swap; src: url(fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow C"; font-weight: 500; font-display: swap; src: url(fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow C"; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow C"; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --apron: #E9EDF2;
  --surface: #FFFFFF;
  --surface-2: #F4F6F9;
  --ink: #13213C;
  --ink-2: #3A4A63;
  --muted: #5B6B82;
  --line: #C9D2DD;
  --line-2: #DDE3EA;
  --taxi: #FF5B14;       /* Signalorange (Windsack) */
  --taxi-ink: #0B1B2B;
  --plate: #0E3A5C;      /* Höhenblau */
  --go: #1F8A4C;
  --go-bg: #E3F3EA;
  --caution: #B87400;
  --caution-lamp: #F0A202;
  --caution-bg: #FDF1D8;
  --stop: #C4302B;
  --stop-bg: #FBE4E2;
  --sky: #2C6CB0;
  --focus: #2C6CB0;
  --radius-s: 4px;
  --radius: 8px;
  --shadow: 0 1px 0 rgba(19,33,60,.08), 0 2px 8px rgba(19,33,60,.06);
  --body: "Atkinson", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow C", "Arial Narrow", system-ui, sans-serif;
  --wide: "Archivo", "Arial", system-ui, sans-serif;
  --rail: 232px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --apron: #0F1B2D; --surface: #16253B; --surface-2: #1B2C45; --ink: #E8EEF6; --ink-2: #C3CEDD; --muted: #93A3BA;
    --line: #2E4161; --line-2: #24364F; --go: #45C17A; --go-bg: #143326; --caution: #F0B13A; --caution-bg: #3A2C10;
    --stop: #F06B63; --stop-bg: #3B1A1B; --sky: #7DB4F0; --focus: #7DB4F0; color-scheme: dark;
    --shadow: 0 1px 0 rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  --apron: #0F1B2D; --surface: #16253B; --surface-2: #1B2C45; --ink: #E8EEF6; --ink-2: #C3CEDD; --muted: #93A3BA;
  --line: #2E4161; --line-2: #24364F; --go: #45C17A; --go-bg: #143326; --caution: #F0B13A; --caution-bg: #3A2C10;
  --stop: #F06B63; --stop-bg: #3B1A1B; --sky: #7DB4F0; --focus: #7DB4F0; color-scheme: dark;
  --shadow: 0 1px 0 rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--apron); color: var(--ink); font: 400 16px/1.5 var(--body); }
a { color: var(--sky); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: 72ch; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.num { font-family: var(--cond); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8rem; word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--taxi); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- App-Rahmen ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.rail { display: none; }
.main { padding: 16px 16px 112px; max-width: 1180px; width: 100%; min-width: 0; margin: 0 auto; }
@media (min-width: 960px) {
  .shell { grid-template-columns: var(--rail) 1fr; }
  .rail { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line-2); }
  .main { padding: 28px 36px 48px; }
  .tabbar { display: none !important; }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin: 0 6px 18px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font: 800 1.35rem/1 var(--wide); font-stretch: 125%; letter-spacing: -.01em; color: var(--plate); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand b { color: var(--ink); } }
:root[data-theme="dark"] .brand b { color: var(--ink); }
.rail a.nav { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius); color: var(--ink-2); text-decoration: none; }
.rail a.nav:hover { background: var(--surface-2); }
.rail a.nav[aria-current="page"] { background: var(--ink); color: var(--surface); }
.rail a.nav svg { width: 20px; height: 20px; flex: none; }
.rail .rail-cta { margin: 6px 0 14px; }
.rail .foot { margin-top: auto; font-size: .8rem; color: var(--muted); padding: 0 12px; }
.badge { margin-left: auto; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--taxi); color: #000; font: 700 .8rem/22px var(--cond); text-align: center; }

.tabbar { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: var(--surface); border-top: 1px solid var(--line-2); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .72rem; padding: 4px 0; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabbar a.go { transform: translateY(-14px); }
.tabbar a.go span.knob { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 12px; background: var(--taxi); color: var(--taxi-ink); border: 3px solid var(--taxi-ink); box-shadow: var(--shadow); }
.tabbar a .dot { position: absolute; top: 2px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--caution-lamp); border: 2px solid var(--surface); }

/* ---------- Schilder ---------- */
.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 4px 0 20px; }
.plate { display: inline-flex; align-items: center; background: var(--plate); color: #fff; font: 800 1.25rem/1 var(--wide); font-stretch: 112%; letter-spacing: 0;
  padding: 9px 14px 8px; border-radius: 3px; box-shadow: inset 0 -4px 0 var(--taxi); }
.pagehead .sub { color: var(--muted); }
.pagehead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem/1 var(--body); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn.danger { color: var(--stop); border-color: color-mix(in srgb, var(--stop) 45%, var(--line)); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--sky); padding: 0 8px; }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
/* Richtungsschild: die eine Hauptaktion */
.taxi { display: inline-flex; align-items: center; gap: 12px; background: var(--taxi); color: var(--taxi-ink); border: 3px solid var(--taxi-ink); border-radius: 6px;
  padding: 12px 22px; font: 800 1.3rem/1 var(--wide); font-stretch: 112%; letter-spacing: 0; text-decoration: none; cursor: pointer; box-shadow: var(--shadow); }
.taxi svg { width: 28px; height: 28px; }
.taxi:active { transform: translateY(1px); }
.taxi.block { display: flex; width: 100%; justify-content: center; min-height: 72px; font-size: 2rem; }

/* ---------- Flächen ---------- */
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.panel h2 { font-size: 1.1rem; display: flex; align-items: baseline; gap: 8px; }
.panel h2 a { margin-left: auto; font-size: .85rem; font-weight: 400; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.side { grid-template-columns: 2fr 1fr; } }
.divider { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }

.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; border-left: 5px solid; background: var(--surface); }
.flash.good { border-color: var(--go); }
.flash.warn { border-color: var(--caution-lamp); }
.flash.alert { border-color: var(--stop); }

/* ---------- Annunciator (Status) ---------- */
.verdict { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 640px) { .verdict { grid-template-columns: 1fr 1fr; } }
.lamp { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.lamp .light { flex: none; width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; font: 700 1.1rem/1 var(--cond); color: #fff; }
.lamp.green .light { background: var(--go); }
.lamp.amber .light { background: var(--caution-lamp); color: #000; }
.lamp.red .light { background: var(--stop); }
.lamp.grey .light { background: var(--muted); }
.lamp b { display: block; font-size: 1.1rem; }
.lamp span { color: var(--muted); font-size: .9rem; }

.checks { display: grid; gap: 10px; }
.check { border: 1px solid var(--line-2); border-left-width: 6px; border-radius: var(--radius); padding: 12px 14px; background: var(--surface); }
.check.green { border-left-color: var(--go); }
.check.amber { border-left-color: var(--caution-lamp); background: linear-gradient(90deg, var(--caution-bg), var(--surface) 60%); }
.check.red { border-left-color: var(--stop); background: linear-gradient(90deg, var(--stop-bg), var(--surface) 60%); }
.check.grey { border-left-color: var(--muted); }
.check header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.check header b { font-size: 1rem; }
.check header .ref { color: var(--muted); font-size: .8rem; }
.check header .until { margin-left: auto; font: 600 1rem/1 var(--cond); }
.check p { margin: 4px 0 0; color: var(--ink-2); font-size: .92rem; }
.bars-list { display: grid; gap: 8px; margin-top: 10px; }
.meter { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: .85rem; }
.meter .track { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.meter .fill { height: 100%; background: var(--ink-2); border-radius: 4px; }
.meter.done .fill { background: var(--go); }
.meter .val { font: 600 .95rem/1 var(--cond); min-width: 84px; text-align: right; }

/* ---------- Kennzahlen ---------- */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures div { background: var(--surface); padding: 12px 14px; }
.figures dt { color: var(--muted); font-size: .8rem; }
.figures dd { margin: 0; font: 600 1.8rem/1.1 var(--cond); font-variant-numeric: tabular-nums; }

/* ---------- Flugbuch-Tabelle ---------- */
.ledger-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
table.ledger { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.ledger th { text-align: left; font: 600 .8rem/1.2 var(--cond); letter-spacing: .02em; color: var(--muted); padding: 10px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; background: var(--surface-2); position: sticky; top: 0; }
table.ledger td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.ledger td.t { font: 600 1rem/1.2 var(--cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.ledger tr.draft td { background: color-mix(in srgb, var(--taxi) 12%, var(--surface)); }
table.ledger tr.voided td { color: var(--muted); text-decoration: line-through; }
table.ledger tr:hover td { background: var(--surface-2); }
table.ledger a.row { color: inherit; text-decoration: none; font-weight: 700; }
.tag { display: inline-block; font: 600 .75rem/1 var(--cond); letter-spacing: .03em; padding: 4px 6px; border-radius: 3px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); white-space: nowrap; }
.tag.draft { background: var(--taxi); color: #000; border-color: #000; }
.tag.sealed { background: transparent; }
.tag.warn { background: var(--caution-bg); color: var(--caution); border-color: transparent; }
.tag.bad { background: var(--stop-bg); color: var(--stop); border-color: transparent; }
.tag.ok { background: var(--go-bg); color: var(--go); border-color: transparent; }

/* Mobile Flugbuch-Liste */
.flight-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flight-list li a { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.flight-list .day { font: 700 1.4rem/1 var(--cond); text-align: center; }
.flight-list .day small { display: block; font: 500 .75rem/1.2 var(--body); color: var(--muted); }
.flight-list .route { font-weight: 700; }
.flight-list .meta { color: var(--muted); font-size: .85rem; }
.flight-list .dur { font: 600 1.4rem/1 var(--cond); }
.flight-list li.draft a { border-color: #000; border-left: 6px solid var(--taxi); }
.flight-list li.voided a { opacity: .6; text-decoration: line-through; }
.only-wide { display: none; }
@media (min-width: 900px) { .only-wide { display: block; } .only-narrow { display: none; } }

/* ---------- Formulare ---------- */
form .row { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 640px) { form .row.c2 { grid-template-columns: 1fr 1fr; } form .row.c3 { grid-template-columns: repeat(3, 1fr); } form .row.c4 { grid-template-columns: repeat(4, 1fr); } }
label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
label .hint { font-weight: 400; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=url], input[type=tel], select, textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); font: 400 1rem/1.3 var(--body); }
input.timefield, input.code { font: 600 1.25rem/1 var(--cond); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
textarea { min-height: 88px; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 40%, transparent); border-color: var(--focus); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--stop); }
.err { color: var(--stop); font-size: .85rem; margin-top: 4px; }
fieldset { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; margin: 0 0 14px; }
legend { font: 700 1.05rem/1 var(--cond); letter-spacing: .02em; padding: 0 6px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; font-weight: 600; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); cursor: pointer; background: var(--surface); }
.seg input:checked + label { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.check-row { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.check-row input { width: 20px; height: 20px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.calc { font: 600 1.6rem/1 var(--cond); }
.ac-list { position: absolute; z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow); list-style: none; margin: 2px 0 0; padding: 4px 0; max-height: 260px; overflow: auto; min-width: 260px; }
.ac-list li { padding: 8px 12px; cursor: pointer; }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: var(--surface-2); }
.ac-list li b { font-family: var(--cond); font-size: 1.05rem; margin-right: 8px; }
.ac-wrap { position: relative; }

/* ---------- Eintragsdetail ---------- */
.entry-head { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.route-big { font: 700 2.4rem/1 var(--cond); letter-spacing: .02em; display: flex; align-items: center; gap: 12px; }
.route-big svg { width: 28px; height: 28px; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 12px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink-2); }
.timeline li.void::before { border-color: var(--stop); }
.timeline li.correct::before { border-color: var(--caution-lamp); }
.timeline del { color: var(--stop); }
.timeline ins { text-decoration: none; color: var(--go); font-weight: 700; }
.seal { display: flex; gap: 12px; align-items: center; padding: 12px; border: 2px dashed var(--line); border-radius: var(--radius); }
.seal svg { width: 36px; height: 36px; flex: none; color: var(--ink-2); }
.stamp { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 3px solid var(--go); color: var(--go); border-radius: 6px; font: 700 1.3rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; transform: rotate(-3deg); }
@media (prefers-reduced-motion: no-preference) {
  .stamp.fresh { animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) both; }
  @keyframes stamp { from { transform: rotate(-3deg) scale(1.8); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
}
.map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface-2); }
.map.tall { height: 460px; }
.sigpad { width: 100%; height: 180px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); touch-action: none; }
.sig-img { max-width: 260px; background: #fff; border-radius: 4px; padding: 4px; }

/* ---------- Diagramme ---------- */
svg.bars rect { fill: var(--ink-2); }
svg.bars rect:hover { fill: var(--sky); }
svg.bars .axis { fill: var(--muted); font: 500 11px var(--cond); }
svg.bars .grid { stroke: var(--line-2); stroke-dasharray: 3 3; }
.hbar { display: grid; grid-template-columns: minmax(110px, 1fr) 3fr auto; gap: 10px; align-items: center; padding: 4px 0; font-size: .9rem; }
.hbar .track { height: 10px; background: var(--line-2); border-radius: 5px; }
.hbar .fill { height: 100%; background: var(--ink-2); border-radius: 5px; }

/* ---------- Meilensteine ---------- */
.next-goal { display: flex; gap: 14px; align-items: center; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--taxi) calc(var(--p) * 1%), var(--line-2) 0); }
.ring span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--surface); font: 700 1rem/1 var(--cond); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Tracker ---------- */
.tracker { max-width: 560px; margin: 0 auto; }
.tracker .state { text-align: center; padding: 8px 0 16px; }
.tracker .state .plate { font-size: 1.2rem; }
.clock { font: 700 4.2rem/1 var(--cond); font-variant-numeric: tabular-nums; text-align: center; letter-spacing: .02em; }
.clock small { display: block; font: 500 .9rem/1.4 var(--body); color: var(--muted); letter-spacing: 0; }
.tracker .readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.tracker .readouts div { background: var(--surface); padding: 10px; text-align: center; }
.tracker .readouts b { display: block; font: 700 1.6rem/1 var(--cond); }
.tracker .readouts span { font-size: .78rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); font-weight: 400; cursor: pointer; }
.checklist input { width: 24px; height: 24px; }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.events { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.events li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.events li b { font-family: var(--cond); min-width: 52px; }
.cockpit { color: var(--ink); --apron: #050B14; --surface: #0E1828; --surface-2: #132036; --ink: #E8EEF6; --ink-2: #C3CEDD; --muted: #8C9CB3; --line: #24364F; --line-2: #1C2B42; }
body.cockpit { background: #050B14; color: #E8EEF6; }

/* ---------- Auth & öffentliche Seiten ---------- */
.bare { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.bare .card { width: 100%; max-width: 440px; }
.bare .brand { justify-content: center; margin-bottom: 20px; }
.bare .wide { max-width: 980px; }
.hero-line { font: 800 1.9rem/1.08 var(--wide); font-stretch: 112%; letter-spacing: -.01em; margin: 0 0 12px; }

/* Leere Zustände */
.empty { text-align: center; padding: 28px 16px; color: var(--ink-2); }
.empty svg { width: 48px; height: 48px; color: var(--muted); }
.empty p { margin: 8px auto 16px; }

/* Druck */
@media print { .rail, .tabbar, .actions, .btn, .taxi { display: none !important; } .main { padding: 0; } .panel { box-shadow: none; border: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Korrekturen nach Sichtprüfung ---------- */
.meter .track, .meter .fill, .hbar .track, .hbar .fill { display: block; }
.panel h2 > svg, .panel h3 > svg, h2 > svg, h3 > svg { width: 1.1em; height: 1.1em; flex: none; color: var(--muted); }
.panel h2 { align-items: center; }
.rail .taxi.rail-cta { font-size: 1.25rem; padding: 10px 14px; justify-content: center; white-space: nowrap; }
.rail .taxi.rail-cta svg { width: 22px; height: 22px; }
.daylight-time { font: 700 2.6rem/1 var(--cond); font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.daylight-time small { font: 500 .9rem/1 var(--body); color: var(--muted); margin-left: 6px; }
.events li b { font-family: var(--body); font-weight: 700; }

/* Höhenprofil und Geschwindigkeit (Flugdetail) */
.profile { width: 100%; height: 170px; display: block; }
.profile .axis { stroke: var(--line); stroke-width: 1; }
.profile .alt { fill: color-mix(in srgb, var(--sky) 22%, transparent); stroke: var(--sky); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.profile .gs { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.profile .lbl { fill: var(--muted); font: 700 11px "Atkinson", system-ui, sans-serif; }
.legend .key { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin: 0 6px 0 12px; }
.legend .key:first-child { margin-left: 0; }
.legend .key.alt { background: var(--sky); }
.legend .key.gs { background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 7px); }

/* Fotos und Dokumente */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumbs figure { margin: 0; }
.thumbs img, .thumbs .doc { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface-2, #eef2f6); font-weight: 700; color: var(--muted); }
.thumbs figcaption { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 4px; }

/* Ausbildung */
.bar { height: 10px; background: var(--line-2); border-radius: 5px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: var(--go, #1E8E4E); border-radius: 5px; }
.target { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: .85rem; margin-bottom: 8px; }
.target .bar { margin-top: 0; }
.checklist.training li.st-done span { color: var(--muted); }
.checklist.training li.st-done b { color: var(--go, #1E8E4E); }
.lampdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; background: var(--line); margin-left: 6px; }
.lampdot.green { background: var(--go, #1E8E4E); } .lampdot.amber { background: var(--caution, #B8860B); } .lampdot.red { background: var(--stop, #C0392B); }

/* Verwaltung */
.subnav { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -8px 0 18px; box-shadow: inset 0 -1px 0 var(--line-2); }
.subnav a { white-space: nowrap; }
.subnav a { padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent;  }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current] { color: var(--ink); border-bottom-color: var(--taxi); }
.admin-form .field { margin-bottom: 16px; max-width: 40rem; }
.admin-form .req { color: var(--stop); }
.hint.block { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; align-items: baseline; }
.checks li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--line); grid-row: span 2; transform: translateY(2px); }
.checks li.ok::before { background: var(--go); } .checks li.warn::before { background: var(--caution-lamp, #E0A100); }
.checks li span { color: var(--ink-2); }
.linklist { margin: 8px 0 0; padding-left: 1.2em; } .linklist li { margin: 4px 0; }
.testresult { border-left: 5px solid; border-radius: var(--radius-s); padding: 12px 16px; margin: 0 0 18px; background: var(--surface-2); }
.testresult.ok { border-color: var(--go); } .testresult.bad { border-color: var(--stop); }
.testresult ul { list-style: none; margin: 8px 0 4px; padding: 0; }
.testresult li { padding-left: 1.5em; position: relative; margin: 3px 0; }
.testresult li::before { position: absolute; left: 0; font-weight: 700; }
.testresult li.ok::before { content: "✓"; color: var(--go); } .testresult li.bad::before { content: "✗"; color: var(--stop); }
.testcreds { max-width: 48rem; }
.table-wrap { overflow-x: auto; }
form.inline { display: inline-flex; gap: 6px; align-items: center; }
.danger-zone { border-color: color-mix(in srgb, var(--stop) 45%, var(--line-2)); }
.btn.danger { background: var(--stop); color: #fff; border-color: var(--stop); }
.legal-links { margin: 10px 0 0; font-size: .78rem; display: flex; gap: 10px; flex-wrap: wrap; } .legal-links a { color: var(--muted); }
/* Tarife (angemeldet) */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 8px; }
.plan { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; background: var(--surface); }
.plan-main { border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--taxi); }
.plan h3 { font: 800 1.3rem/1.1 var(--wide); font-stretch: 112%; margin: 0; }
.plan-price { margin: 8px 0 0; } .plan-price b { font: 700 1.9rem/1 var(--cond); } .plan-price span, .plan-sub, .plan-note, .plans-note { color: var(--muted); font-size: .88rem; }
.plan-lead { font-weight: 700; margin: 12px 0 0; } .plan ul { margin: 6px 0 0; padding-left: 1.2em; } .plan li { margin: 4px 0; font-size: .92rem; }
.plan-btn { display: block; text-align: center; margin-top: 12px; padding: 10px; border: 2px solid var(--ink); border-radius: var(--radius-s); font-weight: 700; text-decoration: none; color: var(--ink); }
.plan .plan-btn:first-of-type { margin-top: auto; } .plan-btn.primary { background: var(--taxi); color: #000; border-color: #000; }
.plan-current { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--go); }
.plans-note { margin-top: 12px; }
.checkout { display: grid; gap: 16px; } @media (min-width: 1000px) { .checkout { grid-template-columns: 1fr 1fr; align-items: start; } }
.payment-element { margin: 14px 0; min-height: 60px; }
.alt-logins { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.alt-logins .btn svg { width: 1.1em; height: 1.1em; }
.codes { columns: 2; list-style: none; padding: 0; margin: 10px 0; } .codes code { font: 600 1rem/1.6 ui-monospace, Menlo, monospace; }
.qr svg { width: 180px; height: 180px; background: #fff; padding: 8px; border-radius: 6px; }
.secret { font: 600 .95rem ui-monospace, Menlo, monospace; word-spacing: .2em; }
ol.steps { padding-left: 1.3em; } ol.steps > li { margin: 10px 0; }
details { margin-top: 10px; } details summary { cursor: pointer; font-weight: 600; color: var(--sky); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 16px; }
.tiles a { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tiles a svg { grid-row: span 2; width: 24px; height: 24px; color: var(--muted); }
.tiles a span { color: var(--muted); font-size: .85rem; }
.tiles a:hover { border-color: var(--ink); }

/* ---------- Verein (0.5) ---------- */
.club-head .plate { text-decoration: none; }
.club-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.club-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.club-list a b { font-size: 1.1rem; }
.club-list a svg { grid-row: 1 / span 2; grid-column: 2; width: 20px; color: var(--muted); }
.narrow { max-width: 640px; }
form .row.c5 { grid-template-columns: 1fr; }
@media (min-width: 640px) { form .row.c5 { grid-template-columns: repeat(5, 1fr); } }
.align-end { display: flex; align-items: flex-end; }
.label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; padding: 0; }
.chips .check-row { padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.toolbar .search { flex: 1 1 220px; }
.toolbar .search input { width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grid.two { grid-template-columns: 1fr; }
@media (min-width: 860px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.grid.two > .panel + .panel { margin-top: 0; }

/* Startklar-Liste */
.onboarding .progress { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin: 4px 0 12px; }
.onboarding .progress i { display: block; height: 100%; background: var(--go); border-radius: 4px; }
.steps { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.steps li { display: flex; gap: 8px; align-items: center; }
.steps li::before { content: ""; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; flex: none; }
.steps li.done::before { display: none; }
.steps li.done { color: var(--muted); text-decoration: line-through; }
.steps li svg { width: 18px; height: 18px; color: var(--go); }

/* Heute im Verein */
.ops-today { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); border-left: 6px solid var(--line); box-shadow: var(--shadow); }
.ops-today.open { border-left-color: var(--go); }
.ops-today.flying { border-left-color: var(--caution-lamp); }
.ops-today h2 { margin-bottom: 4px; }
.ops-figures { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 4px; }
.ops-figures b { font-size: 1.6rem; }
.week-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 6px; overflow-x: auto; }
.week-strip li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.week-strip li.mine { border-color: var(--go); background: var(--go-bg); }
.week-strip .wd { font-weight: 700; }
.week-strip b { font-size: 1.6rem; line-height: 1; }
.week-strip form { margin-top: 4px; }
.fleet-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.fleet-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface-2); }
.fleet-chips .lampdot { margin: 0; background: var(--go); }
.fleet-chips li.red .lampdot { background: var(--stop); }

/* Flotte */
.fleet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fleet-list > li.inactive { opacity: .6; }
.fleet-row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.fleet-row .reg { font-size: 1.4rem; }
.fleet-row .lampdot { margin: 0; align-self: center; }
.fleet-form { margin-top: 12px; }
.checks-col { display: grid; gap: 6px; align-content: end; }
.member-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.member-head h1 { font-size: 1.5rem; margin-bottom: 4px; }

/* Wer kommt? */
.plan-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-day { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.plan-day.weekend { border-left: 4px solid var(--taxi); }
.plan-day.mine { background: color-mix(in srgb, var(--go-bg) 55%, var(--surface)); }
.plan-date { text-align: center; }
.plan-date .wd { display: block; font-weight: 700; }
.plan-date b { font-size: 1.2rem; }
.plan-count { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.plan-count b { font-size: 1.4rem; }
.people { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; }
.people li.vielleicht { color: var(--muted); font-style: italic; }
.plan-form { margin-top: 10px; display: grid; gap: 10px; }

/* Reservierung */
.week-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.week-nav h2 { margin: 0; flex: 1; text-align: center; }
table.res-grid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 760px; }
.res-grid th, .res-grid td { border: 1px solid var(--line-2); padding: 6px; vertical-align: top; font-size: .85rem; }
.res-grid thead th { background: var(--surface-2); font: 600 .85rem/1.2 var(--cond); }
.res-grid tbody th { width: 110px; text-align: left; background: var(--surface-2); }
.res-grid .today { background: color-mix(in srgb, var(--taxi) 10%, var(--surface)); }
.res { display: grid; gap: 1px; padding: 4px 6px; margin-bottom: 4px; border-radius: var(--radius-s); background: var(--surface-2); border-left: 3px solid var(--ink-2); }
.res.own { border-left-color: var(--go); background: var(--go-bg); }
.res form .btn { min-height: 26px; padding: 0 4px; }

/* Hauptflugbuch */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filter-bar > div { min-width: 140px; }
table.ledger .r, table.ledger th.r { text-align: right; }
@media print { .rail, .tabbar, .subnav, .filter-bar, .club-head { display: none !important; } .panel { box-shadow: none; border: 0; } }

/* ---------- Startliste ---------- */
.ops-page .main { max-width: 980px; }
.ops-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 12px; }
.ops-date { display: flex; align-items: center; gap: 8px; }
.ops-date h1 { font-size: 1.4rem; margin: 0; }
.ops-counters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ops-counters span { font: 600 1rem/1 var(--cond); padding: 7px 10px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line-2); }
.ops-counters span.air { background: var(--caution-lamp); color: #000; border-color: transparent; }
.ops-sync { margin: 0 0 0 auto; font-size: .85rem; padding: 6px 10px; border-radius: var(--radius-s); }
.ops-sync.ok { color: var(--go); }
.ops-sync.warn { background: var(--caution-bg); color: var(--caution); font-weight: 700; }
.ops-sync.bad { background: var(--stop-bg); color: var(--stop); font-weight: 700; }
.ops-actions { margin: 4px 0 14px; }
.ops-list { display: grid; gap: 8px; }
.ops-card { display: grid; grid-template-columns: 8px 1fr auto; gap: 0 14px; align-items: center; padding: 12px 14px 12px 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ops-lamp { align-self: stretch; background: var(--line); }
.ops-card.in_luft { border-color: color-mix(in srgb, var(--caution-lamp) 60%, var(--line-2)); }
.ops-card.in_luft .ops-lamp { background: var(--caution-lamp); }
.ops-card.gelandet .ops-lamp { background: var(--go); }
.ops-card.storniert { opacity: .55; }
.ops-card.storniert .ops-reg { text-decoration: line-through; }
.ops-main { min-width: 0; }
.ops-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.ops-reg { font-size: 1.5rem; line-height: 1.1; }
.ops-who { font-weight: 700; margin-top: 2px; }
.ops-who .missing { color: var(--stop); }
.ops-times { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 1.15rem; margin-top: 2px; }
.ops-times .elapsed { background: var(--caution-bg); color: var(--caution); padding: 0 6px; border-radius: 3px; }
.ops-warn { margin: 6px 0 0; font-size: .85rem; color: var(--caution); }
.ops-act { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 132px; }
.ops-act .btn.big { min-height: 58px; font: 700 1.35rem/1 var(--cond); letter-spacing: .03em; text-transform: uppercase; background: var(--ink); color: var(--surface); border-color: var(--ink); }
.ops-act .btn.land { background: var(--taxi); color: var(--taxi-ink); border: 3px solid var(--taxi-ink); }
.tag.src { background: transparent; border-style: dashed; }
@media (max-width: 560px) {
  .ops-card { grid-template-columns: 6px 1fr; }
  .ops-act { grid-column: 2; flex-direction: row; flex-wrap: wrap; margin-top: 10px; min-width: 0; }
  .ops-act .btn.big { flex: 1 1 100%; }
}
.ops-day-settings, .ops-close { margin-top: 18px; }
.ops-close { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ops-day-settings summary, details > summary { cursor: pointer; font-weight: 700; }
dialog.sheet { scroll-padding-bottom: 96px; scroll-padding-top: 12px; width: min(720px, 100vw - 16px); max-height: calc(100vh - 16px); border: 0; border-radius: 12px; padding: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
dialog.sheet::backdrop { background: rgba(10,18,32,.55); }
dialog.sheet h2 { font: 800 1.3rem/1.15 var(--wide); font-stretch: 112%; }
.sheet-actions { position: sticky; bottom: -18px; background: var(--surface); padding: 12px 0 2px; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { dialog.sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 14px 14px 0 0; } }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; display: flex; gap: 12px; align-items: center; padding: 10px 12px 10px 16px; border-radius: var(--radius); background: var(--ink); color: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.3); max-width: calc(100vw - 24px); }
.toast .btn { background: transparent; color: var(--taxi); border-color: var(--taxi); }
@media (min-width: 960px) { .toast { bottom: 24px; } }

/* ---------- Finanzen ---------- */
.fin-nav { margin-top: -6px; font-size: .92rem; }
.fin-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sky); }
.fin-figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 860px) { .fin-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fin-figures .fig { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); color: inherit; text-decoration: none; min-width: 0; }
.fin-figures a.fig:hover { border-color: var(--line); }
.fin-figures .fig span { font: 600 .82rem/1.2 var(--cond); color: var(--muted); }
.fin-figures .fig b { font: 700 1.5rem/1.15 var(--cond); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fin-figures .fig small { color: var(--muted); font-size: .78rem; }
table.ledger td.bal small, td.bal small { font: 600 .72rem/1 var(--cond); color: var(--muted); margin-left: 2px; }
table.ledger td.owe, .bal.owe { color: var(--caution); }
table.ledger td.credit, .bal.credit { color: var(--go); }
table.ledger td.neg { color: var(--ink-2); }
.todo { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.todo li { padding: 8px 12px; border-left: 4px solid var(--caution-lamp); background: var(--caution-bg); border-radius: var(--radius-s); }
.todo a { font-weight: 700; color: inherit; }

/* Der Kontostand: ein ruhiges Instrument – offen in Bernstein statt Rot, Guthaben in Grün */
.balance-plate { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line-2); border-left: 8px solid var(--go); border-radius: var(--radius); box-shadow: var(--shadow); }
.balance-plate.owe { border-left-color: var(--caution-lamp); }
.balance-plate p { margin: 0; }
.balance-plate .who { font-weight: 700; }
.balance-plate .who a { color: inherit; }
.balance-plate .amount { font: 700 clamp(2.2rem, 7vw, 3.2rem)/1.05 var(--cond); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.balance-plate.owe .amount { color: var(--caution); }
.balance-plate.credit .amount, .balance-plate.even .amount { color: var(--go); }
.balance-plate .state { color: var(--muted); font-weight: 600; }
.balance-plate .facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink-2); max-width: 46ch; }
.my-balance { display: flex; align-items: baseline; gap: 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-2); border-left: 6px solid var(--go); border-radius: var(--radius); color: inherit; text-decoration: none; }
.my-balance.owe { border-left-color: var(--caution-lamp); }
.my-balance b { font: 700 1.3rem/1 var(--cond); }
.my-balance.owe b { color: var(--caution); }
.my-balance span:first-child { font-weight: 700; }
.mandate-text { padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-s); border: 1px solid var(--line-2); }
.mandate-text p { margin: 0 0 6px; } .mandate-text p:last-child { margin: 0; }
.progress.slim { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; min-width: 80px; }
.progress.slim i { display: block; height: 100%; background: var(--sky); }
.progress.slim.full i { background: var(--go); }
.result-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 12px 0 4px; }
.result-line b { font: 700 2rem/1 var(--cond); }
.result-line.minus b { color: var(--caution); }
details.mini { margin: 0; } details.mini summary { font-weight: 600; font-size: .85rem; color: var(--muted); }
details.mini[open] summary { margin-bottom: 6px; }
details.fee, details.run { border-top: 1px solid var(--line-2); padding: 10px 0 0; }
details.fee.off summary b { color: var(--muted); }
details.run summary { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.seg .sep { width: 12px; }
form.inline { display: inline; }
td.nowrap { white-space: nowrap; }
.stack-form { display: grid; gap: 12px; }
.stack-form .row { margin: 0; }
.toolbar h2 { margin: 0; flex: 1 1 auto; }
table.ledger td.r.num, table.ledger td.num { white-space: nowrap; }
.inline-form input:not([type=checkbox]):not([type=radio]), .inline-form select { width: auto; max-width: 100%; }
@media (max-width: 600px) { .hide-s { display: none; } }
.js .nojs-only { display: none; }

/* ---------- Vereinsorganisation ---------- */
.me-strip { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .me-strip { grid-template-columns: 1fr 1fr; } }
.my-duty { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line-2); border-left: 6px solid var(--taxi); border-radius: var(--radius); color: inherit; text-decoration: none; }
.my-duty.none { border-left-color: var(--line); }
.my-duty span:first-child { font-weight: 700; }
.my-duty b { font: 700 1.15rem/1 var(--cond); }
.month-nav h2 { flex: 0 1 auto; min-width: 9em; text-align: center; }
.duty-days { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.duty-days > li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.duty-days > li.past { opacity: .55; }
.duty-days > li.today .duty-date b { background: var(--taxi); color: #000; border-radius: var(--radius-s); padding: 0 4px; }
.duty-date { display: flex; flex-direction: column; align-items: center; }
.duty-date b { font: 700 1.6rem/1.1 var(--cond); }
.duty-date span { font: 600 .8rem/1 var(--cond); color: var(--muted); }
.duty-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.duty-slot { display: flex; flex-direction: column; gap: 4px; min-width: 150px; flex: 1 1 170px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--surface); }
.duty-slot .role { font: 600 .78rem/1.2 var(--cond); color: var(--muted); }
.duty-slot .who { font-weight: 700; }
.duty-slot.free { border-style: dashed; border-color: var(--caution-lamp); background: color-mix(in srgb, var(--caution-bg) 45%, var(--surface)); }
.duty-slot.swap { background: var(--caution-bg); border-color: transparent; }
.duty-slot.mine { box-shadow: inset 4px 0 0 var(--taxi); }
.duty-slot select { width: 100%; }
.duty-remove { align-self: center; }
.duty-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.duty-mine li { display: grid; grid-template-columns: 86px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.duty-mine li.swap { background: color-mix(in srgb, var(--caution-bg) 60%, transparent); }
.duty-mine .dt b { font: 700 1.05rem/1 var(--cond); }
.event-list { list-style: none; margin: 0; padding: 0; }
.event-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.event-list li.cancelled .row { text-decoration: line-through; color: var(--muted); }
.event-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border-radius: var(--radius-s); background: var(--surface-2); border: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.event-date b { font: 700 1.35rem/1 var(--cond); }
.event-date span { font: 600 .72rem/1.1 var(--cond); color: var(--muted); }
.event-list p { margin: 2px 0 0; }
.event-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.event-head h1, .post h1 { margin: 4px 0 6px; font-size: 1.6rem; }
.event-head .when { font-size: 1.05rem; }
.prose { line-height: 1.55; max-width: 72ch; overflow-wrap: anywhere; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 3px 0; }
.signup-groups h3 { font: 700 .95rem/1.2 var(--cond); margin: 8px 0 4px; }
.post header h2 { margin: 0; }
.post header h2 a { color: inherit; text-decoration: none; }
.post header p { margin: 4px 0 8px; }
.post.pinned { border-left: 4px solid var(--taxi); }
.compose summary { font-weight: 700; }
.poll-inputs { display: grid; gap: 6px; max-width: 480px; }
.poll-row { margin: 0 0 6px; }
.poll-option { position: relative; display: flex; justify-content: space-between; gap: 10px; width: 100%; max-width: 560px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.poll-option .bar { position: absolute; top: 0; bottom: 0; left: 0; height: 100%; display: block; background: color-mix(in srgb, var(--sky) 14%, transparent); transition: width .3s; }
.poll-option .label, .poll-option .num { position: relative; }
.poll-row.mine .poll-option { border-color: var(--sky); box-shadow: inset 0 0 0 1px var(--sky); font-weight: 700; }
.poll-option:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) { .poll-option .bar { transition: none; } }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.doc-list p { margin: 2px 0 0; }
.doc-kind { display: grid; place-items: center; height: 40px; border-radius: var(--radius-s); background: var(--plate); color: var(--taxi); font: 700 .75rem/1 var(--cond); letter-spacing: .04em; }
@media (max-width: 600px) { .duty-days > li { grid-template-columns: 44px 1fr; } .duty-remove { grid-column: 2; justify-self: end; } .duty-slot { min-width: 0; } }
.poll-option { align-items: center; } .poll-option svg { width: 16px; height: 16px; vertical-align: -3px; margin-left: 4px; }

/* Vereinsnavigation: Hauptpunkte scrollen, „Mehr“ öffnet ein Menü */
.subnav-wrap { display: flex; align-items: stretch; margin: -8px 0 18px; box-shadow: inset 0 -1px 0 var(--line-2); position: relative; }
.subnav-wrap .subnav { margin: 0; box-shadow: none; flex: 1 1 auto; min-width: 0; }
.subnav-more { position: static; flex: none; margin: 0; }
.subnav-more > summary { list-style: none; cursor: pointer; padding: 10px 12px; color: var(--ink-2); font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav-more > summary::-webkit-details-marker { display: none; }
.subnav-more > summary::after { content: " ▾"; font-size: .8em; }
.subnav-more > summary[aria-current] { color: var(--ink); border-bottom-color: var(--taxi); }
.subnav-more[open] > summary { color: var(--ink); }
.subnav-menu { position: absolute; right: 0; top: 100%; z-index: 30; display: grid; min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.subnav-menu a { padding: 9px 12px; border-radius: var(--radius-s); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.subnav-menu a:hover, .subnav-menu a:focus-visible { background: var(--surface-2); color: var(--ink); }
.subnav-menu a[aria-current] { color: var(--ink); box-shadow: inset 3px 0 0 var(--taxi); }

/* ---------- Technik, Tankstelle, Ausbildung, Berichte ---------- */
.h1-inline { margin: 0; font-size: 1.5rem; flex: 0 1 auto; }
.tech-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tech-ac { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); border-top: 4px solid var(--go); }
.tech-ac.amber { border-top-color: var(--caution-lamp); }
.tech-ac.red { border-top-color: var(--stop); background: color-mix(in srgb, var(--stop-bg) 50%, var(--surface)); }
.tech-ac b { font: 700 1.25rem/1 var(--cond); margin: 0 6px; }
.tech-ac p { margin: 6px 0 0; }
.defects { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.defects li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line-2); border-left: 5px solid var(--line); border-radius: var(--radius-s); }
.defects li.eingeschraenkt { border-left-color: var(--caution-lamp); }
.defects li.unklar { border-left-color: var(--stop); background: color-mix(in srgb, var(--stop-bg) 40%, var(--surface)); }
.defects p { margin: 4px 0 0; }
@media (max-width: 640px) { .defects li { grid-template-columns: 1fr; } }
.tank-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tank { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); }
.tank p { margin: 2px 0 0; }
.tank .big { font: 700 1.6rem/1.1 var(--cond); }
.tank-gauge { position: relative; width: 26px; height: 64px; border: 2px solid var(--ink-2); border-radius: 6px; overflow: hidden; flex: none; }
.tank-gauge i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--sky); }
.tank.low .tank-gauge i { background: var(--caution-lamp); }
.warn-text { color: var(--caution); }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { padding: 8px 0; border-top: 1px solid var(--line-2); }
.notes p { margin: 4px 0 0; }
.month-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 150px; margin: 14px 0 18px; }
.month-bars .mb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.month-bars i { display: block; width: 100%; max-width: 34px; min-height: 2px; background: var(--sky); border-radius: 3px 3px 0 0; }
.month-bars .v { font: 600 .72rem/1 var(--cond); color: var(--ink-2); }
.month-bars .l { font: 600 .72rem/1 var(--cond); color: var(--muted); }
.currency-list { list-style: none; margin: 0; padding: 0; }
.currency-list li { padding: 6px 0; border-top: 1px solid var(--line-2); }
table.census td, table.census th { white-space: nowrap; }
.defect-photo { display: block; max-width: 220px; max-height: 160px; margin-top: 6px; border-radius: var(--radius-s); border: 1px solid var(--line-2); object-fit: cover; }

/* 0.9: öffentliche Vereinsseiten, Landegebühren, Anträge */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shop-offers { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.shop-offer { display: block; margin: 0; cursor: pointer; }
.shop-offer input { position: absolute; opacity: 0; pointer-events: none; }
.shop-offer > span { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); font-weight: 400; }
.shop-offer > span .num { font-size: 1.25rem; font-weight: 700; }
.shop-offer input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shop-offer input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; margin: 0 0 12px; }
.facts-grid dt { font-size: .8rem; color: var(--muted); }
.facts-grid dd { margin: 0; overflow-wrap: anywhere; }
.facts-grid .wide { grid-column: 1 / -1; }
.panel.app.abgelehnt, .panel.app.angenommen { opacity: .75; }
.prose + form { margin-top: 18px; }

/* 0.10: Umzugsassistent */
.move-steps { margin: 14px 0 18px; padding-left: 1.4em; display: grid; gap: 10px; max-width: 72ch; }
.move-steps li b { display: block; }
.move-steps li span { color: var(--ink-2); }
.move-upload { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.dropzone { flex: 1 1 280px; display: grid; justify-items: start; gap: 2px; padding: 16px 18px; border: 2px dashed var(--line); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; margin: 0; font-weight: 600; }
.dropzone small { font-weight: 400; color: var(--muted); }
.dropzone input { margin-top: 8px; width: 100%; font-weight: 400; }
.dropzone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.move-upload .btn { align-self: center; }
.move-linked { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.move-map select { min-width: 220px; }
.move-map tr.unmapped td:first-child b { color: var(--muted); font-weight: 600; }
.move-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.move-plan del { color: var(--muted); }
.move-plan ins { text-decoration: none; font-weight: 600; }
.mv-err { color: var(--stop, #b42318); font-weight: 600; }
.mv-warn { color: var(--muted); }
.mv-warn::before { content: "⚠ "; }
.mv-conflict { font-weight: 600; }
.move-plan tr.mv-konflikt td { background: var(--caution-bg, #fff4d6); }
.dropzone svg { width: 22px; height: 22px; }

/* 0.11: Spenden, Ehrenamt */
.donor-group { border-top: 1px solid var(--line-2); padding: 12px 0; }
.donor-group:first-of-type { border-top: 0; }
.donor-group h3 { margin: 0; font-size: 1rem; }
.donor-group .toolbar b { margin-left: auto; }
.allowance { border-top: 1px solid var(--line-2); padding: 12px 0; display: grid; gap: 8px; }
.allowance.ended { opacity: .6; }
.quota-bar { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; max-width: 520px; }
.quota-bar span { display: block; height: 100%; background: var(--ink-2); border-radius: 4px; }
.claims li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }

/* 0.12: PPR, Grenzen, Hinweise */
.ppr-item { border-top: 1px solid var(--line-2); padding: 12px 0; display: grid; gap: 6px; }
.ppr-item:first-of-type { border-top: 0; }
.ppr-item p { margin: 0; }
.limit-row { display: grid; gap: 6px; padding: 8px 0; }
.limit-row.near .quota-bar span { background: var(--caution); }
.limit-row.over .quota-bar span { background: var(--stop); }
.panel.hints p { margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel.hints svg { width: 18px; height: 18px; }
.unclaimed li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Mitgliederversammlung (0.13) */
.pre { white-space: pre-line; }
.bad-text { color: var(--stop); }
.center { text-align: center; }
.fig.warn b { color: var(--stop); }
.asm-list { list-style: none; padding: 0; margin: 0; }
.asm-row { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line-2); }
.asm-row:first-child { border-top: 0; }
.asm-when { margin: 4px 0 12px; }
.asm-roles { align-items: end; margin-top: 12px; }
.asm-items { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.asm-item { border-top: 1px solid var(--line-2); padding: 14px 0; display: grid; gap: 8px; }
.asm-item:first-child { border-top: 0; }
.asm-item p { margin: 0; }
.asm-item-title { font-weight: 600; }
.asm-item-tools { gap: 6px; }
.asm-vote { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; display: grid; gap: 6px; }
.asm-vote.offen { border-left-color: var(--caution-lamp); background: var(--caution-bg); padding-right: 12px; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.asm-vote.geschlossen { border-left-color: var(--ink-2); }
.asm-count .row { align-items: end; }
.asm-room { max-width: 640px; margin: 0 auto; display: grid; gap: 14px; }
.asm-room-head h1 { font: 800 1.5rem/1.15 var(--wide); font-stretch: 112%; margin: 2px 0 6px; }
.asm-room-head p { margin: 2px 0; }
.asm-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.bare .asm-card { background: var(--surface-2); }
.asm-card h2 { margin: 0; font-size: 1.15rem; }
.asm-card p { margin: 0; }
.asm-ballot { border: 2px solid var(--ink); }
.asm-voice { display: grid; gap: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.asm-voice:first-of-type { border-top: 0; padding-top: 0; }
.asm-yna { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.asm-yna .btn.big, .asm-presence .btn.big { min-height: 56px; font: 700 1.2rem/1 var(--cond); letter-spacing: .02em; }
.asm-yna .btn.yes { background: var(--go); border-color: var(--go); color: #fff; }
.asm-yna .btn.no { background: var(--stop); border-color: var(--stop); color: #fff; }
.asm-options { display: grid; gap: 8px; }
.asm-options .check-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.asm-done { font-weight: 700; color: var(--go); }
.asm-agenda { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.asm-result { color: var(--ink-2); }
.bare .card:has(.asm-beamer) { max-width: none; background: var(--ink); color: #fff; min-height: calc(100vh - 48px); }
.bare .card:has(.asm-beamer) .brand { color: #fff; }
.asm-beamer { display: grid; gap: 18px; padding: 2vh 3vw; }
.asm-beamer h1 { font: 800 clamp(1.8rem, 4.4vw, 4rem)/1.05 var(--wide); font-stretch: 112%; margin: 0; }
.asm-b-club, .asm-b-quorum { margin: 0; font-size: clamp(1rem, 1.6vw, 1.4rem); opacity: .8; }
.asm-b-kicker { margin: 0; font: 700 clamp(1rem, 1.8vw, 1.6rem)/1 var(--cond); color: var(--taxi); text-transform: uppercase; letter-spacing: .06em; }
.asm-b-count { font-size: clamp(1.4rem, 3vw, 2.6rem); margin: 0; }
.asm-b-count b { color: var(--taxi); font-size: 1.6em; }
.asm-b-bars { display: grid; gap: 12px; max-width: 1100px; }
.asm-b-bar { display: grid; grid-template-columns: minmax(120px, 22%) 1fr 5ch; gap: 16px; align-items: center; font-size: clamp(1.1rem, 2.2vw, 2rem); }
.asm-b-bar i { display: block; height: 1.1em; width: var(--w); min-width: 3px; background: var(--taxi); border-radius: 3px; }
.asm-b-bar b { text-align: right; }
.asm-b-outcome { margin: 8px 0 0; font: 700 clamp(1.6rem, 3.6vw, 3.2rem)/1.1 var(--cond); }
.asm-b-outcome.ok { color: var(--taxi); }
@media (max-width: 520px) { .asm-yna { grid-template-columns: 1fr; } }
.bare .card:has(.asm-beamer) > form:last-child { display: none; }

/* Rollen & Rechte (0.14) */
.base-rights { margin: 4px 0 14px; padding-left: 20px; color: var(--ink-2); }
.rights-matrix th.rot { height: 150px; vertical-align: bottom; padding: 4px 2px; min-width: 26px; }
.rights-matrix th.rot span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 500; font-size: .78rem; }
.rights-matrix td.c { text-align: center; padding: 4px 2px; }
.rights-matrix .dot { color: var(--line); }
.rights-matrix .dot.on { color: var(--go); }
.rights-matrix tbody th { white-space: nowrap; text-align: left; font-weight: 600; }
.role-card details > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.perm-group { border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 8px 12px 10px; margin: 0; display: grid; gap: 6px; }
.perm-group legend { font-weight: 700; font-size: .85rem; padding: 0 4px; }
.perm-group.off { opacity: .55; }
.perm-group .check-row small { display: block; color: var(--muted); font-size: .78rem; }
.module-checks { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.module-checks small { color: var(--muted); }
.flash.info { background: var(--surface-2); border-left: 3px solid var(--sky); }

/* 0.14 Startliste: aufklappbare Zusatzfelder, Eingabe mit Knopf */
.ops-more { margin: 10px 0; border: 1px dashed var(--line); border-radius: var(--radius-s); padding: 6px 10px; }
.ops-more > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.ops-more[open] > summary { margin-bottom: 6px; }
.input-btn { display: flex; gap: 6px; }
.input-btn input { flex: 1; min-width: 0; }
.ops-card .tag.mode { background: var(--warn-bg, #fff3cd); }
.flightday-list { padding-left: 1.6em; }
.flightday-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.flightday-list li .small { display: block; }
.res.pending { border-left-style: dashed; opacity: .85; }
.res.blocked { border-left-color: var(--stop, #b42318); background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, var(--surface) 6px 12px); }
.res-cancel { display: flex; gap: 4px; flex-wrap: wrap; }
.res-cancel select { min-height: 26px; padding: 0 4px; font-size: .78rem; max-width: 100%; }
summary > h2.inline, summary > h3.inline { display: inline; margin: 0; vertical-align: middle; }
details.panel > summary { cursor: pointer; }
/* Formulare, die selbst das Raster sind */
form.row { display: grid; gap: 12px; }
@media (min-width: 640px) { form.row.c2 { grid-template-columns: 1fr 1fr; } form.row.c3 { grid-template-columns: repeat(3, 1fr); } form.row.c4 { grid-template-columns: repeat(4, 1fr); } form.row.c5 { grid-template-columns: repeat(5, 1fr); } }
.mx-intervals input { width: 100%; min-width: 7em; }
.mx-intervals th { text-align: left; white-space: nowrap; }

/* 0.14: Bankimport, Strichliste */
.bank-tx { border-top: 1px solid var(--line-2); padding: 10px 0; }
.bank-tx:first-of-type { border-top: 0; }
.bank-tx header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.bank-tx p { margin: 4px 0; overflow-wrap: anywhere; }
.bank-tx form.inline-form { flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bank-tx form.inline-form select { max-width: 100%; }
.kiosk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kiosk-grid form { margin: 0; height: 100%; }
.kiosk-item { width: 100%; height: 100%; min-height: 96px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 14px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); color: inherit; font: inherit; cursor: pointer; }
.kiosk-item b { font-size: 1.05rem; }
.kiosk-item:hover { border-color: var(--line); }
.kiosk-item:active { transform: translateY(1px); }
.kiosk-item:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.theory-totals { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.theory-totals li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.theory-totals li > span:first-child { flex: 1 1 auto; }
.theory-totals .progress { flex: 1 0 100%; }
.lessons { display: grid; gap: 12px; }
.lessons article { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; }
.lessons h3 { margin: 0; font-size: 1rem; }
.lessons p { margin: 4px 0; }
.emergency-call { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--radius); background: #B3261E; color: #fff; text-decoration: none; }
.emergency-call b { font-size: 2.4rem; line-height: 1; letter-spacing: .02em; }
.emergency-call:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.prose { max-width: 72ch; }
.my-tasks ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.my-tasks a { display: flex; gap: 10px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line-2); border-left-width: 4px; border-radius: var(--radius); color: inherit; text-decoration: none; }
.my-tasks a:hover { border-color: var(--line); }
.my-tasks li.warn a { border-left-color: #F0A202; }
.my-tasks li.bad a { border-left-color: #B3261E; }
.my-tasks b { font-size: 1.15rem; min-width: 1.6em; }
.metar-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 16px; margin: 0 0 8px; }
.metar-facts dt { font-size: .78rem; color: var(--muted); }
.metar-facts dd { margin: 0; font-weight: 600; }
.metar-raw { font-size: .82rem; overflow-wrap: anywhere; white-space: pre-wrap; margin: 4px 0; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.link-list li:last-child { border-bottom: 0; }
form.stack + .panel, form.stack + form.stack { margin-top: 16px; }

/* Sprachwahl und gelesene Hinweise (früher Inline-Styles) */
.btn[name="lang"][aria-pressed="true"]{font-weight:700;color:var(--ink)}
.check.is-read{opacity:.65}
.report-item { box-shadow: none; margin-top: 12px; } .report-item h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bare-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 24px; font-size: .85rem; }
.bare-legal a { color: var(--muted); }
.legal-club h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal-club address { font-style: normal; margin: 8px 0; }
.legal-club .kv { margin-top: 12px; }
.plan-flag { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--taxi); color: #000; font: 700 .72rem/1 var(--body, system-ui); vertical-align: 3px; }
/* Mandatsübertragung zu Stripe (0.21) */
.steps-mini { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; counter-reset: sm; }
.steps-mini li { counter-increment: sm; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); font-size: .88rem; color: var(--muted); }
.steps-mini li::before { content: counter(sm); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); color: var(--ink); font-weight: 700; font-size: .78rem; }
.steps-mini li.now { color: var(--ink); box-shadow: inset 0 0 0 2px var(--taxi); }
.steps-mini li.done::before { content: "✓"; background: var(--go, #1F8A4C); color: #fff; }
.pre-wrap { white-space: pre-wrap; font-family: inherit; }
