/* Saldiqo – Website. Tokens wie DESIGN.md („Bank-Stil“) und brand/design-system/project/tokens.json.
   Aufbau nach docs/design/homepage-redesign-brief.md. Läuft ohne JavaScript. Immer hell. */

/* Schriften als woff2, Unbounded auf Latein (mit €, Typografie) und Kyrillisch aufgeteilt (Brief 4.1, M3).
   Ersatzschriften mit angepassten Maßen, damit beim Tausch nichts springt (gemessen gegen Arial). */
@font-face { font-family: 'Sora'; src: url('fonts/Sora-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('fonts/Sora-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('fonts/Sora-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('fonts/Unbounded-SemiBold-latin.woff2') format('woff2'); font-weight: 500 600; font-display: swap; unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; src: url('fonts/Unbounded-SemiBold-cyrillic.woff2') format('woff2'); font-weight: 500 600; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial'); font-weight: 500 600; size-adjust: 128.27%; ascent-override: 77.57%; descent-override: 19.1%; line-gap-override: 0%; }
@font-face { font-family: 'Sora Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400 500; size-adjust: 112.06%; ascent-override: 86.56%; descent-override: 25.88%; line-gap-override: 0%; }
@font-face { font-family: 'Sora Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600 700; size-adjust: 106.47%; ascent-override: 91.1%; descent-override: 27.24%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-sunken: #f4f6f5;
  --paper-hover: #ebefed;
  --line: #e3e8e5;
  --line-control: #838d88;
  --ink: #121614;
  --ink-2: #47514c;
  --ink-3: #66706b;
  --green: #127a52;
  --green-strong: #0d5e3f;
  --green-soft: #e6f3ec;
  --on-green: #ffffff;
  --on-green-2: rgba(255, 255, 255, 0.92);
  --shadow-pop: 0 16px 40px -16px rgba(18, 22, 20, 0.24), 0 2px 6px rgba(18, 22, 20, 0.06);
  /* Trennlinie auf grauer Fläche (Preis): --line verschwindet auf #f4f6f5, --line-control wäre zu laut */
  --line-sunken: rgba(131, 141, 136, 0.35);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --space-9: 96px;
  --space-10: 128px;
  --display: 'Unbounded', 'Unbounded Fallback', system-ui, sans-serif;
  --sans: 'Sora', 'Sora Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: 32px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* Unbounded hat nur einen Teil der griechischen Buchstaben: Überschriften wären gemischt. Griechisch daher in der Systemschrift. */
:root:lang(el) { --display: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
/* Längere H1 in Russisch, Griechisch, Maltesisch, Französisch und Spanisch: höchstens zwei Zeilen (wie die App) */
:root:lang(ru) .site-hero h1, :root:lang(el) .site-hero h1, :root:lang(mt) .site-hero h1 { font-size: clamp(32px, 3.4vw, 44px); }
:root:lang(fr) .site-hero h1, :root:lang(es) .site-hero h1 { font-size: clamp(34px, 3.8vw, 48px); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/26px var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 em, h2 em { font-style: normal; color: var(--green); }
a { color: var(--green); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 16px; }
/* Abschnittsabstände aus der Skala (Brief 4.2): Desktop 96, mobil 56 */
:root { --sec: var(--space-9); --sec-s: 64px; }

/* Schriftstufen (Brief 4.1) */
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: break-word; }
h3 { font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }

/* Tasten: Haupttaste grün, Pill, 48 px; Unbounded wie in der App (DESIGN.md) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 14px; line-height: 20px; letter-spacing: 0; text-decoration: none; text-align: center; transition: background 160ms var(--ease), transform 80ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-main { background: var(--green); color: var(--on-green); }
.btn-main:hover { background: var(--green-strong); }
.btn-soft { background: var(--paper-sunken); color: var(--ink); font-weight: 500; }
.btn-soft:hover { background: var(--paper-hover); }
.btn-sm { min-height: 40px; padding: 0 20px; }
.text-link { color: var(--green); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { text-decoration: underline; }

/* ---------- Kopf: weiß, ohne Blur, Linie beim Scrollen ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); box-shadow: 0 1px 0 transparent; transition: box-shadow 160ms var(--ease); }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.top .logo { flex: none; display: flex; align-items: center; min-height: 44px; }
.top .logo img { height: 30px; width: auto; }
.top-nav { display: flex; gap: 24px; margin-left: auto; }
.top-nav a, .top .login { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.top-nav a:hover, .top .login:hover { color: var(--ink); }
.top .login { margin-left: 8px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); background: var(--paper-sunken); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ''; width: 6px; height: 6px; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 0 0 2px; }
.lang-menu summary:hover { color: var(--ink); background: var(--paper-hover); }
.lang-menu img { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); flex: none; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px; border-radius: var(--radius-m); background: var(--paper); box-shadow: var(--shadow-pop), 0 0 0 1px var(--line); display: grid; z-index: 30; }
.lang-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--radius-s); color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-list a:hover { background: var(--paper-sunken); }
.lang-list a[aria-current] { font-weight: 600; background: var(--green-soft); }

/* ---------- 1 Hero: Text links, grünes Panel mit Kontoblatt rechts ---------- */
.site-hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.hero-text { grid-column: 1 / span 6; padding-right: 24px; }
.hero-panel { grid-column: 7 / span 6; }
.site-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.025em; }
/* Unbounded: bei engerer Laufweite berühren sich „l“ und „d“ in „Geld“ (ab −0,015 em). Die grüne Zeile daher −0,01 em. */
.site-hero h1 em { letter-spacing: -0.01em; }
.site-hero .eyebrow { display: block; font-family: var(--sans); font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-bottom: 20px; max-width: 440px; }
/* Länderseiten: Flagge vor der Zeile, damit man in Sekunden sieht, dass die Seite für dieses Land ist */
.eyebrow-flag { display: inline-block; width: 20px; height: 15px; margin-right: 8px; vertical-align: -2px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.site-hero .lead { margin-top: 24px; font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.site-hero .note { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
.site-hero .note a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }

.hero-panel { background: var(--green); border-radius: var(--radius-l); padding: 48px 40px 64px; display: flex; flex-direction: column; align-items: center; }
.site-sheet { width: 100%; max-width: 460px; background: var(--paper); color: var(--ink); border-radius: var(--radius-m); box-shadow: var(--shadow-pop); padding: 24px 24px 16px; font-variant-numeric: tabular-nums; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sheet-head b { font-size: 16px; line-height: 24px; font-weight: 600; }
.sheet-head span { font-size: 13px; line-height: 20px; color: var(--ink-3); }
/* Feste Spalten für Betrag und Saldo: jede Zeile ist ein eigenes Raster, die Beträge stehen trotzdem bündig */
.sheet-cols, .sheet-row, .sheet-total { display: grid; grid-template-columns: 52px minmax(0, 1fr) 96px 80px; column-gap: 12px; align-items: baseline; }
.sheet-cols { font-size: 13px; line-height: 20px; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.sheet-cols span:nth-child(n + 3), .sheet-row .a, .sheet-row .s { text-align: right; }
.sheet-row { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 22px; }
.sheet-row .d { color: var(--ink-3); font-size: 13px; }
.sheet-row .p { min-width: 0; overflow-wrap: anywhere; }
.sheet-row .p small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-3); }
.sheet-row .a { font-size: 15px; font-weight: 500; white-space: nowrap; }
.sheet-row .a small { font-size: 13px; }
.sheet-total small { font-size: 14px; }
.sheet-row .a.in { color: var(--green); font-weight: 600; }
.sheet-row .a.out { color: var(--ink); }
.sheet-row .s { font-size: 13px; line-height: 20px; color: var(--ink-3); white-space: nowrap; }
.sheet-row.is-opening .p { color: var(--ink-2); }
.sheet-total { padding: 12px 0 6px; border-bottom: 4px double var(--ink); font-weight: 600; }
.sheet-total span:first-child { grid-column: 1 / span 2; }
.sheet-total .v { grid-column: 3 / span 2; text-align: right; font-size: 18px; line-height: 26px; white-space: nowrap; }
/* Zugeordnete Zahlung: Status als Punkt + Wort unter dem Betrag, Zeile einmal kurz hervorgehoben */
/* Desktop: Status unter dem Betrag (eigene Rasterzeile, der Name spannt beide); mobil über die ganze Breite */
.sheet-row.is-matched .p { grid-row: span 2; }
.sheet-row .match { grid-column: 3; grid-row: 2; display: flex; justify-content: flex-end; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-2); animation: match-in 240ms var(--ease) 300ms both; }
.sheet-row .match .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green); flex: none; }
.sheet-row.is-matched { animation: row-flash 240ms var(--ease) 300ms both; }
@keyframes match-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes row-flash { from { background: var(--green-soft); } to { background: transparent; } }

/* Faktenzeile: eine Textzeile zwischen zwei Linien, Punkte als Trenner */
.facts { margin-top: 32px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.facts-list > span:not(:last-child)::after { content: '·'; display: inline-block; margin: 0 10px; color: var(--ink-3); }
/* Trenner der Länderlinks außerhalb der Unterstreichung (absolut positioniert) */
.country-list > * { position: relative; }
.country-list > :not(:last-child) { margin-right: 24px; }
.country-list > :not(:last-child)::after { content: '·'; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); text-decoration: none; }
.facts-countries b { font-weight: 600; color: var(--ink); margin-right: 6px; }
.country-list a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-control); display: inline-flex; align-items: center; min-height: 44px; }
.facts { padding: 4px 0; align-items: center; }
.country-list a:hover { text-decoration-color: currentColor; color: var(--ink); }
.country-list a[aria-current='page'], .country-list span[aria-current='page'] { font-weight: 600; text-decoration: none; color: var(--ink); }

/* Status: Punkt + Wort */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-2); }
.status .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); flex: none; }

/* Gezeichnetes Häkchen, Strich 1,6 px */
.tick { position: relative; flex: none; width: 18px; height: 18px; }
.tick::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--ink-3); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* ---------- 2 Belegspur: vollbreites graues Band, Belege unterschiedlich groß auf einer Linie ---------- */
.site-trail { background: var(--paper-sunken); padding: var(--sec) 0; }
.site-trail h2 { margin-bottom: 32px; }
.trail { --stage: 184px; position: relative; display: grid; grid-template-columns: 0.95fr 1.1fr 1.05fr 1fr 1.15fr; gap: 24px; }
.trail::before { content: ''; position: absolute; left: 0; right: 0; top: var(--stage); height: 1px; background: var(--line-control); opacity: 0.5; }
.trail-step { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.art-stage { height: var(--stage); display: flex; align-items: flex-end; }
.trail-step h3 { margin-top: 16px; }
.trail-step > p:last-child { font-size: 15px; line-height: 24px; color: var(--ink-2); }
/* Belege im selben Maßstab: Text 13 bis 15 px, weiß auf dem grauen Band, 1 px Kontur, kein Schatten */
.art { width: 100%; background: var(--paper); border-radius: var(--radius-s); box-shadow: 0 0 0 1px var(--line); font-variant-numeric: tabular-nums; font-size: 13px; line-height: 20px; color: var(--ink-3); }
/* Angebot: Nummer, Kunde, die beiden Positionen (kleiner, ohne Summe). Rechnung: Absenderzeile wie im
   Fensterkuvert, Empfänger, Nummer, Zahlungsziel und die Summe unter dem doppelten Strich */
.art-doc { padding: 14px 16px 12px; }
.doc-no { color: var(--ink); font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -0.01em; }
.doc-line { color: var(--ink-2); }
.doc-pos { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.doc-pos li { color: var(--ink-3); }
.doc-from { display: inline-block; padding-bottom: 2px; margin-bottom: 6px; border-bottom: 1px solid var(--line-control); }
.doc-to { color: var(--ink); font-size: 14px; line-height: 20px; margin-bottom: 6px; }
.doc-sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.doc-sum b, .bank-amt { color: var(--ink); font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.doc-sum small, .bank-amt small { font-size: 13px; }
.art-invoice .doc-sum { border-top: 4px double var(--ink); }
.art-files { padding: 14px 16px; display: grid; gap: 8px; }
.file-chip { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; border-radius: var(--radius-s); background: var(--paper-sunken); color: var(--ink); font-size: 13px; line-height: 20px; min-width: 0; }
.file-chip svg { flex: none; color: var(--green); }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Kontoauszug: eine Buchung wie im Kontoblatt, Verwendungszweck unter dem Namen */
.art-bank { padding: 12px 16px 10px; }
.bank-head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); }
.bank-party { padding-top: 8px; color: var(--ink); font-size: 14px; line-height: 22px; }
.bank-party small { display: block; color: var(--ink-3); font-size: 13px; line-height: 18px; }
.bank-amt { text-align: right; color: var(--green); }
/* Voranmeldung: Kennzahl links, Wert rechts */
.art-form { padding: 12px 16px 6px; }
.art-form dl { margin: 6px 0 0; }
.art-form dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: end; padding: 6px 0; border-top: 1px solid var(--line); }
.art-form dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 22px; font-weight: 600; white-space: nowrap; }

/* ---------- 3 Funktionen: 7/5, links der Editor-Ausschnitt, rechts die Funktionen, darunter die Vorlagen ---------- */
.site-features { padding: var(--sec) 0 0; }
.site-features h2 { margin-bottom: 32px; }
.feat-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; align-items: start; }
.feat-shot { grid-column: 1 / span 7; }
.feat-shot img { width: 100%; border-radius: var(--radius-m); background: var(--paper-sunken); }
figcaption { margin-top: 10px; font-size: 13px; line-height: 20px; color: var(--ink-3); }
/* Liste mit Linie oben: 2 px Tinte beim ersten Eintrag, danach 1 px (Brief 3.1) */
.feat-list { grid-column: 8 / span 5; }
.feat-list li { padding: 14px 0 18px; border-top: 1px solid var(--line); }
.feat-list li:first-child { border-top: 2px solid var(--ink); }
.feat-list p { margin-top: 4px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
/* Vorlagen: Satz links, fünf echte Vorlagen rechts (mobil alle zehn zum Wischen) */
.tpl { margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; }
.tpl-text { grid-column: 1 / span 4; padding-bottom: 4px; }
.tpl-text p { margin-top: 4px; color: var(--ink-2); }
.tpl-band { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tpl-band li:nth-child(n + 6) { display: none; }
.tpl-band img { width: 100%; height: auto; aspect-ratio: 196 / 277; border-radius: var(--radius-s); box-shadow: 0 0 0 1px var(--line); }

/* ---------- 4 Preis: graue Fläche, „0 €“ ist das größte Element ---------- */
.site-price-sec { padding: var(--sec-s) 0 0; }
.site-price { background: var(--paper-sunken); border-radius: var(--radius-l); padding: 48px; }
.site-price h2 { margin-bottom: 24px; }
/* HTML-Reihenfolge: Preis, Finanzierung, Leistungen, Taste, Kleingedrucktes, Wechsel (so liest man es mobil).
   Ab 981 px steht die Finanzierung als rechte Spalte über alle Zeilen, links bleibt der Preis-Stapel. */
.price-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(4, auto) 1fr; column-gap: 24px; align-items: start; }
.price-grid > * { grid-column: 1 / span 6; }
/* Abstand zur Trennlinie nur für die Textblöcke (die Taste behält ihr eigenes Polster) */
.price-grid > p, .price-grid > ul { padding-right: 24px; }
.price-grid > .price-model { grid-column: 7 / span 6; grid-row: 1 / -1; align-self: stretch; }
.price-grid > .price-cta { justify-self: start; }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.price-amount .big { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-amount .per { font-size: 16px; line-height: 24px; color: var(--ink-2); }
.price-points { margin-top: 24px; display: grid; gap: 10px; }
.price-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 24px; }
.price-points .tick { margin-top: 3px; }
.price-cta { margin-top: 32px; }
.price-grid > .small { margin-top: 16px; font-size: 13px; line-height: 20px; color: var(--ink-3); max-width: 34em; }
.price-model { grid-column: 7 / span 6; border-left: 1px solid var(--line-sunken); padding-left: 32px; }
/* Sprung „Warum kostenlos?“: auf dem Desktop bleibt die H2 des Preis-Kastens über der Spalte sichtbar */
@media (min-width: 981px) { #finanzierung { scroll-margin-top: 72px; } }
.price-model dl { margin: 12px 0 0; display: grid; gap: 14px; }
.price-model dt { font-size: 15px; line-height: 24px; font-weight: 600; color: var(--ink); }
.price-model dd { margin: 2px 0 0; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.price-switch { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-sunken); font-size: 15px; line-height: 24px; max-width: 34em; }
.price-switch a { font-weight: 600; text-decoration: none; }
.price-switch a:hover { text-decoration: underline; }

/* ---------- 5 Gemacht für Deutschland: redaktionell, 5/7 ---------- */
/* Regeln auf grauer Fläche: hebt sich von Sicherheit und Fragen ab (drei gleich gebaute Listen hintereinander) */
.site-rules { background: var(--paper-sunken); margin-top: var(--sec-s); padding: var(--sec) 0; }
.sec-head { margin-bottom: 32px; }
.sec-lead { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 34em; }
.sec-meta { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--ink-3); }
.rule { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding: 16px 0; border-top: 1px solid var(--line); }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule-k { grid-column: 1 / span 5; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.01em; }
.rule-k-text { font-family: var(--sans); font-size: 18px; line-height: 26px; }
/* Gesetz als kleiner Hinweis über dem Nutzen (germany.rows, vierte Spalte) */
.rule-tag { display: block; margin-bottom: 4px; font-family: var(--sans); font-weight: 500; font-size: 13px; line-height: 20px; letter-spacing: 0; color: var(--ink-3); }
.rule-v { grid-column: 6 / span 7; }
.rule-v p { color: var(--ink-2); max-width: 35.5em; }
.rule-fig { margin-top: 16px; max-width: 620px; }
.rule-fig img { border-radius: var(--radius-s); box-shadow: 0 0 0 1px var(--line); }

/* ---------- 6 Sicherheit und Steuerberatung ---------- */
.site-trust { padding: var(--sec-s) 0 0; }
.site-trust h2 { margin-bottom: 32px; }
.trust-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.trust-col { border-top: 2px solid var(--ink); padding-top: 16px; }
.trust-col h3 { padding-bottom: 4px; }
.trust-col li { padding: 10px 0; }
.trust-col h4 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; }
.trust-col li p { margin-top: 2px; font-size: 15px; line-height: 24px; color: var(--ink-2); }

/* ---------- 7 Fragen: Lead unter der H2, zwei Spalten ab 981 px ---------- */
.site-faq { padding: var(--sec) 0 0; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; padding: 13px 0; font-weight: 600; font-size: 16px; line-height: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 9px; height: 9px; flex: none; border: solid var(--ink-2); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); margin: -5px 4px 0 0; transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 0 18px; font-size: 15px; line-height: 24px; color: var(--ink-2); max-width: 38em; }

/* ---------- 8 Abschluss: ohne Kasten, 2 px Tinte oben, ab 980 px H2 links und Taste rechts ---------- */
.site-final { padding: var(--sec-s) 0 0; }
.final-row { border-top: 2px solid var(--ink); padding-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.final-row p { margin-top: 12px; font-size: 17px; line-height: 28px; color: var(--ink-2); }

/* ---------- Fuß: grün, weißes Logo, weiße Schrift ---------- */
.foot { margin-top: var(--sec-s); background: var(--green); color: var(--on-green); padding: 56px 0 28px; font-size: 14px; line-height: 22px; }
.foot a { color: var(--on-green); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot :focus-visible, .hero-panel :focus-visible { outline-color: #fff; }
.foot-top { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.28); }
.foot-brand img { height: 52px; width: auto; }
.foot-brand p { margin-top: 16px; max-width: 300px; color: var(--on-green); }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr; gap: 24px; }
.foot-cols nav { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.foot-cols b { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.foot-cols a[aria-current] { font-weight: 600; }
.foot-cols nav a { display: inline-flex; align-items: center; min-width: 44px; min-height: 32px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; font-size: 13px; line-height: 20px; }

/* Klebender Button auf dem Handy: erscheint nach dem Hero (site.js), weiß, ohne Blur */
.sticky-cta { display: none; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 56px 0 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 46px; letter-spacing: -0.03em; margin-bottom: 28px; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.legal h2 { font-family: var(--sans); font-size: 20px; line-height: 28px; letter-spacing: 0; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal .fill { background: #fcf2e2; color: #9a5a05; border-radius: 6px; padding: 1px 6px; font-weight: 500; }
.legal .actions { margin-top: 24px; }
.legal .todo { background: #fcf2e2; color: #9a5a05; border-radius: var(--radius-m); padding: 18px 20px; margin-bottom: 28px; }
.legal h3 { font-size: 16px; line-height: 24px; margin: 22px 0 6px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--ink); }
.legal .legal-stand { color: var(--ink-3); font-size: 14px; margin: -16px 0 24px; }
.legal .legal-summary { background: var(--paper-sunken); border-radius: var(--radius-m); padding: 22px 24px; margin-bottom: 8px; }
.legal .legal-summary h2 { margin-top: 0; }
/* Hinweis auf fr/es/ru/mt/el-Rechtsseiten: Seite nur auf Deutsch und Englisch, ggf. „verbindlich ist die deutsche Fassung“ */
.legal .legal-lang-note { font-size: 15px; line-height: 24px; color: var(--ink-2); border-left: 3px solid var(--green); border-radius: 0 var(--radius-m) var(--radius-m) 0; margin-bottom: 28px; }
.legal .legal-lang-note p { margin: 0; }
.legal .legal-lang-note p + p { margin-top: 8px; }
.legal .legal-note { font-size: 14px; line-height: 22px; color: var(--ink-2); border-left: 3px solid var(--green); padding: 2px 0 2px 14px; margin: 0 0 24px; }
.legal .legal-note:last-child { margin: 32px 0 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; line-height: 22px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.legal th { color: var(--ink); font-weight: 600; }
.legal .legal-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal .legal-table table { min-width: 560px; }
.legal .legal-table-plain th { width: 32%; }
.legal code { font-size: 13px; background: var(--paper-sunken); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }

/* Länder-Leiste ganz oben (geo.js): grün, im Seitenfluss über dem Kopf */
.geo-bar { background: var(--green); color: #fff; font-size: 14px; line-height: 20px; animation: geo-in 260ms var(--ease) both; }
.geo-bar.is-closing { animation: geo-out 180ms var(--ease) both; }
.geo-bar-inner { max-width: var(--max); margin: 0 auto; padding: 6px var(--gutter); display: flex; align-items: center; justify-content: center; gap: 6px 14px; flex-wrap: wrap; min-height: 44px; box-sizing: border-box; position: relative; padding-right: calc(var(--gutter) + 44px); padding-left: calc(var(--gutter) + 44px); }
.geo-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.35); flex: none; }
.geo-bar p { margin: 0; font-weight: 500; }
.geo-go { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-flex; align-items: center; min-height: 32px; border-radius: 6px; padding: 0 2px; }
.geo-go::after { content: "→"; margin-left: 6px; text-decoration: none; display: inline-block; transition: transform 160ms var(--ease); }
.geo-go:hover { text-decoration-thickness: 2px; }
.geo-go:hover::after { transform: translateX(2px); }
.geo-go:focus-visible, .geo-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.geo-close { position: absolute; right: max(var(--gutter), 8px); top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; transition: background-color 160ms var(--ease); }
.geo-close:hover { background: var(--green-strong); }
@keyframes geo-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes geo-out { to { opacity: 0; transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .geo-bar, .geo-bar.is-closing { animation: none; } }

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .top-nav { gap: 20px; }
  .top .wrap { gap: 20px; }
}
@media (max-width: 980px) {
  .top-nav { display: none; }
  .top .login { margin-left: auto; }
  .hero-text, .hero-panel { grid-column: 1 / -1; }
  .hero-text { padding-right: 0; }
  .feat-shot, .feat-list, .tpl-text, .tpl-band { grid-column: 1 / -1; }
  .feat-list { margin-top: 32px; }
  .final-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-col + .faq-col details:first-child { border-top: 0; }
  .final-row .btn { justify-self: start; }
  /* Einspaltig in HTML-Reihenfolge: „0 €“, dann gleich die Finanzierung, danach Leistungen und Taste */
  .price-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .price-grid > *, .price-grid > .price-model { grid-column: 1 / -1; grid-row: auto; }
  .price-grid > p, .price-grid > ul { padding-right: 0; }
  .price-grid > .price-model { margin-top: 24px; border-left: 0; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line-sunken); }
  .price-points { padding-top: 24px; border-top: 1px solid var(--line-sunken); }
  .trail { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .trail::before { display: none; }
  .art-stage { height: auto; min-height: 150px; }
  .foot-top { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --sec: 72px; --sec-s: 56px; }
  html { scroll-padding-top: 72px; scroll-padding-bottom: 96px; }
  .top .wrap { height: 64px; gap: 12px; }
  .top .logo img { height: 26px; }
  .top-cta { display: none; }
  .lang-menu summary { height: 44px; }
  .lang-list { right: 0; }
  .site-hero { padding: 24px 0 56px; }
  .site-hero h1, :root:lang(mt) .site-hero h1 { font-size: 36px; }
  :root:lang(ru) .site-hero h1, :root:lang(el) .site-hero h1, :root:lang(fr) .site-hero h1, :root:lang(es) .site-hero h1 { font-size: 32px; }
  .site-hero .eyebrow { font-size: 14px; line-height: 21px; margin-bottom: 14px; }
  .site-hero .lead { margin-top: 16px; font-size: 16px; line-height: 25px; }
  .hero-cta { margin-top: 24px; gap: 4px 20px; }
  .hero-panel { padding: 24px 12px 28px; margin-top: 16px; border-radius: var(--radius-m); }
  .site-sheet { padding: 16px 14px 12px; }
  .sheet-row.is-optional { display: none; }
  .sheet-cols, .sheet-row, .sheet-total { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 10px; }
  .sheet-row .match { white-space: nowrap; grid-column: 2 / -1; }
  .sheet-row.is-matched .p { grid-row: auto; }
  .sheet-cols span:nth-child(4), .sheet-row .s { display: none; }
  .sheet-total span:first-child { grid-column: 1 / span 2; }
  .sheet-total .v { grid-column: 3; }
  .facts { margin-top: 32px; flex-direction: column; align-items: flex-start; font-size: 14px; line-height: 22px; padding: 8px 0; }
  /* Mobil ohne Trennpunkte (sie hingen am Zeilenende): Fakten untereinander, „Eingerichtet für“ steht
     in derselben Zeile wie das erste Land, die Länder brechen mit Abstand um */
  .facts-list { display: grid; padding: 6px 0 2px; }
  .facts-list > span:not(:last-child)::after { display: none; }
  .facts-countries { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; row-gap: 0; }
  .facts-countries b { margin-right: 0; }
  .country-list { display: contents; }
  .country-list > :not(:last-child) { margin-right: 0; }
  .country-list > :not(:last-child)::after { display: none; }
  .trail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding: 0 var(--gutter); }
  .trail-step { scroll-snap-align: start; }
  /* Bühne so hoch wie der höchste Beleg (die Verbindungslinie fehlt mobil) */
  .trail { --stage: 160px; }
  .art-stage { min-height: 0; height: var(--stage); }
  .site-features h2 { margin-bottom: 24px; }
  .feat-shot img { border-radius: var(--radius-s); }
  .feat-list { margin-top: 24px; }
  .feat-list li { padding: 12px 0 14px; }
  .tpl { margin-top: 32px; gap: 0; }
  .tpl-band { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; margin: 16px calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 10px; scroll-padding: 0 var(--gutter); }
  .tpl-band li { flex: none; scroll-snap-align: start; }
  .tpl-band li:nth-child(n + 6) { display: block; }
  .tpl-band img { width: 152px; }
  /* Mobil als vollbreites Band wie die Belegspur: mehr Breite für den Text, weniger Zeilen */
  .site-price { margin: 0 calc(-1 * var(--gutter)); padding: 40px var(--gutter); border-radius: 0; }
  .rule { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .rule-k, .rule-v { grid-column: 1 / -1; }
  .rule-k { font-size: 20px; line-height: 26px; }
  /* Der Zahlteil ist bei 358 px nicht mehr lesbar (Schrift unter 5 px): mobil nur der Satz */
  .rule-fig { display: none; }
  .price-model dl { gap: 12px; }
  .price-grid > .price-model { margin-top: 20px; padding-top: 20px; }
  .price-points { margin-top: 20px; padding-top: 20px; }
  .price-model dd { margin-top: 0; }
  .trust-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq summary { padding: 12px 0; }
  .final-row { padding-top: 24px; }
  .final-row .btn { width: 100%; }
  .foot { padding: 40px 0 24px; }
  .foot-brand img { height: 40px; }
  .foot-brand p { margin-top: 12px; }
  .foot-top { gap: 24px; padding-bottom: 24px; }
  /* Mobil zwei Spalten: Produkt | Rechtliches + Konto, darunter die Sprachen als Zeile */
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: 'product legal' 'product account' 'lang lang'; gap: 16px; }
  .foot-cols nav { gap: 0; }
  .foot-cols nav:nth-child(1) { grid-area: product; }
  .foot-cols nav:nth-child(2) { grid-area: account; }
  .foot-cols nav:nth-child(3) { grid-area: legal; }
  .foot-cols nav:nth-child(4) { grid-area: lang; flex-direction: row; flex-wrap: wrap; column-gap: 20px; }
  .foot-cols nav:nth-child(4) b { flex-basis: 100%; }
  .foot-cols nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .sticky-cta { display: block; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--paper); box-shadow: 0 -1px 0 var(--line); visibility: hidden; transform: translateY(110%); transition: transform 200ms var(--ease), visibility 0s linear 200ms; }
  .sticky-cta.is-visible { visibility: visible; transform: none; transition: transform 200ms var(--ease), visibility 0s; }
  .sticky-cta .btn { width: 100%; }
  .geo-bar-inner { justify-content: flex-start; padding-left: var(--gutter); gap: 2px 10px; }
  .legal h1 { font-size: 27px; line-height: 34px; }
  .legal .legal-table-plain th, .legal .legal-table-plain td { display: block; width: auto; padding-right: 0; }
  .legal .legal-table-plain th { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 400px) {
  /* Sprachkürzel nur optisch verstecken: Der Name bleibt „Sprache: DE“ */
  .lang-menu summary .lang-code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 359px) {
  .site-hero h1, :root:lang(mt) .site-hero h1 { font-size: 32px; }
  :root:lang(ru) .site-hero h1, :root:lang(el) .site-hero h1, :root:lang(fr) .site-hero h1, :root:lang(es) .site-hero h1 { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
