/* ============================================================
   holzweg89.de — Design-System
   Stil: Apple-Klarheit + warme Wohnlichkeit
   Keine Inline-Styles (strikte CSP) — alles hier.
   ============================================================ */

/* ---------- Fonts (lokal, kein CDN) ---------- */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #FAF7F1;   /* warmes Off-White */
  --bg-soft:   #F4EEE4;   /* Creme */
  --bg-sand:   #ECE3D3;   /* Sand */
  --card:      #FFFEFB;
  --ink:       #2E2C28;   /* dunkles warmes Anthrazit */
  --ink-soft:  #5E594F;
  --ink-faint: #8A8478;
  --salbei:      #6E7F63; /* zurückhaltendes Salbeigrün */
  --salbei-dark: #59684F;
  --salbei-soft: #E3E8DD;
  --terra:       #BC6B4A; /* dezentes Terrakotta (Akzent) */
  --terra-soft:  #F3E2D8;
  --linie: rgba(46, 44, 40, 0.14);
  --shadow-s: 0 1px 2px rgba(46,44,40,.05), 0 4px 14px rgba(46,44,40,.06);
  --shadow-m: 0 2px 6px rgba(46,44,40,.06), 0 14px 40px rgba(46,44,40,.10);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 74rem;
  --prose: 44rem;
  --radius: 22px;
  --radius-s: 14px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(.22, .61, .21, 1);
}

/* ---------- Reset / Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  font-size: 1.125rem;            /* 18px Grundschrift — gut lesbar */
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--salbei-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--salbei); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--salbei-soft); }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p  { max-width: var(--prose); }
.lead { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.55; color: var(--ink-soft); }
.center { text-align: center; }
.center p, .center .lead { margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-soft { background: var(--bg-soft); }
.section-sand { background: var(--bg-sand); }
.section-dark { background: var(--ink); color: #F5F2EC; }
.section-dark h2, .section-dark h3 { color: #FAF7F1; }
.section-dark p { color: rgba(245, 242, 236, .82); }
.section-dark a { color: var(--salbei-soft); }
.section-dark a:hover { color: #FFFFFF; }
.kicker {
  display: inline-block; font-size: .95rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terra); margin-bottom: 1rem;
}
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.6rem); }
.section-head p { margin-top: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--linie);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}
.brand { font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--terra); }
.main-nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.15rem); }
.main-nav a {
  text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 1rem;
  padding: .55rem .55rem; border-radius: 10px; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.main-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--ink); color: #fff !important; padding: .6rem 1.15rem !important;
  border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--salbei-dark) !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--linie); border-radius: 12px;
  width: 3rem; height: 3rem; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
}
.nav-toggle span { display: block; width: 1.35rem; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--linie);
    padding: .8rem 1.25rem 1.4rem;
    transform: translateY(-110%); transition: transform .35s var(--ease);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .main-nav { transform: translateY(0); }
  .main-nav a { font-size: 1.25rem; padding: .9rem .4rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .main-nav a:last-child { border-bottom: 0; }
  .nav-cta { margin-top: .9rem; text-align: center; border-radius: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: 1.08rem; font-weight: 600; line-height: 1;
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .18s var(--ease), background .2s, box-shadow .2s;
  min-height: 3.4rem;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-s); }
.btn-primary:hover { background: var(--salbei-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn-secondary { background: transparent; color: var(--ink); border-color: rgba(46,44,40,.35); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(255,255,255,.6); transform: translateY(-2px); }
.section-dark .btn-secondary { color: #F5F2EC; border-color: rgba(245,242,236,.4); }
.section-dark .btn-secondary:hover { border-color: #F5F2EC; background: rgba(255,255,255,.08); }
.btn-group { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92svh, 60rem); display: flex; align-items: flex-end;
  isolation: isolate; overflow: hidden; border-radius: 0;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 2.4s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(24,22,19,.72) 0%, rgba(24,22,19,.28) 45%, rgba(24,22,19,.05) 75%);
}
.hero-content { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; padding-block: clamp(3rem, 7vw, 5.5rem); color: #fff; }
.hero-content h1 { color: #fff; font-size: clamp(2.9rem, 7.5vw, 5.2rem); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 500; margin-top: 1.1rem; max-width: 38ch; text-shadow: 0 1px 14px rgba(0,0,0,.3); }
.hero-note {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 999px; padding: .5rem 1.1rem; font-weight: 500; font-size: 1rem; margin-top: 1.4rem;
}
.hero .btn-group { margin-top: 2rem; }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--bg-soft); color: var(--ink); }
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.14); border-color: #fff; }

/* Unterseiten-Hero (schlank) */
.page-head { padding-block: clamp(3.2rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }

/* ---------- Bilder & Story ---------- */
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-m); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure-full { border-radius: clamp(0px, 2vw, var(--radius)); }
.figure-caption { font-size: .95rem; color: var(--ink-faint); margin-top: .7rem; }
/* Bildunterschrift INNERHALB der abgerundeten Karte: mittiger Kartenfuß.
   Horizontales Padding bewusst groesser als der Eckradius (22px),
   damit die Rundung nie in den Text schneidet. */
.figure > .figure-caption {
  margin-top: 0;
  padding: .9rem calc(var(--radius) + .4rem);
  text-align: center;
  background: var(--card);
  border-top: 1px solid var(--linie);
}

.split { display: grid; gap: clamp(1.6rem, 4vw, 4rem); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split-media-right .split-media { order: 2; }
}
.split-media img { aspect-ratio: 4 / 3; }

/* Story-Statements (große Aussagen zwischen Bildern) */
.statement { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; max-width: 24ch; }
.statement em { font-style: normal; color: var(--salbei-dark); }
.statement-answer { color: var(--terra); }

/* ---------- Fact-Chips (Startseite) ---------- */
.chip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem; }
.chip {
  background: var(--card); border: 1px solid var(--linie); border-radius: var(--radius-s);
  padding: 1.3rem 1.2rem; box-shadow: var(--shadow-s);
}
.chip strong { display: block; font-size: 1.15rem; }
.chip span { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Karten/Cards ---------- */
.card-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-s); display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card-body h3 { font-size: 1.22rem; }
.card-meta { color: var(--terra); font-weight: 600; font-size: .98rem; }
.card-body p { font-size: 1rem; color: var(--ink-soft); }
.card-link { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: 1rem; }

/* Feature-Liste (Komfort etc.) */
.feature-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.feature { background: var(--card); border: 1px solid var(--linie); border-radius: var(--radius-s); padding: 1.5rem 1.4rem; box-shadow: var(--shadow-s); }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { font-size: 1rem; color: var(--ink-soft); }
.feature .feature-icon { font-size: 1.6rem; display: block; margin-bottom: .7rem; }
/* In dunklen Sektionen: Karten dunkel, Schrift hell (sonst hell auf hell) */
.section-dark .feature {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(245, 242, 236, .18);
  box-shadow: none;
}
.section-dark .feature h3 { color: #FAF7F1; }
.section-dark .feature p { color: rgba(245, 242, 236, .82); }

/* Checkliste */
.checklist { list-style: none; display: grid; gap: .65rem; max-width: var(--prose); }
.checklist li { padding-left: 2rem; position: relative; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--salbei-dark); font-weight: 700;
}

/* ---------- Große Zahlen ---------- */
.stat-grid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.stat {
  background: var(--card); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 2rem 1.1rem; text-align: center; box-shadow: var(--shadow-s);
  min-width: 0; overflow: hidden;
}
.stat b {
  display: block; font-size: clamp(1.7rem, 1rem + 2vw, 2.7rem); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere;
}
.stat span { color: var(--ink-soft); font-size: 1.02rem; display: block; margin-top: .5rem; }
.stat-accent b { color: var(--salbei-dark); }

/* ---------- Sticky-Story (Umgebung) ---------- */
.pin-wrap { position: relative; }
.pin-media { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); overflow: hidden; }
.pin-media img { width: 100%; height: 100%; object-fit: cover; }
.pin-chapters { position: relative; z-index: 2; margin-top: calc(-100svh + var(--header-h)); pointer-events: none; }
.pin-chapter { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.pin-card {
  pointer-events: auto; background: rgba(250, 247, 241, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--shadow-m);
  padding: clamp(1.6rem, 3.5vw, 2.6rem); max-width: 30rem; margin: 1.25rem;
}
.pin-card h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .6rem; }
.pin-card p { font-size: 1.08rem; }
.pin-card .pin-fact { color: var(--terra); font-weight: 700; margin-top: .8rem; font-size: 1.05rem; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius-s); background: var(--card); box-shadow: var(--shadow-s); }
table { width: 100%; border-collapse: collapse; font-size: 1.02rem; min-width: 34rem; }
th, td { text-align: left; padding: .95rem 1.15rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-weight: 600; background: var(--bg-soft); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .td-note { color: var(--ink-faint); font-size: .92rem; display: block; }

/* ---------- Ärzte / Umgebung Listen ---------- */
.poi-list { display: grid; gap: 1rem; }
.poi {
  display: grid; gap: .3rem 1.2rem; background: var(--card); border: 1px solid var(--linie);
  border-radius: var(--radius-s); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-s);
}
@media (min-width: 720px) { .poi { grid-template-columns: 1fr auto; align-items: center; } }
.poi h3 { font-size: 1.15rem; }
.poi .poi-sub { color: var(--ink-soft); font-size: 1rem; }
.poi .poi-dist { color: var(--terra); font-weight: 700; white-space: nowrap; font-size: 1.02rem; }
.poi .poi-links { font-size: .98rem; }

/* Filter-Buttons (Karte) */
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
.filter-btn {
  border: 1px solid var(--linie); background: var(--card); color: var(--ink-soft);
  font-family: var(--sans); font-size: 1rem; font-weight: 600;
  border-radius: 999px; padding: .6rem 1.2rem; cursor: pointer; min-height: 2.9rem;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--salbei-dark); color: var(--ink); }
.filter-btn.is-active { background: var(--salbei-dark); border-color: var(--salbei-dark); color: #fff; }

/* ---------- Leaflet-Karte + Consent ---------- */
.map-shell { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); box-shadow: var(--shadow-m); background: var(--bg-sand); }
#map { height: min(70svh, 34rem); width: 100%; }
.map-consent {
  position: absolute; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--bg-soft), var(--bg-sand)); text-align: center; padding: 1.5rem;
}
.map-consent-inner { max-width: 30rem; }
.map-consent-inner h3 { margin-bottom: .6rem; }
.map-consent-inner p { font-size: 1rem; color: var(--ink-soft); margin-inline: auto; }
.map-consent-inner .btn { margin-top: 1.2rem; }
.map-consent-inner .map-consent-note { font-size: .9rem; color: var(--ink-faint); margin-top: .8rem; }
.leaflet-container { font-family: var(--sans); font-size: .95rem; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content b { font-size: 1.02rem; }

/* ---------- Grundriss ---------- */
.plan-shell {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--linie); background: #fff; box-shadow: var(--shadow-m);
  touch-action: none; cursor: grab; height: min(72svh, 40rem);
}
.plan-shell:fullscreen { border-radius: 0; background: #fff; }
.plan-shell.is-dragging { cursor: grabbing; }
.plan-inner { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.plan-inner img { display: block; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.plan-controls { position: absolute; right: 1rem; bottom: 1rem; z-index: 5; display: flex; gap: .5rem; }
.plan-btn {
  width: 3rem; height: 3rem; border-radius: 12px; border: 1px solid var(--linie);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); font-size: 1.3rem; font-weight: 600;
  cursor: pointer; color: var(--ink); line-height: 1;
}
.plan-btn:hover { background: var(--bg-soft); }
.plan-hint { font-size: .95rem; color: var(--ink-faint); margin-top: .8rem; }

/* Grundriss-Ansichtsumschalter */
.plan-toggle { margin-bottom: 1.1rem; }
.plan-shell.is-moebliert .plan-spot { display: none; }

/* Hotspots (Labels im Grundriss; skalieren gegenläufig zum Zoom) */
.plan-spot {
  position: absolute; z-index: 4;
  transform: translate(-50%, -50%) scale(calc(1 / var(--s, 1)));
  background: rgba(46,44,40,.85); color: #fff; font-size: 1rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 999px; white-space: nowrap; pointer-events: none;
}
.spot-wohnzimmer { left: 32%; top: 28%; }
.spot-patio      { left: 11%; top: 28%; }
.spot-flur       { left: 52%; top: 33%; }
.spot-wc         { left: 52%; top: 16%; }
.spot-bad        { left: 61%; top: 21%; }
.spot-schlafzimmer { left: 81%; top: 27%; }
.spot-kueche     { left: 81%; top: 52%; }
.spot-zimmer     { left: 81%; top: 78%; }

/* ---------- Finanzierungsrechner ---------- */
.calc-layout { display: grid; gap: 1.6rem; }
@media (min-width: 960px) { .calc-layout { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.calc-panel, .calc-result {
  background: var(--card); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-s);
}
.calc-result { position: sticky; top: calc(var(--header-h) + 1rem); }
.calc-field { margin-bottom: 1.6rem; }
.calc-field:last-child { margin-bottom: 0; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; margin-bottom: .55rem; flex-wrap: wrap; }
.calc-label .calc-value { color: var(--salbei-dark); font-variant-numeric: tabular-nums; font-size: 1.12rem; }
input[type="range"] {
  width: 100%; height: 2.2rem; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--bg-sand); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--bg-sand); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--salbei-dark); border: 3px solid #fff; box-shadow: var(--shadow-s); margin-top: -11px;
}
input[type="range"]::-moz-range-thumb { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--salbei-dark); border: 3px solid #fff; box-shadow: var(--shadow-s); }
.calc-input-row { display: flex; gap: .6rem; align-items: center; }
.calc-input-row input[type="number"], .calc-input-row input[type="text"] {
  width: 9.5rem; font: inherit; padding: .6rem .8rem; border: 1px solid var(--linie); border-radius: 10px; background: #fff;
  font-variant-numeric: tabular-nums;
}
.seg { display: inline-flex; border: 1px solid var(--linie); border-radius: 999px; overflow: hidden; background: var(--bg-soft); flex-wrap: wrap; }
.seg button {
  border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink-soft);
  padding: .65rem 1.2rem; cursor: pointer; min-height: 2.9rem;
}
.seg button.is-active { background: var(--ink); color: #fff; }
.calc-result h3 { margin-bottom: 1rem; }
.calc-rate { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.03em; color: var(--salbei-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-rate-label { color: var(--ink-soft); margin-bottom: 1.4rem; }
.calc-rows { display: grid; gap: .55rem; font-variant-numeric: tabular-nums; }
.calc-row { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--linie); font-size: 1.02rem; }
.calc-row:last-child { border-bottom: 0; }
.calc-row b { white-space: nowrap; }
.calc-row span { color: var(--ink-soft); }
.calc-note { font-size: .95rem; color: var(--ink-faint); margin-top: 1.1rem; }
.calc-save {
  margin-top: 1.4rem; background: var(--salbei-soft); border-radius: var(--radius-s);
  padding: 1.1rem 1.2rem; font-size: 1rem;
}
.calc-save b { color: var(--salbei-dark); }
.zins-badge { font-size: .95rem; color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 50rem; margin-inline: auto; display: grid; gap: .9rem; }
details {
  background: var(--card); border: 1px solid var(--linie); border-radius: var(--radius-s);
  box-shadow: var(--shadow-s); overflow: hidden;
}
summary {
  cursor: pointer; font-weight: 600; font-size: 1.12rem; padding: 1.25rem 3.2rem 1.25rem 1.4rem;
  list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--salbei-dark); transition: transform .25s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details .faq-body { padding: 0 1.4rem 1.4rem; color: var(--ink-soft); }
details .faq-body p { margin-bottom: .6rem; }

/* ---------- Formular ---------- */
.form-card {
  background: var(--card); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow-s); max-width: 44rem;
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 680px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } .form-span { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: 1.02rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--ink);
  padding: .85rem 1rem; border: 1px solid var(--linie); border-radius: 12px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--salbei-soft); border-color: var(--salbei-dark); }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field .optional { color: var(--ink-faint); font-weight: 400; }
.check-row { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; }
.check-row input { width: 1.35rem; height: 1.35rem; margin-top: .2rem; accent-color: var(--salbei-dark); flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.form-note { font-size: .95rem; color: var(--ink-faint); }
.form-success {
  display: none; background: var(--salbei-soft); border: 1px solid var(--salbei);
  color: var(--ink); border-radius: var(--radius-s); padding: 1.2rem 1.4rem; margin-bottom: 1.4rem; font-weight: 500;
}
.form-success.is-visible { display: block; }

/* ---------- Transparenz / Info-Boxen ---------- */
.notice {
  background: var(--bg-soft); border: 1px solid var(--linie); border-left: 4px solid var(--terra);
  border-radius: var(--radius-s); padding: 1.2rem 1.4rem; max-width: var(--prose); font-size: 1.02rem;
}
.notice-green { border-left-color: var(--salbei-dark); }

/* ---------- CTA-Band ---------- */
.cta-band { text-align: center; }
.cta-band .btn-group { justify-content: center; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(245,242,236,.75); padding-block: 3.2rem 5.8rem; font-size: 1rem; }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 780px) { .footer-inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { color: #FAF7F1; font-size: 1.05rem; margin-bottom: .8rem; }
.site-footer a { color: rgba(245,242,236,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nav { list-style: none; display: grid; gap: .45rem; }
.footer-tag { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(245,242,236,.16); font-size: .95rem; }
.footer-brand { font-weight: 700; font-size: 1.2rem; color: #fff; }
.footer-brand span { color: var(--terra); }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: .6rem; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(250,247,241,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--linie);
}
.sticky-cta .btn { flex: 1; padding-inline: 1rem; white-space: nowrap; }
.sticky-cta .btn-secondary { background: #fff; flex: 0 1 auto; }
@media (max-width: 760px) { .sticky-cta { display: flex; } body { padding-bottom: 5rem; } }

/* ---------- Scroll-Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.is-visible { opacity: 1; transform: none; }
/* Stagger in Gruppen */
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: .13s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: .21s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: .29s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: .37s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: .45s; }
.stagger.is-visible > *:nth-child(7) { transition-delay: .53s; }
.stagger.is-visible > *:nth-child(8) { transition-delay: .61s; }
/* Parallax */
[data-parallax] { will-change: transform; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-media img { animation: none; }
  [data-parallax] { transform: none !important; }
  .card:hover, .btn-primary:hover, .btn-secondary:hover { transform: none; }
  * { animation-duration: .001s !important; transition-duration: .15s !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .sticky-cta, .site-footer, .map-shell, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
