/* Fenedo LP "Förderung für neue Fenster". Tokens follow DESIGN.md of the montage pilot. */

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the swap to Figtree does not move layout (CLS 0). */
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 99%;
  ascent-override: 96%;
  descent-override: 25.3%;
  line-gap-override: 0%;
}

:root {
  --navy: #152b37;
  --navy-deep: #0d1c25;
  --navy-soft: #1f3a49;
  --ink: #152b37;
  --ink-2: #35525f;
  --muted: #4f6a78;
  --line: #e3e7ea;
  --line-strong: #c6d1d7;
  --mist: #f3f6f7;
  --paper: #ffffff;
  --sky: #8bd2e9;
  --sky-hover: #a6ddef;
  --sky-soft: #e6f5fb;
  --error: #b42318;
  --warn-bg: #fdf3e6;
  --warn-ink: #7a4510;

  --font: "Figtree", "Figtree Fallback", system-ui, sans-serif;
  /* Brand face Deuterium (Adobe) replaces Figtree once the licence is in place. */

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 8px;
  --radius-lg: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--navy);
  accent-color: var(--navy);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--sky); color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
sub { font-size: 0.7em; line-height: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.i { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 50;
  background: var(--paper); color: var(--navy); padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 12px; }

/* Buttons: brand pill, sky with navy text (as on fenedo.de). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 100px;
  background: var(--sky); color: var(--navy);
  font: 600 1rem/1.2 var(--font); text-decoration: none; letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 200ms var(--ease-out), transform 160ms var(--ease-out), border-color 200ms var(--ease-out);
}
.btn:hover { background: var(--sky-hover); }
.btn:active { transform: scale(0.98); }
.btn .i { transition: transform 200ms var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; padding-inline: 16px; }
.btn--ghost { background: transparent; border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--navy); }
.btn--navy { background: var(--navy); color: var(--paper); }
.btn--navy:hover { background: var(--navy-soft); }
.btn:focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 5px var(--navy); }

.link-quiet { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.link-quiet:hover { text-decoration: underline; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--navy);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
  transition: border-color 200ms var(--ease-out);
}
.link-arrow:hover { border-color: var(--navy); }
.link-arrow .i { width: 1.1em; height: 1.1em; transition: transform 200ms var(--ease-out); }
.link-arrow:hover .i { transform: translateX(3px); }
.link-light { color: var(--paper); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); }
.link-light:hover { text-decoration-color: var(--paper); }

/* Header on the navy hero */
.site-header { background: var(--navy-deep); color: var(--paper); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; }
.logo { display: block; color: inherit; line-height: 0; border-radius: 2px; }
.logo svg { width: 132px; height: auto; aspect-ratio: 190 / 31.872; }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.site-header .tel { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.92); }
.site-header :focus-visible, .hero :focus-visible, .guide :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--sky); }
@media (max-width: 767px) {
  .site-header__in { height: 64px; }
  .logo svg { width: 112px; }
  .site-header .tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .tel { width: 44px; height: 44px; justify-content: center; border-radius: 100px; background: rgba(255, 255, 255, 0.08); }
  .site-header__actions { gap: 8px; }
  .site-header .btn--sm { display: none; }
}

/* Hero: answer first, one real photo of our windows. */
.hero { background: var(--navy-deep); color: var(--paper); padding-block: clamp(24px, 5vw, 72px) clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__kicker { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); font-weight: 500; color: var(--sky); letter-spacing: -0.01em; }
.hero h1 { margin-top: 10px; font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.75rem); letter-spacing: -0.035em; line-height: 1; }
.hero__lead { margin-top: 24px; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); line-height: 1.5; color: rgba(255, 255, 255, 0.86); max-width: 40ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__note { margin-top: 28px; font-size: 0.875rem; line-height: 1.5; color: rgba(255, 255, 255, 0.7); max-width: 52ch; }
.hero__media { margin: 0; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); background: var(--navy-soft); }
.hero__media figcaption { margin-top: 10px; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.66); }
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 112px); }
  .hero__media img { aspect-ratio: 1; object-fit: cover; }
}
@media (max-width: 767px) {
  .hero__media img { aspect-ratio: 16 / 10; object-fit: cover; }
  .hero__cta .btn { width: 100%; }
}

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; }

/* Comparison */
.compare { padding-block: var(--section) calc(var(--section) * 0.75); }
.compare__table { border-top: 1px solid var(--line-strong); }
.compare__row { display: grid; gap: 4px 32px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.compare__row--head { padding-block: 14px; }
.compare__row [role="rowheader"] { font-weight: 600; }
.compare__row [role="cell"] { color: var(--ink-2); }
.compare__row strong { color: var(--ink); font-weight: 650; }
.compare__row--head [role="columnheader"] { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.015em; }
.compare__foot { margin-top: 24px; font-size: 0.9375rem; color: var(--muted); max-width: 80ch; }
.compare__foot a { color: var(--navy); }
@media (min-width: 768px) {
  .compare__row { grid-template-columns: minmax(0, 3fr) minmax(0, 4.5fr) minmax(0, 4.5fr); align-items: baseline; }
}
@media (max-width: 767px) {
  .compare__row--head { display: none; }
  .compare__row [role="cell"] { display: block; position: relative; padding: 2px 0 2px 7.5rem; }
  .compare__row [role="cell"]::before { content: attr(data-label); position: absolute; left: 0; top: 4px; width: 6.75rem; font-size: 0.8125rem; line-height: 1.35; color: var(--muted); }
  .compare__row [role="rowheader"] { margin-bottom: 6px; }
}

/* Calculator */
.calc { padding-block: var(--section); background: var(--mist); }
.calc__grid { display: grid; gap: 32px; }
.calc__intro h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.calc__intro p { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; max-width: 40ch; }
.calc__intro .calc__fine { font-size: 0.875rem; color: var(--muted); }
@media (min-width: 1024px) {
  .calc__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); align-items: start; }
  .calc__intro { position: sticky; top: 32px; }
}
.calc__panel {
  background: var(--paper); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 44px);
  box-shadow: 0 1px 2px rgba(13, 28, 37, 0.06), 0 12px 32px -12px rgba(13, 28, 37, 0.14);
  min-height: 460px;
}
.calc__noscript { color: var(--ink-2); }

.wizard__progress { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.wizard__progress span { display: block; height: 100%; width: 14.3%; background: var(--navy); border-radius: 3px; transition: width 320ms var(--ease-out); }
.wizard__count { margin-top: 14px; font-size: 0.875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.step { border: 0; margin: 10px 0 0; padding: 0; min-width: 0; }
.step legend { padding: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.step__hint { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); max-width: 56ch; }
.step__error { margin-top: 14px; color: var(--error); font-size: 0.9375rem; font-weight: 500; }

.choices { margin-top: 24px; display: grid; gap: 10px; }
.choices--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice > span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 60px; padding: 14px 18px 14px 52px; border: 1px solid var(--line-strong); border-radius: 12px;
  font-weight: 600; line-height: 1.3; position: relative;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.choice > span::before {
  content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--paper);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.choice small { font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.choice:hover > span { border-color: #9fb0b9; }
.choice input:checked + span { border-color: var(--navy); background: var(--sky-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.choice input:checked + span::before { border-color: var(--navy); box-shadow: inset 0 0 0 5px var(--navy); }
.choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.choices--row .choice > span { padding: 14px 12px 14px 44px; }
.choices--row .choice > span::before { left: 14px; }
@media (max-width: 420px) {
  .choices--row { grid-template-columns: 1fr; }
}

.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field--units, .field--money { margin-top: 24px; }
.field input[type="text"], .field input[type="email"], .field input[type="number"], .field select, .money input, .stepper input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font); color: var(--ink); /* 16px: no iOS zoom on focus */
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input::placeholder, .money input::placeholder { color: var(--muted); }
input:hover, select:hover { border-color: #9fb0b9; }
.field input:focus, .field select:focus, .money input:focus, .stepper input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--sky-soft), 0 0 0 4px var(--sky); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.field--units input { max-width: 160px; }
.money { position: relative; max-width: 280px; }
.money input { padding-right: 40px; font-variant-numeric: tabular-nums; font-size: 1.25rem; font-weight: 600; }
.money span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }

.stepper { margin-top: 24px; display: inline-grid; grid-template-columns: 52px 112px 52px; gap: 8px; }
.stepper input { text-align: center; font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--navy); font: 500 1.5rem/1 var(--font); cursor: pointer; transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.stepper__btn:hover { border-color: var(--navy); }
.stepper__btn:active { transform: scale(0.94); }

.checks { margin-top: 20px; display: grid; gap: 10px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 0.9375rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer; }

.more { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.more summary { cursor: pointer; font-weight: 600; color: var(--navy); width: fit-content; }
.more summary span { font-weight: 400; color: var(--muted); }
.more[open] summary { margin-bottom: 4px; }
.more .check { margin-top: 20px; }

.wizard__nav { margin-top: 36px; display: flex; justify-content: space-between; gap: 12px; }
.wizard__nav [data-next] { margin-left: auto; }
@media (max-width: 479px) {
  .wizard__nav [data-next] { flex: 1; }
}

/* Result */
.result:focus { outline: none; }
.result__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.result__head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.result__edit { appearance: none; background: none; border: 0; padding: 4px 0; font: 600 0.9375rem/1.2 var(--font); color: var(--navy); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.result__verdict { margin-top: 16px; font-size: 1.1875rem; font-weight: 500; line-height: 1.45; max-width: 52ch; }
.ways { margin-top: 28px; display: grid; gap: 16px; }
@media (min-width: 640px) { .ways { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .way.is-best { order: -1; } }
.way { border: 1px solid var(--line-strong); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.way.is-best { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.way__label { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.way__badge { font-size: 0.75rem; font-weight: 600; background: var(--navy); color: var(--paper); border-radius: 100px; padding: 3px 10px; white-space: nowrap; }
.way__amount { margin-top: 8px; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.625rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.way__amount--none { font-size: 1.375rem; color: var(--muted); }
.way__sub { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.way__years { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 0.9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.way__years li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.way__note { margin-top: 10px; font-size: 0.875rem; color: var(--muted); }
.way__needs { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }
.way__needs li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.way__needs .i { width: 18px; height: 18px; color: var(--navy); margin-top: 1px; }
.way__needs-title { font-weight: 600; color: var(--ink); grid-template-columns: 1fr !important; }
.result__shared { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.next { margin-top: 28px; padding: 24px; border-radius: 12px; background: var(--navy); color: var(--paper); }
.next h4 { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }
.next p { margin-top: 8px; color: rgba(255, 255, 255, 0.82); max-width: 54ch; }
.next__actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.next__small { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.9375rem; }
.next__small a { color: var(--paper); font-weight: 600; }
.next :focus-visible { outline-color: var(--sky); }
.result__disclaimer { margin-top: 20px; font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }

/* Flow: two timelines */
.flow { padding-block: var(--section); }
.flow__grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .flow__grid { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); } }
.flow__col h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); padding-bottom: 18px; border-bottom: 1px solid var(--line-strong); }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.timeline li { counter-increment: t; position: relative; display: grid; gap: 2px; padding: 16px 0 16px 48px; border-bottom: 1px solid var(--line); }
.timeline li::before {
  content: counter(t); position: absolute; left: 0; top: 15px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.875rem; font-weight: 600; color: var(--navy); background: var(--sky-soft);
  font-variant-numeric: tabular-nums;
}
.timeline strong { font-weight: 600; }
.timeline span { color: var(--ink-2); font-size: 0.9875rem; }
.flow__warn { margin-top: 20px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 500; font-size: 0.9375rem; }
.flow__warn .i { margin-top: 1px; }

/* Roles */
.roles { padding-block: 0 var(--section); }
.roles__list { margin: 0; border-top: 1px solid var(--line-strong); }
.roles__list > div { display: grid; gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.roles__list dt { font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.012em; }
.roles__list dt span { display: block; font-size: 0.875rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.roles__list dd { margin: 0; color: var(--ink-2); max-width: 70ch; }
.roles__list a { color: var(--navy); font-weight: 500; }
@media (min-width: 900px) { .roles__list > div { grid-template-columns: 17rem 1fr; gap: 32px; align-items: baseline; } }

/* Costs */
.costs { padding-block: var(--section); background: var(--mist); }
.costs__grid { display: grid; gap: 40px; }
.costs__img { margin: 0; }
.costs__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); background: var(--line); }
.costs__body h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.costs__lead { margin-top: 16px; color: var(--ink-2); font-size: 1.125rem; max-width: 52ch; }
.ticks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 0 32px; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line-strong); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 1.75px solid var(--navy); border-bottom: 1.75px solid var(--navy); transform: rotate(-45deg); }
.costs__note { margin-top: 24px; font-size: 0.9375rem; color: var(--muted); max-width: 60ch; }
@media (min-width: 640px) { .ticks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .costs__grid { grid-template-columns: 4fr 7fr; gap: clamp(56px, 7vw, 112px); align-items: center; }
}
@media (max-width: 1023px) { .costs__img img { aspect-ratio: 3 / 2; } }

/* Projects */
.projects { padding-block: var(--section); }
.projects__grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .projects__grid { grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px); } }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-lg); background: var(--mist); }
.project h3 { margin-top: 22px; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); }
.project p { margin-top: 10px; color: var(--ink-2); max-width: 52ch; }
.project .link-arrow { margin-top: 18px; }

/* Förder-Fahrplan: the one navy band */
.guide { padding-block: var(--section); background: var(--navy); color: var(--paper); }
.guide__grid { display: grid; gap: 40px; }
.guide h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.guide__lead { margin-top: 16px; font-size: 1.1875rem; color: rgba(255, 255, 255, 0.86); max-width: 44ch; }
.guide__list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: rgba(255, 255, 255, 0.86); }
.guide__list li { position: relative; padding-left: 26px; }
.guide__list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 11px; height: 6px; border-left: 1.75px solid var(--sky); border-bottom: 1.75px solid var(--sky); transform: rotate(-45deg); }
.guide__cover { margin: 32px 0 0; width: 200px; }
.guide__cover img { width: 100%; border-radius: 6px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.5); transform: rotate(-2deg); }
@media (min-width: 1024px) {
  .guide__grid { grid-template-columns: 5fr 6fr; gap: clamp(56px, 7vw, 112px); align-items: start; }
  .guide__cover { width: 240px; }
}
@media (max-width: 1023px) { .guide__cover { display: none; } }

.form {
  background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 1px 2px rgba(13, 28, 37, 0.06), 0 12px 32px -12px rgba(13, 28, 37, 0.14);
  display: grid; gap: 20px;
}
.form :focus-visible { outline-color: var(--navy); }
.field__error { color: var(--error); font-size: 0.9375rem; }
.field--check { grid-template-columns: 22px 1fr; align-items: start; column-gap: 12px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; cursor: pointer; }
.field--check label { font-weight: 400; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.field--check label a { color: var(--navy); font-weight: 500; }
.field--check .field__error { grid-column: 2; }
.check--result { font-size: 0.875rem; padding: 12px 14px; border-radius: 10px; background: var(--mist); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 4px; }
.form .btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.form__fine { font-size: 0.875rem; color: var(--muted); }
.form__status:empty { display: none; }
.form__status { padding: 16px 18px; border-radius: 10px; background: var(--sky-soft); color: var(--navy); font-size: 0.9375rem; }
.form__status.is-error { background: #fdecea; color: var(--error); }
.form__status:focus { outline: none; }
.form__status strong { display: block; margin-bottom: 4px; font-size: 1rem; }

/* FAQ */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; gap: 32px; }
.faq h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 22px 48px 22px 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35;
  border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.75px; background: var(--navy); border-radius: 2px;
  transition: transform 260ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--navy-soft); }
.faq details p { padding: 0 0 26px; color: var(--ink-2); max-width: 68ch; }
@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: 4fr 8fr; gap: 72px; }
  .faq h2 { position: sticky; top: 32px; align-self: start; }
}

/* Contact */
.contact { padding-block: var(--section); background: var(--navy-deep); color: var(--paper); }
.contact__in { display: grid; gap: 32px; }
.contact h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.contact__lead { margin-top: 16px; font-size: 1.1875rem; color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.contact__actions { display: grid; gap: 20px; justify-items: start; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.contact__direct .link-quiet { font-size: 1.125rem; min-height: 32px; }
.contact__hours { color: rgba(255, 255, 255, 0.66); font-size: 0.9375rem; }
@media (min-width: 1024px) { .contact__in { grid-template-columns: 7fr 5fr; align-items: end; gap: 72px; } }
@media (max-width: 767px) { .contact__actions .btn { width: 100%; } }

/* Sources */
.sources { padding-block: calc(var(--section) * 0.6); background: var(--mist); font-size: 0.9375rem; color: var(--ink-2); }
.sources h2 { font-size: 1.375rem; letter-spacing: -0.015em; color: var(--ink); }
.sources p { margin-top: 12px; max-width: 80ch; }
.sources ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.sources a { color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding-block: 40px calc(40px + env(safe-area-inset-bottom)); font-size: 0.9375rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.logo--footer { color: var(--paper); }
.logo--footer svg { width: 112px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); text-decoration: underline; }

/* Mobile sticky CTA: after the hero, hidden while the calculator or the form is on screen. */
.mobile-cta { display: none; }
@media (max-width: 767px) {
  .mobile-cta {
    display: flex; gap: 10px; align-items: center;
    position: fixed; inset: auto 0 0; z-index: 20;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 48px; }
  .mobile-cta__tel { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 100px; border: 1px solid var(--line-strong); color: var(--navy); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* Confirmation page after the double opt-in */
.page-confirm { min-height: 100svh; display: flex; flex-direction: column; background: var(--navy-deep); }
.confirm { flex: 1; color: var(--paper); padding-block: clamp(48px, 10vw, 128px); }
.confirm h1 { font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem); max-width: 18ch; }
.confirm p { margin-top: 18px; color: rgba(255, 255, 255, 0.8); max-width: 52ch; }
.confirm .confirm__lead { font-size: 1.1875rem; color: rgba(255, 255, 255, 0.9); }
.confirm a:not(.btn) { color: var(--paper); }
.confirm__actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.confirm :focus-visible { outline-color: var(--sky); }

/* Datenschutzhinweise (datenschutz.html) */
.legal { padding-block: clamp(40px, 7vw, 88px) var(--section); }
.legal__in { max-width: 76ch; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); letter-spacing: -0.02em; line-height: 1.15; }
.legal__stand { margin-top: 8px; color: var(--muted); }
.legal h2 { margin-top: 40px; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.3; }
.legal p, .legal ul { margin-top: 12px; color: var(--ink-2); }
.legal ul { padding-left: 20px; display: grid; gap: 4px; }
.legal a { color: var(--navy); }
.legal__back { margin-top: 48px; }
.confirm__actions + p { margin-top: 28px; }
