/* =====================================================================
   FPM – Stylesheet (Neuaufbau 18.11.2026)
   Ein System für alle Seiten:
   · Flächen: genau drei – Weiß, Hell (Logo-Blau, stark aufgehellt) und Navy.
     Zwei dunkle Flächen folgen nie direkt aufeinander.
   · Schrift: genau drei Größen – --fs-xl, --fs-lg, --fs-base.
   · Orange ist der Akzent: Abschnittsmarke, Hauptknopf, Links, Aufzählungen,
     Hinweise und Liniengrafiken – auf jeder Seite gleich eingesetzt.
   · Abstände: ein Abschnittsabstand, ein Abstand zwischen Kopf und Inhalt.
   ===================================================================== */

/* Avenir Next: Hausschrift von FPM. Auf Apple-Geräten kommt sie vom System (local),
   sonst aus fonts/ – sobald die Webfont-Lizenz (Monotype) vorliegt, dort die .woff2-Dateien ablegen. */
@font-face { font-family: "Avenir Next"; font-weight: 400; font-style: normal; font-display: swap; src: local("Avenir Next Regular"), local("AvenirNext-Regular"), url("fonts/AvenirNext-Regular.woff2") format("woff2"); }
@font-face { font-family: "Avenir Next"; font-weight: 500; font-style: normal; font-display: swap; src: local("Avenir Next Medium"), local("AvenirNext-Medium"), url("fonts/AvenirNext-Medium.woff2") format("woff2"); }
@font-face { font-family: "Avenir Next"; font-weight: 600; font-style: normal; font-display: swap; src: local("Avenir Next Demi Bold"), local("AvenirNext-DemiBold"), url("fonts/AvenirNext-DemiBold.woff2") format("woff2"); }

:root {
  /* Marke */
  --navy: #1c2a54;          /* dunkle Ableitung des Logo-Blaus: einzige dunkle Fläche */
  --blue: #3e5698;          /* Hervorhebungen, Beschriftungen auf hellen Flächen */
  --blue-light: #96a8d8;    /* Logo-Blau: Hervorhebungen auf Navy, Bildfläche hinter Fotos */
  --accent: #e8803a;        /* Orange: Marken, Linien, Hauptknopf */
  --accent-ink: #a84a15;    /* Orange als lesbare Schrift auf hellen Flächen */
  --accent-light: #f4a56a;  /* Orange als Schrift auf Navy */

  /* Flächen */
  --white: #ffffff;
  --mist: #eef1f8;
  --line: #d9deec;
  --line-on-navy: rgba(224, 228, 240, .2);
  --plane: rgba(150, 168, 216, .42);

  /* Schrift */
  --heading: var(--navy);
  --text: #3d4766;
  --muted: #5f6886;
  --on-navy: #e0e4f0;
  --on-navy-muted: #b9c2dd;
  --font: "Avenir Next", "Avenir Next LT Pro", Avenir, "Nunito Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  /* Drei Schriftgrößen für die gesamte Website (Vorgabe des Kunden):
     xl = Überschriften (H1/H2) · lg = Zwischenüberschriften und Einleitungen · base = alles andere */
  --fs-xl: clamp(2rem, 1.15rem + 2.9vw, 3.5rem);
  --fs-lg: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-base: 1.1875rem;
  --label-size: var(--fs-base);

  /* Raster und Abstände */
  --shell: min(1180px, calc(100% - 48px));
  --space-section: clamp(4.5rem, 2.8rem + 5.5vw, 8rem);
  --space-head: clamp(2.5rem, 1.6rem + 2.8vw, 4rem);
  --gap: clamp(20px, 2.4vw, 32px);
  --card-pad: clamp(24px, 3vw, 40px);
  --plane-offset: clamp(12px, 1.8vw, 24px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow: 0 8px 24px rgba(22, 29, 49, .06);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --scroll-track: #e7e9f1;
  --scroll-thumb: #8a93ad;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
body { margin: 0; color: var(--text); background: var(--white); font-family: var(--font); font-size: var(--fs-base); line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:active { text-decoration-thickness: 2px; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
p { margin: 0; }
strong, b { font-weight: 600; }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--heading); font-family: var(--font); hyphens: manual; overflow-wrap: normal; text-wrap: balance; }
h1, h2 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -.025em; line-height: 1.06; }
h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
h4, h5, h6, small, sub, sup, figcaption, summary, dt, dd, th, td, address, blockquote, code { font-size: var(--fs-base); }
h4 { font-weight: 600; line-height: 1.4; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: 400; color: var(--blue); }
:where(p, li, dt, dd, a, strong, span) { hyphens: manual; overflow-wrap: break-word; }

*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); }
*::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid var(--scroll-track); border-radius: 999px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.surface-navy :focus-visible { outline-color: var(--accent-light); }
::selection { background: #cfd8ef; color: var(--navy); }

.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--navy); border-radius: var(--radius-sm); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.section-shell, .header-shell { width: var(--shell); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.arrow { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Flächen: genau drei ---------- */
.surface-white { --surface: var(--white); --card: var(--mist); background: var(--white); }
.surface-mist { --surface: var(--mist); --card: var(--white); background: var(--mist); }
.surface-navy { --surface: var(--navy); --card: var(--white); --heading: var(--white); --text: var(--on-navy); --muted: var(--on-navy-muted); --line: var(--line-on-navy); color: var(--on-navy); background: var(--navy); }
.surface-navy :is(h1, h2) em { color: var(--blue-light); }
/* Karten auf Navy sind weiß und tragen wieder die hellen Schriftfarben. */
.surface-navy .card { --heading: var(--navy); --text: #3d4766; --muted: #5f6886; --line: #d9deec; color: var(--text); }

/* ---------- Bausteine ---------- */
.eyebrow { margin: 0 0 16px; color: var(--blue); font-size: var(--fs-base); font-weight: 600; letter-spacing: .01em; line-height: 1.4; }
.surface-navy .eyebrow { color: var(--blue-light); }
.surface-navy .card .eyebrow { color: var(--blue); }

/* Abschnittskopf: Orange Marke, optional Kopfzeile, Überschrift, optional Einleitung. */
.section-head { display: grid; justify-items: start; max-width: 920px; }
.section-head::before { content: ""; width: 40px; height: 3px; margin-bottom: 24px; background: var(--accent); border-radius: 2px; }
.section-head > p:not(.eyebrow) { max-width: 60ch; margin-top: 24px; color: var(--text); }
.section-head.section-head + * { margin-top: var(--space-head); }
@media (min-width: 901px) {
  .section-head--split { grid-template-columns: minmax(0, 1.1fr) minmax(280px, .72fr); column-gap: clamp(48px, 7vw, 112px); align-items: end; max-width: none; }
  .section-head--split::before, .section-head--split > .eyebrow { grid-column: 1 / -1; }
  .section-head--split > h2 { grid-column: 1; }
  .section-head--split > p:not(.eyebrow) { grid-column: 2; margin-top: 0; }
}

.lead { color: var(--text); font-size: var(--fs-lg); line-height: 1.55; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: var(--fs-base); font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 120ms var(--ease); }
.button svg { flex-shrink: 0; width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.button svg.arrow { width: 1em; stroke-width: 2; }
.button span { display: inline-flex; line-height: 1; }
.button:active { transform: scale(.98); }
.button--primary { color: var(--navy); background: var(--accent); }
.button--primary:hover { background: var(--accent-light); }
.button--ghost { color: var(--navy); border-color: rgba(28, 42, 84, .3); background: transparent; }
.button--ghost:hover { border-color: var(--navy); background: rgba(28, 42, 84, .04); }
.surface-navy .button--ghost { color: var(--white); border-color: rgba(255, 255, 255, .42); }
.surface-navy .button--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 40px; }
.actions .button { flex: 1 1 200px; max-width: 300px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 20px; color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.text-link span { display: inline-flex; line-height: 1; transition: transform 160ms ease; }
.text-link:hover { text-decoration: underline; }
.text-link:hover span { transform: translateX(4px); }
.surface-navy .text-link { color: var(--accent-light); }
.surface-navy .card .text-link { color: var(--accent-ink); }

.card { position: relative; min-width: 0; padding: var(--card-pad); color: var(--text); background: var(--card); border-radius: var(--radius-md); }
.card h3 { margin-bottom: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--gap); }

/* Aufzählungen mit orangem Punkt */
.bullet-list { display: grid; gap: .75em; margin: 0; padding: 0; list-style: none; }
.bullet-list li { position: relative; padding-left: 1.4em; line-height: 1.55; }
.bullet-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bullet-list strong { color: var(--heading); }
.bullet-list li > span { display: block; margin-top: .25em; }

/* Zeilenliste: Einträge mit feiner Trennlinie */
.row-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.row-list li { position: relative; padding: 16px 0 16px 1.4em; border-bottom: 1px solid var(--line); line-height: 1.5; }
.row-list li::before { content: ""; position: absolute; left: 0; top: calc(16px + .5em); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.row-list strong { display: block; color: var(--heading); font-weight: 600; }
.row-list li > span:not(:only-child) { display: block; margin-top: 4px; color: var(--text); }
.row-list li > span:only-child { color: var(--heading); font-weight: 500; }

/* Hinweis: Karte mit Ring-Symbol wie bei den Voraussetzungen. Keine orange Kante,
   damit nichts neben der orangen Linie doppelt läuft. Der Ring sitzt auf der oberen Kante. */
.notice { position: relative; margin-top: 28px; padding: calc(28px + 24px) var(--card-pad) var(--card-pad); background: var(--card); border-radius: var(--radius-md); }
.notice__badge { position: absolute; top: -28px; left: var(--card-pad); display: grid; place-items: center; width: 56px; height: 56px; background: var(--card); border: 2px solid var(--accent); border-radius: 50%; }
.notice .eyebrow { margin-bottom: 12px; color: var(--accent-ink); }
.notice h3 { margin-bottom: 12px; }
.notice p + p { margin-top: 16px; }
.notice .text-link { margin-top: 12px; }

/* Logo-Fläche: hervorgehobene Einzelstücke liegen vor einer versetzten Fläche in Logo-Blau,
   wie im Logo das Haus vor dem blauen Körper. Fotos, die zwei Standort-Karten, die Hinweise und die Adresskarte –
   sonst nichts, damit die Fläche etwas bedeutet. Bei Karten als Schatten ohne Unschärfe, gleich groß wie bei Fotos. */
.card--plane, .notice { box-shadow: calc(var(--plane-offset) * -1) var(--plane-offset) 0 var(--plane); }
/* Fotos vor der blauen Fläche */
.media-frame { position: relative; z-index: 0; margin: 0; }
.media-frame::before { content: ""; position: absolute; z-index: -1; inset: var(--plane-offset) var(--plane-offset) calc(var(--plane-offset) * -1) calc(var(--plane-offset) * -1); background: var(--plane); border-radius: var(--radius-md); }
.media-frame img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); }

/* Orange Balken: die aufsteigenden Linien aus dem FPM-Zeichen */
.hero-bars { position: absolute; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 0; display: flex; align-items: end; gap: 12px; height: 128px; pointer-events: none; }
.hero-bars span { width: 2px; height: 34px; background: var(--accent); opacity: .6; }
.hero-bars span:nth-child(2) { height: 54px; } .hero-bars span:nth-child(3) { height: 78px; } .hero-bars span:nth-child(4) { height: 102px; } .hero-bars span:nth-child(5) { height: 128px; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform 260ms var(--ease); will-change: transform; }
.site-header.is-hidden { transform: translateY(-102%); }
.header-shell { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 32px; min-height: 102px; padding-block: 16px; }
.brand { display: block; width: 100px; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 2.5vw, 40px); }
.site-nav a { position: relative; padding: 12px 0; color: var(--navy); font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: 6px; left: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-phone { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 0 8px 20px; color: var(--navy); border-left: 1px solid var(--line); text-decoration: none; }
.header-phone svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.header-phone span { display: grid; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.header-phone small { margin-bottom: 2px; color: var(--muted); font-weight: 500; }
.header-phone:hover { color: var(--blue); }
.mobile-navigation { display: none; }
.menu-button { display: none; list-style: none; }
.menu-button::-webkit-details-marker { display: none; }

/* ---------- Startseite: Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
/* Menü und Hero passen zusammen in den ersten Bildschirm: Aussage, Knöpfe und Foto auf einen Blick.
   Die Höhe ergibt sich aus dem Text (oben wenig Luft, unten Platz für die Balken), nie höher als der Bildschirm unter
   der Kopfzeile. --header-h setzt script.js auf die echte Höhe der Kopfzeile. */
.hero { min-height: min(600px, calc(100vh - var(--header-h, 136px))); min-height: min(600px, calc(100svh - var(--header-h, 136px))); }
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6svh, 64px) clamp(32px, 3.5vw, 72px) clamp(40px, 6svh, 64px) max(calc(40px + var(--plane-offset)), calc((100vw - 1180px) / 2)); overflow: hidden; }
.hero-copy h1 { max-width: 640px; }
.hero-copy .lead { max-width: 600px; margin-top: 24px; color: var(--on-navy); }
.hero-copy .hero-bars { right: 32px; }
.hero-media { position: relative; min-height: 0; margin: 0; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; }
.hero-copy .actions { margin-top: 32px; }
/* Niedrige Laptop-Bildschirme: schlankere Kopfzeile, damit der Hero trotzdem ganz sichtbar ist. */
@media (min-width: 901px) and (max-height: 820px) {
  .header-shell { min-height: 0; padding-block: 8px; }
  .brand { width: 84px; }
}
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28, 42, 84, .5), transparent 40%); pointer-events: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.hero-media figcaption { position: absolute; z-index: 2; right: clamp(24px, 5vw, 72px); bottom: 32px; padding-left: 16px; color: var(--white); border-left: 2px solid var(--accent); font-weight: 600; line-height: 1.35; }
.hero-media figcaption span { color: var(--on-navy); font-weight: 500; }

/* Unterseiten: einheitlicher Seitenkopf */
.page-hero { position: relative; overflow: hidden; }
.page-hero__inner { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 112px) clamp(72px, 8.5vw, 120px); }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 640px; margin-top: 24px; color: var(--on-navy); }
/* Gleiche Balkenhöhe in allen Seitenköpfen; sie bleiben unter der Knopfzeile. */
:is(.page-hero, .hero-copy) .hero-bars { height: 96px; }
:is(.page-hero, .hero-copy) .hero-bars span { height: 24px; } :is(.page-hero, .hero-copy) .hero-bars span:nth-child(2) { height: 40px; } :is(.page-hero, .hero-copy) .hero-bars span:nth-child(3) { height: 58px; } :is(.page-hero, .hero-copy) .hero-bars span:nth-child(4) { height: 76px; } :is(.page-hero, .hero-copy) .hero-bars span:nth-child(5) { height: 96px; }

/* Projektfenster auf der Förderseite */

/* Kontaktleiste unter dem Hero */
.contact-strip__grid { display: grid; grid-template-columns: .9fr 1.35fr .9fr; }
.contact-strip__item { display: grid; align-content: center; min-height: 104px; padding: 20px clamp(20px, 3vw, 40px); color: var(--navy); border-right: 1px solid var(--line); font-weight: 500; text-decoration: none; }
.contact-strip__item:first-child { padding-left: 0; }
.contact-strip a.contact-strip__item { border-right: 0; }
.contact-strip a.contact-strip__item:hover { color: var(--blue); }
.contact-strip__item > span, .opening-hours__label { margin-bottom: 2px; color: var(--muted); font-weight: 600; }
.opening-hours__list { display: grid; gap: 4px; margin: 0; font-variant-numeric: tabular-nums; }
.opening-hours__list div { display: grid; grid-template-columns: 4.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.opening-hours__list dt { color: var(--heading); font-weight: 600; }
.opening-hours__list dt { white-space: nowrap; }
.opening-hours__list dd { margin: 0; }

/* Kundenband (Platzhalter in logo/kunden/) */
.client-band { padding-block: clamp(40px, 5vw, 60px); overflow: hidden; border-bottom: 1px solid var(--line); }
.client-band__title { margin: 0 0 clamp(22px, 3vw, 32px); color: var(--muted); font-size: var(--fs-base); font-weight: 600; letter-spacing: .01em; line-height: 1.4; text-align: center; }
/* Laufband auf Wunsch: gleichmäßig, ohne Ruck; bei Hover bremst es weich ab (script.js). */
.client-band__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.client-band__track { display: flex; width: max-content; }
.client-band__group { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-around; gap: clamp(40px, 6vw, 88px); min-width: 100vw; margin: 0; padding: 0 clamp(20px, 3vw, 44px); list-style: none; }
@media (prefers-reduced-motion: no-preference) { .client-band__track { animation: client-band-scroll 40s linear infinite; } }
@keyframes client-band-scroll { to { transform: translateX(-50%); } }
.client-band__group img { width: clamp(132px, 14vw, 180px); height: auto; opacity: .72; filter: grayscale(1); transition: opacity 160ms ease, filter 160ms ease; }
.client-band__group img:hover { opacity: 1; filter: none; }


/* ---------- Startseite: Quartier (Logo-Motiv, weitergedacht) ----------
   Die Linie aus dem Logo zeichnet hier kein Einfamilienhaus, sondern ein Quartier mit Flachdächern:
   links ein niedriger Riegel, in der Mitte der Baukörper mit dem Text, rechts ein höherer Kopfbau,
   dessen Wand wie im Logo über das Dach hinausläuft und vor dem Boden endet. Die Flächen in Logo-Blau
   liegen – wie im Logo – versetzt dahinter. Das SVG rechnet in Prozent der Textfläche
   (preserveAspectRatio="none"), deshalb wächst das Quartier mit dem Text mit. */
.quartier-section { padding-top: calc(var(--space-section) * .75); }
.quartier { max-width: 1080px; margin-inline: auto; padding-bottom: 56px; } /* unten Platz für den Straßenanfang */
/* Ränder = Anteil von Riegel (26 %) und Kopfbau (24 %) an der Breite der Textfläche. */
.quartier__main { position: relative; margin: clamp(112px, 11vw, 144px) 16% 0 17.333%; }
.quartier__art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.quartier__plane { fill: var(--blue-light); opacity: .5; }
.quartier__face { fill: var(--white); }
.quartier__street { fill: none; stroke: url(#quartier-fade); stroke-width: 2; }
.quartier__street--dash { stroke-width: 3; stroke-dasharray: 20 16; }
.quartier__fade stop { stop-color: #7f92c8; } /* Logo-Blau, eine Spur kräftiger, damit die Straße auf Hell trägt */
.quartier__trunk { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.quartier__crown { fill: var(--blue-light); stroke: var(--navy); stroke-width: 1.5; }
.quartier__line { fill: none; stroke: var(--navy); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.quartier__window { fill: var(--white); stroke: var(--navy); stroke-width: 1.5; }
.quartier__balcony { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
/* Radfahrer: Rahmen im Akzent-Orange, Fahrer in Navy wie die Linie. */
.quartier__bike { pointer-events: none; }
.quartier__bike-wheel circle { fill: var(--white); stroke: var(--navy); stroke-width: 2; }
.quartier__bike-spokes path { fill: none; stroke: var(--navy); stroke-width: 1; opacity: .45; }
.quartier__bike-frame { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.quartier__bike-body, .quartier__bike-leg { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.quartier__bike-leg--far { opacity: .4; }
.quartier__bike-head { fill: var(--navy); }
.quartier__copy { position: relative; padding: clamp(36px, 4.5vw, 60px) clamp(24px, 4.5vw, 60px) clamp(48px, 6vw, 80px); }
.quartier__copy p + p { margin-top: .9em; }
.quartier__copy strong { color: var(--heading); }
.quartier__copy .text-link { margin-top: 24px; }

/* ---------- Bild-/Textpaneel (Haltung, Finanzblock) ---------- */
.split-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-panel__media { min-height: 620px; margin: 0; overflow: hidden; }
.split-panel__media img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.split-panel__copy { --seam: clamp(24px, 5vw, 72px); position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(72px, 8vw, 120px) max(24px, calc((100vw - 1180px) / 2)) clamp(72px, 8vw, 120px) clamp(56px, 7.5vw, 112px); }
.split-panel__copy > * { max-width: 600px; }
.split-panel__copy > p:not(.eyebrow) { margin-top: 24px; }
.split-panel__copy .section-head + p { margin-top: 24px; }
.split-panel__copy .button { align-self: flex-start; margin-top: 32px; }
.principles { margin: 36px 0 0; border-top: 1px solid var(--line); }
.principles div { display: grid; grid-template-columns: 136px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.principles dt { color: var(--blue-light); font-weight: 600; }
.principles dd { margin: 0; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
.contact-link { position: relative; display: grid; min-width: 0; padding: 16px 48px 16px 0; color: var(--heading); border-top: 1px solid var(--line); text-decoration: none; }
.contact-link small { color: var(--muted); font-weight: 600; }
.contact-link strong { margin-top: 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-link > span { position: absolute; top: 20px; right: 4px; display: inline-flex; color: var(--accent-ink); transition: transform 160ms ease; }
.contact-link > span .arrow { width: 1.4rem; height: 1.4rem; }
.contact-link:hover strong { color: var(--blue); }
.contact-link:hover > span { transform: translate(3px, -2px); }
.address-card { overflow: hidden; font-style: normal; }
.address-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--accent); }
.address-card__label { margin-bottom: 12px; color: var(--blue); font-weight: 600; }
.address-card strong { display: block; color: var(--heading); font-size: var(--fs-lg); font-weight: 500; line-height: 1.3; }
.address-card > p:not(.address-card__label) { margin: 16px 0; }
.address-card .opening-hours { display: grid; gap: 4px; margin: 16px 0; }
.address-card .opening-hours__label { color: var(--blue); }
.address-card > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent-ink); font-weight: 600; }
.address-card > a span { display: inline-flex; }
.contact-cards { --cols: 2; }
.contact-cards > .address-card { grid-column: 2; grid-row: 1 / span 2; }
.contact-card { display: flex; flex-direction: column; }
.contact-card__value { color: var(--heading); font-size: var(--fs-lg); font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-card > p:not(.address-card__label):not(.contact-card__value) { margin-top: 12px; }
.contact-card .text-link { margin-top: auto; padding-top: 20px; }

/* ---------- Fußzeile ---------- */
.site-footer { padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr .6fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { width: 130px; height: auto; filter: brightness(0) invert(1); opacity: .85; }
.footer-label { margin-bottom: 12px; color: var(--on-navy-muted); font-weight: 600; }
.footer-grid a, .footer-grid > div > p:not(.footer-label) { display: block; margin: 0 0 4px; text-decoration: none; }
.footer-grid a { display: flex; align-items: center; min-height: 40px; }
.footer-grid a:hover, .footer-bottom a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; color: var(--on-navy-muted); border-top: 1px solid var(--line-on-navy); }
.footer-bottom a { text-decoration: none; }
.site-footer--compact { padding-top: 0; }
.site-footer--compact .footer-bottom { border-top: 0; }

/* ---------- Über uns ---------- */
.team-list { display: grid; gap: clamp(64px, 8vw, 112px); }
.team-member { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.team-member--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.team-member--reverse .media-frame { grid-column: 2; grid-row: 1; }
.team-member--reverse .team-member__copy { grid-column: 1; grid-row: 1; }
.team-member__copy { min-width: 0; padding-top: 8px; }
.team-member__role { margin-bottom: 8px; color: var(--blue); font-weight: 600; }
.team-member__lead { margin-top: 16px; padding-bottom: 20px; color: var(--heading); font-weight: 500; border-bottom: 1px solid var(--line); }
.team-member__bio { max-width: 64ch; margin-top: 20px; }
.team-member__bio p + p { margin-top: 16px; }
.partner-grid { --cols: 2; }
.partner-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 32px; align-items: start; text-decoration: none; }
.partner-card:hover h3 { color: var(--blue); }
.partner-card:hover .text-link { text-decoration: underline; }
.partner-logo { display: grid; min-height: 140px; place-items: center; padding: 20px; background: var(--mist); border-radius: var(--radius-sm); }
.partner-logo img { width: 150px; height: auto; mix-blend-mode: multiply; }
.partner-logo--square img { width: 112px; }
.partner-card h3 { margin: 0 0 8px; transition: color 160ms var(--ease); }
.partner-card p { margin-bottom: 16px; }
.partner-card .text-link { margin-top: 0; }

/* ---------- Förderseite ---------- */
.funding-visual { display: block; width: 100%; height: auto; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.funding-visual__guide { stroke: var(--line); stroke-width: 1; }
.funding-visual__paper { fill: var(--white); }
.funding-visual__focus { fill: var(--navy); stroke: var(--navy); }
.funding-visual__light { stroke: var(--accent-light); }
.funding-visual__route { stroke: var(--accent); stroke-width: 2; }
.funding-visual__node { fill: var(--white); stroke: var(--accent); stroke-width: 2; }

/* Was wird gefördert: zwei Karten untereinander, Grafik links, Liste rechts */
.support-grid { --cols: 1; }
.support-card__visual { margin: 0 0 28px; }
.support-card__visual svg { aspect-ratio: 360 / 164; max-width: 440px; }
/* Motive in den Förderkarten sind um 25 % vergrößert (Boden bleibt stehen); Strichstärken gleichen das aus. */
.funding-visual__zoom :is(path, rect, circle) { stroke-width: 1.2; }
.funding-visual__zoom :is(.funding-visual__route, .funding-visual__node) { stroke-width: 1.6; }
.funding-visual__zoom .funding-visual__guide { stroke-width: .8; }
@media (min-width: 901px) {
  .support-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
  .support-card__visual { grid-column: 1; grid-row: 1 / span 2; align-self: center; margin: 0; }
  .support-card > h3, .support-card > .row-list { grid-column: 2; }
}

/* Standort: eine Ausgangslage, zwei Ausprägungen */
.location-split__origin { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; margin: 0 auto; padding: 12px 24px 12px 16px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-weight: 600; }
.location-split__origin svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Die Karten tragen die Logo-Fläche: der Abstand wächst um ihren Versatz, damit zwischen Fläche und Nachbarkarte Luft bleibt. */
.location-split .card-grid { gap: calc(var(--gap) + var(--plane-offset)); }
.location-split__lines { display: block; width: 100%; height: clamp(36px, 5vw, 56px); fill: none; stroke: var(--accent); stroke-width: 1.5; }
.location-card__situation { display: grid; gap: 4px; margin-bottom: 24px; padding-bottom: 20px; color: var(--heading); border-bottom: 1px solid var(--line); font-weight: 500; }
.location-card__situation span { color: var(--blue); font-weight: 600; }
/* Kommunen: erhöhte Fördersätze als Marke, die über der oberen Kante der Karte sitzt (Farben wie der Hauptknopf). */
.location-card__badge { position: absolute; z-index: 1; top: 0; right: 16px; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; color: var(--navy); background: var(--accent); border-radius: var(--radius-sm); box-shadow: 0 4px 12px rgba(22, 29, 49, .12); font-weight: 600; line-height: 1.4; transform: translateY(-50%); }
.location-card__badge svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Investition: drei Gründe als offene Spalten (keine dritte Kartenreihe) */
.benefit-grid { --cols: 3; margin-bottom: 0; padding: 0; list-style: none; }
.benefit { display: grid; align-content: start; gap: 24px; color: var(--heading); font-weight: 500; line-height: 1.5; }
/* Große Grafiken im Stil der Einordnung: gleiche Größe für Investition und Ausgangslage */
.benefit .funding-visual, .situation__visual { width: 100%; max-width: 240px; height: auto; aspect-ratio: 5 / 3; }

/* Finanzblock als Aussage ohne Foto – das Foto steht bei „Unsere Haltung“ */

/* Finanzblock als Aussage auf Navy (das Foto steht im Hero) */
.statement__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.statement__grid > .section-head.section-head + * { margin-top: 0; }
.statement__copy p + p { margin-top: 16px; }
.statement__copy .button { margin-top: 32px; }

/* Ausgangslage: drei Situationen als ruhige Aussagen, ohne Symbole */
.situation-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: 0; padding: 0; list-style: none; }
.situation-list li { display: grid; align-content: start; gap: 24px; color: var(--heading); font-size: var(--fs-base); font-weight: 500; line-height: 1.35; }


/* Voraussetzungen */
/* Überschrift und Zeitplan-Hinweis links, die fünf Voraussetzungen rechts. Die linke Spalte bleibt beim Scrollen stehen,
   solange sie ganz auf den Bildschirm passt (script.js setzt dann .is-sticky); der Kapitelring fährt mit der Überschrift mit. */
.requirements__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "aside steps"; column-gap: clamp(40px, 6vw, 88px); align-items: start; }
.requirements__aside { grid-area: aside; position: relative; display: grid; gap: 24px; }
/* --sticky-top setzt script.js: unter der sichtbaren Kopfzeile, so dass auch das untere Ende der Spalte sichtbar bleibt. */
.requirements__aside.is-sticky { position: sticky; z-index: 4; top: var(--sticky-top, calc(var(--header-h, 136px) + 24px)); transition: top 260ms var(--ease); }
html:has(.site-header.is-hidden) .requirements__aside.is-sticky { top: 24px; }
.requirements__steps { grid-area: steps; }
.requirements__grid .section-head + * { margin-top: 0; }
.requirements__list { position: relative; margin: 0; padding: 0; list-style: none; }
.requirements__list::before { content: ""; position: absolute; top: 28px; bottom: 28px; left: 27px; width: 2px; background: linear-gradient(rgba(232, 128, 58, .35), rgba(232, 128, 58, .35)) top left / 100% 100% no-repeat; }
.requirements__list li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: clamp(24px, 3vw, 36px); }
.requirements__list li:last-child { padding-bottom: 0; }
.requirement__badge { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); }
.requirement__icon { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.requirement__no { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 24px; height: 24px; color: var(--white); background: var(--accent-ink); border-radius: 50%; font-variant-numeric: tabular-nums; font-size: var(--fs-base); font-weight: 600; line-height: 1; }
.requirements__list h3 { margin: 12px 0 8px; }
.requirements__list p { max-width: 60ch; }
.requirements__list a { color: var(--accent-ink); font-weight: 600; }
.fact { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 16px; padding: 8px 16px; background: var(--card); border-radius: var(--radius-sm); }
.fact strong { color: var(--accent-ink); font-size: var(--fs-lg); font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-weight: 600; }
.requirements__aside > .section-head + .requirements__notice { margin-top: 28px; }

/* Einordnung: vier Perspektiven */
.assessment-grid { --cols: 4; }
.assessment-card { display: grid; grid-template-rows: subgrid; grid-row: span 3; gap: 0; }
.assessment-card__visual { width: 100%; max-width: 240px; aspect-ratio: 5 / 3; }
.assessment-card h3 { margin: 24px 0 12px; }

/* Für das erste Gespräch */
.check-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.check-list__visual { width: 56px; height: 56px; margin-bottom: 8px; }
.check-list strong { color: var(--heading); }

/* Fragen */
.faq__layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(380px, 1.1fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.faq__layout .section-head + * { margin-top: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding-inline: 24px; background: var(--card); border-radius: var(--radius-md); }
.faq-list summary { position: relative; min-height: 64px; padding: 20px 40px 20px 0; color: var(--heading); font-weight: 600; line-height: 1.4; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker, .faq-list summary::marker { display: none; content: ""; }
.faq-list summary::after { content: "+"; position: absolute; top: 20px; right: 2px; color: var(--accent-ink); font-weight: 500; line-height: 1.4; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:hover { color: var(--blue); }
.faq-list details p { max-width: 70ch; padding: 0 0 24px; }
.official-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; margin-top: var(--space-head); padding-top: 24px; border-top: 1px solid var(--line); }
.official-links p { color: var(--muted); font-weight: 600; }
.official-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--blue); font-weight: 600; }
.official-links a span { display: inline-flex; }
.faq__notice { margin-top: calc(var(--gap) + 28px); }
.programme-status__copy p + p { margin-top: 14px; }

/* ---------- Rechtliche Seiten ---------- */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 760px); gap: clamp(48px, 8vw, 120px); align-items: start; padding-block: var(--space-section); }
.legal-aside { position: sticky; top: 150px; display: grid; padding: 24px; overflow: hidden; background: var(--mist); border-radius: var(--radius-md); }
.legal-aside::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px; background: var(--accent); }
.legal-aside__label { margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.legal-aside a { margin: 4px 0; color: var(--blue); font-weight: 600; overflow-wrap: anywhere; }
.legal-aside p:not(.legal-aside__label) { margin-top: 16px; }
.legal-toc a { padding: 8px 0; color: var(--navy); border-top: 1px solid var(--line); text-decoration: none; }
.legal-toc a:hover { color: var(--blue); }
.legal-content { min-width: 0; }
.legal-content section { scroll-margin-top: 150px; }
.legal-content section + section:not(.legal-divider) { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.legal-content h2 { margin-bottom: 16px; font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -.01em; }
.legal-content h3 { margin: 32px 0 8px; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; }
.legal-content h4 { margin: 24px 0 8px; color: var(--blue); }
.legal-content p { margin-bottom: 16px; }
.legal-content ul { padding-inline-start: 22px; }
.legal-content a { color: var(--blue); overflow-wrap: anywhere; }
.legal-divider { margin-top: 72px; padding-top: 60px; border-top: 2px solid var(--navy); }
.legal-content p.legal-kicker { margin-bottom: 8px; color: var(--accent-ink); font-weight: 600; }
.legal-content p.legal-note { margin-top: 56px; padding-top: 20px; color: var(--muted); border-top: 1px solid var(--line); }
.not-found > * + * { margin-top: 20px; }
.not-found .button { margin-top: 32px; }

/* =====================================================================
   FPM-Weg (nur Startseite): eine orange Linie verbindet die Kapitel.
   ===================================================================== */
/* Abstand Linie → Inhalt: Platz für den Versatz der Logo-Fläche plus 24px Luft, damit keine Fläche die Linie berührt. */
.home-page { --way-x: max(14px, calc((100% - 1180px) / 2 - var(--plane-offset) - 26px)); }
.home-page main { position: relative; }
.home-page main > :not(.fpm-way) { position: relative; }
.home-page main .section-shell, .home-page .site-footer .section-shell, .home-page .header-shell { width: min(1180px, calc(100% - 2 * (40px + var(--plane-offset)))); }
.fpm-way { position: absolute; z-index: 3; left: var(--way-x); width: 2px; background: rgba(232, 128, 58, .24); pointer-events: none; visibility: hidden; }
.fpm-way.is-ready { visibility: visible; }
.fpm-way__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; }
.fpm-way__cursor { position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); }
.fpm-way__stop { position: absolute; left: -5px; width: 12px; height: 12px; margin-top: -6px; border: 2px solid var(--accent); border-radius: 50%; background: var(--white); transition: background-color 160ms ease; }
.fpm-way__stop.is-reached { background: var(--accent); }
.fpm-way__chapter { position: absolute; left: -14px; display: grid; font-variant-numeric: tabular-nums; width: 30px; height: 30px; margin-top: -15px; place-items: center; color: var(--blue); background: var(--chapter-bg, var(--white)); border: 2px solid var(--accent); border-radius: 50%; font: 600 var(--fs-base)/1 var(--font); transition: background-color 320ms ease, color 320ms ease; }
.fpm-way__chapter.is-reached { color: var(--white); background: var(--accent); }
/* Ring einer stehenbleibenden Überschrift: wohnt in der klebenden Spalte und fährt mit ihr auf der Linie mit. */
.fpm-way__chapter.fpm-way__chapter--sticky { left: calc(var(--ring-dx, 0px) - 14px); }
.fpm-way__chapter--light:not(.is-reached) { color: var(--blue-light); }
.fpm-way__end { position: absolute; left: 0; bottom: -1px; width: var(--way-end-width, 20px); height: 20px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); border-bottom-left-radius: 14px; opacity: .3; }
.fpm-way.is-complete .fpm-way__end { opacity: 1; }
.chapter-no { display: inline-flex; align-items: center; gap: 12px; margin-right: 12px; color: var(--accent-ink); }
.chapter-no::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.surface-navy .chapter-no { color: var(--accent-light); }
/* Auf der Startseite ist der Ring auf der Linie die Abschnittsmarke. */
/* Auf dem Onepager ist die Linie die Abschnittsmarke: Ringe für Kapitel, Punkte für Abschnitte. */
main:has(.fpm-way.is-ready) .chapter-no, main:has(.fpm-way.is-ready) .section-head::before { display: none; }
@media (max-width: 1279px) {
  .fpm-way__chapter { left: -13px; width: 28px; height: 28px; margin-top: -14px; }
  .fpm-way__chapter.fpm-way__chapter--sticky { left: calc(var(--ring-dx, 0px) - 13px); }
  main:has(.fpm-way.is-ready) [data-way-chapter] .eyebrow { margin-left: 12px; }
}
/* Vor dem Beratungsbild weicht die Linie aus und läuft als Naht im Paneel weiter. */
.home-page .about { z-index: 4; }
.home-page .about::before { content: ""; position: absolute; z-index: 1; top: 0; left: var(--way-x); width: calc(50% + clamp(24px, 5vw, 72px) + 2px - var(--way-x)); height: 2px; background: var(--accent); opacity: .75; }
.home-page .about::after { content: ""; position: absolute; z-index: 1; bottom: 0; left: var(--way-x); width: calc(50% + clamp(24px, 5vw, 72px) + 2px - var(--way-x)); height: 2px; background: var(--accent); opacity: .75; }
.home-page .about-copy::before, .home-page .about-copy::after { content: ""; position: absolute; z-index: 0; top: 0; bottom: 0; left: var(--seam); width: 2px; pointer-events: none; }
.home-page .about-copy::before { background: rgba(232, 128, 58, .3); }
.home-page .about-copy::after { background: var(--accent); transform: scaleY(var(--about-way-progress, 0)); transform-origin: top; will-change: transform; }
.home-page .about-copy > * { position: relative; z-index: 1; }
.home-page .about-copy > .fpm-way__chapter { position: absolute; z-index: 2; left: calc(var(--seam) - 14px); }

/* =====================================================================
   Bewegung (nur dekorativ, Lesetexte bleiben immer sichtbar)
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-bars span { transform-origin: bottom; animation: bars-arrive 600ms var(--ease) both; }
  .hero-bars span:nth-child(2) { animation-delay: 60ms; } .hero-bars span:nth-child(3) { animation-delay: 120ms; } .hero-bars span:nth-child(4) { animation-delay: 180ms; } .hero-bars span:nth-child(5) { animation-delay: 240ms; }
  .hero-copy > :not(.hero-bars), .page-hero__inner > * { animation: hero-rise 500ms var(--ease) both; }
  .hero-copy > :nth-child(2), .page-hero__inner > :nth-child(2) { animation-delay: 60ms; }
  .hero-copy > :nth-child(3), .page-hero__inner > :nth-child(3) { animation-delay: 120ms; }
  .hero-copy > :nth-child(4), .page-hero__inner > :nth-child(4) { animation-delay: 180ms; }
  .hero-media { animation: hero-fade 500ms var(--ease) 60ms both; }

  .reveal { opacity: 0; transition: opacity 450ms var(--ease), transform 450ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
  .reveal--up, .reveal--pop { transform: translateY(12px); }
  .reveal.is-in { opacity: 1; transform: none; }

  /* Die Linie wird von links nach rechts freigelegt (Strichmuster vertragen sich nicht mit non-scaling-stroke). */
  .reveal-ready .quartier__line { clip-path: inset(-10% 100% -10% -10%); transition: clip-path 1400ms var(--ease) 150ms; }
  .reveal-ready :is(.quartier__plane, .quartier__detail) { opacity: 0; transition: opacity 700ms ease; }
  .reveal-ready .quartier__detail { transition-delay: 700ms; }
  .reveal-ready .quartier__plane { transition-delay: var(--d, 0ms); }
  .reveal-ready .quartier__main.is-in .quartier__line { clip-path: inset(-10% -10% -10% -10%); }
  .reveal-ready .quartier__main.is-in .quartier__plane { opacity: .5; }
  .reveal-ready .quartier__main.is-in .quartier__detail { opacity: 1; }
  .reveal-ready .requirements__list::before { background-size: 100% 0%; transition: background-size 1200ms var(--ease); }
  .reveal-ready .requirements__list.is-in::before { background-size: 100% 100%; }


  .funding-visual.draw-ready :is(path, rect, circle) { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); stroke-opacity: 0; transition: stroke-dashoffset var(--draw-time, 900ms) var(--ease) var(--draw-delay, 0ms), stroke-opacity 1ms linear var(--draw-delay, 0ms), fill-opacity 700ms ease calc(var(--draw-delay, 0ms) + 250ms); }
  .funding-visual.draw-ready :is(.funding-visual__paper, .funding-visual__focus, .funding-visual__node) { fill-opacity: 0; }
  .funding-visual.draw-ready.is-drawn :is(path, rect, circle) { stroke-dashoffset: 0; stroke-opacity: 1; }
  .funding-visual.draw-ready.is-drawn :is(.funding-visual__paper, .funding-visual__focus, .funding-visual__node) { fill-opacity: 1; }
}
@keyframes bars-arrive { from { transform: scaleY(.15); } to { transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Responsiv
   ===================================================================== */
@media (max-width: 1179px) {
  .check-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .header-shell { grid-template-columns: 165px minmax(0, 1fr); }
  .header-phone { display: none; }
  .assessment-grid { --cols: 2; }
  .assessment-card { grid-row: auto; grid-template-rows: auto; }
  .partner-card { grid-template-columns: 140px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 980px) {
  .requirements__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "steps" "notice"; row-gap: 0; }
  .requirements__aside { display: contents; }
  .requirements__aside > .section-head { grid-area: head; }
  .requirements__aside > .requirements__notice { grid-area: notice; }
  .requirements__aside > .section-head + .requirements__notice { margin-top: calc(clamp(32px, 4vw, 48px) + 28px); }
  .requirements__steps { margin-top: var(--space-head); }
}
@media (max-width: 900px) {
  :root { --shell: min(720px, calc(100% - 36px)); }
  .header-shell { grid-template-columns: 1fr auto; min-height: 88px; padding-block: 12px; }
  .brand { width: 76px; }
  .site-nav--desktop { display: none; }
  .mobile-navigation { display: block; }
  .menu-button { display: inline-grid; grid-template-columns: auto 24px; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 16px; color: var(--navy); font-weight: 600; cursor: pointer; }
  .menu-button:hover { color: var(--blue); }
  .menu-button__icon { position: relative; display: block; width: 24px; height: 18px; }
  .menu-button__icon span { position: absolute; left: 1px; width: 22px; height: 2px; background: currentColor; transition: transform 160ms ease, top 160ms ease; }
  .menu-button__icon span:first-child { top: 5px; } .menu-button__icon span:last-child { top: 12px; }
  .mobile-navigation[open] .menu-button__icon span { top: 8px; }
  .mobile-navigation[open] .menu-button__icon span:first-child { transform: rotate(45deg); }
  .mobile-navigation[open] .menu-button__icon span:last-child { transform: rotate(-45deg); }
  .mobile-navigation .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: grid; justify-content: stretch; gap: 0; max-height: calc(100dvh - 88px); overflow-y: auto; padding: 8px max(18px, calc((100vw - 720px) / 2)) 16px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(28, 42, 84, .1); }
  .mobile-navigation .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mobile-navigation .site-nav a:last-child { border-bottom: 0; }
  .mobile-navigation .site-nav a::after { bottom: 8px; right: auto; width: 40px; }
  html { scroll-padding-top: 100px; }

  /* Untereinander: Text zuerst, das Foto füllt den Rest des ersten Bildschirms (mindestens 280px). */
  .hero { display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h, 112px)); min-height: calc(100svh - var(--header-h, 112px)); }
  .hero-copy { padding: clamp(32px, 5svh, 56px) max(32px, calc((100vw - 720px) / 2)) clamp(40px, 6svh, 64px); }
  .hero-media { flex: 1 0 280px; min-height: 280px; }
  .statement__grid { grid-template-columns: minmax(0, 1fr); }
  .statement__grid > .section-head.section-head + * { margin-top: var(--space-head); }
  .situation-list { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .contact-strip__grid { grid-template-columns: 1fr 1fr; }
  .contact-strip__item { min-height: 90px; padding: 16px 20px; }
  .contact-strip__item:first-child { padding-left: 0; }
  .contact-strip a.contact-strip__item { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--line); }
  .split-panel { grid-template-columns: minmax(0, 1fr); }
  .split-panel__media { min-height: 460px; }
  .split-panel__copy { --seam: 22px; padding: 72px max(32px, calc((100vw - 720px) / 2)); }
  .split-panel__copy > * { max-width: none; }
  .contact-grid, .faq__layout { grid-template-columns: 1fr; }
  .faq__layout .section-head + * { margin-top: var(--space-head); }
  .contact-cards { --cols: 1; }
  .contact-cards > .address-card { grid-column: auto; grid-row: auto; }
  .card-grid { --cols: 1; }
  .benefit-grid { row-gap: 40px; }
  .assessment-grid { --cols: 2; }
  .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-member, .team-member--reverse { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 36px; }
  .team-member--reverse { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .legal-layout { grid-template-columns: 1fr; gap: 40px; }
  .legal-aside { position: static; max-width: 520px; }
  /* Links liegt die Linie (bei 22px): der Inhalt rückt so weit ein, dass zwischen Linie und Logo-Fläche 14px Luft bleiben. */
  .home-page main .section-shell { width: auto; max-width: 720px; margin-left: max(calc(38px + var(--plane-offset)), calc((100% - 720px) / 2)); margin-right: max(20px, calc((100% - 720px) / 2)); }
  .home-page .site-footer .section-shell { width: min(720px, calc(100% - 64px)); }
  .home-page .header-shell { width: var(--shell); }
  .home-page { --way-x: 22px; }
  .home-page .about::before, .home-page .about::after { display: none; }
  .home-page .about-copy > .fpm-way__chapter { left: 9px; }
}
@media (max-width: 760px) {
  /* Schmal: ohne Riegel, der Kopfbau rückt in die Textfläche. */
  .quartier__main { margin: 96px 2% 0 4%; }
  .quartier__line { stroke-width: 4; }
  .quartier__copy { padding: 36px 22px 56px; }
  .location-split__lines { display: none; }
  .location-split__origin { margin: 0 0 44px; }
}
@media (max-width: 700px) {
  .hero-copy .hero-bars { display: none; }
  .hero-bars { right: 20px; height: 86px; }
  .hero-bars span:nth-child(4) { height: 72px; } .hero-bars span:nth-child(5) { height: 86px; }
}
@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); --fs-base: 1.125rem; }
  .actions { gap: 12px; }
  .actions .button { flex-basis: 100%; max-width: none; }
  .contact-strip__grid { grid-template-columns: 1fr; }
  .contact-strip__item, .contact-strip__item:first-child { min-height: 0; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-strip a.contact-strip__item { border-top: 0; border-bottom: 0; }
  .split-panel__media { min-height: 340px; }
  .hero-copy { padding: 32px 24px 40px; }
  .hero-media { flex-basis: 240px; min-height: 240px; }
  .hero-media img { object-position: 61% center; }
  .hero-media figcaption { right: 20px; bottom: 20px; }
  .split-panel__copy { padding: 64px 24px; }
  .home-page .split-panel__copy { padding-left: 40px; }
  .principles div { grid-template-columns: 1fr; gap: 2px; }
  .contact-links { grid-template-columns: 1fr; gap: 0; }
  .team-member, .team-member--reverse { grid-template-columns: 1fr; gap: 36px; }
  .team-member--reverse .media-frame, .team-member--reverse .team-member__copy { grid-column: 1; grid-row: auto; }
  .team-member .media-frame { max-width: 420px; }
  .partner-card { grid-template-columns: 1fr; gap: 20px; }
  .partner-logo { min-height: 120px; }
  .assessment-grid { --cols: 1; }
  .check-list { grid-template-columns: 1fr; gap: 16px; }
  .check-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; padding-top: 16px; }
  .check-list__visual { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .check-list strong, .check-list li > span { grid-column: 2; }
  .faq-list details { padding-inline: 18px; }
  .official-links { display: grid; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: grid; }
  .home-page .site-footer .section-shell { width: var(--shell); }
}

/* =====================================================================
   Barrierefreiheit, Druck
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .client-band__viewport { -webkit-mask-image: none; mask-image: none; }
  .client-band__track { width: auto; animation: none; }
  .client-band__group { flex-wrap: wrap; width: 100%; min-width: 0; row-gap: 28px; }
  .client-band__group[aria-hidden="true"] { display: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .fpm-way__cursor { display: none; }
  .fpm-way__fill { transform: none !important; }
}
@media (forced-colors: active) {
  html, * { scrollbar-color: auto; }
  .fpm-way { display: none; }
  .card, .notice, .partner-card, .address-card, .faq-list details { border: 1px solid CanvasText; }
}
@media print {
  :root { --fs-base: 11pt; --fs-lg: 14pt; --fs-xl: 20pt; }
  .site-header, .fpm-way, .skip-link, .hero-bars { display: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; box-shadow: none !important; }
  .section { padding-block: 24px; }
  .surface-navy { --heading: #161d31; --text: #161d31; --muted: #161d31; color: #161d31; background: white; }
  .hero, .split-panel { display: block; }
  .hero-media { min-height: 0; max-height: 300px; }
  .hero { min-height: 0; }
  .hero-media img { position: static; max-height: 300px; object-fit: contain; }
  .hero-copy { padding: 24px; }
  .split-panel__media { min-height: 0; max-height: 300px; }
  .split-panel__media img { max-height: 300px; object-fit: contain; }
  .split-panel__copy { padding: 24px; }
  .team-member, .faq-list details, .card { break-inside: avoid; }
  .legal-aside { position: static; }
}

/* Hero: Orange-Akzent am Eyebrow */
.hero-copy .eyebrow { color: var(--accent-light); }

/* Kontaktleiste: Abschlusslinie (vorher durch das Logoband geliefert) */
.contact-strip { border-bottom: 1px solid var(--line); }
