/* TAXOS – Landingpage (ab 0.4)
   Idee: Das Instrument. TAXOS ist ein Messgerät für die eigene Steuer – die Seite baut sich um den Steuer-Tacho,
   ruhig und präzise wie ein Zifferblatt. Eine laute Stelle (Bühne im Hero), alles andere still.
   Aufbau: Schrift · Tokens hell/dunkel · Grundlagen · Kopf · Hero/Bühne · Ablauf · Geschichte/Telefon · Länder ·
   Mehr · Sicherheit · Preise · Fragen · Schluss · Fuß · Dialog · Bewegung */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens: hell ---------- */
:root {
  --seite: #FFFFFF;
  --seite-2: #F5F5F7;
  --flaeche: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #424245;
  --ink-3: #6E6E73;
  --linie: #E5E5EA;
  --linie-2: #D2D2D7;
  --fuellung: #EDEDF0;
  --blau: #0071E3;
  --blau-dunkel: #0062C4;
  --blau-text: #0066CC;
  --blau-hell: #DCEBFC;
  --orange: #E0701E;
  --orange-text: #9A3F00;
  --orange-hell: #FCE6D4;
  --gelb-hell: #FFF4CC;
  --gelb-text: #7A5A00;
  --strich: #C7C7CC;
  --strich-g: #86868B;
  --nadel: #1D1D1F;
  --nabe-kern: #FFFFFF;
  --papier: #FFFFFF;
  --papier-text: #3A3A3C;
  --papier-leise: #8E8E93;
  --karte: rgba(255, 255, 255, .9);
  --glas: rgba(255, 255, 255, .74);
  --licht-a: rgba(0, 113, 227, .13);
  --licht-b: rgba(224, 112, 30, .09);
  --schatten-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .02);
  --schatten-2: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px rgba(0, 0, 0, .06);
  --schatten-tief: 0 50px 100px -30px rgba(0, 0, 0, .22), 0 18px 36px -18px rgba(0, 0, 0, .14);
  --tel-rahmen-a: #2C2C2E;
  --tel-rahmen-b: #0E0E10;
  --app-bg: #F5F5F7;
  --app-flaeche: #FFFFFF;
  --sicher-bg: #1D1D1F;
  --sicher-ink: #F5F5F7;
  --sicher-ink-2: #A1A1A6;
  --sicher-icon: #6CB4FF;
  --sicher-linie: rgba(255, 255, 255, .12);
  --hervor-bg: #1D1D1F;
  --hervor-ink: #F5F5F7;
  --hervor-leise: #A1A1A6;
  /* 0.4.5 M-1: deckender Fokusring (vorher 50 % = 1,9 : 1); #0071E3 hat 4,7 : 1 auf Weiß, 3,6 : 1 auf dem dunklen Sicherheits-Band */
  --fokus: #0071E3;

  --breite: 1200px;
  --rand: clamp(16px, 4.5vw, 48px);
  /* 0.4.5 N-11: Schriftgrößen in rem – eine größere Standardschrift im Browser wirkt (bei 16 px wie vorher) */
  --t-held: clamp(2.5rem, min(10.4vw, 11.2vh), 7rem);
  --t-titel: clamp(2.125rem, 5.4vw, 4rem);
  --t-kapitel: clamp(1.625rem, 2.9vw, 2.375rem);
  --t-unter: clamp(1.125rem, 1.55vw, 1.3125rem);
  --t-text: 1.0625rem;
  --t-klein: .875rem;
  --t-mini: .75rem;
  --weich: cubic-bezier(.2, .8, .2, 1);
  --feder: cubic-bezier(.3, 1.3, .5, 1);
  --kopf-h: 64px;
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}

/* ---------- Tokens: dunkel (System oder in der App gewählt) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --seite: #000000;
    --seite-2: #0F0F11;
    --flaeche: #1C1C1E;
    --ink: #F5F5F7;
    --ink-2: #D1D1D6;
    --ink-3: #98989F;
    --linie: #2C2C2E;
    --linie-2: #3A3A3C;
    --fuellung: #2C2C2E;
    --blau: #0A84FF;
    --blau-dunkel: #3D9BFF;
    --blau-text: #5AAEFF;
    --blau-hell: rgba(10, 132, 255, .2);
    --orange: #FF9F0A;
    --orange-text: #FFB547;
    --orange-hell: rgba(255, 159, 10, .2);
    --gelb-hell: rgba(255, 214, 10, .18);
    --gelb-text: #FFD60A;
    --strich: #3A3A3C;
    --strich-g: #8E8E93;
    --nadel: #F5F5F7;
    --nabe-kern: #000000;
    --papier: #EDEDEB;
    --karte: rgba(28, 28, 30, .92);
    --glas: rgba(10, 10, 12, .72);
    --licht-a: rgba(10, 132, 255, .2);
    --licht-b: rgba(255, 159, 10, .08);
    --schatten-1: 0 0 0 1px rgba(255, 255, 255, .06);
    --schatten-2: 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 32px rgba(0, 0, 0, .5);
    --schatten-tief: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -30px rgba(0, 0, 0, .9);
    --tel-rahmen-a: #3A3A3C;
    --tel-rahmen-b: #1C1C1E;
    --app-bg: #000000;
    --app-flaeche: #1C1C1E;
    --sicher-bg: #1C1C1E;
    --hervor-bg: #0F2A4A;
    --fokus: #0A84FF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --seite: #000000;
  --seite-2: #0F0F11;
  --flaeche: #1C1C1E;
  --ink: #F5F5F7;
  --ink-2: #D1D1D6;
  --ink-3: #98989F;
  --linie: #2C2C2E;
  --linie-2: #3A3A3C;
  --fuellung: #2C2C2E;
  --blau: #0A84FF;
  --blau-dunkel: #3D9BFF;
  --blau-text: #5AAEFF;
  --blau-hell: rgba(10, 132, 255, .2);
  --orange: #FF9F0A;
  --orange-text: #FFB547;
  --orange-hell: rgba(255, 159, 10, .2);
  --gelb-hell: rgba(255, 214, 10, .18);
  --gelb-text: #FFD60A;
  --strich: #3A3A3C;
  --strich-g: #8E8E93;
  --nadel: #F5F5F7;
  --nabe-kern: #000000;
  --papier: #EDEDEB;
  --karte: rgba(28, 28, 30, .92);
  --glas: rgba(10, 10, 12, .72);
  --licht-a: rgba(10, 132, 255, .2);
  --licht-b: rgba(255, 159, 10, .08);
  --schatten-1: 0 0 0 1px rgba(255, 255, 255, .06);
  --schatten-2: 0 0 0 1px rgba(255, 255, 255, .07), 0 12px 32px rgba(0, 0, 0, .5);
  --schatten-tief: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -30px rgba(0, 0, 0, .9);
  --tel-rahmen-a: #3A3A3C;
  --tel-rahmen-b: #1C1C1E;
  --app-bg: #000000;
  --app-flaeche: #1C1C1E;
  --sicher-bg: #1C1C1E;
  --hervor-bg: #0F2A4A;
  --fokus: #0A84FF;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--seite); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 16px); }
body {
  margin: 0;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: var(--t-text);
  line-height: 1.5;
  color: var(--ink);
  background: var(--seite);
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.sprache-laedt body { visibility: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sprite symbol, svg use { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.logo-bg { fill: #1D1D1F; stroke: none; }
:root[data-theme="dark"] .logo-bg { fill: #2C2C2E; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-bg { fill: #2C2C2E; stroke: rgba(255, 255, 255, .14); stroke-width: 1; } }
.logo-bogen { stroke: #FFFFFF; }
.logo-punkt { fill: #FFFFFF; stroke: none; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 10px; }
.zahl, .preis, .tacho-zahl, .s-gross, .e-zeilen dd, .b-posten, .b-summen { font-variant-numeric: tabular-nums; }
::selection { background: var(--blau-hell); }

/* 0.4.3: ganz aus dem Bild geschoben, Schatten erst beim Fokus (vorher ragte der Schatten oben links in die Seite) */
.sprung { position: fixed; left: 12px; top: 0; z-index: 100; background: var(--flaeche); color: var(--ink); padding: 10px 16px; border-radius: 12px; box-shadow: none; font-weight: 600; transform: translateY(-120%); transition: transform .2s var(--weich); }
.sprung:focus { transform: translateY(calc(12px + env(safe-area-inset-top))); box-shadow: var(--schatten-2); }
main:focus { outline: none; }

.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: #0071E3; color: #FFFFFF;
  font-size: 1rem; font-weight: 550; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .2s, transform .2s var(--weich), box-shadow .2s;
}
.knopf:hover { background: #0062C4; }
.knopf:active { transform: scale(.97); }
.knopf-gross { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.knopf-klein { min-height: 36px; padding: 0 16px; font-size: .875rem; }
.knopf-leise { background: transparent; color: var(--blau-text); box-shadow: inset 0 0 0 1.5px var(--linie-2); }
.knopf-leise:hover { background: var(--seite-2); }
.knopf-zweit { background: var(--seite-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--linie); }
.knopf-zweit:hover { background: var(--fuellung); }

.abschnitt-kopf { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.abschnitt-kopf.mitte { text-align: center; }
.titel-gross { font-size: var(--t-titel); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; max-width: 18ch; text-wrap: balance; }
.mitte .titel-gross { margin-inline: auto; }
.abschnitt-unter { margin-top: 18px; font-size: var(--t-unter); line-height: 1.45; color: var(--ink-3); max-width: 38em; text-wrap: pretty; }
.mitte .abschnitt-unter { margin-inline: auto; }

/* ---------- Kopf ---------- */
.kopf { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--kopf-h); }
.kopf::before {
  content: ''; position: absolute; inset: 0;
  background: var(--glas);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--linie);
  opacity: 0; transition: opacity .3s;
}
.kopf.fest::before { opacity: 1; }
.kopf-innen { position: relative; height: 100%; max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 0 var(--rand); display: flex; align-items: center; gap: 24px; }
.marke { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.0625rem; letter-spacing: .14em; }
.marke .logo { flex: none; }
.kopf-nav { display: flex; gap: 26px; margin: 0 auto; font-size: var(--t-klein); color: var(--ink-2); }
.kopf-nav a { padding: 6px 0; white-space: nowrap; transition: color .2s; }
.kopf-nav a:hover { color: var(--ink); }
.kopf-aktionen { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.kopf-nav + .kopf-aktionen { margin-left: 0; }
.sprachwahl { font-size: .8125rem; font-weight: 600; color: var(--ink-3); min-height: 36px; min-width: 36px; padding: 0 8px; border-radius: 999px; transition: color .2s, background-color .2s; }
.sprachwahl:hover { color: var(--ink); background: var(--seite-2); }
.kopf-anmelden { font-size: var(--t-klein); font-weight: 550; color: var(--ink); }
.kopf-anmelden:hover { color: var(--blau-text); }
.kurz-text { display: none; }
.kopf-preise { display: none; font-size: var(--t-klein); font-weight: 550; color: var(--ink-2); }
.kopf-preise:hover { color: var(--ink); }
/* 0.4.9: sechs Punkte (mit Ratgeber) brauchen ~1160 px – auf Laptops und dem iPad quer (1024–1160 px) enger und ohne
   „Sicherheit“ (Prüfung I14), darunter Kopf ohne Navigation (wie am Tablet) */
@media (max-width: 1160px) { .kopf-nav { gap: 18px; } .kopf-nav a[href="#sicherheit"] { display: none; } }
@media (max-width: 1020px) { .kopf-nav { display: none; } .kopf-nav + .kopf-aktionen { margin-left: auto; } .kopf-preise { display: inline-flex; align-items: center; min-height: 36px; } }
@media (max-width: 440px) {
  .kopf-innen { gap: 6px; }
  .kopf-aktionen { gap: 0; }
  .kopf-aktionen > * { padding-inline: 5px; }
  .kopf-aktionen > .knopf-klein { padding-inline: 13px; margin-left: 5px; }
  .kopf .sprachwahl { min-width: 36px; }
  .lang-text { display: none; }
  .kurz-text { display: inline; }
  .marke { font-size: .9375rem; letter-spacing: .08em; gap: 8px; }
}
/* Handy: Sprache steht unten im Fuß („English“) und ist über ?lang=en erreichbar – oben ist Platz für „Preise“ */
@media (max-width: 400px) { .kopf .sprachwahl { display: none; } }
@media (max-width: 340px) { .marke span { letter-spacing: .04em; } .kopf-preise { display: none !important; } }

/* ---------- Hero ---------- */
.held { position: relative; padding: calc(var(--kopf-h) + clamp(28px, 6.5vh, 88px)) var(--rand) 0; text-align: center; overflow-x: clip; }
.held-titel { font-size: var(--t-held); line-height: .98; letter-spacing: -.048em; font-weight: 700; }
.held-titel .zeile { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.held-titel .zeile > span { display: inline-block; }
.held-unter { margin: 24px auto 0; max-width: 37em; font-size: var(--t-unter); line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.held-aktionen { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.held-zeile { margin: 0 auto 18px; font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blau-text); text-wrap: balance; max-width: 30em; }
.held-haken { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; font-size: var(--t-klein); color: var(--ink-3); }
.held-haken li { position: relative; padding-left: 20px; white-space: nowrap; }
.held-haken li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 10px; height: 5.5px; border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg); }
@media (max-width: 560px) {
  .held-zeile { font-size: .7812rem; letter-spacing: .06em; margin-bottom: 14px; }
  .held-aktionen { margin-top: 24px; flex-direction: column; align-items: center; gap: 4px; }
  /* zweiter Knopf als Textlink – spart Höhe, damit die Bühne früher kommt */
  .held-aktionen .knopf-leise { box-shadow: none; min-height: 44px; font-size: 1rem; }
  .held-aktionen .knopf-leise:hover { background: transparent; text-decoration: underline; }
  .held-haken { margin-top: 10px; gap: 4px 14px; font-size: .8125rem; }
}

/* Bühne: Beleg → Einordnung → Tacho */
.buehne { position: relative; container-type: inline-size; max-width: 1240px; margin: clamp(32px, 5vh, 64px) auto 0; }
.buehne-flaeche { position: relative; aspect-ratio: 1240 / 490; font-size: clamp(9px, 1.05cqw, 13px); }
.licht {
  position: absolute; inset: -10% -6% -4%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(46% 60% at 50% 40%, var(--licht-a), transparent 72%),
    radial-gradient(26% 34% at 24% 60%, var(--licht-b), transparent 70%);
  opacity: .8;
}
.tacho { position: absolute; left: 28%; width: 44%; top: 0; z-index: 1; text-align: center; --wert: 0; }
.tacho-titel { font-size: 1.2em; font-weight: 600; color: var(--ink-2); letter-spacing: -.01em; margin-bottom: .2em; }
.tacho-svg { width: 100%; height: auto; overflow: visible; }
.spur { fill: none; stroke-width: 20; stroke-linecap: round; }
.spur-zahlen { stroke: var(--orange-hell); }
.spur-zurueck { stroke: var(--blau-hell); }
.striche line { stroke: var(--strich); stroke-width: 1.5; stroke-linecap: round; }
.striche line.g { stroke: var(--strich-g); stroke-width: 2.2; }
.nadel { transform-box: view-box; transform-origin: 320px 320px; transform: rotate(calc(var(--wert) * 1deg)); transition: transform 1.25s var(--feder); }
.nadel-linie { stroke: var(--nadel); stroke-width: 6; stroke-linecap: round; }
.nadel-nabe { fill: var(--nadel); }
.nadel-kern { fill: var(--nabe-kern); }
.schweif { fill: none; stroke-width: 20; stroke-linecap: round; transition: opacity .5s; }
.schweif-blau { stroke: url(#schweif-blau); }
.schweif-orange { stroke: url(#schweif-orange); opacity: 0; }
.tacho.negativ .schweif-blau { opacity: 0; }
.tacho.negativ .schweif-orange { opacity: 1; }
.stop-blau { stop-color: var(--blau); }
.stop-orange { stop-color: var(--orange); }
.tacho-skala { display: flex; justify-content: space-between; padding: 0 3.5%; margin-top: -.2em; font-size: 1em; color: var(--ink-3); }
.tacho-zahl { margin-top: .1em; font-size: 4.9em; line-height: 1; font-weight: 700; letter-spacing: -.045em; }
.tacho-art { margin-top: .55em; display: inline-flex; align-items: center; gap: .5em; font-size: 1.18em; font-weight: 550; color: var(--ink-2); }
.punkt { width: .62em; height: .62em; border-radius: 50%; background: var(--blau); display: inline-block; flex: none; transition: background-color .4s; }
.tacho.negativ .punkt, .punkt-orange { background: var(--orange); }

.beleg { position: absolute; left: 2.5%; top: 14%; width: 21.5%; z-index: 2; transform: rotate(-4deg); transform-origin: 60% 40%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .14)) drop-shadow(0 3px 6px rgba(0, 0, 0, .06)); transition: transform .8s var(--weich), opacity .6s var(--weich); }
.beleg-papier {
  position: relative; background: var(--papier); color: var(--papier-text);
  padding: 1.6em 1.35em 2.4em; font-size: 1em; line-height: 1.45;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 1.1em 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 1.1em 100%;
  border-radius: .5em .5em 0 0;
}
.b-haendler { font-size: 1.22em; font-weight: 700; letter-spacing: .02em; text-align: center; color: #1D1D1F; }
.b-meta { display: flex; justify-content: space-between; margin: .5em 0 .9em; font-size: .9em; color: var(--papier-leise); }
.b-posten { border-top: 1px dashed #C7C7CC; border-bottom: 1px dashed #C7C7CC; padding: .7em 0; display: grid; gap: .3em; }
.b-posten p, .b-summen p { display: flex; justify-content: space-between; gap: .8em; }
.b-posten p span:first-child { min-width: 0; }
.b-summen { padding-top: .7em; display: grid; gap: .25em; font-size: .95em; }
.b-summe { margin-top: .35em; font-weight: 700; font-size: 1.12em; color: #1D1D1F; }
.b-strichcode { margin: 1.3em auto 0; height: 2.4em; width: 72%; background: repeating-linear-gradient(90deg, #3A3A3C 0 1.5px, transparent 1.5px 3.5px, #3A3A3C 3.5px 4.5px, transparent 4.5px 7px, #3A3A3C 7px 9px, transparent 9px 10.5px); opacity: .7; }
.feld { position: relative; }
.feld::after {
  content: ''; position: absolute; inset: -.22em -.4em; border-radius: .45em;
  box-shadow: inset 0 0 0 1.5px var(--blau); background: rgba(0, 113, 227, .07);
  opacity: 0; transform: scale(1.08); transition: opacity .35s var(--weich), transform .35s var(--weich);
}
.feld:not([data-feld])::before { display: none; }
.feld::before {
  content: attr(data-feld); position: absolute; left: -.4em; bottom: calc(100% + .35em); z-index: 1;
  font-size: .7em; font-weight: 600; line-height: 1.4; letter-spacing: .01em; white-space: nowrap;
  background: var(--blau); color: #FFFFFF; padding: .08em .5em; border-radius: .5em;
  opacity: 0; transform: translateY(.3em); transition: opacity .35s var(--weich), transform .35s var(--weich);
}
.b-summe .feld::before { left: auto; right: -.4em; }
.beleg.gelesen .feld::after, .beleg.gelesen .feld::before { opacity: 1; transform: none; }
.beleg.gelesen .feld:nth-of-type(1)::after, .beleg.gelesen .feld:nth-of-type(1)::before { transition-delay: 0s; }
.beleg.gelesen .b-meta .feld::after, .beleg.gelesen .b-meta .feld::before { transition-delay: .12s; }
.beleg.gelesen .b-summen .feld::after, .beleg.gelesen .b-summen .feld::before { transition-delay: .24s; }
.beleg.gelesen .b-summe .feld::after, .beleg.gelesen .b-summe .feld::before { transition-delay: .36s; }
.beleg.ruhe .feld::after, .beleg.ruhe .feld::before { opacity: 0; transition-delay: 0s !important; }
.scan { position: absolute; inset: 0 0 .6em; overflow: hidden; pointer-events: none; border-radius: .5em .5em 0 0; }
.scan::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0, transparent 62%, rgba(0, 113, 227, .05) 80%, rgba(0, 113, 227, .22) 97%, var(--blau) 99.3%, transparent 100%);
  transform: translateY(-101%);
}
.beleg.scannt .scan::before { animation: scan 1.15s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes scan { from { transform: translateY(-101%); } to { transform: translateY(101%); } }
.beleg.weg { opacity: 0; transform: translate(-14%, 10%) rotate(-11deg); transition: none; }
.beleg.raus { opacity: 0; transform: translate(-8%, -6%) rotate(-9deg) scale(.96); transition-duration: .5s; }

.einordnung {
  position: absolute; right: .5%; top: 16%; width: 26.5%; z-index: 3;
  background: var(--karte); border-radius: 1.5em; padding: 1.35em 1.4em 1.3em;
  box-shadow: var(--schatten-tief), inset 0 0 0 1px var(--linie);
  text-align: left; transition: opacity .55s var(--weich), transform .7s var(--weich);
}
.einordnung.weg { opacity: 0; transform: translate(-10%, 5%) scale(.92); transition: none; }
.einordnung.raus { opacity: 0; transform: translate(4%, -3%) scale(.97); transition-duration: .4s; }
.e-kopf { display: flex; align-items: center; gap: .6em; }
.e-chip { display: inline-flex; align-items: center; gap: .4em; font-size: .9em; font-weight: 650; padding: .3em .8em; border-radius: 999px; background: var(--blau-hell); color: var(--blau-text); white-space: nowrap; }
.status-teilweise .e-chip, .chip-teil { background: var(--orange-hell); color: var(--orange-text); }
.status-nicht .e-chip { background: var(--fuellung); color: var(--ink-3); }
.status-pruefen .e-chip { background: var(--gelb-hell); color: var(--gelb-text); }
.e-titel { margin-top: .75em; font-size: 1.32em; line-height: 1.22; font-weight: 650; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.e-text { margin-top: .45em; font-size: .95em; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }
.e-zeilen { margin-top: 1em; display: grid; }
.e-zeilen div { display: flex; justify-content: space-between; gap: 1em; padding: .48em 0; border-top: 1px solid var(--linie); font-size: 1em; }
.e-zeilen dt { color: var(--ink-3); }
.e-zeilen dd { font-weight: 600; color: var(--ink); }
.e-ersparnis dd { color: var(--blau-text); font-weight: 700; }
.status-nicht .e-ersparnis dd { color: var(--ink-3); }
.e-hinweis { margin-top: .7em; display: flex; gap: .55em; align-items: flex-start; padding: .65em .75em; border-radius: .9em; font-size: .92em; line-height: 1.4; background: var(--seite-2); color: var(--ink-2); }
.e-hinweis svg { width: 1.3em; height: 1.3em; flex: none; margin-top: -.05em; }
.e-hinweis.art-fehlt { background: var(--orange-hell); color: var(--orange-text); }
.e-hinweis.art-tipp svg { color: var(--blau-text); }

.buehne-leiste { position: relative; z-index: 4; margin-top: clamp(20px, 3vw, 28px); display: flex; justify-content: center; align-items: center; gap: 10px; }
.beispiele { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--seite-2); box-shadow: inset 0 0 0 1px var(--linie); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.beispiele::-webkit-scrollbar { display: none; }
.beispiel { flex: none; position: relative; overflow: hidden; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: var(--t-klein); font-weight: 550; color: var(--ink-3); white-space: nowrap; transition: color .25s, background-color .25s, box-shadow .25s; }
.beispiel:hover { color: var(--ink); }
.beispiel[aria-pressed="true"] { color: var(--ink); background: var(--flaeche); box-shadow: var(--schatten-1), 0 1px 3px rgba(0, 0, 0, .08); }
.beispiel i { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--blau); transform: scaleX(0); transform-origin: left; opacity: 0; }
.laeuft .beispiel[aria-pressed="true"] i { opacity: .9; animation: fortschritt var(--dauer, 5600ms) linear forwards; }
.pausiert .beispiel i { animation-play-state: paused !important; }
@keyframes fortschritt { to { transform: scaleX(1); } }
.pause { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--seite-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--linie); transition: color .2s, background-color .2s; }
.pause[hidden] { display: none; }
.pause:hover { color: var(--ink); background: var(--fuellung); }
.pause svg { width: 18px; height: 18px; }
.pause use { stroke-width: 2.2; }
.buehne-fuss { margin-top: 14px; font-size: var(--t-mini); color: var(--ink-3); }

/* 0.4.3: Tablet und Handy – Tacho oben, darunter Beleg und Einordnung NEBENEINANDER (keine Überlappung mehr,
   die Karte deckt voll). Vorher lag die Karte bei 375–820 px über den Beträgen des Belegs und ließ ihn durchscheinen. */
@container (max-width: 760px) {
  .buehne-flaeche { aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 330px); justify-content: center; column-gap: 4.5%; align-items: start; font-size: clamp(9.5px, 1.95cqw, 13.5px); padding-bottom: 8px; }
  .tacho { position: relative; left: auto; top: auto; width: 100%; max-width: 440px; justify-self: center; grid-column: 1 / -1; padding: 0 2%; }
  .tacho-zahl { font-size: 4.3em; }
  .beleg { position: relative; left: auto; top: auto; width: auto; grid-column: 1; grid-row: 2; margin: 1.8em 0 0; transform: rotate(-2.5deg); }
  .einordnung { position: relative; right: auto; top: auto; width: auto; grid-column: 2; grid-row: 2; margin: 2.6em 0 0; background: var(--flaeche); align-self: start; }
  .beleg-papier { padding-top: 2.1em; }
  .beleg.weg { transform: translate(-10%, 8%) rotate(-8deg); }
  .beleg.raus { transform: translate(-6%, -4%) rotate(-6deg) scale(.96); }
}
@container (max-width: 520px) {
  .buehne-flaeche { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); column-gap: 3.5%; font-size: clamp(9px, 2.85cqw, 13px); }
  .tacho { max-width: 300px; padding: 0; }
  .tacho-titel { font-size: 1.1em; }
  .tacho-zahl { font-size: 3.6em; }
  .tacho-art { font-size: 1.08em; }
  .beleg { margin-top: 1.4em; }
  .einordnung { margin-top: 1.9em; padding: 1em .95em .95em; border-radius: 1.2em; }
  .e-titel { font-size: 1.1em; margin-top: .6em; }
  .e-text { display: none; }
  .e-zeilen { margin-top: .55em; }
  .e-zeilen div { padding: .36em 0; font-size: .94em; gap: .5em; }
  .e-hinweis { font-size: .86em; padding: .5em .55em; gap: .4em; }
  .beleg-papier { padding: 2.1em .85em 1.9em; font-size: .9em; }
  .b-meta { margin-bottom: .7em; }
  .b-strichcode { height: 1.9em; margin-top: 1em; }
  /* Beispiele in einer Zeile, waagrecht rollbar (statt 2×2-Raster), rechts weich ausgeblendet */
  .beispiele { max-width: calc(100% - 56px); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .beispiel { padding: 0 13px; }
}

/* ---------- Ablauf ---------- */
.ablauf { max-width: var(--breite); margin: clamp(72px, 11vw, 140px) auto 0; padding: 0 var(--rand); }
.ablauf-liste { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--linie); counter-reset: schritt; }
.ablauf-liste li { display: flex; gap: 16px; padding: 26px 24px 0 0; counter-increment: schritt; }
.ablauf-liste li + li { padding-left: 24px; border-left: 1px solid var(--linie); }
.ablauf-liste svg { width: 26px; height: 26px; color: var(--blau); flex: none; margin-top: 2px; }
.ablauf-liste h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.015em; }
.ablauf-liste h3::before { content: counter(schritt) '  '; color: var(--ink-3); font-weight: 500; white-space: pre; }
.ablauf-liste p { margin-top: 4px; color: var(--ink-3); font-size: .9375rem; }
/* Vertrauen (0.4.3): nur nachprüfbare Fakten, keine Kundenstimmen oder Logos */
.vertrauen { margin-top: clamp(36px, 5vw, 56px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.vertrauen li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--seite-2); box-shadow: inset 0 0 0 1px var(--linie); font-size: .875rem; font-weight: 550; color: var(--ink-2); }
.vertrauen svg { width: 18px; height: 18px; color: var(--blau); flex: none; }
@media (max-width: 560px) { .vertrauen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .vertrauen li { border-radius: 16px; padding: 10px 12px; font-size: .8125rem; line-height: 1.3; align-items: flex-start; } }
@media (max-width: 760px) {
  .ablauf-liste { grid-template-columns: 1fr; border-top: 0; }
  .ablauf-liste li, .ablauf-liste li + li { padding: 18px 0; border-left: 0; border-top: 1px solid var(--linie); }
}

/* ---------- Geschichte: Kapitel + stehendes Telefon ---------- */
.geschichte { margin-top: clamp(96px, 14vw, 180px); }
.geschichte-raster { max-width: var(--breite); margin: clamp(24px, 4vw, 48px) auto 0; padding: 0 var(--rand); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
/* inaktive Kapitel (0.4.3): nur über die Farbe zurücknehmen statt Deckkraft .28 – bleibt lesbar und kontrastsicher (WCAG) */
.kapitel { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.kapitel-titel, .kapitel .fakten li { transition: color .6s var(--weich); }
.kapitel:not(.aktiv) .kapitel-titel, .kapitel:not(.aktiv) .fakten li { color: var(--ink-3); }
.kapitel .fakten li::before { transition: opacity .6s var(--weich); }
.kapitel:not(.aktiv) .fakten li::before { opacity: .45; }
.kapitel-titel { font-size: var(--t-kapitel); line-height: 1.1; letter-spacing: -.03em; font-weight: 700; max-width: 16ch; text-wrap: balance; }
.kapitel > p { margin-top: 18px; font-size: 1.125rem; line-height: 1.55; color: var(--ink-3); max-width: 31em; }
.fakten { margin-top: 22px; display: grid; gap: 10px; max-width: 30em; }
.fakten li { position: relative; padding-left: 28px; font-size: 1rem; color: var(--ink-2); }
.fakten li::before { content: ''; position: absolute; left: 2px; top: .38em; width: 14px; height: 8px; border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg); transform-origin: center; }
.kapitel-bild { display: none; }
.telefon-spalte { position: sticky; top: max(calc(var(--kopf-h) + 16px), calc(50vh - 316px)); align-self: start; display: flex; justify-content: center; padding: 20px 0; }
.telefon-spalte::before { content: ''; position: absolute; inset: 0 -10%; background: radial-gradient(50% 45% at 50% 50%, var(--licht-a), transparent 70%); pointer-events: none; }

.telefon { position: relative; width: 300px; aspect-ratio: 300 / 616; border-radius: 52px; padding: 11px; background: linear-gradient(150deg, var(--tel-rahmen-a), var(--tel-rahmen-b) 60%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), var(--schatten-tief); flex: none; }
.telefon::before, .telefon::after { content: ''; position: absolute; width: 3px; border-radius: 2px; background: var(--tel-rahmen-a); }
.telefon::before { left: -3px; top: 120px; height: 56px; }
.telefon::after { right: -3px; top: 150px; height: 80px; }
.telefon-schirm { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--app-bg); color: var(--ink); font-size: 12px; line-height: 1.4; isolation: isolate; }
.statusleiste { position: absolute; inset: 0 0 auto; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px 0 30px; font-size: 13px; font-weight: 600; z-index: 2; }
.insel { position: absolute; left: 50%; top: 11px; width: 88px; height: 26px; margin-left: -44px; border-radius: 20px; background: #000; }
.status-symbole { display: flex; gap: 3px; align-items: flex-end; }
.status-symbole i { width: 3px; border-radius: 1px; background: currentColor; }
.status-symbole i:nth-child(1) { height: 5px; } .status-symbole i:nth-child(2) { height: 7px; } .status-symbole i:nth-child(3) { height: 9px; }
.schirm { position: absolute; inset: 52px 0 72px; padding: 0 14px; overflow: hidden; opacity: 0; transform: translateY(16px) scale(.985); transition: opacity .5s var(--weich), transform .6s var(--weich); pointer-events: none; }
.schirm.aktiv { opacity: 1; transform: none; }
.s-tableiste { position: absolute; inset: auto 10px 10px; height: 56px; border-radius: 28px; background: var(--glas); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 0 0 1px var(--linie), 0 6px 20px rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: space-around; padding: 0 14px; z-index: 2; }
.s-tableiste i { width: 22px; height: 5px; border-radius: 3px; background: var(--strich); }
.s-tableiste i.an { background: var(--blau); }
.s-tableiste b { width: 46px; height: 46px; border-radius: 50%; background: var(--blau); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 113, 227, .4); }
.s-tableiste svg { width: 22px; height: 22px; }

.s-leiste { display: flex; align-items: center; justify-content: space-between; height: 34px; font-weight: 650; font-size: 14px; }
.s-leiste svg { width: 18px; height: 18px; transform: scaleX(-1); color: var(--blau-text); }
.s-leiste span:last-child { width: 18px; }
.s-gruss { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 8px; margin: 4px 0 12px; }
.s-gruss b, .s-gruss span { white-space: nowrap; }
.s-gruss b { font-size: 22px; letter-spacing: -.025em; }
.s-gruss span { color: var(--ink-3); font-size: 12px; }
.s-karte { background: var(--app-flaeche); border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--schatten-1); }
.s-reihe { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 2px; }
.s-reihe > div { display: grid; min-width: 0; }
.s-reihe small, .s-kz small, .s-bank small, .s-frist small { color: var(--ink-3); font-size: 11px; }
.s-reihe > b { font-size: 15px; }
.s-foto { position: relative; height: 76px; border-radius: 16px; background: linear-gradient(160deg, #3A3A3C, #1C1C1E); display: grid; place-items: center; overflow: hidden; }
.s-mini-beleg { width: 96px; padding: 10px 9px 14px; background: #FFFFFF; color: #1D1D1F; display: grid; gap: 5px; transform: rotate(-6deg); border-radius: 3px; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.s-mini-beleg b { font-size: 7.5px; text-align: center; }
.s-mini-beleg i { height: 3px; border-radius: 2px; background: #D1D1D6; }
.s-mini-beleg i.kurz { width: 60%; }
.s-mini-beleg em { height: 5px; width: 55%; justify-self: end; background: #1D1D1F; border-radius: 2px; }
.s-erkannt { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0058B0; font-size: 11px; font-weight: 650; }
.s-titel { margin-top: 8px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.s-text { margin-top: 3px; color: var(--ink-3); font-size: 11.5px; }
.s-werte { margin-top: 8px; }
.s-werte p { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--linie); font-size: 12px; }
.s-werte p span { color: var(--ink-3); }
.s-plus b { color: var(--blau-text); }
.s-fehlt { display: flex; gap: 8px; align-items: flex-start; background: var(--orange-hell); color: var(--orange-text); box-shadow: none; font-size: 11.5px; font-weight: 550; }
.s-fehlt svg { width: 16px; height: 16px; flex: none; }
.s-fein { color: var(--ink-3); font-size: 10.5px; text-align: center; margin-top: 4px; }
.s-einordnung .e-chip { font-size: 11px; padding: 3px 9px; }

.s-tacho { text-align: center; padding-bottom: 14px; }
.s-kopfzeile { text-align: left; font-size: 13px; }
.s-tacho-svg { width: 84%; margin: 6px auto 0; overflow: visible; }
.s-tacho-svg .spur { stroke-width: 9; }
.s-nadel { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-12deg); transition: transform 1.4s var(--feder) .25s; }
.s-nadel path { stroke: var(--nadel); stroke-width: 3.5; stroke-linecap: round; }
.s-nadel circle { fill: var(--nadel); }
.aktiv .s-nadel { transform: rotate(-52deg); }
.s-gross { font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1.1; margin-top: 2px; }
.s-art { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; font-size: 12.5px; }
.s-ruecklage { display: flex; justify-content: space-between; align-items: center; }
.s-ruecklage small { color: var(--ink-3); font-size: 11.5px; max-width: 60%; }
.s-ruecklage b { font-size: 20px; color: var(--orange-text); letter-spacing: -.02em; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-chips span { padding: 4px 10px; border-radius: 999px; background: var(--app-flaeche); box-shadow: var(--schatten-1); font-size: 11px; color: var(--ink-2); }

.s-kz { padding: 4px 12px; }
.s-kz p { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 2px 8px; padding: 9px 0; border-top: 1px solid var(--linie); }
.s-kz p:first-child { border-top: 0; }
.s-kz span { font-weight: 650; font-size: 11px; color: var(--blau-text); background: var(--blau-hell); padding: 2px 6px; border-radius: 6px; }
.s-kz small { min-width: 0; line-height: 1.25; overflow-wrap: break-word; }
.s-kz b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.s-kz svg { width: 14px; height: 14px; color: var(--ink-3); }
.s-kz .s-zahllast b { color: var(--orange-text); }
.s-frist { display: flex; gap: 12px; align-items: center; }
.s-frist > div:last-child { display: grid; gap: 2px; }
.s-datum { width: 46px; height: 50px; border-radius: 12px; background: var(--orange-hell); color: var(--orange-text); display: grid; place-content: center; text-align: center; line-height: 1.05; flex: none; }
.s-datum b { font-size: 19px; }
.s-datum small { font-size: 10px; font-weight: 650; }

.s-rechnung .s-reihe { margin: 0 0 10px; }
.s-rechnung .s-reihe b { white-space: nowrap; }
.s-abzeichen { display: flex; flex-wrap: wrap; gap: 6px; }
.s-abzeichen span { padding: 3px 9px; border-radius: 999px; background: var(--seite-2); font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.s-abzeichen .s-xr { display: inline-flex; gap: 3px; align-items: center; background: var(--blau-hell); color: var(--blau-text); }
.s-abzeichen .s-xr svg { width: 12px; height: 12px; }
.s-abzeichen use { stroke-width: 2.6; }
.s-abzeichen .s-bezahlt { margin-left: auto; background: #E3F5EA; color: #146B37; }
.s-zwischen { display: flex; justify-content: space-between; align-items: center; margin: 14px 2px 8px; font-weight: 650; font-size: 13px; }
.s-zahl-orange { min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; background: var(--orange-hell); color: var(--orange-text); font-size: 12px; }
.s-bank { padding: 2px 12px; }
.s-bank p { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; padding: 8px 0; border-top: 1px solid var(--linie); align-items: center; }
.s-bank p:first-child { border-top: 0; }
.s-bank p > span { display: grid; }
.s-bank p > b { font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.s-bank i { grid-column: 2; justify-self: end; font-style: normal; font-size: 10px; font-weight: 650; color: var(--orange-text); }
.s-bank .s-ok i { color: #1F8A4C; }
.s-bank .s-ok svg { width: 14px; height: 14px; }
.s-bank .s-ok use { stroke-width: 2.6; }
/* kleine Bewegungen beim Aufschlagen eines Schirms */
.schirm .s-karte, .schirm .s-chips, .schirm .s-zwischen { transition: opacity .5s var(--weich), transform .6s var(--weich); }
.schirm:not(.aktiv) .s-karte, .schirm:not(.aktiv) .s-chips, .schirm:not(.aktiv) .s-zwischen { opacity: 0; transform: translateY(12px); }
.schirm.aktiv .s-karte:nth-of-type(2) { transition-delay: .08s; }
.schirm.aktiv .s-karte:nth-of-type(3) { transition-delay: .16s; }
.schirm.aktiv .s-karte:nth-of-type(4) { transition-delay: .24s; }

@media (max-width: 359px) { .kapitel-bild .telefon { zoom: .9; } }
@media (max-width: 900px) {
  .geschichte-raster { grid-template-columns: 1fr; gap: 0; }
  .telefon-spalte { display: none; }
  .kapitel { min-height: 0; opacity: 1; padding: 0 0 72px; }
  .kapitel:not(.aktiv) .kapitel-titel { color: var(--ink); }
  .kapitel:not(.aktiv) .fakten li { color: var(--ink-2); }
  .kapitel:not(.aktiv) .fakten li::before { opacity: 1; }
  .kapitel-bild { display: flex; justify-content: center; margin-bottom: 32px; }
  .kapitel-bild:empty { display: none; }
  .kapitel-bild .telefon { width: 300px; }
}

/* ---------- Länder ---------- */
.laender { max-width: var(--breite); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 var(--rand); }
.laender-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.segment { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding: 4px; border-radius: 999px; background: var(--seite-2); box-shadow: inset 0 0 0 1px var(--linie); isolation: isolate; }
.segment button { position: relative; z-index: 1; min-height: 40px; padding: 0 20px; border-radius: 999px; font-size: .9375rem; font-weight: 550; color: var(--ink-3); transition: color .25s; white-space: nowrap; }
.segment button[aria-pressed="true"] { color: var(--ink); }
.segment-pille { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--flaeche); box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform .45s var(--weich); }
.segment[data-wahl="1"] .segment-pille { transform: translateX(100%); }
.rabatt { font-size: .75rem; font-weight: 650; color: #146B37; background: #E3F5EA; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }
:root[data-theme="dark"] .rabatt { color: #7EE2A2; background: rgba(48, 209, 88, .18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rabatt { color: #7EE2A2; background: rgba(48, 209, 88, .18); } }
.laender-blatt { position: relative; overflow: hidden; border-radius: clamp(24px, 3vw, 36px); background: var(--seite-2); padding: clamp(28px, 4vw, 48px); padding-top: clamp(96px, 12vw, 150px); }
.land-kuerzel { position: absolute; top: clamp(4px, 1vw, 12px); right: clamp(20px, 3vw, 40px); font-size: clamp(110px, 14vw, 190px); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--fuellung); pointer-events: none; }
.land-kuerzel span { display: block; transition: opacity .5s var(--weich), transform .6s var(--weich); }
.land-kuerzel span::before { content: attr(data-k); }
.land-kuerzel .k-de { position: absolute; inset: 0; opacity: 0; transform: translateY(30%); }
[data-land-blatt="DE"] .k-at { opacity: 0; transform: translateY(-30%); }
[data-land-blatt="DE"] .k-de { opacity: 1; transform: none; }
.land-liste { position: relative; display: grid; }
.land-liste > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--linie-2); }
.land-liste dt { font-weight: 600; color: var(--ink); }
.land-liste dd { color: var(--ink-2); animation: einblenden .5s var(--weich) both; }
[data-land-blatt="AT"] .nur-de, [data-land-blatt="DE"] .nur-at { display: none; }
@keyframes einblenden { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 860px) {
  .laender-raster { grid-template-columns: 1fr; }
  .land-liste > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Mehr ---------- */
.mehr { margin-top: clamp(96px, 12vw, 160px); }
.mehr-liste { max-width: var(--breite); margin: clamp(32px, 5vw, 56px) auto 0; padding: 0 var(--rand); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); }
.mehr-liste li { padding: 28px 0 36px; border-top: 1px solid var(--linie); }
.mehr-liste svg { width: 28px; height: 28px; color: var(--blau); }
.mehr-liste h3 { margin-top: 16px; font-size: 1.1875rem; font-weight: 650; letter-spacing: -.015em; }
.mehr-liste p { margin-top: 6px; color: var(--ink-3); font-size: .9688rem; max-width: 30em; }
@media (max-width: 900px) { .mehr-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mehr-liste { grid-template-columns: 1fr; } .mehr-liste li { padding: 22px 0 24px; } }

/* ---------- Sicherheit ---------- */
.sicher { margin: clamp(96px, 12vw, 160px) auto 0; max-width: calc(var(--breite) + 2 * var(--rand) + 80px); padding: 0 max(0px, calc(var(--rand) - 24px)); }
.sicher-innen { position: relative; overflow: hidden; background: var(--sicher-bg); color: var(--sicher-ink); border-radius: clamp(24px, 3.4vw, 44px); padding: clamp(48px, 7vw, 104px) clamp(24px, 6vw, 88px); }
.sicher-innen::before { content: ''; position: absolute; width: 760px; height: 760px; right: -260px; top: -340px; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 132, 255, .28), transparent); pointer-events: none; }
.sicher-kopf { position: relative; }
.sicher .abschnitt-unter { color: var(--sicher-ink-2); }
.sicher-liste { position: relative; margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.sicher-liste li { display: flex; gap: 16px; padding: 24px 0 28px; border-top: 1px solid var(--sicher-linie); }
.sicher-liste svg { width: 26px; height: 26px; color: var(--sicher-icon); flex: none; }
.sicher-liste h3 { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.01em; }
.sicher-liste p { margin-top: 4px; color: var(--sicher-ink-2); font-size: .9375rem; }
@media (max-width: 900px) { .sicher-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sicher { padding: 0; } .sicher-innen { border-radius: 0; } .sicher-liste { grid-template-columns: 1fr; } }

/* ---------- Preise ---------- */
.preise { margin-top: clamp(96px, 12vw, 160px); }
.pakete { max-width: calc(var(--breite) + 2 * var(--rand)); margin: clamp(36px, 5vw, 56px) auto 0; padding: 0 var(--rand); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.paket { position: relative; display: flex; flex-direction: column; padding: 28px 24px 30px; border-radius: 26px; background: var(--flaeche); box-shadow: inset 0 0 0 1px var(--linie); }
.paket h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; }
.paket-fuer { margin-top: 4px; font-size: var(--t-klein); color: var(--ink-3); min-height: 2.9em; }
.preis { margin-top: 22px; display: flex; align-items: baseline; gap: 4px; line-height: 1; font-weight: 700; letter-spacing: -.035em; font-size: 3.125rem; white-space: nowrap; }
.betrag { display: inline-flex; }
.waehrung { font-size: .8em; }
html[lang="en"] .preis .waehrung { order: -1; margin-right: 2px; }
.pro { margin-left: 4px; font-size: .9375rem; font-weight: 450; letter-spacing: 0; color: var(--ink-3); }
.rolle { display: inline-block; height: 1em; line-height: 1; clip-path: inset(0 -2px); }
.band { display: flex; flex-direction: column; transition: transform .9s var(--weich); transition-delay: calc(var(--n, 0) * 45ms); transform: translateY(calc(var(--z, 0) * -1em)); }
.band span { display: block; height: 1em; line-height: 1; }
.preis-brutto { margin-top: 8px; font-size: .8125rem; color: var(--ink-3); min-height: 1.45em; font-variant-numeric: tabular-nums; }
.preis-unter { margin-top: 2px; font-size: .8125rem; font-weight: 550; color: var(--ink-2); min-height: 2.9em; text-wrap: pretty; }
.paket .knopf { margin-top: 14px; width: 100%; }
.knopf-notiz { margin-top: 8px; font-size: .7812rem; color: var(--ink-3); text-align: center; min-height: 1.4em; }
.paket-liste li.ohne { color: var(--ink-3); }
.paket-liste li.ohne::before { width: 10px; height: 0; top: .72em; left: 3px; border-left: 0; border-bottom: 2px solid var(--strich-g); transform: none; }
/* Band „Empfohlen“ über der hervorgehobenen Karte – keine „Beliebteste Wahl“ ohne Zahlen dazu */
.paket-band { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: .75rem; font-weight: 650; letter-spacing: .01em; padding: 5px 12px; border-radius: 999px; background: var(--blau); color: #FFFFFF; box-shadow: 0 6px 16px rgba(0, 113, 227, .3); }
.paket-liste { margin-top: 24px; display: grid; gap: 11px; }
.paket-liste li { position: relative; padding-left: 26px; font-size: .9375rem; color: var(--ink-2); }
.paket-liste li::before { content: ''; position: absolute; left: 2px; top: .42em; width: 12px; height: 6.5px; border-left: 2px solid var(--blau); border-bottom: 2px solid var(--blau); transform: rotate(-45deg); }
.paket-hervor { background: var(--hervor-bg); color: var(--hervor-ink); box-shadow: var(--schatten-tief); }
.paket-hervor .paket-fuer, .paket-hervor .preis-brutto, .paket-hervor .pro, .paket-hervor .knopf-notiz { color: var(--hervor-leise); }
.paket-hervor .preis-unter { color: var(--hervor-ink); }
.paket-hervor .paket-liste li { color: var(--hervor-ink); }
.paket-hervor .paket-liste li::before { border-color: #6CB4FF; }
.preise-fuss { max-width: 52em; margin: 32px auto 0; padding: 0 var(--rand); text-align: center; font-size: .875rem; line-height: 1.55; color: var(--ink-2); display: grid; gap: 6px; }
.preise-fuss strong { color: var(--ink); font-weight: 650; }
.preise-fuss p + p { font-size: .8125rem; color: var(--ink-3); }
@media (max-width: 1100px) { .pakete { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pakete { grid-template-columns: 1fr; } .paket-fuer { min-height: 0; } .preis { font-size: 2.875rem; } }
/* 0.4.7: vier Pakete (Privat, Solo, Business, Konzern) – das ursprüngliche Raster für vier Karten oben gilt wieder */

/* ---------- Fragen ---------- */
.fragen { max-width: var(--breite); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 var(--rand); }
.fragen-raster { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.fragen-raster .titel-gross { position: sticky; top: calc(var(--kopf-h) + 32px); }
.fragen-liste { border-bottom: 1px solid var(--linie); }
.fragen-liste details { border-top: 1px solid var(--linie); }
.fragen-liste summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.012em; border-radius: 8px; }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary svg { width: 22px; height: 22px; flex: none; color: var(--ink-3); transition: transform .35s var(--weich), color .2s; }
.fragen-liste summary:hover svg { color: var(--ink); }
.fragen-liste details[open] summary svg { transform: rotate(45deg); color: var(--blau); }
.fragen-liste details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--weich), content-visibility .4s allow-discrete; }
.fragen-liste details[open]::details-content { block-size: auto; }
.antwort { padding: 0 44px 24px 0; color: var(--ink-3); font-size: 1.0312rem; line-height: 1.6; }
@media (max-width: 860px) { .fragen-raster { grid-template-columns: 1fr; } .fragen-raster .titel-gross { position: static; } .fragen-liste summary { font-size: 1.0625rem; padding: 18px 0; } .antwort { padding-right: 0; } }

/* ---------- Ratgeber (0.4.9) – Liste kommt vom Server ---------- */
.ratgeber-kurz { max-width: var(--breite); margin: clamp(96px, 12vw, 160px) auto 0; padding: 0 var(--rand); }
.ratgeber-kurz .abschnitt-kopf { padding: 0; }
.ratgeber-liste { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ratgeber-liste li { display: flex; }
.r-karte { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 22px 52px 22px 22px; border-radius: 20px; background: var(--seite-2); box-shadow: inset 0 0 0 1px var(--linie); transition: background-color .2s, transform .2s var(--weich); }
.r-karte:hover { background: var(--fuellung); }
.r-karte:active { transform: scale(.985); }
.r-land { font-size: var(--t-mini); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blau-text); }
.r-karte b { font-size: 1.0625rem; font-weight: 650; letter-spacing: -.012em; line-height: 1.3; text-wrap: balance; }
.r-satz { font-size: var(--t-klein); line-height: 1.45; color: var(--ink-3); }
.r-pfeil { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-3); transition: transform .2s var(--weich), color .2s; }
.r-karte:hover .r-pfeil { transform: translateX(3px); color: var(--ink); }
.ratgeber-alle { margin-top: 24px; }
/* 0.4.10: Suche in den Ratgebern (auch WebMCP-Werkzeug „search_guides“) */
.r-suche { margin-top: clamp(22px, 3vw, 32px); display: grid; gap: 8px; max-width: 560px; }
.r-suche label { font-size: var(--t-klein, .875rem); font-weight: 600; color: var(--ink-2); }
.r-suche-zeile { display: flex; gap: 10px; }
.r-suche input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--flaeche); box-shadow: inset 0 0 0 1.5px var(--ink-3); -webkit-appearance: none; appearance: none; } /* 0.4.10: Rand ≥ 3 : 1 (WCAG 1.4.11) */
.r-suche input::placeholder { color: var(--ink-3); }
.r-suche input:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.r-suche .knopf { flex: 0 0 auto; }
@media (max-width: 380px) { .r-suche-zeile { flex-direction: column; } .r-suche .knopf { width: 100%; } }

@media (max-width: 900px) { .ratgeber-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ratgeber-liste { grid-template-columns: 1fr; } .r-karte { padding: 18px 48px 18px 18px; } }

/* ---------- Schluss ---------- */
.schluss { margin: clamp(112px, 14vw, 200px) auto 0; padding: 0 var(--rand) clamp(96px, 12vw, 160px); text-align: center; }
.schluss-tacho { width: min(440px, 76vw); margin: 0 auto; overflow: visible; }
.schluss-tacho .nadel { transform: rotate(38deg); transition: none; }
.schluss-titel { margin: clamp(24px, 3vw, 36px) auto 0; font-size: var(--t-titel); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; max-width: 15ch; text-wrap: balance; }
.schluss .abschnitt-unter { margin-inline: auto; }

/* ---------- Fuß ---------- */
.fuss { border-top: 1px solid var(--linie); background: var(--seite-2); padding: 48px var(--rand) 40px; font-size: var(--t-klein); color: var(--ink-3); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.fuss-marke { display: grid; gap: 8px; }
.fuss-marke .marke { color: var(--ink); }
.fuss-dach a { color: var(--ink); font-weight: 600; }
.fuss-dach a:hover { color: var(--blau-text); }
.fuss-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.fuss-nav a { color: var(--ink-2); padding: 8px 0; }
.fuss-nav a:hover { color: var(--ink); }
.fuss-nav .sprachwahl { font-size: var(--t-klein); font-weight: 500; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--linie-2); }
.fuss-fein { max-width: var(--breite); margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--linie); font-size: .75rem; line-height: 1.55; }

/* ---------- Dialog Rechtliches ---------- */
.recht { width: min(720px, calc(100vw - 24px)); max-height: min(84vh, 900px); padding: 0; border: 0; border-radius: 26px; background: var(--flaeche); color: var(--ink); box-shadow: var(--schatten-tief); overflow: hidden; display: none; flex-direction: column; }
.recht[open] { display: flex; }
.recht::backdrop { background: rgba(0, 0, 0, .36); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.recht-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 14px 28px; border-bottom: 1px solid var(--linie); }
.recht-kopf h2 { font-size: 1.375rem; letter-spacing: -.02em; }
.recht-zu { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--seite-2); flex: none; }
.recht-zu svg { width: 18px; height: 18px; }
.recht-zu use { stroke-width: 2; }
.recht-text { overflow-y: auto; padding: 18px 28px 32px; color: var(--ink-2); font-size: .9688rem; line-height: 1.6; overscroll-behavior: contain; }
.recht-text h3 { margin: 22px 0 6px; font-size: 1.0625rem; color: var(--ink); }
.recht-text p { margin: 0 0 12px; }
.recht-text strong { color: var(--ink); }
.recht-text ul { margin: 0 0 12px; padding-left: 22px; }
.recht-text li { margin: 2px 0; }
.recht-folgt { padding: 28px 0 12px; font-size: 1.0625rem; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .recht[open] { animation: dialog-auf .35s var(--weich); }
  .recht[open]::backdrop { animation: einblenden .3s ease both; }
}
@keyframes dialog-auf { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- Bewegung: der eine orchestrierte Auftritt beim Laden ---------- */
@media (prefers-reduced-motion: no-preference) {
  .held-titel .zeile > span { animation: zeile-hoch 1s var(--weich) both; }
  .held-titel .zeile:nth-child(2) > span { animation-delay: .09s; }
  .held-zeile, .held-unter, .held-aktionen, .held-haken { animation: auftritt .8s var(--weich) both; }
  .held-unter { animation-delay: .2s; }
  .held-aktionen { animation-delay: .3s; }
  .held-haken { animation-delay: .4s; }
  .buehne-flaeche .tacho-titel, .tacho-skala, .tacho-zahl, .tacho-art { animation: einblenden .7s var(--weich) .3s both; }
  .tacho .striche line { animation: strich-an .45s ease both; animation-delay: calc(var(--i) * 11ms + .3s); }
  .tacho .spur { animation: einblenden-rein .9s ease .25s both; }
  .tacho .nadel { animation: nadel-start 1.8s var(--feder) .55s backwards; }
  .beleg:not(.weg):not(.raus) { animation: beleg-rein 1s var(--weich) .7s backwards; }
  .einordnung:not(.weg):not(.raus) { animation: karte-rein 1s var(--weich) 1s backwards; }
  .buehne-leiste, .buehne-fuss { animation: einblenden-rein .8s ease 1.2s both; }
  .licht { animation: einblenden-rein 1.6s ease .2s both; }
}
@keyframes zeile-hoch { from { transform: translateY(105%); } }
@keyframes auftritt { from { opacity: 0; transform: translateY(14px); } }
@keyframes einblenden-rein { from { opacity: 0; } }
@keyframes strich-an { from { opacity: 0; } }
@keyframes nadel-start { from { transform: rotate(-90deg); } }
@keyframes beleg-rein { from { opacity: 0; transform: translate(-18%, 14%) rotate(-12deg); } }
@keyframes karte-rein { from { opacity: 0; transform: translate(-12%, 8%) scale(.9); } }
/* Nach dem Auftritt übernimmt landing.js; die Lade-Animation darf dann nicht erneut starten */
.buehne.gestartet .beleg, .buehne.gestartet .einordnung, .buehne.gestartet .tacho .nadel { animation: none; }

/* Scroll-gesteuert, wo der Browser es kann (sonst setzt landing.js .sichtbar per IntersectionObserver) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .titel-gross { animation: titel-auf linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .buehne-flaeche { animation: zuruecktreten linear both; animation-timeline: view(); animation-range: exit 25% exit 100%; }
    .schluss-tacho .nadel { animation: schluss-nadel linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  }
  .ohne-sda .titel-gross { opacity: 0; transform: translateY(.35em); transition: opacity .9s var(--weich), transform .9s var(--weich); }
  .ohne-sda .titel-gross.sichtbar { opacity: 1; transform: none; }
  .ohne-sda .schluss-tacho .nadel { transform: rotate(-80deg); transition: transform 1.8s var(--feder); }
  .ohne-sda .schluss-tacho.sichtbar .nadel { transform: rotate(38deg); }
}
@keyframes titel-auf { from { opacity: 0; transform: translateY(.35em); } }
@keyframes zuruecktreten { to { opacity: .35; transform: scale(.95) translateY(-3%); } }
@keyframes schluss-nadel { from { transform: rotate(-80deg); } to { transform: rotate(38deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .kapitel { opacity: 1; }
}

/* ---------- 0.4.1 – iPhone: Tippflächen ≥ 44 px, Sicherheitsabstände (viewport-fit=cover) ---------- */
:root { --rand: max(clamp(16px, 4.5vw, 48px), env(safe-area-inset-left), env(safe-area-inset-right)); }
.kopf { height: calc(var(--kopf-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
.held { padding-top: calc(var(--kopf-h) + env(safe-area-inset-top) + clamp(28px, 6.5vh, 88px)); }
.fuss { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (pointer: coarse) {
  .marke, .kopf-anmelden, .fuss-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .sprachwahl, .knopf-klein, .beispiel, .segment button { min-height: 44px; }
  .sprachwahl { min-width: 44px; }
}
/* 0.4.3: ganz schmale Handys – Überschrift zweizeilig halten */
@media (max-width: 359px) { .held-titel { font-size: 2.25rem; } .held-zeile { font-size: .7188rem; } }

/* ---------- 0.4.5 – Prüfung Oberfläche Runde 2 ---------- */
/* N-1 Band „Empfohlen“ im Dunkelmodus: Weiß auf #0A84FF hatte bei 12 px nur 3,6 : 1 – jetzt 5,6 : 1 */
:root[data-theme="dark"] .paket-band { background: #0060DF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .paket-band { background: #0060DF; } }
/* Safari < 16 / Firefox < 81 kennen overflow-x: clip nicht (dann galt gar nichts): hidden als Ersatz. Im Hero gibt es
   nichts Klebendes, und body gibt hidden ans Fenster weiter – die klebenden Spalten weiter unten bleiben klebend. */
@supports not (overflow-x: clip) {
  body, .held { overflow-x: hidden; }
}
/* Rechtstext offen: die Seite dahinter scrollt nicht mit (landing.js setzt die Klasse) */
html.recht-offen { overflow: hidden; }
/* 0.4.7 (QA): Monatlich/Jährlich am Handy mindestens 44 px hoch – auch ohne „pointer: coarse“ */
@media (max-width: 760px) { .segment button { min-height: 44px; } }
