/* TRIPORYX – Gestaltung
   Idee: Leitsystem am Flughafen. Geschäftlich = Kobaltblau, privat = Signal-Amber (Bleisure-Trennung als Farbcode),
   Archivo (Breitenachse) für Überschriften und Text, IBM Plex Mono für Codes, Beträge, Daten.
   Alle Farben als Token; Dunkelmodus folgt dem System oder data-theme. */

@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url(fonts/archivo-latin.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.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-display: swap; src: url(fonts/plexmono-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Plex Mono'; font-weight: 400; font-display: swap; src: url(fonts/plexmono-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }
@font-face { font-family: 'Plex Mono'; font-weight: 600; font-display: swap; src: url(fonts/plexmono-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Plex Mono'; font-weight: 600; font-display: swap; src: url(fonts/plexmono-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4; }

/* Layout: schmale Kopfleiste, Inhalt in einer 1180er-Spur, Werkzeuge als Karten mit „Bordkarten“-Perforation. */
:root {
  --grund: #f2f4f7;        /* Hallenboden: kühles Hellgrau */
  --flaeche: #ffffff;
  --flaeche-2: #e9edf3;
  --tinte: #0b1626;        /* Nachtflug */
  --tinte-2: #3c4a5e;
  --tinte-3: #66758a;
  --linie: #d5dce6;
  --geschaeft: #1748b8;    /* Kobalt = geschäftlich */
  --geschaeft-hell: #e3ebfb;
  --privat: #e59a00;       /* Signal-Amber = privat */
  --privat-tinte: #8a5a00;
  --privat-hell: #fdf1d6;
  --ok: #17845b;  --ok-hell: #dcf2e8;
  --offen: #c03a2b; --offen-hell: #fbe4e1;
  --fokus: #1748b8;
  --auf-geschaeft: #ffffff;
  --schatten: 0 1px 2px rgba(11, 22, 38, .06), 0 8px 24px -12px rgba(11, 22, 38, .18);
  --schrift: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --r: 10px;
  --spur: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grund: #0a111c; --flaeche: #111b2a; --flaeche-2: #18243a; --tinte: #e8eef6; --tinte-2: #b5c1d1; --tinte-3: #8696ab;
    --linie: #26354d; --geschaeft: #79a6ff; --geschaeft-hell: #16274a; --privat: #ffbf3c; --privat-tinte: #ffd27a; --privat-hell: #3a2c0e;
    --ok: #4cc795; --ok-hell: #10352a; --offen: #ff8a7a; --offen-hell: #3e1a17; --fokus: #79a6ff; --auf-geschaeft: #07101d;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --grund: #0a111c; --flaeche: #111b2a; --flaeche-2: #18243a; --tinte: #e8eef6; --tinte-2: #b5c1d1; --tinte-3: #8696ab;
  --linie: #26354d; --geschaeft: #79a6ff; --geschaeft-hell: #16274a; --privat: #ffbf3c; --privat-tinte: #ffd27a; --privat-hell: #3a2c0e;
  --ok: #4cc795; --ok-hell: #10352a; --offen: #ff8a7a; --offen-hell: #3e1a17; --fokus: #79a6ff; --auf-geschaeft: #07101d;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--grund); color: var(--tinte); font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%; }
img, svg { max-width: 100%; }
a { color: var(--geschaeft); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { line-height: 1.12; text-wrap: balance; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.22rem; font-weight: 700; font-stretch: 104%; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
.mono, code, kbd { font-family: var(--mono); font-size: .92em; }
.zahl { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.klein { font-size: .9rem; color: var(--tinte-2); }
.leise { color: var(--tinte-3); }
.etikett { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tinte-3); font-weight: 600; }
.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.huelle { max-width: var(--spur); margin-inline: auto; padding-inline: 20px; }
.schmal { max-width: 760px; }

/* ── Kopf ── */
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--grund) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--linie); }
.kopf .huelle { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.marke { display: inline-flex; align-items: center; color: var(--tinte); text-decoration: none; flex: none; }
.marke svg { height: 22px; width: auto; display: block; }
.navi { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.navi a { color: var(--tinte-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.navi a:hover, .navi a.aktiv { color: var(--tinte); background: var(--flaeche-2); }
.navi .knopf { margin-left: 8px; color: var(--auf-geschaeft); }
.menue-knopf { display: none; margin-left: auto; background: none; border: 1px solid var(--linie); color: var(--tinte); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 980px) {
  .menue-knopf { display: inline-flex; gap: 8px; align-items: center; }
  .navi { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 10px 20px 18px; box-shadow: var(--schatten); }
  .navi.offen { display: flex; }
  .navi a { padding: 12px 10px; font-size: 1.05rem; }
  .navi .knopf { margin: 8px 0 0; justify-content: center; }
}

/* ── Knöpfe und Felder ── */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: .78em 1.25em; border-radius: 9px; border: 1.5px solid var(--geschaeft); background: var(--geschaeft); color: var(--auf-geschaeft); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.knopf:hover { text-decoration: none; transform: translateY(-1px); }
.knopf:active { transform: none; }
.knopf.sek { background: transparent; color: var(--geschaeft); }
.knopf.amber { background: var(--privat); border-color: var(--privat); color: #1d1300; }
.knopf.klein { font-size: .88rem; padding: .5em .85em; }
.knopf.voll { width: 100%; }
.knopf[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.link-knopf { background: none; border: 0; padding: 0; font: inherit; color: var(--geschaeft); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }

.feld { display: grid; gap: 6px; min-width: 0; }
.feld > label, .feld > .etikett { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-3); font-weight: 600; }
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="email"], input[type="search"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--tinte); background: var(--flaeche); border: 1.5px solid var(--linie); border-radius: 8px; padding: .62em .75em; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--geschaeft); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--geschaeft) 22%, transparent); }
textarea { min-height: 96px; resize: vertical; }
.wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.wahl label { display: inline-flex; align-items: center; gap: 6px; padding: .42em .8em; border: 1.5px solid var(--linie); border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; background: var(--flaeche); user-select: none; }
.wahl input { position: absolute; opacity: 0; pointer-events: none; }
.wahl label:has(input:checked) { border-color: var(--geschaeft); background: var(--geschaeft-hell); color: var(--tinte); }
.wahl label:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
.wahl.privat label:has(input:checked) { border-color: var(--privat); background: var(--privat-hell); }
.haken { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.haken input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--geschaeft); flex: none; }
.raster { display: grid; gap: 14px; }
.raster.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.raster.drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raster.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .raster.drei, .raster.vier { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .raster.zwei, .raster.drei, .raster.vier { grid-template-columns: minmax(0, 1fr); } }

/* ── Abschnitte ── */
.abschnitt { padding-block: clamp(48px, 7vw, 96px); }
.abschnitt.flaeche { background: var(--flaeche); border-block: 1px solid var(--linie); }
.abschnitt.dunkel { background: var(--tinte); color: var(--grund); }
.abschnitt.dunkel .leise, .abschnitt.dunkel .klein { color: color-mix(in srgb, var(--grund) 70%, transparent); }
.abschnitt.dunkel a { color: var(--privat); }
.kopfzeile { display: grid; gap: 10px; margin-bottom: 32px; max-width: 760px; }
.kopfzeile p { color: var(--tinte-2); font-size: 1.1rem; margin: 0; }
.abschnitt.dunkel .kopfzeile p { color: color-mix(in srgb, var(--grund) 78%, transparent); }

/* ── Startbereich mit Bordkarte ── */
.start { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.start-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 960px) { .start-raster { grid-template-columns: minmax(0, 1fr); } }
.start h1 { margin-bottom: .35em; }
.start h1 .g { color: var(--geschaeft); }
.start h1 .p { color: var(--privat-tinte); }
.start .lead { font-size: 1.2rem; color: var(--tinte-2); max-width: 34ch; }
.belege-zeile { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .92rem; color: var(--tinte-2); }
.belege-zeile span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }

.bordkarte { --loch: 13px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px; background: var(--flaeche); border-radius: 16px; box-shadow: var(--schatten); border: 1px solid var(--linie); }
.bordkarte::before { content: ""; position: absolute; top: 0; bottom: 0; right: 190px; width: 0; border-left: 2px dashed var(--linie); }
.bordkarte .bk-haupt { padding: 22px 24px 24px; display: grid; gap: 16px; min-width: 0; }
.bordkarte .bk-stub { padding: 22px 18px; font-size: .95rem; display: grid; align-content: space-between; gap: 14px; background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche)); border-radius: 0 16px 16px 0; min-width: 0; }
.bk-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bk-kopf .etikett { color: var(--geschaeft); }
.bk-route { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.3fr); gap: 12px; align-items: end; }
.bk-route .pfeil { font-family: var(--mono); color: var(--tinte-3); padding-bottom: 12px; }
.bk-code { font-family: var(--mono); font-weight: 600; font-size: 2.1rem; line-height: 1; letter-spacing: .02em; }
.bk-stub .bk-code { font-size: 1.5rem; }
.ring { --wert: 0; --farbe: var(--geschaeft); width: 112px; aspect-ratio: 1; max-width: 100%; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--farbe) calc(var(--wert) * 1%), var(--flaeche-2) 0); position: relative; }
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--flaeche); }
.ring b { position: relative; z-index: 1; font-family: var(--mono); font-size: 1.5rem; }
@media (max-width: 640px) {
  .bordkarte { grid-template-columns: minmax(0, 1fr); }
  .bordkarte::before { display: none; }
  .bordkarte .bk-stub { border-radius: 0 0 16px 16px; grid-template-columns: auto minmax(0, 1fr); align-items: center; border-top: 2px dashed var(--linie); }
}

/* ── Karten, Kacheln ── */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; padding: 22px; min-width: 0; }
.karte.erhoben { box-shadow: var(--schatten); }
.werkzeug { display: grid; gap: 10px; align-content: start; text-decoration: none; color: inherit; position: relative; }
.werkzeug:hover { border-color: var(--geschaeft); }
.werkzeug h3 { margin: 0; }
.werkzeug p { margin: 0; color: var(--tinte-2); font-size: .98rem; }
.werkzeug .weiter { font-weight: 700; color: var(--geschaeft); margin-top: 4px; }
.werkzeug .code { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--tinte-3); }

/* Status-Pillen */
.pille { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; padding: .22em .65em; border-radius: 999px; background: var(--flaeche-2); color: var(--tinte-2); white-space: nowrap; }
.pille.ok { background: var(--ok-hell); color: var(--ok); }
.pille.offen { background: var(--offen-hell); color: var(--offen); }
.pille.g { background: var(--geschaeft-hell); color: var(--geschaeft); }
.pille.p { background: var(--privat-hell); color: var(--privat-tinte); }

/* Bleisure-Balken */
.split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--flaeche-2); }
.split .g { background: var(--geschaeft); }
.split .p { background: var(--privat); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--tinte-2); }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.legende .g i { background: var(--geschaeft); }
.legende .p i { background: var(--privat); }

/* Beleg-Optik (Kassenzettel) */
.beleg { background: var(--flaeche); padding: 22px 22px 30px; font-family: var(--mono); font-size: .92rem; position: relative; border: 1px solid var(--linie); border-bottom: 0; min-width: 0;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 16px 10px repeat-x; }
.beleg .zeile { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.beleg .zeile span:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.beleg .summe { border-top: 1.5px dashed var(--linie); margin-top: 8px; padding-top: 8px; font-weight: 600; font-size: 1.02rem; }
.beleg .g { color: var(--geschaeft); }
.beleg .p { color: var(--privat-tinte); }

/* Kennzahlen */
.kennzahl { display: grid; gap: 2px; }
.kennzahl b { font-family: var(--mono); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kennzahl span { color: var(--tinte-2); font-size: .92rem; }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: .62em .85em; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--tinte-3); font-weight: 600; background: var(--flaeche-2); position: sticky; top: 0; }
td.z, th.z { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--geschaeft-hell) 45%, transparent); }
tfoot td { font-weight: 700; border-top: 2px solid var(--linie); border-bottom: 0; }

/* ── Artikel / Ratgeber ── */
.pfad { font-size: .85rem; color: var(--tinte-3); display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 18px; }
.pfad a { color: var(--tinte-3); }
.pfad span[aria-hidden] { opacity: .5; }
.artikel-kopf { padding-block: clamp(28px, 5vw, 56px) 8px; }
.artikel-kopf .lead { font-size: 1.2rem; color: var(--tinte-2); max-width: 62ch; }
.stand { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: .78rem; color: var(--tinte-3); margin-top: 6px; }
.artikel { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 56px); padding-block: 24px 72px; align-items: start; }
@media (max-width: 980px) { .artikel { grid-template-columns: minmax(0, 1fr); } }
.text { max-width: 70ch; min-width: 0; }
.text h2 { margin-top: 1.6em; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.text h3 { margin-top: 1.4em; }
.text ul, .text ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.text li { margin-bottom: .4em; }
.text li::marker { color: var(--tinte-3); }
.text .tabelle-rahmen { margin: 1em 0 1.4em; }
.seitenleiste { position: sticky; top: 88px; display: grid; gap: 16px; min-width: 0; }
@media (max-width: 980px) { .seitenleiste { position: static; } }
.hinweis { border: 1px solid var(--linie); border-left: 4px solid var(--geschaeft); background: var(--flaeche); border-radius: 10px; padding: 14px 16px; margin: 1.2em 0; }
.hinweis.privat { border-left-color: var(--privat); }
.hinweis.warnung { border-left-color: var(--offen); }
.hinweis.ok { border-left-color: var(--ok); }
.hinweis > :last-child { margin-bottom: 0; }
.hinweis strong:first-child { display: block; margin-bottom: 4px; }
.geldzeit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; margin: 1.2em 0 1.6em; background: var(--flaeche); }
.geldzeit > div { padding: 14px 16px; display: grid; gap: 4px; }
.geldzeit > div + div { border-left: 1px solid var(--linie); }
.geldzeit .etikett { color: var(--geschaeft); }
@media (max-width: 520px) { .geldzeit { grid-template-columns: minmax(0, 1fr); } .geldzeit > div + div { border-left: 0; border-top: 1px solid var(--linie); } }
.quellen { font-size: .88rem; color: var(--tinte-2); border-top: 1px solid var(--linie); margin-top: 2.2em; padding-top: 1em; }
.quellen ol { padding-left: 1.2em; }
.quellen a { word-break: break-word; }
details.faq { border-bottom: 1px solid var(--linie); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--mono); color: var(--tinte-3); font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-top: 10px; color: var(--tinte-2); }
.verwandt { display: grid; gap: 6px; }
.verwandt a { display: block; padding: 10px 12px; border: 1px solid var(--linie); border-radius: 10px; background: var(--flaeche); text-decoration: none; color: var(--tinte); font-weight: 600; font-size: .95rem; }
.verwandt a:hover { border-color: var(--geschaeft); }
.verwandt a small { display: block; font-weight: 400; color: var(--tinte-3); font-size: .82rem; }
.cta-box { background: var(--tinte); color: var(--grund); border-radius: 14px; padding: 20px; display: grid; gap: 10px; }
.cta-box p { margin: 0; color: color-mix(in srgb, var(--grund) 78%, transparent); font-size: .95rem; }
.cta-box .knopf { background: var(--privat); border-color: var(--privat); color: #1d1300; }
.schritte { counter-reset: s; display: grid; gap: 14px; padding: 0; list-style: none; }
.schritte > li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.schritte > li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--geschaeft-hell); color: var(--geschaeft); font-family: var(--mono); font-weight: 600; }

/* ── Werkzeug-Oberflächen ── */
.werkbank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.werkbank.breit-links { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
@media (max-width: 900px) { .werkbank, .werkbank.breit-links { grid-template-columns: minmax(0, 1fr); } }
.ergebnis { position: sticky; top: 84px; display: grid; gap: 16px; }
@media (max-width: 900px) { .ergebnis { position: static; } }
.beispiel-band { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--privat-tinte); background: var(--privat-hell); border-radius: 10px; padding: 8px 12px; margin-bottom: 14px; }
.reiter { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--linie); margin-bottom: 20px; scrollbar-width: none; }
.reiter button { font: inherit; font-weight: 700; background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; color: var(--tinte-3); cursor: pointer; white-space: nowrap; }
.reiter button[aria-selected="true"] { color: var(--tinte); border-bottom-color: var(--geschaeft); }
.reiter button .zahl { font-size: .8rem; margin-left: 4px; color: var(--tinte-3); }
.aufgabe { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.aufgabe:last-child { border-bottom: 0; }
.aufgabe input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--ok); cursor: pointer; }
.aufgabe h4 { margin: 0 0 2px; font-size: 1rem; }
.aufgabe p { margin: 0; color: var(--tinte-2); font-size: .94rem; }
.aufgabe .mehr { font-size: .9rem; margin-top: 6px; }
.aufgabe.erledigt h4 { text-decoration: line-through; color: var(--tinte-3); }
.aufgabe.erledigt p { display: none; }
.aufgabe .faellig { font-family: var(--mono); font-size: .78rem; color: var(--tinte-3); text-align: right; white-space: nowrap; }
.aufgabe .faellig.dringend { color: var(--offen); font-weight: 600; }
.aufgabe .vorteil { display: inline-block; margin-top: 6px; font-size: .82rem; color: var(--ok); font-weight: 600; }
.gruppe-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 26px 0 4px; }
.gruppe-kopf:first-child { margin-top: 0; }
.tageband { display: grid; gap: 8px; }
.tag { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--flaeche); border: 1px solid var(--linie); border-left: 5px solid var(--linie); border-radius: 10px; }
.tag.geschaeft { border-left-color: var(--geschaeft); }
.tag.privat { border-left-color: var(--privat); }
.tag.reise { border-left-color: var(--tinte-3); }
.tag .datum { font-family: var(--mono); font-size: .88rem; }
.tag .datum b { display: block; font-size: 1rem; }
.tag .optionen { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .88rem; }
.tag .optionen select { width: auto; padding: .35em .5em; font-size: .9rem; }
.tag .betrag { font-family: var(--mono); font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 620px) { .tag { grid-template-columns: minmax(0, 1fr) auto; } .tag .optionen { grid-column: 1 / -1; grid-row: 2; } }
.mahlzeit { display: inline-flex; gap: 4px; align-items: center; }
.mahlzeit input { accent-color: var(--offen); }
.beleg-liste { display: grid; gap: 8px; }
.beleg-eintrag { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; }
.beleg-eintrag .bild { width: 54px; height: 54px; border-radius: 8px; background: var(--flaeche-2); display: grid; place-items: center; overflow: hidden; font-family: var(--mono); font-size: .7rem; color: var(--tinte-3); }
.beleg-eintrag .bild img { width: 100%; height: 100%; object-fit: cover; }
.beleg-eintrag .titel { font-weight: 700; }
.beleg-eintrag .meta { font-size: .85rem; color: var(--tinte-3); }
.leerzustand { border: 2px dashed var(--linie); border-radius: 14px; padding: 28px; text-align: center; color: var(--tinte-2); display: grid; gap: 10px; justify-items: center; }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; background: var(--flaeche); }
.fakten > div { padding: 12px 14px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin: 0 -1px -1px 0; min-width: 0; }
.fakten dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-3); font-weight: 600; }
.fakten dd { margin: 2px 0 0; font-weight: 600; font-size: .98rem; }
.vergleich-spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.option { position: relative; }
.option.sieger { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-hell); }
.option .sieger-marke { position: absolute; top: -11px; left: 18px; background: var(--ok); color: var(--flaeche); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.balken-zeile { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: .9rem; }
.balken-zeile .bahn { height: 10px; background: var(--flaeche-2); border-radius: 999px; overflow: hidden; display: flex; }
.balken-zeile .bahn i { display: block; height: 100%; }
.balken-zeile .bahn .preis { background: var(--geschaeft); }
.balken-zeile .bahn .zeit { background: color-mix(in srgb, var(--geschaeft) 45%, var(--flaeche-2)); }
.balken-zeile .z { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--tinte); color: var(--grund); padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 100; box-shadow: var(--schatten); max-width: calc(100vw - 32px); }

/* ── Fuß ── */
.fuss { background: var(--tinte); color: color-mix(in srgb, var(--grund) 80%, transparent); padding-block: 56px 32px; font-size: .92rem; margin-top: 0; }
.fuss a { color: var(--grund); text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-raster { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 900px) { .fuss-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fuss h4 { color: var(--grund); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.fuss .marke svg { height: 20px; }
.fuss .marke { color: var(--grund); }
.fuss-unten { border-top: 1px solid color-mix(in srgb, var(--grund) 16%, transparent); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* Druck: Abrechnungen und Checklisten sauber auf Papier */
@media print {
  .kopf, .fuss, .seitenleiste, .reiter, .kein-druck, .knopf, .toast, .beispiel-band { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .karte, .tabelle-rahmen { border-color: #999; box-shadow: none; }
  .artikel, .werkbank { display: block; }
  a { color: #000; text-decoration: none; }
  [data-druck-alles] [hidden] { display: block !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Druckansicht der Abrechnung */
.nur-druck { display: none; }
@media print {
  .nur-druck { display: block; }
  body.druck-bericht #inhalt * { visibility: hidden; }
  body.druck-bericht #inhalt .nur-druck, body.druck-bericht #inhalt .nur-druck * { visibility: visible; }
  body.druck-bericht #inhalt .nur-druck { position: absolute; left: 0; top: 0; width: 100%; }
  .nur-druck table { font-size: 9.5pt; }
  .nur-druck th { position: static; background: #eee; color: #000; }
}

/* Cockpit */
.cockpit-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 8px; }
.cockpit-kopf h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin-bottom: 6px; }
.cockpit-kopf .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--tinte-2); font-size: .95rem; align-items: center; }
.cockpit-zahlen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--linie); border-radius: 12px; background: var(--flaeche); margin: 18px 0 24px; overflow: hidden; }
.cockpit-zahlen > div { padding: 14px 16px; border-right: 1px solid var(--linie); min-width: 0; }
.cockpit-zahlen > div:last-child { border-right: 0; }
@media (max-width: 720px) { .cockpit-kopf .ring { display: none; } .cockpit-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cockpit-zahlen > div:nth-child(2) { border-right: 0; } .cockpit-zahlen > div:nth-child(-n+2) { border-bottom: 1px solid var(--linie); } .cockpit-kopf { grid-template-columns: minmax(0, 1fr); } }
.reiseliste { display: grid; gap: 8px; }
.reiseliste .eintrag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 10px; }
.reiseliste .eintrag.aktiv { border-color: var(--geschaeft); box-shadow: 0 0 0 2px var(--geschaeft-hell); }

/* Route und Herkunft in der Bordkarte */
.bk-mehr { border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; background: var(--grund); }
.bk-mehr > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--tinte-2); }
.bk-mehr[open] > summary { margin-bottom: 8px; }
.station-zeile { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "nr ort ort weg" ". ab art ."; gap: 6px 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--linie); }
.station-zeile .nr { grid-area: nr; } .station-zeile [data-ort] { grid-area: ort; } .station-zeile [data-ab] { grid-area: ab; } .station-zeile [data-art] { grid-area: art; } .station-zeile [data-weg] { grid-area: weg; }
.station-zeile .nr { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--geschaeft-hell); color: var(--geschaeft); font-family: var(--mono); font-size: .78rem; font-weight: 600; }
.station-zeile input, .station-zeile select { padding: .45em .55em; font-size: .92rem; }
.route-zeile { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--mono); font-size: .85rem; color: var(--tinte-2); }
.route-zeile b { color: var(--tinte); }

/* Länder-Karte */
.land-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 14px; margin-bottom: 12px; }
.land-karte > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 16px 18px; }
.land-karte > summary::-webkit-details-marker { display: none; }
.land-karte > summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--tinte-3); font-size: 1.2rem; }
.land-karte[open] > summary::after { content: "–"; }
.lk-name { font-weight: 800; font-size: 1.15rem; font-stretch: 108%; }
.lk-inhalt { padding: 0 18px 18px; display: grid; gap: 14px; }
.lk-inhalt .hinweis { margin: 0; }
.land-teil h3 { font-size: 1.05rem; margin: 6px 0 8px; }
.land-teil h4 { font-size: .95rem; margin: 12px 0 6px; color: var(--tinte-2); }
.vertretungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.vertretung { border: 1px solid var(--linie); border-radius: 10px; padding: 12px; display: grid; gap: 6px; background: var(--grund); min-width: 0; }
.v-kopf { display: grid; gap: 2px; }
.v-kontakt { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9rem; }
.v-kontakt a { word-break: break-word; }
.v-notfall { color: var(--offen); font-weight: 700; }
.lk-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lk-links a { padding: 6px 10px; border: 1px solid var(--linie); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; background: var(--grund); }
.lk-links a:hover { border-color: var(--geschaeft); }

/* Preise */
.preis-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .preis-raster { grid-template-columns: minmax(0, 1fr); } }
.preis-karte { display: flex; flex-direction: column; gap: 12px; }
.preis-karte.hervor { border-color: var(--geschaeft); box-shadow: 0 0 0 2px var(--geschaeft-hell); }
.preis-karte .preis { display: grid; gap: 2px; }
.preis-karte .preis b { font-family: var(--mono); font-size: 2rem; font-weight: 600; line-height: 1.1; }
.preis-karte .preis span { color: var(--tinte-2); font-size: .9rem; }
.preis-karte .knopf { align-self: flex-start; margin-top: auto; }
.haken-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.haken-liste li { padding-left: 24px; position: relative; }
.haken-liste li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Rechnungsscanner */
.scan-feld { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px; border: 2px dashed var(--privat); border-radius: 12px; background: var(--privat-hell); }
.scan-feld .knopf { cursor: pointer; }
