/* KassenKIM – Design-System
   Markenfarben: Vanille #F1FEC8 (Flächen, Hervorhebung, Aktion im Dunkelmodus) + Marine #102B3F (Aktion, Text).
   Vanille ist sehr hell – nie als Schrift auf Weiß verwenden, nur als Fläche oder auf Marine. */

:root {
  --vanille: #f1fec8;
  --vanille-tief: #ddf0a0;
  --marine: #102b3f;

  --bg: #f8faf2;
  --bg-alt: #f1f6e3;
  --surface: #ffffff;
  --surface-2: #f5f8ec;
  --surface-3: #eaf0da;
  --line: #e1e7d3;
  --line-strong: #c6cfb4;
  --text: #0f1f2d;
  --text-2: #33475a;
  --muted: #55667a;
  --field-border: #76869a;
  --star: #9a5b00;

  --brand: #102b3f;
  --brand-hover: #1e4260;
  --brand-text: #f1fec8;
  --brand-soft: #f1fec8;
  --brand-soft-2: #ddf0a0;
  --brand-ink: #102b3f;
  --accent: #ddf0a0;
  --mark: rgba(206, 236, 104, .6);

  --ok: #166534;
  --ok-soft: rgba(21, 128, 61, .1);
  --warn: #854d0e;
  --warn-soft: rgba(234, 179, 8, .16);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, .09);

  --hero-grad: radial-gradient(1200px 500px at 85% -10%, rgba(221, 240, 160, .75), transparent 60%),
               radial-gradient(900px 420px at -10% 90%, rgba(241, 254, 200, .7), transparent 65%);

  --r-s: 8px;
  --r: 12px;
  --r-l: 18px;
  --sh-1: 0 1px 2px rgba(16, 43, 63, .05), 0 1px 3px rgba(16, 43, 63, .06);
  --sh-2: 0 10px 30px -10px rgba(16, 43, 63, .18), 0 2px 6px rgba(16, 43, 63, .05);
  /* Fokusring: 2px Abstand in Flächenfarbe + 2px Markenfarbe (≥ 3:1 gegen alle Flächen) */
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);

  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

/* Dunkelmodus: ruhig statt grell – Vanille leicht abgedunkelt, große Flächen nur getönt (nicht voll gefüllt),
   Text gebrochen weiß statt reinweiß, Signalfarben entsättigt. Kontraste ≥ 4,5:1 (Text) bzw. ≥ 3:1 (Bedienelemente). */
:root[data-theme="dark"] {
  --bg: #0b141c;
  --bg-alt: #0e1923;
  --surface: #111e2a;
  --surface-2: #152433;
  --surface-3: #1b2d3e;
  --line: #213345;
  --line-strong: #2d4357;
  --text: #e2e8e0;
  --text-2: #bcc7cf;
  --muted: #8d9cab;
  --field-border: #5a7086;
  --star: #e3b95a;

  --brand: #d9e6b0;
  --brand-hover: #e6f0c4;
  --brand-text: #102b3f;
  --brand-soft: rgba(217, 230, 176, .08);
  --brand-soft-2: rgba(217, 230, 176, .14);
  --brand-ink: #d9e6b0;
  --brand-line: rgba(217, 230, 176, .45);
  --accent: #d9e6b0;
  --mark: rgba(217, 230, 176, .22);

  --ok: #8fd4a6;
  --ok-soft: rgba(143, 212, 166, .11);
  --warn: #e3c07a;
  --warn-soft: rgba(227, 192, 122, .1);
  --danger: #f0a3a3;
  --danger-soft: rgba(240, 163, 163, .11);
  --hero-grad: radial-gradient(1200px 500px at 85% -10%, rgba(217, 230, 176, .07), transparent 60%),
               radial-gradient(900px 500px at -10% 110%, rgba(217, 230, 176, .035), transparent 60%);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .35);
  --sh-2: 0 14px 36px -12px rgba(0, 0, 0, .6);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15.5px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sichtbarer Fokus für alles, was per Tastatur erreichbar ist (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
::placeholder { color: var(--muted); opacity: 1; }
/* Sprunglinks (WCAG 2.4.1) – erst bei Tastaturfokus sichtbar */
.skip-link, .skip-inline { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--brand); color: var(--brand-text); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus, .skip-inline:focus { top: 8px; color: var(--brand-text); }
.skip-inline:focus { position: relative; top: 0; left: 0; display: inline-block; margin-top: 10px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
/* „Anzeigen“-Knopf in der Beschriftungszeile darf die Zeile nicht höher machen – sonst sitzt das Feld tiefer als das daneben */
.label-row .link-btn { padding: 0; line-height: inherit; }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 22px auto 0; font-size: 13px; }
.auth-legal a { color: var(--muted); }
.h-sub { font-size: 15px; margin: 4px 0 0; }
fieldset.plain { border: none; margin: 0; padding: 0; min-width: 0; }
fieldset.plain legend { padding: 0; width: 100%; }
.order-sum { margin-top: 14px; }
.order-sum .kv-table th { width: 90px; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: 14px; }
.danger-zone form { display: grid; gap: 10px; margin-top: 10px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 1px; }
code, .mono { font-family: var(--mono); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo img { width: auto; height: 34px; }
/* Logo-Varianten: hell (Standard), dunkel (Dunkelmodus), nur Icon (schmale App-Leiste) */
.logo .logo-dunkel, .logo .logo-icon { display: none; }
:root[data-theme="dark"] .logo .logo-hell { display: none; }
:root[data-theme="dark"] .logo .logo-dunkel { display: block; }
.logo b { color: var(--brand); font-weight: 800; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--r-s); border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-primary { background: var(--brand); color: var(--brand-text); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-text); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; border-radius: var(--r); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); cursor: pointer; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field label, .label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 44px; border-radius: var(--r-s); border: 1px solid var(--field-border); background: var(--surface);
  padding: 0 13px; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 72px; padding: 10px 13px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--focus); }
.input.invalid, .input[aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }
.select { appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.check { display: inline-flex; gap: 9px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.alert { border-radius: var(--r-s); padding: 11px 14px; font-size: 14px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert .resend-text { margin: 0 0 10px; }

/* ---------- Badges & Chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge-brand { background: var(--brand-soft-2); color: var(--brand-ink); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--field-border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 5px 12px; font-size: 13.5px; cursor: pointer; line-height: 1.35; white-space: nowrap; transition: all .12s; }
.chip:hover { border-color: var(--brand); color: var(--text); }
.chip:focus-visible { outline: none; box-shadow: var(--focus); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-text); font-weight: 600; }
.chip .count { color: var(--muted); font-size: 12px; margin-left: 5px; font-weight: 400; }
.chip[aria-pressed="true"] .count { color: inherit; opacity: .95; }
.chip[disabled] { opacity: .4; cursor: default; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--r-s); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: none; background: transparent; padding: 6px 13px; border-radius: 6px; font-size: 13.5px; cursor: pointer; color: var(--text-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--sh-1); }
.seg button:focus-visible { outline: none; box-shadow: var(--focus); }
.seg .count { color: var(--muted); font-size: 12px; margin-left: 5px; }

/* ---------- Karten ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-pad { padding: 22px; }

/* ---------- Toast & Dialog ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; background: #102b3f; color: #fff; padding: 11px 16px; border-radius: var(--r); box-shadow: var(--sh-2); font-size: 14px; transition: all .18s; pointer-events: none; z-index: 90; max-width: calc(100% - 32px); }
:root[data-theme="dark"] .toast { background: #e6ebf2; color: #0b1120; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast code { font-weight: 600; overflow-wrap: anywhere; }
dialog { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); color: var(--text); padding: 0; width: min(640px, calc(100% - 32px)); box-shadow: var(--sh-2); }
dialog::backdrop { background: rgba(15, 23, 42, .5); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h3 { font-size: 17px; }
.dlg-body { padding: 18px 20px; max-height: 70vh; overflow: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* =====================================================================
   Landingpage
   ===================================================================== */
.site-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.site-nav .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: var(--r-s); }
.nav-links a:hover { color: var(--text); background: var(--surface-3); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; }

.hero { position: relative; padding: 64px 0 72px; background: var(--hero-grad); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft-2); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.07; letter-spacing: -.03em; font-weight: 750; }
/* Hervorhebung wie ein Textmarker (Vanille) – dasselbe Motiv wie „KIM“ im Logo */
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 58%, var(--vanille-tief) 58%, var(--vanille-tief) 92%, transparent 92%); padding: 0 .08em; }
:root[data-theme="dark"] .hero h1 em { background: none; padding: 0; }
.hero .lead { font-size: 18.5px; color: var(--text-2); margin: 20px 0 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero-proof div { display: grid; }
.hero-proof b { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; }
.hero-proof span { font-size: 13px; color: var(--muted); }

.demo { position: relative; }
.demo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-2); padding: 18px; }
.demo-search { display: flex; align-items: center; gap: 10px; height: 50px; border-radius: var(--r); border: 2px solid var(--brand); padding: 0 14px; font-size: 16px; background: var(--surface); }
.demo-search svg { width: 20px; height: 20px; color: var(--muted); }
.demo-search .caret { width: 2px; height: 20px; background: var(--brand); animation: blink 1s steps(2) 4; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }
.demo-result { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.demo-result h4 { font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--r-s); border-left: 3px solid var(--brand); }
.demo-row code { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.demo-row small { display: block; color: var(--muted); font-size: 12px; font-family: var(--font); }
.demo-copy { font-size: 12.5px; font-weight: 600; background: var(--brand); color: var(--brand-text); padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.demo-float { position: absolute; right: -14px; bottom: -22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.demo-float .ok { width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.demo-float .ok svg { width: 15px; height: 15px; }
/* Hinweis „fiktive Kasse“ links unter der Karte – rechts daneben liegt die Einblendung „KIM-Adresse kopiert“ */
.demo-hinweis { position: absolute; left: 4px; top: calc(100% + 12px); max-width: calc(100% - 300px); margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

/* Startseite: „Meine Kostenträger“ mit Beispieldarstellung */
.list-show { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.list-show-text .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.list-show-text h2 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.list-lead { color: var(--text-2); font-size: 17px; margin: 14px 0 26px; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how-list li { display: flex; gap: 14px; align-items: flex-start; }
.how-list .hi { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.how-list .hi svg { width: 19px; height: 19px; }
.how-list h3 { font-size: 16px; margin: 1px 0 3px; }
.how-list p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.list-demo { position: relative; padding-top: 30px; }
.ld-window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sh-2); padding: 16px 18px 6px; margin-bottom: 180px; }
.ld-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 2px 2px 12px; border-bottom: 1px solid var(--line); }
.ld-head b { font-family: var(--font-display); font-size: 17px; display: block; }
.ld-head small { color: var(--muted); font-size: 12px; font-family: var(--mono); }
.ld-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ld-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 7px; padding: 4px 9px; color: var(--text); background: var(--surface); white-space: nowrap; }
.ld-btn svg { width: 13px; height: 13px; }
.ld-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 10px; align-items: start; padding: 12px 2px; }
.ld-kim { grid-column: 2; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ld-item + .ld-item { border-top: 1px solid var(--line); }
.ld-star { color: #e0a100; display: inline-flex; padding-top: 1px; }
.ld-star svg { width: 17px; height: 17px; }
.ld-main { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.ld-main b { font-size: 14.5px; line-height: 1.3; }
.ld-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.ld-meta .badge { font-family: var(--font); font-size: 11px; padding: 1px 7px; }
.ld-kim code { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.ld-kim small { color: var(--muted); font-size: 11.5px; }
.ld-kim .badge { font-size: 11px; padding: 1px 7px; }
.ld-note { grid-column: 2; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; }
.ld-note.ld-empty { color: var(--muted); }
.ld-changed .ld-kim code { background: var(--warn-soft); border-radius: 4px; padding: 0 3px; margin-left: -3px; }
.ld-toast { position: absolute; top: -22px; right: -12px; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 9px 14px; font-size: 13px; }
.ld-sheet { position: absolute; left: -22px; bottom: 36px; width: min(390px, 82%); background: #fff; color: #1f2937; border: 1px solid #cfd8dc; border-radius: 10px; box-shadow: var(--sh-2); overflow: hidden; font-size: 11.5px; }
.ld-sheet-bar { display: flex; align-items: center; gap: 8px; background: #1d6f42; color: #fff; font-weight: 600; padding: 6px 10px; font-size: 12px; }
.ld-sheet-bar .xl { width: 18px; height: 18px; border-radius: 4px; background: #fff; color: #1d6f42; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.ld-sheet-sub { padding: 5px 10px; color: #4b5563; border-bottom: 1px solid #e5e7eb; font-size: 11px; }
.ld-sheet table { width: 100%; border-collapse: collapse; }
.ld-sheet th { background: #f1f5f4; text-align: left; font-weight: 700; }
.ld-sheet th, .ld-sheet td { padding: 4px 10px; border-bottom: 1px solid #e5e7eb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.ld-sheet td:nth-child(2) { font-family: var(--mono); }
.ld-hinweis { position: static; max-width: none; margin: 0; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.section-head p { color: var(--text-2); font-size: 17px; margin-top: 14px; }

.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.area { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.area:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-2); color: var(--text); }
.area-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.area-icon svg { width: 26px; height: 26px; }
.area h3 { font-size: 23px; margin-bottom: 6px; }
.area .law { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.area ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 7px; color: var(--text-2); font-size: 15px; }
.area li { display: flex; gap: 9px; }
.area li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.area-stats { display: flex; gap: 22px; padding: 14px 0; border-top: 1px solid var(--line); margin-top: auto; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.area-stats b { display: block; color: var(--text); font-size: 20px; font-family: var(--font-display); }
.area .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand); }
.area .go svg { width: 18px; height: 18px; transition: transform .15s; }
.area:hover .go svg { transform: translateX(3px); }
.area .ribbon { position: absolute; top: 20px; right: 20px; }
.area-soon { background: var(--surface-2); box-shadow: none; }
.area-soon:hover { border-color: var(--line); transform: none; box-shadow: none; }
.area-soon .area-icon { background: var(--surface-3); color: var(--muted); }
.area-soon li svg { color: var(--muted); }
.soon-timeline { list-style: none; margin: auto 0 14px; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 13px; color: var(--muted); }
.area .soon-timeline li { display: block; }
.soon-timeline b { display: block; color: var(--text); font-family: var(--font-display); font-size: 16px; }
.soon-note { font-size: 13.5px; color: var(--text-2); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.feature .fi { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .fi svg { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 14.5px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-text); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14.5px; margin: 0; }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 22px; justify-content: center; }
.plan { position: relative; padding: 30px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--sh-2); }
.plan .ribbon { position: absolute; top: -12px; left: 30px; background: var(--brand); color: var(--brand-text); font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 19px; }
.plan .price { font-family: var(--font-display); font-size: 42px; font-weight: 750; letter-spacing: -.03em; margin: 12px 0 0; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.plan li { display: flex; gap: 9px; }
.plan li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }
.staffel-note { display: flex; gap: 8px; align-items: flex-start; max-width: 760px; margin: 20px auto 0; color: var(--text-2); font-size: 14px; text-align: left; }
.staffel-note svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 2px; }
.plan .price s { font-size: .55em; font-weight: 500; margin-right: 4px; }
.pay-grid { grid-template-columns: 1fr; margin-bottom: 14px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; }

.cta-band { border-radius: var(--r-l); padding: 44px; background: linear-gradient(135deg, #1e4260, #102b3f 55%, #0a1c2b); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 28px; }
.cta-band p { color: rgba(255, 255, 255, .92); margin: 8px 0 0; }
.cta-band .btn-primary { background: #f1fec8; color: #102b3f; }
.cta-band .btn-primary:hover { background: #faffe6; color: #102b3f; }

.site-footer { padding: 44px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4, .site-footer .f-h { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footnote { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12.5px; }
.app-footer { border-top: 1px solid var(--line); padding: 18px 0 26px; margin-top: 30px; font-size: 13px; color: var(--muted); }
.app-footer .container { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.app-footer .spacer { flex: 1; }
.app-footer a { color: var(--muted); }
.app-footer a:hover { color: var(--text); }
@media print { .app-footer { display: none; } }

/* =====================================================================
   Auth-Seiten
   ===================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-side { background: linear-gradient(160deg, #1e4260 0%, #102b3f 50%, #0a1c2b 100%); color: #fff; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -200px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .06); }
.auth-side .logo, .auth-side .logo:hover { color: #fff; }
.auth-side .logo b { color: #f1fec8; }
.auth-side h2 { color: #fff; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; max-width: 460px; }
.auth-side p { color: rgba(255, 255, 255, .92); max-width: 440px; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; max-width: 440px; }
.auth-side li { display: flex; gap: 10px; color: rgba(255, 255, 255, .9); }
.auth-side li svg { width: 19px; height: 19px; color: #f1fec8; flex: none; margin-top: 2px; }
.auth-side .foot { font-size: 12.5px; color: rgba(255, 255, 255, .85); position: relative; z-index: 1; margin: 0; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box.wide { max-width: 560px; }
.auth-box h1 { font-size: 28px; margin-bottom: 6px; }
.auth-box > p.muted { margin-bottom: 26px; }
.auth-switch { margin-top: 22px; text-align: center; font-size: 14.5px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-section { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 8px 0 12px; display: flex; align-items: center; gap: 10px; }
.form-section::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-opt { position: relative; }
.type-opt input { position: absolute; opacity: 0; inset: 0; }
.type-opt label { display: block; border: 1px solid var(--line-strong); border-radius: var(--r-s); padding: 10px 12px; cursor: pointer; font-size: 14px; background: var(--surface); height: 100%; }
.type-opt label small { display: block; color: var(--muted); font-size: 12px; }
.type-opt input:checked + label { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.type-opt input:focus-visible + label { box-shadow: var(--focus); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }

/* =====================================================================
   Mitgliederbereich
   ===================================================================== */
.app-bar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-bar .container { display: flex; align-items: center; gap: 18px; height: 62px; }
.app-tabs { display: flex; gap: 2px; margin-left: 10px; }
.app-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: var(--r-s); text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 14.5px; }
.app-tabs a:hover { background: var(--surface-3); color: var(--text); }
.app-tabs a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.app-tabs a svg { width: 17px; height: 17px; }
.app-tabs .n { font-size: 11.5px; background: var(--brand); color: var(--brand-text); border-radius: 999px; padding: 0 7px; font-weight: 700; }
.acc-btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-s); padding: 5px 10px 5px 6px; cursor: pointer; max-width: 280px; text-align: left; }
.acc-btn:hover { border-color: var(--line-strong); }
.acc-btn .av { width: 30px; height: 30px; border-radius: 7px; background: var(--brand-soft-2); color: var(--brand-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.acc-btn .t { min-width: 0; line-height: 1.2; }
.acc-btn .t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-btn .t span { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 6px; z-index: 40; }
.menu a, .menu button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; border: none; background: none; padding: 9px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--text); text-decoration: none; }
.menu a:hover, .menu button:hover { background: var(--surface-3); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .sel { color: var(--brand); font-weight: 600; }
.menu small { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.menu svg { width: 17px; height: 17px; flex: none; color: var(--muted); }
.menu .av { width: 28px; height: 28px; border-radius: 7px; background: var(--brand-soft-2); color: var(--brand-ink); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.menu .sel .av { background: var(--brand); color: var(--brand-text); }
.menu button > span:last-child { line-height: 1.35; min-width: 0; }
.rel { position: relative; }

.page { padding: 28px 0 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }

.area-switch { display: inline-flex; background: var(--surface-3); border-radius: var(--r); padding: 4px; gap: 4px; }
.area-switch button { border: none; background: transparent; border-radius: 9px; padding: 8px 16px; cursor: pointer; font-weight: 600; color: var(--text-2); font-size: 14.5px; display: inline-flex; gap: 8px; align-items: center; }
.area-switch button svg { width: 17px; height: 17px; }
.area-switch button[aria-pressed="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: var(--sh-1); }

.search-panel { padding: 18px; }
.search-box { position: relative; }
.search-box > svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); pointer-events: none; }
.search-box input { width: 100%; height: 60px; border-radius: var(--r); border: 2px solid var(--field-border); background: var(--surface-2); padding: 0 96px 0 52px; font-size: 18px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.search-box input:focus { border-color: var(--brand); box-shadow: var(--focus); background: var(--surface); }
.search-aside { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; align-items: center; }
.kbd { font: 12px var(--mono); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; color: var(--muted); }
.clear-x { border: none; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--muted); cursor: pointer; }
.filters { display: grid; gap: 12px; margin-top: 16px; }
.frow { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.flabel { width: 104px; flex: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 7px; }
.frow > .chips, .frow > .grow { flex: 1; min-width: 0; }
.ftools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; flex: 1; }
.ftools .select { width: auto; height: 36px; font-size: 14px; background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; }
.ftools .land-select { min-width: 240px; }
.ftools .la-select { max-width: 100%; }
.ftools .la-select.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); font-weight: 600; }
.chip .par { font-size: 12px; color: var(--muted); font-weight: 400; }
.chip[aria-pressed="true"] .par { color: inherit; opacity: .9; }
.chip-prio { border-color: var(--brand); color: var(--text); }
.sort-lbl { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort-lbl .select { width: auto; height: 34px; font-size: 14px; color: var(--text); background-position: calc(100% - 17px) 14px, calc(100% - 12px) 14px; }
.list-group { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin: 18px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.list-group:first-child { margin-top: 0; }
.list-group .count { font-weight: 400; letter-spacing: 0; color: var(--muted); }

.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--r); padding: 14px 16px; background: var(--brand-soft); color: var(--text-2); font-size: 14px; margin-top: 16px; }
.notice svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 1px; }
.notice b { color: var(--text); }

.res-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 24px 0 12px; }
.res-head h2 { font-size: 17px; font-weight: 600; }
.res-head h2 b { color: var(--brand); }
.tag-x { display: inline-flex; gap: 6px; align-items: center; border: none; background: var(--surface-3); border-radius: 999px; padding: 3px 7px 3px 11px; font-size: 13px; cursor: pointer; color: var(--text-2); }
.tag-x:hover { color: var(--text); }
.spacer { flex: 1; }

.list { display: grid; gap: 12px; }
.kasse { overflow: hidden; }
.kasse.inaktiv { border-style: dashed; }
.k-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 8px; }
.k-title { flex: 1; min-width: 0; }
.k-title h3 { font-size: 17px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.k-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.k-side { display: flex; align-items: center; gap: 8px; flex: none; }
.star { width: 38px; height: 38px; border-radius: var(--r-s); border: 1px solid var(--field-border); background: var(--surface); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.star:hover { color: var(--star); border-color: var(--star); }
.star svg { width: 19px; height: 19px; }
.star.on { color: var(--star); background: rgba(245, 158, 11, .1); border-color: var(--star); }
.star.on svg { fill: currentColor; }
.copy-chip { display: inline-flex; align-items: center; gap: 7px; font: 600 14px var(--mono); padding: 6px 10px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; color: var(--text); }
.copy-chip:hover { border-color: var(--brand); }
.copy-chip:focus-visible { outline: none; box-shadow: var(--focus); }
.copy-chip svg { width: 14px; height: 14px; color: var(--muted); }
.copy-chip.done { border-color: var(--ok); color: var(--ok); }
.copy-chip.hit { background: var(--mark); border-color: transparent; }

.routes { padding: 4px 18px 14px; display: grid; gap: 8px; }
.route { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; background: var(--surface-2); }
.route .ri { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.route .ri svg { width: 19px; height: 19px; }
.route .addr { font: 600 16px var(--mono); overflow-wrap: anywhere; user-select: all; }
.route .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.route.kim { border-left: 3px solid var(--brand); }
.route.vzd { border-left: 3px solid var(--warn); }
.route.vzd .ri { background: var(--warn-soft); color: var(--warn); }
.route.vzd .addr, .route.none .addr { font-family: var(--font); font-size: 15px; user-select: auto; }
.route.none { grid-template-columns: 36px minmax(0, 1fr); }
.route.none .ri { background: var(--surface-3); color: var(--muted); }
.route.none .addr { font-weight: 500; color: var(--text-2); }
.route.dim { background: var(--surface); border-style: dashed; }
.route.dim .addr { color: var(--text-2); }
.route.hit { background: var(--brand-soft); }
.la { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.la span { font-size: 11.5px; padding: 1px 7px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.la span.hit { background: var(--mark); border-color: transparent; color: var(--text); }
.la span.prio { border-color: var(--brand); color: var(--text); }
.copy-btn.done { background: var(--ok); border-color: var(--ok); color: var(--surface); }

.k-foot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 8px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.link-btn { border: none; background: none; padding: 4px 0; color: var(--brand); font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; }
.link-btn svg { width: 14px; height: 14px; transition: transform .15s; }
.link-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.link-btn:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.details { border-top: 1px solid var(--line); background: var(--surface-2); padding: 16px 18px 18px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.details h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.ik-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 220px; overflow: auto; }
.ik-grid .copy-chip { font-size: 12.5px; padding: 3px 8px; font-weight: 500; }
.kv { display: grid; gap: 8px; }
.kv-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 9px 11px; font-size: 13.5px; }
.kv-item .t { font-weight: 600; }
.kv-item .s { color: var(--muted); font-size: 12.5px; }
.kv-item code { font-size: 13px; overflow-wrap: anywhere; }
.inline-copy { border: none; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; border-radius: 4px; }
.inline-copy:hover { color: var(--brand); }
.inline-copy svg { width: 13px; height: 13px; display: inline; }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r); }
.empty h3 { margin-bottom: 6px; }
.empty .btn { margin-top: 14px; }
.skeleton { height: 140px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.more { justify-self: center; }

/* Meine Kostenträger */
.my-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.my-list { display: grid; gap: 10px; }
.my-item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 18px; }
.my-item h3 { font-size: 16px; }
.my-item .k-meta { margin-top: 4px; }
.my-kim { display: grid; gap: 6px; }
.my-kim .line { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.my-kim code { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.my-kim .muted { font-size: 12.5px; }
.note-input { width: 100%; min-height: 38px; border: 1px dashed var(--line-strong); border-radius: var(--r-s); background: transparent; padding: 8px 10px; font-size: 13.5px; resize: vertical; }
.note-input:focus { outline: none; border-style: solid; border-color: var(--brand); box-shadow: var(--focus); background: var(--surface); }
.my-actions { display: flex; gap: 6px; }

/* Konto & Lizenz */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 9px 0; width: 42%; vertical-align: top; }
.kv-table td { padding: 9px 0; font-weight: 500; }
.kv-table tr + tr th, .kv-table tr + tr td { border-top: 1px solid var(--line); }
.card h2 { font-size: 18px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lic-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.lic-plans .plan { padding: 24px; }
.lic-plans .plan .price { font-size: 34px; }
.acc-list { list-style: none; margin: 0; padding: 0; }
.acc-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
.acc-list li + li { border-top: 1px solid var(--line); }
.acc-list li > span:first-child { flex: 1; min-width: 160px; }
.acc-list small { display: block; color: var(--muted); font-family: var(--mono, monospace); font-size: 12.5px; }
.narrow-card { max-width: 720px; }
.mb-18 { margin-bottom: 18px; }
.welcome { position: relative; margin-bottom: 18px; border-color: var(--brand); }
.welcome h2 { margin: 0 44px 4px 0; }
.welcome .steps { margin-top: 16px; gap: 14px; }
.welcome .step { padding: 18px 18px 16px; }
.welcome-x { position: absolute; top: 14px; right: 14px; }
.paywall { max-width: 820px; margin: 10px auto 0; text-align: center; }
.paywall .lock { width: 60px; height: 60px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.paywall .lock svg { width: 28px; height: 28px; }
.paywall h1 { font-size: 28px; }
.paywall > p { color: var(--text-2); font-size: 16px; max-width: 600px; margin: 10px auto 0; }
.paywall .lic-plans { text-align: left; }
.dev-note { font-size: 12.5px; color: var(--warn); background: var(--warn-soft); border-radius: var(--r-s); padding: 8px 12px; margin-top: 18px; display: inline-block; }

.sources { margin-top: 30px; font-size: 13px; }
.sources table { width: 100%; border-collapse: collapse; }
.sources th, .sources td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.sources th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table-scroll { overflow-x: auto; }

/* Änderungen bei „Meine Kostenträger“ */
.changes { padding: 18px 20px; margin: 0 0 18px; border-left: 4px solid var(--warn); }
.changes h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.changes h2 svg { width: 19px; height: 19px; color: var(--warn); }
.changes > p { margin: 4px 0 10px; font-size: 14px; }
.changes table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.changes th, .changes td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.changes th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.changes code { font-size: 12.5px; word-break: break-all; }
.changes-ok { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.changes-ok svg { width: 16px; height: 16px; color: var(--ok); flex: none; margin-top: 2px; }

.health { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.health .alert { margin-bottom: 10px; }
.health p svg { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; color: var(--ok); }
.mt-6 { margin-top: 6px; }
/* Rechtstexte */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 24px 70px; }
.legal h1 { font-size: 32px; margin-bottom: 20px; }
/* Lange deutsche Wörter („Datenschutzerklärung“) auf schmalen Bildschirmen trennen statt überlaufen */
.legal h1, .legal h2, h1, h2 { hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 480px) { .legal h1 { font-size: 26px; } }
.legal h2 { font-size: 19px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); }

/* ---------- Dunkelmodus: gedämpfte Komponenten ----------
   Vollflächiges Vanille nur für echte Hauptaktionen (Kaufen, Anmelden …). Wiederholte Elemente
   (aktive Filter, Kopieren je Karte, Markierungen) sind getönt, damit die Seite nicht „sticht“. */
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--brand-soft-2); border-color: var(--brand-line); color: var(--brand-ink); }
:root[data-theme="dark"] .chip[aria-pressed="true"] .count,
:root[data-theme="dark"] .chip[aria-pressed="true"] .par { color: var(--text-2); opacity: 1; }
:root[data-theme="dark"] .chip-prio,
:root[data-theme="dark"] .la span.prio,
:root[data-theme="dark"] .ftools .la-select.on { border-color: var(--brand-line); box-shadow: none; }
:root[data-theme="dark"] .chip:hover, :root[data-theme="dark"] .copy-chip:hover, :root[data-theme="dark"] .btn-secondary:hover { border-color: var(--brand-line); }
:root[data-theme="dark"] .route.kim { border-left-color: var(--brand-line); }
:root[data-theme="dark"] .route.vzd { border-left-color: rgba(227, 192, 122, .5); }
:root[data-theme="dark"] .route .copy-btn.btn-primary { background: var(--brand-soft-2); color: var(--brand-ink); border-color: var(--brand-line); }
:root[data-theme="dark"] .route .copy-btn.btn-primary:hover { background: rgba(217, 230, 176, .22); color: var(--brand-hover); }
:root[data-theme="dark"] .copy-btn.done { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
:root[data-theme="dark"] .badge { font-weight: 500; }
:root[data-theme="dark"] .badge-warn { background: transparent; box-shadow: inset 0 0 0 1px rgba(227, 192, 122, .35); }
:root[data-theme="dark"] .app-tabs .n { background: var(--brand-soft-2); color: var(--brand-ink); }
:root[data-theme="dark"] .welcome, :root[data-theme="dark"] .plan.featured { border-color: var(--brand-line); }
:root[data-theme="dark"] .star.on { background: rgba(227, 185, 90, .08); }

/* Druck (Meine Kostenträger als PDF) */
@media print {
  .app-bar, .my-toolbar, .my-actions, .note-input, .toast, .no-print { display: none !important; }
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --surface-2: #fff; --surface-3: #f2f2f2; --text: #000; --text-2: #222; --muted: #444; --line: #ccc; --brand: #102b3f; --brand-ink: #102b3f; color-scheme: light; }
  body { background: #fff; color: #000; }
  .inline-copy, .copy-chip svg, .skip-link, .skip-inline { display: none !important; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  .print-note { display: block !important; }
}
.print-note { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .list-show { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .demo { max-width: 560px; }
  .features { grid-template-columns: 1fr 1fr; }
  .my-item { grid-template-columns: 1fr 1fr; }
  .app-tabs a span.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 16px; margin: 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-secondary { display: none; }
  .areas, .steps, .pricing, .grid-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { padding: 28px 24px; }
  .auth-side::after, .auth-side ul, .auth-side .foot { display: none; }
  .site-footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ld-window { margin-bottom: 0; }
  .ld-toast { position: static; margin-bottom: 12px; }
  .ld-sheet { position: relative; left: auto; bottom: auto; width: 100%; margin: 14px 0; }
  .list-demo { padding-top: 0; }
  .container { padding: 0 16px; }
  body { font-size: 15px; }
  .hero { padding: 36px 0 56px; }
  .section { padding: 60px 0; }
  .features { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
  .demo-float { position: static; margin-top: 12px; }
  .demo-hinweis { position: static; max-width: none; margin-top: 10px; }
  .form-grid, .type-grid { grid-template-columns: 1fr; }
  .app-bar .container { gap: 8px; }
  .app-tabs { margin-left: 0; }
  .acc-btn .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .app-bar .logo .logo-voll { display: none !important; }
  .app-bar .logo .logo-icon { display: block; }
  .search-box input { height: 54px; font-size: 16.5px; padding-right: 48px; }
  .kbd { display: none; }
  .flabel { width: 100%; padding-top: 0; }
  .ftools .land-select, .ftools .la-select { width: 100%; min-width: 0; }
  .sort-lbl { width: 100%; }
  .sort-lbl .select { flex: 1; }
  .k-head { flex-direction: column; }
  .route { grid-template-columns: minmax(0, 1fr); }
  .route .ri { display: none; }
  .route .btn { width: 100%; }
  .my-item { grid-template-columns: 1fr; }
  .area { padding: 22px; }
}
/* Obere Leiste auf schmalen Geräten: Logo kleiner, Theme-Schalter aus (Systemeinstellung gilt), ganz schmal nur Icon */
@media (max-width: 480px) {
  .site-nav .nav-actions [data-theme-toggle] { display: none; }
  .site-nav .logo img { height: 24px; }
  .site-nav .nav-actions .btn { padding-left: 12px; padding-right: 12px; font-size: 14px; }
  .nur-breit { display: none; }
}
@media (max-width: 359px) {
  .site-nav .logo .logo-voll { display: none !important; }
  .site-nav .logo .logo-icon { display: block; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.pt-0 { padding-top: 0 !important; }
.footer-claim { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 14px; }
/* Kontaktformular */
.contact-form { margin-top: 18px; display: grid; gap: 14px; }
.req { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Preiskarte: eine Jahreslizenz, Premium-Leistungen groß, Rest klein (28.09.2026) ---------- */
.pricing-single { display: block; max-width: 980px; margin: 0 auto; }
.plan.plan-wide { padding: 30px 32px; }
.plan-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan-top .per { margin-bottom: 0; }
.plan-wide .plan-top .btn { margin-top: 0; }
.plan-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 30px; padding-top: 22px; }
.premium-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.premium { display: grid; gap: 16px; align-content: start; }
.premium .premium-kicker { margin-bottom: 0; }
.premium-item { display: flex; gap: 14px; align-items: flex-start; }
.premium-item b { display: block; font-size: 16.5px; line-height: 1.3; color: var(--text); }
.premium-item p { margin: 4px 0 0; font-size: 14.5px; color: var(--text-2); }
.premium-ico { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--brand); color: var(--brand-text); display: inline-flex; align-items: center; justify-content: center; }
.premium-ico svg { width: 20px; height: 20px; }
.plan-list ul { margin: 0; gap: 7px; font-size: 14px; }
.plan-list li svg { width: 16px; height: 16px; }
.staffel { max-width: 980px; margin: 22px auto 0; padding: 22px 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.staffel-table { width: 100%; max-width: 520px; border-collapse: collapse; font-size: 14.5px; margin-bottom: 10px; }
.staffel-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 0; }
.staffel-table td { padding: 7px 0; border-top: 1px solid var(--line); }
.staffel p { margin: 6px 0 0; }
.traeger-box { max-width: 980px; margin: 22px auto 0; padding: 16px 20px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); text-align: left; }
.traeger-box label { font-weight: 600; display: block; margin-bottom: 8px; }
.traeger-row { display: flex; gap: 10px; flex-wrap: wrap; }
.traeger-row .select { flex: 1; min-width: 220px; max-width: 360px; }
.traeger-box p { margin: 8px 0 0; }
.lizenz-check { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); }
.paywall .lic-plans { grid-template-columns: 1fr; }
.paywall .alert { text-align: left; }
@media (max-width: 820px) {
  .plan-body { grid-template-columns: 1fr; gap: 22px; }
  .plan.plan-wide { padding: 24px 20px; }
  .plan-top .btn { width: 100%; }
}

/* ---------- Startseite: Warum KassenKIM (Adressen nicht frei findbar) ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: why; }
.why { position: relative; padding: 24px 22px 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.why h3 { font-size: 17px; margin: 0 0 6px; }
.why p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.why .why-n { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; font-weight: 700; background: var(--surface-3); color: var(--text); margin-bottom: 12px; }
.why.why-us { background: var(--brand); border-color: var(--brand); }
.why.why-us h3, .why.why-us p { color: var(--brand-text); }
.why.why-us .why-n { background: var(--brand-text); color: var(--brand); }
.why-foot { text-align: center; color: var(--text-2); margin: 22px auto 0; max-width: 760px; font-size: 15px; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }
.anz-input { max-width: 140px; }
.kalk { margin: 4px 0 8px; padding: 10px 14px; border-radius: var(--r-s); background: var(--surface-2); border: 1px solid var(--line); }
.kalk .kv-table th { width: 55%; }
.kalk p { margin: 6px 0 0; }

/* ---------- Öffentliche Wissensseiten (/kim-adressen, /kim-adresse/…, /ratgeber) ---------- */
.seo { max-width: 860px; margin: 0 auto; padding: 22px 20px 60px; }
.seo:has(.seo-wide) { max-width: 1040px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0 0 18px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.seo-head { margin-bottom: 18px; }
.seo-kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 8px; }
.seo-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; }
.seo-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--muted); font-size: 14px; margin: 0; }
.seo-answer { font-size: 17.5px; line-height: 1.6; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 18px 20px; margin: 0 0 20px; }
.seo-block { margin: 34px 0; }
.seo-block h2 { font-size: 23px; letter-spacing: -.015em; margin: 0 0 12px; }
.seo-block h3 { font-size: 17px; margin: 20px 0 6px; }
.seo-block p, .seo-block li { color: var(--text-2); line-height: 1.65; }
.seo-block ul, .seo-block ol { padding-left: 22px; }
.seo-block li + li { margin-top: 6px; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seo-table th, .seo-table td { text-align: left; padding: 11px 14px; vertical-align: top; border-top: 1px solid var(--line); }
.seo-table thead th { border-top: 0; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; }
.seo-table tbody th { font-weight: 600; color: var(--text); }
.seo-uebersicht td:nth-child(2) { white-space: nowrap; }
.kim-mask { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); user-select: none; }
.kim-mask + .kim-mask { margin-top: 6px; }
.kim-mask svg { width: 15px; height: 15px; flex: none; color: var(--brand-ink); }
.kim-mask > span[aria-hidden] { filter: blur(.6px); letter-spacing: .02em; }
.kim-tag { font-family: var(--font); font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--brand-soft-2); color: var(--brand-ink); }
.seo-unlock { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--brand-soft); border: 1px solid var(--brand-soft-2); color: var(--brand-ink); font-size: 15px; }
.seo-unlock svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.seo-unlock a { color: var(--brand-ink); font-weight: 700; }
.seo-details summary { cursor: pointer; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.ik-liste { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 0 0; font-size: 13px; }
.faq.faq-left { margin: 0; max-width: none; }
.seo .alert { font-size: 15px; line-height: 1.55; }
.seo .alert a { color: inherit; font-weight: 700; }
.seo-cta { margin: 40px 0; padding: 32px; }
.seo-cta h2 { font-size: 23px; }
.seo-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-inv { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-ghost-inv:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.seo-links { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 18px; }
.seo-links li + li { margin-top: 0; }
.seo-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.seo-toc a { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); text-decoration: none; }
.seo-toc a:hover { border-color: var(--line-strong); color: var(--text); }
.seo-cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.seo-cards a { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--sh-1); }
.seo-cards a:hover { border-color: var(--line-strong); }
.seo-cards span { color: var(--text-2); font-size: 15px; }
@media (max-width: 640px) {
  .seo { padding: 16px 16px 48px; }
  .seo-answer { font-size: 16px; padding: 14px 16px; }
  .seo-cta { padding: 24px 20px; }
  .seo-hide-s { display: none; }
  .seo-table th, .seo-table td { padding: 9px 10px; }
}
.site-footer.site-footer-5 .container { grid-template-columns: 1.3fr 1.1fr 1fr 1fr 1fr; }
@media (max-width: 1020px) { .site-footer.site-footer-5 .container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .site-footer.site-footer-5 .container { grid-template-columns: 1fr; } }
