/* Maler Wildstein – Startseite NEU-3: Hero und Karten nach der Live-Seite, Walze/Kapitel/Ablauf aus NEU-2.
   Farben aus dem Logo (logos/logo.png): Navy, Orange, Amber, Blau, Gold. Schrift Archivo (SIL OFL), lokal. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 400 800; font-stretch: 88% 100%; /* NEU-4A: Achsen auf 400–800 / 88–100 % begrenzt (87 → 53 KB) */ font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #04223F;        /* WILDSTEIN im Logo */
  --navy-tief: #021629;
  --orange: #C8420A;      /* Pinselstrich (gemessen #DF4102), für weiße Schrift auf AA vertieft */
  --orange-tief: #A63405;
  --orange-logo: #DF4A0C; /* Farbstrich unter der H1, Griffe der 3D-Werkzeuge */
  --amber: #F29B15;       /* MALER im Logo */
  --blau: #0B6590;        /* blauer Strich im Logo */
  --gold: #FDDC49;
  --grund: #EEF1F4;       /* heller Seitengrund */
  --karte: #FFFFFF;
  --ton: #E2E7EC;         /* zweite Stufe auf Karten */
  --tinte: var(--navy);
  --weich: #33475D;       /* zweite Tinte, 8,9:1 auf Weiß */
  --hell: #D7E2EC;        /* zweite Tinte auf Navy */
  --wa: #25D366;

  --m: clamp(16px, 3.3vw, 48px);
  --kopf: 72px;
  --spalt: clamp(14px, 1.6vw, 24px);
  --abstand: clamp(88px, 10vw, 176px);
  --r-gross: clamp(22px, 2.2vw, 32px);
  --r-mittel: 18px;
  --r-klein: 12px;

  --s-klein: 0.9375rem;
  --s-text: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  --s-lead: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --s-unter: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem);
  --s-kopf: clamp(2.125rem, 1.2rem + 3.4vw, 4.25rem);
  --s-titel: clamp(3.15rem, 0.9rem + 6.7vw, 6.5rem);

  --aus: cubic-bezier(0.23, 1, 0.32, 1);
  --bahn: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 16px); scrollbar-color: var(--blau) var(--grund); }
body {
  margin: 0; background: var(--grund); color: var(--tinte);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-stretch: 100%;
  font-size: var(--s-text); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; font-stretch: 96%; letter-spacing: -0.03em; line-height: 1.0; text-wrap: balance; }
h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
::selection { background: var(--amber); color: var(--navy); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { flex: none; }

/* ---------- Knöpfe: Pille, eine Füllung ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: var(--s-text); line-height: 1.1; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--aus), background-color 200ms ease, color 200ms ease;
}
.knopf svg { width: 20px; height: 20px; transition: transform 240ms var(--aus); }
.knopf:active { transform: scale(0.97); }
.knopf--haupt { background: var(--orange); color: #fff; }
.knopf--glas { background: rgba(255, 255, 255, 0.14); color: #fff; }
.knopf--wa { background: var(--wa); color: var(--navy-tief); }
.knopf--ton { background: var(--ton); color: var(--navy); }
.knopf .kurz { display: none; }
@media (hover: hover) and (pointer: fine) {
  .knopf--haupt:hover { background: var(--orange-tief); }
  .knopf--haupt:hover svg { transform: translateX(4px); }
  .knopf--glas:hover { background: rgba(255, 255, 255, 0.24); }
  .knopf--wa:hover { background: #3fe07f; }
  .knopf--ton:hover { background: #d3dae2; }
}
.textlink { font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 0.25em; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .textlink:hover { text-decoration-color: currentColor; } }

/* ---------- Kopf: über dem Hero durchsichtig, danach weiß ---------- */
.kopf {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--kopf);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--m); color: #fff; background: rgba(255, 255, 255, 0);
  transition: background-color 260ms ease, color 260ms ease, transform 300ms var(--aus);
}
.kopf.fest { background: #fff; color: var(--navy); }
/* Logo immer auf weißem Schild: Navy-Schriftzug bleibt auf dem Foto lesbar, Logofarben unverändert */
.kopf-logo { display: block; background: #fff; border-radius: 14px; padding: 5px 12px; }
.kopf-logo img { height: 44px; width: auto; }
.kopf-nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); margin-left: auto; }
.kopf-nav a { text-decoration: none; font-size: var(--s-klein); font-weight: 600; position: relative; padding: 8px 0; }
.kopf-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--aus); }
@media (hover: hover) and (pointer: fine) { .kopf-nav a:hover::after { transform: scaleX(1); } }
.kopf-aktion { display: flex; align-items: center; gap: 10px; }
.knopf--kopf { min-height: 46px; padding: 0 20px; font-size: var(--s-klein); background: var(--orange); color: #fff; }
.knopf--kopf svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .knopf--kopf:hover { background: var(--orange-tief); } }
.menue-knopf { display: none; width: 46px; height: 46px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); cursor: pointer; place-items: center; transition: background-color 200ms ease; }
.kopf.fest .menue-knopf { background: var(--ton); }
.menue-striche, .menue-striche::before, .menue-striche::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--aus); }
.menue-striche { position: relative; }
.menue-striche::before, .menue-striche::after { content: ""; position: absolute; left: 0; }
.menue-striche::before { top: -6px; } .menue-striche::after { top: 6px; }
.menue-knopf[aria-expanded="true"] .menue-striche { background: transparent; }
.menue-knopf[aria-expanded="true"] .menue-striche::before { transform: translateY(6px) rotate(45deg); }
.menue-knopf[aria-expanded="true"] .menue-striche::after { transform: translateY(-6px) rotate(-45deg); }
.menue {
  position: fixed; inset: var(--kopf) 0 0 0; z-index: 29; background: var(--navy); color: #fff;
  padding: 28px var(--m) 36px; display: none; flex-direction: column; gap: 28px; overflow-y: auto;
}
.menue.offen { display: flex; opacity: 1; transform: none; transition: opacity 220ms var(--aus), transform 220ms var(--aus); }
@starting-style { .menue.offen { opacity: 0; transform: translateY(-12px); } }
.menue a { text-decoration: none; }
.menue-haupt a { font-size: 2rem; font-weight: 800; font-stretch: 96%; letter-spacing: -0.02em; display: block; padding: 4px 0; }
.menue-leistung { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.menue-leistung a { font-size: 1.0625rem; display: block; padding: 10px 0; color: var(--hell); }
.menue .knopf { align-self: stretch; }
html.menue-auf .kopf { background: var(--navy); color: #fff; }

/* ---------- Hero (Aufbau wie live: Foto, Badge, große Zeile, Knöpfe, Sterne) ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden;
  background: var(--navy); color: #fff; padding: calc(var(--kopf) + 32px) var(--m) clamp(40px, 6vh, 72px);
}
.hero-foto { position: absolute; inset: 0; z-index: -2; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 34%; transform-origin: 60% 40%; will-change: transform; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* Scrim in Logo-Navy unter der Schrift (einzige erlaubte Verlaufsfläche) */
  background:
    linear-gradient(180deg, rgba(4, 34, 63, 0.55) 0, rgba(4, 34, 63, 0) 22%), /* taste-skill-ignore: Scrim unter Text auf Foto */
    linear-gradient(90deg, rgba(4, 34, 63, 0.94) 0%, rgba(4, 34, 63, 0.86) 32%, rgba(4, 34, 63, 0.35) 58%, rgba(4, 34, 63, 0.06) 78%); /* taste-skill-ignore: Scrim unter Text auf Foto */
}
.hero-inhalt { position: relative; max-width: 760px; display: grid; justify-items: start; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); font-size: var(--s-klein); font-weight: 600; letter-spacing: 0.005em;
}
.hero-badge .punkt { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 155, 21, 0.25); /* taste-skill-ignore: Statuspunkt wie live */ }
.hero-titel { font-size: var(--s-titel); line-height: 0.94; letter-spacing: -0.035em; font-weight: 800; font-stretch: 94%; margin-top: clamp(20px, 3vh, 30px); }
.hero-titel .zeile { display: block; }
.zeile--strich { position: relative; width: fit-content; }
.strich { position: absolute; left: -0.05em; bottom: -0.2em; width: calc(100% + 0.12em); height: 0.4em; z-index: -1; fill: var(--orange-logo); overflow: visible; }
.hero-satz { margin-top: clamp(20px, 3vh, 30px); font-size: var(--s-lead); line-height: 1.45; max-width: 36ch; color: #E8EEF4; }
.hero-knoepfe { margin-top: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero-wege { display: flex; gap: 12px; }
.hero-sterne { margin-top: clamp(22px, 3.2vh, 32px); display: inline-flex; align-items: center; gap: 12px; font-size: var(--s-klein); text-decoration: none; color: #E8EEF4; min-height: 44px; }
.hero-sterne b { font-weight: 800; color: #fff; font-size: 1.0625rem; }
.sterne { display: inline-flex; gap: 2px; color: var(--gold); }
.sterne svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .hero-sterne:hover > span:last-child { text-decoration: underline; text-decoration-color: var(--amber); } }

.hero-karte {
  position: absolute; right: var(--m); bottom: clamp(28px, 5vh, 56px); width: min(460px, 34vw);
  background: var(--karte); color: var(--navy); border-radius: var(--r-gross); padding: 22px 24px 20px;
}
.hero-karte-titel { font-size: var(--s-klein); font-weight: 600; color: var(--weich); }
.zahlen { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px 18px; margin-top: 12px; }
.zahlen div { display: flex; flex-direction: column-reverse; gap: 2px; }
.zahlen dd { white-space: nowrap; font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem); font-weight: 800; font-stretch: 92%; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--navy); }
.zahlen div:nth-child(2) dd { color: var(--blau); }
.zahlen div:nth-child(3) dd { color: var(--orange); }
.zahlen dt { font-size: var(--s-klein); color: var(--weich); line-height: 1.3; }

.zahlenband { display: none; }

/* ---------- Abschnitte allgemein ---------- */
.abschnitt { padding: var(--abstand) var(--m) 0; }
.abschnitt-kopf { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px var(--spalt); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.abschnitt-kopf h2 { grid-column: 1 / 8; font-size: var(--s-kopf); }
.abschnitt-kopf p { grid-column: 8 / 13; font-size: var(--s-lead); line-height: 1.45; color: var(--weich); max-width: 42ch; }

/* ---------- Leistungs-Kacheln ---------- */
.kacheln { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spalt); }
.kachel a {
  height: 100%; display: flex; flex-direction: column; background: var(--karte); border-radius: var(--r-gross); overflow: hidden;
  text-decoration: none; transition: transform 200ms var(--aus);
}
.kachel a:active { transform: scale(0.985); }
.kachel img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--aus); }
.kachel--gross { grid-column: span 2; grid-row: span 2; }
.kachel--gross img { aspect-ratio: auto; flex: 1; min-height: 0; height: 100%; }
.kachel-text { display: grid; gap: 8px; padding: 22px 24px 24px; align-content: start; }
.kachel-text strong { font-size: var(--s-unter); font-weight: 800; font-stretch: 96%; letter-spacing: -0.02em; line-height: 1.1; }
.kachel-text > span { color: var(--weich); font-size: var(--s-klein); line-height: 1.5; }
.kachel-text em { font-style: normal; font-weight: 700; font-size: var(--s-klein); color: var(--orange-tief); display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.kachel-text em svg { width: 18px; height: 18px; transition: transform 240ms var(--aus); }
.kachel--feld a { background: var(--navy); color: #fff; justify-content: flex-end; min-height: 260px; }
.kachel--feld .kachel-text > span { color: var(--hell); }
.kachel--feld .kachel-text em { color: var(--amber); }
.kachel--orange { grid-column: span 2; }
.kachel--orange a { background: var(--orange); color: #fff; justify-content: flex-end; }
.kachel--orange .kachel-text > span { color: #fff; }
.kachel--orange .kachel-text em { color: #fff; }
.kachel:nth-child(5) { grid-column: 4; grid-row: 2; }
@media (hover: hover) and (pointer: fine) {
  .kachel a:hover img { transform: scale(1.045); }
  .kachel a:hover em svg { transform: translateX(5px); }
}

/* ---------- Walze: Vorher → Nachher ---------- */
.walze { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--spalt); align-items: center; }
.walze-text { grid-column: 1 / 6; display: grid; gap: 24px; align-content: center; padding-right: clamp(0px, 2vw, 32px); }
.walze-text h2 { font-size: var(--s-kopf); }
.walze-satz { font-size: var(--s-lead); line-height: 1.45; color: var(--weich); }
.projekte { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.projekt {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; min-height: 68px; border: 0; border-radius: var(--r-mittel);
  background: var(--karte); text-align: left; cursor: pointer; transition: transform 160ms var(--aus), background-color 200ms ease, color 200ms ease;
}
.projekt img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.projekt > span { display: grid; line-height: 1.25; }
.projekt b { font-weight: 800; font-size: 1.0625rem; }
.projekt span span { font-size: var(--s-klein); color: var(--weich); }
.projekt:active { transform: scale(0.97); }
.projekt[aria-pressed="true"] { background: var(--navy); color: #fff; }
.projekt[aria-pressed="true"] span span { color: var(--hell); }
@media (hover: hover) and (pointer: fine) { .projekt:not([aria-pressed="true"]):hover { background: #F7F9FB; } }
.walze-hinweis { font-size: var(--s-klein); color: var(--weich); }
.walze-hinweis .daumen { display: none; }
@media (hover: none) { .walze-hinweis .maus { display: none; } .walze-hinweis .daumen { display: inline; } }
html:not(.szene-an) .walze-hinweis { display: none; }
.walze-figur { grid-column: 6 / 13; display: grid; gap: 14px; }
.buehne { position: relative; overflow: hidden; border-radius: var(--r-gross); background: var(--navy); isolation: isolate; }
.walze-buehne { height: min(74svh, 660px); min-height: 440px; touch-action: pan-y; }
.walze-unterschrift { font-size: var(--s-klein); color: var(--weich); padding-left: 4px; }
.leinwand { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 500ms ease; }
.leinwand.an { opacity: 1; }
.malflaeche { position: absolute; inset: 0; z-index: 2; display: none; cursor: grab; }
.walze-buehne.szene-aktiv .malflaeche { display: block; }
.nochmal {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; display: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: rgba(4, 34, 63, 0.82); color: #fff; font-weight: 700; font-size: var(--s-klein); cursor: pointer; transition: transform 160ms var(--aus), background-color 200ms ease;
}
.nochmal:active { transform: scale(0.96); }
.walze-buehne.szene-aktiv .nochmal { display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .nochmal:hover { background: var(--navy); } }

/* Rückfall: ziehbarer Vergleich */
.vergleich { position: absolute; inset: 0; --pos: 50%; touch-action: pan-y; user-select: none; cursor: ew-resize; }
.walze-buehne.szene-aktiv .vergleich { visibility: hidden; }
.vergleich img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.vergleich .vorher { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.vergleich .marke { position: absolute; top: 16px; background: var(--navy); color: #fff; font-weight: 700; font-size: var(--s-klein); padding: 6px 14px; border-radius: 999px; }
.marke.links { left: 16px; } .marke.rechts { right: 16px; background: var(--orange); }
.griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: #fff; pointer-events: none; }
.knauf { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; transition: transform 200ms var(--aus); }
.knauf svg { width: 24px; height: 24px; }
.vergleich.zieht .knauf { transform: scale(1.12); }
.vergleich input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.vergleich:focus-within .knauf { outline: 3px solid var(--amber); outline-offset: 3px; }

/* ---------- Warum: Karten wie live ---------- */
.warum { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--spalt); align-items: start; }
.warum h2 { grid-column: 1 / 10; font-size: var(--s-kopf); margin-bottom: clamp(32px, 4vw, 56px); }
.warum-text { grid-column: 1 / 5; display: grid; gap: 28px; align-content: start; }
.warum-text > p { font-size: var(--s-lead); line-height: 1.45; color: var(--weich); max-width: 34ch; }
.warum-text h2 { margin-bottom: 0; }
.warum { grid-template-areas: "kopf kopf kopf kopf kopf kopf kopf kopf kopf . . ." "text text text text karten karten karten karten karten karten karten karten"; }
.warum-text { display: contents; }
.warum-text h2 { grid-area: kopf; margin-bottom: clamp(32px, 4vw, 56px); }
.warum-text > p, .inhaber { grid-column: 1 / 5; }
.warum-text > p { grid-row: 2; align-self: start; }
.inhaber { grid-row: 2; align-self: end; background: var(--karte); border-radius: var(--r-gross); padding: 24px 26px; display: grid; gap: 4px; }
.inhaber-name { font-size: var(--s-unter); font-weight: 800; font-stretch: 96%; letter-spacing: -0.02em; }
.inhaber p:not(.inhaber-name) { color: var(--weich); font-size: var(--s-klein); }
.inhaber .textlink { margin-top: 10px; justify-self: start; font-size: var(--s-klein); }
.gruende { grid-column: 5 / 13; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: var(--spalt); }
.grund { border-radius: var(--r-gross); padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 12px; align-content: start; min-height: 230px; }
.grund h3 { font-size: var(--s-unter); }
.grund p { font-size: var(--s-text); max-width: 34ch; }
.grund--navy { background: var(--navy); color: #fff; } .grund--navy p { color: var(--hell); }
.grund--weiss { background: var(--karte); } .grund--weiss p { color: var(--weich); }
.grund--amber { background: var(--amber); color: var(--navy); }
.grund--blau { background: var(--blau); color: #fff; } .grund--blau p { color: #E1EEF5; }

/* ---------- Kapitel: gepinnte Bühne mit Werkzeug ---------- */
.kapitel { height: 400svh; margin-top: var(--abstand); }
.kapitel-buehne {
  position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--spalt);
  padding: calc(var(--kopf) + 16px) var(--m) var(--m); align-items: stretch;
}
.kapitel-bild { grid-column: 1 / 8; touch-action: pan-y; }
.standbild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kapitel-bild .standbild { opacity: 0; transition: opacity 400ms ease; }
.kapitel-bild .standbild.an { opacity: 1; }
.kapitel-bild.szene-aktiv .standbild { visibility: hidden; }
.kapitel-karte {
  grid-column: 8 / 13; background: var(--karte); border-radius: var(--r-gross); padding: clamp(26px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 0;
}
.kapitel-karte h2 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.5rem); }
.reiter-zeile { display: flex; gap: 8px; flex-wrap: wrap; background: var(--grund); border-radius: 999px; padding: 5px; width: fit-content; }
.reiter-zeile button { background: none; border: 0; border-radius: 999px; padding: 0 18px; min-height: 44px; font-size: var(--s-klein); font-weight: 700; color: var(--weich); cursor: pointer; transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--aus); }
.reiter-zeile button:active { transform: scale(0.96); }
.reiter-zeile button[aria-selected="true"] { background: var(--navy); color: #fff; }
.positionen { display: grid; }
.position { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; opacity: 0; transform: translateY(14px); transition: opacity 320ms var(--aus), transform 420ms var(--aus); visibility: hidden; }
.position.an { opacity: 1; transform: none; visibility: visible; }
.position h3 { font-size: var(--s-unter); }
.position p { max-width: 40ch; color: var(--weich); }
.position .werkzeug { font-size: var(--s-klein); font-weight: 700; color: var(--orange-tief); }
.kapitel-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Ablauf: gestapelte Bögen ---------- */
.ablauf { padding-bottom: calc(var(--abstand) * 0.4); }
.ablauf > h2 { font-size: var(--s-kopf); margin-bottom: 44px; }
.stapel { display: grid; gap: 40px; }
.blatt {
  position: sticky; min-height: min(82svh, 640px); display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr;
  column-gap: var(--spalt); padding: clamp(24px, 3vw, 44px); border-radius: var(--r-gross); overflow: hidden; transform-origin: 50% 0;
}
.blatt:nth-child(1) { top: calc(var(--kopf) + 16px); }
.blatt:nth-child(2) { top: calc(var(--kopf) + 40px); }
.blatt:nth-child(3) { top: calc(var(--kopf) + 64px); }
.blatt:nth-child(4) { top: calc(var(--kopf) + 88px); }
.blatt h3 { grid-column: 1 / 6; grid-row: 1; font-size: clamp(2.25rem, 1.4rem + 2.6vw, 4rem); font-weight: 800; font-stretch: 94%; letter-spacing: -0.035em; line-height: 1; }
.blatt p { grid-column: 1 / 6; grid-row: 2; align-self: start; padding-top: 20px; font-size: var(--s-lead); line-height: 1.45; max-width: 30ch; }
.blatt-wege { grid-column: 1 / 6; grid-row: 2; align-self: end; font-size: var(--s-unter); font-weight: 800; }
.blatt-wege a { text-decoration-color: var(--amber); }
.blatt img { grid-column: 6 / 13; grid-row: 1 / 3; width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--r-mittel); }
.blatt--navy { background: var(--navy); color: #fff; }
.blatt--blau { background: var(--blau); color: #fff; }
.blatt--weiss { background: var(--karte); color: var(--navy); }
.blatt--orange { background: var(--orange); color: #fff; }

/* ---------- Rechner (Optik wie live) ---------- */
.rechner-karte { background: var(--karte); border-radius: var(--r-gross); padding: clamp(20px, 3vw, 40px); display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px clamp(24px, 3vw, 48px); }
.reiter { grid-column: 1 / -1; display: flex; gap: 6px; background: var(--grund); border-radius: 999px; padding: 5px; width: fit-content; }
.reiter button { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font-weight: 700; color: var(--weich); cursor: pointer; transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--aus); }
.reiter button:active { transform: scale(0.97); }
.reiter button[aria-selected="true"] { background: var(--navy); color: #fff; }
.eingaben h3 { font-size: var(--s-unter); }
.rechner-sub { color: var(--weich); font-size: var(--s-klein); margin: 6px 0 20px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feld { display: grid; gap: 6px; }
.feld label { font-size: var(--s-klein); font-weight: 600; }
.feld input, .feld select { min-height: 50px; padding: 0 14px; border: 2px solid #C6D0DA; border-radius: var(--r-klein); background: #fff; font-variant-numeric: tabular-nums; width: 100%; transition: border-color 160ms ease; }
.feld input:focus, .feld select:focus { border-color: var(--navy); outline: none; }
.haken { display: flex; align-items: center; gap: 10px; min-height: 50px; font-size: var(--s-klein); font-weight: 600; cursor: pointer; align-self: end; }
.haken input { width: 22px; height: 22px; accent-color: var(--orange); }
.ergebnis { display: grid; gap: 12px; align-content: start; background: var(--navy); color: #fff; padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-gross); }
.ergebnis-label { font-size: var(--s-klein); color: var(--hell); font-weight: 600; }
.ergebnis .gross { font-size: clamp(3rem, 2rem + 3vw, 4.75rem); font-weight: 800; font-stretch: 92%; line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--gold); }
.ergebnis .gross small { font-size: var(--s-unter); letter-spacing: -0.01em; color: #fff; }
.ergebnis .hinweis { font-size: var(--s-klein); color: var(--hell); }
.ergebnis dl { display: grid; gap: 10px; font-size: var(--s-klein); background: rgba(255, 255, 255, 0.07); border-radius: var(--r-mittel); padding: 14px 16px; margin: 6px 0; }
.ergebnis dl div { display: flex; justify-content: space-between; gap: 12px; }
.ergebnis dt { color: var(--hell); }
.ergebnis dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.ergebnis .knopf { width: 100%; }
.ergebnis-tel { font-size: var(--s-klein); font-weight: 600; text-align: center; color: var(--hell); }
.masterdesk { grid-column: 1 / -1; font-size: var(--s-klein); color: var(--weich); text-align: center; }
.masterdesk a { font-weight: 700; color: var(--navy); text-decoration-color: var(--orange); }
.rechner-fussnote { margin-top: 18px; font-size: var(--s-klein); color: var(--weich); max-width: 90ch; }
[hidden] { display: none !important; }

/* ---------- Bewertung ---------- */
.bewertung-karte { background: var(--navy); color: #fff; border-radius: var(--r-gross); padding: clamp(28px, 4.4vw, 72px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px var(--spalt); align-items: center; }
.bewertung-zahl { grid-column: 1 / 5; display: grid; gap: 14px; justify-items: start; }
.note { font-size: clamp(6rem, 3rem + 10vw, 13rem); font-weight: 800; font-stretch: 88%; line-height: 0.8; letter-spacing: -0.05em; color: var(--gold); font-variant-numeric: tabular-nums; }
.sterne--gross svg { width: clamp(28px, 2.6vw, 40px); height: clamp(28px, 2.6vw, 40px); }
.bewertung-text { grid-column: 5 / 13; display: grid; gap: 20px; }
.bewertung-text h2 { font-size: var(--s-kopf); }
.bewertung-text p { font-size: var(--s-lead); line-height: 1.45; color: var(--hell); max-width: 44ch; }
.bewertung-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.bewertung-knoepfe .knopf--ton { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (hover: hover) and (pointer: fine) { .bewertung-knoepfe .knopf--ton:hover { background: rgba(255, 255, 255, 0.24); } }

/* ---------- Fragen ---------- */
.fragen { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--spalt); align-items: start; }
.fragen-seite { grid-column: 1 / 5; display: grid; gap: 24px; position: sticky; top: calc(var(--kopf) + 24px); }
.fragen-seite h2 { font-size: var(--s-kopf); }
.fakten { display: grid; gap: 6px; font-size: var(--s-text); }
.fakten a { font-weight: 700; text-decoration-color: var(--orange); }
.fragen-bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-gross); }
.fragen-liste { grid-column: 5 / 13; display: grid; gap: 10px; }
details { background: var(--karte); border-radius: var(--r-mittel); padding: 6px 24px; transition: background-color 200ms ease; }
summary { list-style: none; cursor: pointer; font-weight: 700; font-size: var(--s-lead); line-height: 1.3; display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 64px; padding: 10px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--grund) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304223F' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform 260ms var(--aus), background-color 200ms ease; }
details[open] summary::after { transform: rotate(45deg); background-color: var(--amber); }
details p { padding: 0 0 22px; color: var(--weich); font-size: var(--s-text); max-width: 64ch; }
details p a { color: var(--navy); font-weight: 600; text-decoration-color: var(--orange); }
@media (hover: hover) and (pointer: fine) { details:not([open]):hover { background: #F7F9FB; } }

/* ---------- Partner ---------- */
.partner-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spalt); }
.partner-liste a { position: relative; height: 100%; display: grid; gap: 8px; align-content: start; padding: 26px 56px 28px 26px; background: var(--karte); border-radius: var(--r-gross); text-decoration: none; transition: transform 200ms var(--aus), background-color 200ms ease; }
.partner-liste a:active { transform: scale(0.98); }
.partner-liste strong { font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.partner-liste span { color: var(--weich); font-size: var(--s-klein); }
.partner-liste svg { position: absolute; right: 22px; top: 24px; width: 22px; height: 22px; color: var(--orange-tief); transition: transform 240ms var(--aus); }
@media (hover: hover) and (pointer: fine) { .partner-liste a:hover svg { transform: translate(3px, -3px); } }

/* ---------- Schluss ---------- */
.schluss { padding: var(--abstand) var(--m); }
.schluss-karte { background: var(--orange); color: #fff; border-radius: var(--r-gross); padding: clamp(36px, 6vw, 96px) clamp(24px, 5vw, 80px); display: grid; gap: 22px; justify-items: start; }
.schluss-karte h2 { font-size: var(--s-titel); max-width: 14ch; line-height: 0.95; }
.schluss-karte p { font-size: var(--s-lead); line-height: 1.45; max-width: 46ch; color: #fff; }
.schluss-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.schluss-karte .knopf--haupt { background: var(--navy); }
@media (hover: hover) and (pointer: fine) { .schluss-karte .knopf--haupt:hover { background: var(--navy-tief); } }
.schluss-karte .knopf--glas { background: var(--orange-tief); }

/* ---------- Fuß ---------- */
.fuss { background: var(--navy); color: #fff; padding: clamp(56px, 7vw, 96px) var(--m) 28px; }
.fuss-raster { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px var(--spalt); }
.fuss-marke img { width: 150px; height: auto; }
.fuss-marke p { margin-top: 18px; color: var(--hell); max-width: 34ch; font-size: var(--s-klein); }
.fuss-nav, .fuss-adresse { display: grid; gap: 8px; align-content: start; font-size: var(--s-klein); }
.fuss-titel { font-weight: 800; font-size: 1.0625rem; margin-bottom: 6px; }
.fuss a { color: var(--hell); text-decoration: none; }
.fuss-adresse a:first-of-type { color: #fff; font-weight: 800; font-size: var(--s-unter); }
.fuss-adresse span { color: var(--hell); }
@media (hover: hover) and (pointer: fine) { .fuss a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); } }
.fuss-zeile { margin-top: 56px; color: var(--hell); font-size: var(--s-klein); }

/* ---------- WhatsApp + Cookie ---------- */
.wa-knopf { position: fixed; right: 18px; bottom: 18px; z-index: 25; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(2, 22, 41, 0.28); /* taste-skill-ignore: schwebender Knopf */ transition: transform 200ms var(--aus), opacity 240ms ease; }
.wa-knopf svg { width: 30px; height: 30px; }
.wa-knopf:active { transform: scale(0.94); }
body.im-hero .wa-knopf, body.im-kapitel .wa-knopf { opacity: 0; transform: translateY(16px); pointer-events: none; }
.cookie { position: fixed; left: var(--m); bottom: 16px; z-index: 40; width: min(560px, calc(100% - 2 * var(--m))); background: var(--karte); color: var(--navy); padding: 20px 22px; border-radius: var(--r-gross); display: none; gap: 16px; box-shadow: 0 16px 48px rgba(2, 22, 41, 0.35); /* taste-skill-ignore: echter Dialog */ }
.cookie.zeigen { display: grid; }
@starting-style { .cookie.zeigen { opacity: 0; transform: translateY(16px); } }
.cookie { transition: opacity 260ms var(--aus), transform 300ms var(--aus); }
.cookie p { font-size: var(--s-klein); }
.cookie p a { font-weight: 700; text-decoration-color: var(--orange); }
.knoepfe { display: flex; gap: 10px; justify-content: flex-end; }
.knoepfe button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform 160ms var(--aus); }
.knoepfe button:active { transform: scale(0.97); }
.knoepfe .nein { background: var(--ton); }
.knoepfe .ja { background: var(--navy); color: #fff; }

/* ---------- Wort-Reveals ---------- */
.zeilen .wort { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.zeilen .wort > span { display: inline-block; will-change: transform; }

/* ---------- Tablet ---------- */
@media (max-width: 1099px) {
  .kopf-nav { display: none; }
  .menue-knopf { display: grid; }
  .hero { align-items: end; padding-bottom: 48px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(4, 34, 63, 0.6) 0, rgba(4, 34, 63, 0.08) 16%, rgba(4, 34, 63, 0.22) 30%, rgba(4, 34, 63, 0.93) 49%, var(--navy) 57%); /* taste-skill-ignore: Scrim unter Text auf Foto */
  }
  .hero-foto { bottom: auto; height: 74%; }
  .hero-foto img { object-position: 50% 10%; }
  .hero-karte { display: none; }
  .zahlenband { display: block; padding: 0 var(--m); margin-top: calc(var(--spalt) * -0); }
  .zahlenband .zahlen { background: var(--karte); border-radius: var(--r-gross); padding: 20px 22px; margin: var(--spalt) 0 0; }
  .abschnitt-kopf h2, .abschnitt-kopf p { grid-column: 1 / 13; }
  .kacheln { grid-template-columns: repeat(2, 1fr); }
  .kachel--gross { grid-column: span 2; grid-row: auto; }
  .kachel--gross img { aspect-ratio: 16 / 9; height: auto; }
  .kachel:nth-child(5) { grid-column: auto; grid-row: auto; }
  .kachel--orange { grid-column: span 2; }
  .walze { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .walze-text { display: contents; }
  .walze-text h2 { order: 1; } .walze-satz { order: 2; } .walze-figur { order: 3; } .projekte { order: 4; } .walze-hinweis { order: 5; }
  .walze-buehne { height: min(78svh, 760px); }
  .warum { grid-template-areas: none; }
  .warum-text h2 { grid-area: auto; grid-column: 1 / 13; }
  .warum-text > p { grid-column: 1 / 13; grid-row: auto; margin-bottom: 24px; }
  .inhaber { grid-column: 1 / 13; grid-row: auto; margin-top: var(--spalt); order: 3; }
  .gruende { grid-column: 1 / 13; grid-row: auto; }
  .kapitel-buehne { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .kapitel-bild, .kapitel-karte { grid-column: 1; }
  .kapitel-karte { gap: 16px; }
  .kapitel-karte h2 { font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); }
  .blatt h3, .blatt p, .blatt-wege { grid-column: 1 / 7; }
  .blatt img { grid-column: 7 / 13; }
  .rechner-karte { grid-template-columns: 1fr; }
  .bewertung-zahl { grid-column: 1 / 13; grid-auto-flow: column; align-items: end; justify-content: start; gap: 24px; }
  .bewertung-text { grid-column: 1 / 13; }
  .fragen-seite { grid-column: 1 / 13; position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .fragen-seite h2 { grid-column: 1 / -1; }
  .fragen-liste { grid-column: 1 / 13; }
  .partner-liste { grid-template-columns: 1fr 1fr; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
  :root { --kopf: 62px; }
  .kopf { gap: 12px; }
  .kopf-logo { padding: 4px 9px; border-radius: 12px; } .kopf-logo img { height: 38px; }
  .knopf--kopf { min-height: 44px; padding: 0 16px; }
  .knopf--kopf .nummer { display: none; }
  .knopf--kopf .kurz { display: inline; }
  .menue-knopf { width: 44px; height: 44px; }

  .hero { min-height: 100svh; padding: calc(var(--kopf) + 20px) 20px 26px; }
  .hero-foto { height: 58%; }
  .hero-titel { font-size: clamp(2.6rem, 13.2vw, 3.6rem); margin-top: 16px; }
  .hero-badge { min-height: 34px; padding: 0 14px 0 12px; font-size: 0.875rem; }
  .hero-satz { margin-top: 16px; font-size: 1.0625rem; }
  .hero-knoepfe { margin-top: 22px; display: grid; width: 100%; gap: 10px; }
  .hero-knoepfe .knopf--haupt { width: 100%; }
  .hero-wege { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-wege .knopf { padding: 0 12px; min-height: 52px; }
  .hero-sterne { margin-top: 14px; gap: 10px; }
  .sterne svg { width: 18px; height: 18px; }

  .abschnitt { padding-top: clamp(72px, 18vw, 96px); }
  .abschnitt-kopf { margin-bottom: 24px; }
  .kacheln { grid-template-columns: 1fr; gap: 10px; }
  .kachel--gross, .kachel--orange { grid-column: auto; }
  .kachel a { flex-direction: row; align-items: stretch; border-radius: var(--r-mittel); }
  .kachel img, .kachel--gross img { width: 112px; height: auto; aspect-ratio: auto; flex: none; object-fit: cover; }
  .kachel-text { padding: 16px 18px; gap: 4px; }
  .kachel-text strong { font-size: 1.25rem; }
  .kachel-text em { margin-top: 2px; }
  .kachel--feld a, .kachel--orange a { min-height: 0; }

  .walze-text { gap: 18px; }
  .walze { grid-template-areas: none; }

  .walze-buehne { height: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .projekte { gap: 8px; }
  .projekt { min-height: 60px; padding: 6px 10px 6px 6px; gap: 10px; }
  .projekt img { width: 46px; height: 46px; }

  .gruende { grid-template-columns: 1fr; gap: 10px; }
  .grund { min-height: 0; }

  .kapitel { height: 380svh; }
  .kapitel-buehne { padding: calc(var(--kopf) + 10px) 12px 12px; gap: 10px; }
  .kapitel-karte { padding: 18px 18px 18px; border-radius: var(--r-mittel); }
  .reiter-zeile button { padding: 0 14px; }
  .position p:not(.werkzeug) { font-size: var(--s-klein); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kapitel-karte { gap: 12px; }
  .kapitel-karte h2 { font-size: 1.375rem; }
  .position h3 { font-size: 1.3rem; }
  .kapitel-knoepfe .knopf { flex: 1; min-height: 48px; padding: 0 14px; font-size: var(--s-klein); }

  .blatt { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; min-height: 74svh; padding: 22px 20px 20px; }
  .blatt:nth-child(2) { top: calc(var(--kopf) + 32px); } .blatt:nth-child(3) { top: calc(var(--kopf) + 48px); } .blatt:nth-child(4) { top: calc(var(--kopf) + 64px); }
  .blatt h3, .blatt p, .blatt-wege, .blatt img { grid-column: 1; }
  .blatt p { grid-row: 2; padding-top: 12px; margin-bottom: 16px; font-size: 1.125rem; }
  .blatt-wege { grid-row: 2; align-self: end; display: none; }
  .blatt img { grid-row: 3; aspect-ratio: 4 / 3; height: auto; }

  .rechner-karte { padding: 18px 14px; }
  .reiter { width: 100%; } .reiter button { flex: 1; padding: 0 10px; }
  .felder { gap: 12px; }
  .bewertung-zahl { grid-auto-flow: row; }
  .fragen-seite { grid-template-columns: 1fr; }
  details { padding: 4px 18px; }
  summary { font-size: 1.0625rem; min-height: 60px; }
  .partner-liste { grid-template-columns: 1fr; gap: 10px; }
  .schluss { padding: var(--abstand) 12px; }
  .schluss-karte { padding: 36px 22px; }
  .schluss-karte h2 { font-size: clamp(2.25rem, 10.5vw, 2.75rem); }
  .schluss-knoepfe { display: grid; width: 100%; }
  .schluss-knoepfe .knopf { width: 100%; }
  .fuss-raster { grid-template-columns: 1fr; gap: 32px; }
  .cookie { left: 10px; right: 10px; width: auto; bottom: 10px; padding: 16px; gap: 12px; }
  .cookie p { font-size: 0.8125rem; line-height: 1.45; }
  .knoepfe button { min-height: 44px; }
  .knoepfe button { flex: 1; }
}
@media (max-width: 420px) {
  .hero-wege .knopf .lang { display: none; }
  .hero-wege .knopf .kurz { display: inline; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .hero-satz { display: none; }
}

/* ---------- Ruhig ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .position { transform: none; }
}

/* =====================================================================================================
   Gemeinsames System für alle Seiten (NEU-4A). Ab hier eingefroren für Schritt B: Seitenspezifisches
   nur in css/seite-<name>.css. Bausteine und Klassen: siehe SEITEN-VORLAGE.md
   ===================================================================================================== */

/* ---------- Kopf: Leistungen als Menü ---------- */
.nav-gruppe { position: relative; }
.nav-auf { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: inherit; font-size: var(--s-klein); font-weight: 600; cursor: pointer; }
.nav-auf svg { width: 16px; height: 16px; transition: transform 220ms var(--aus); }
.nav-auf[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-liste { position: absolute; top: calc(100% + 10px); left: -18px; z-index: 31; min-width: 280px; padding: 8px; display: none; gap: 2px; background: #fff; color: var(--navy); border-radius: var(--r-mittel); box-shadow: 0 18px 48px rgba(2, 22, 41, 0.22); /* taste-skill-ignore: echtes Aufklappmenü */ }
.nav-liste.offen { display: grid; opacity: 1; transform: none; transition: opacity 180ms var(--aus), transform 220ms var(--aus); }
@starting-style { .nav-liste.offen { opacity: 0; transform: translateY(-6px); } }
.kopf-nav .nav-liste a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 600; }
.kopf-nav .nav-liste a::after { display: none; }
.nav-liste a[aria-current="page"] { background: var(--grund); color: var(--orange-tief); }
@media (hover: hover) and (pointer: fine) { .nav-liste a:hover { background: var(--grund); } }
.kopf-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.menue a[aria-current="page"] { color: var(--amber); }

/* ---------- Unterseiten-Hero: kleinere Fassung des Startseiten-Heros ---------- */
.hero--seite { min-height: min(84svh, 760px); align-items: end; padding-bottom: clamp(40px, 7vh, 76px); }
.hero--klein { min-height: min(62svh, 560px); }
.hero--seite .hero-foto img { object-position: 50% 50%; }
.hero--seite .hero-titel { font-size: clamp(2.6rem, 0.9rem + 4.9vw, 5.25rem); line-height: 0.96; margin-top: 18px; }
.hero--seite .hero-satz { max-width: 44ch; }
.krumen ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0 0 6px; padding: 0; list-style: none; font-size: var(--s-klein); color: #E8EEF4; }
.krumen li + li::before { content: "/"; margin-right: 10px; color: var(--hell); }
.krumen a { display: inline-block; padding: 10px 0; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }

/* ---------- Karten (Leistungsliste) ---------- */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spalt); }
.karte { background: var(--karte); border-radius: var(--r-gross); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; }
.karte h3 { font-size: var(--s-unter); }
.karte p { color: var(--weich); }
.karte-nr { font-size: var(--s-klein); font-weight: 800; color: var(--orange-tief); font-variant-numeric: tabular-nums; }
.karte--navy { background: var(--navy); color: #fff; } .karte--navy p { color: var(--hell); } .karte--navy .karte-nr { color: var(--amber); }

/* ---------- Schritte (So arbeiten wir) ---------- */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spalt); }
.schritt { border-radius: var(--r-gross); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; min-height: 230px; background: var(--navy); color: #fff; }
.schritt-nr { font-size: var(--s-klein); font-weight: 700; letter-spacing: 0.01em; margin-bottom: clamp(20px, 3vw, 44px); }
.schritt h3 { font-size: var(--s-unter); }
.schritt p { color: var(--hell); }
.schritt:nth-child(2) { background: var(--blau); } .schritt:nth-child(2) p { color: #E1EEF5; }
.schritt:nth-child(3) { background: var(--karte); color: var(--navy); } .schritt:nth-child(3) p { color: var(--weich); }
.schritt:nth-child(4) { background: var(--amber); color: var(--navy); } .schritt:nth-child(4) p { color: var(--navy); }

/* ---------- Vorher/Nachher-Regler als eigener Block ---------- */
.vn { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px var(--spalt); align-items: center; }
.vn-text { grid-column: 1 / 6; display: grid; gap: 20px; }
.vn-text h2 { font-size: var(--s-kopf); }
.vn-text p { font-size: var(--s-lead); line-height: 1.45; color: var(--weich); }
.vn-figur { grid-column: 6 / 13; display: grid; gap: 12px; }
.vn-buehne { position: relative; overflow: hidden; border-radius: var(--r-gross); background: var(--navy); aspect-ratio: var(--vn-format, 5 / 4); isolation: isolate; }
.vn-figur figcaption { font-size: var(--s-klein); color: var(--weich); padding-left: 4px; }

/* ---------- CTA-Band ---------- */
.band { margin: var(--abstand) var(--m) 0; background: var(--navy); color: #fff; border-radius: var(--r-gross); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; }
.band h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); }
.band p { margin-top: 12px; font-size: var(--s-lead); line-height: 1.45; color: var(--hell); max-width: 46ch; }
.band-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Weitere Leistungen (interne Links) ---------- */
.weiter-liste { display: flex; flex-wrap: wrap; gap: 10px; }
.weiter-liste a { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: var(--karte); font-weight: 700; text-decoration: none; transition: background-color 200ms ease, transform 160ms var(--aus); }
.weiter-liste a:active { transform: scale(0.97); }
.weiter-liste svg { width: 18px; height: 18px; color: var(--orange-tief); }
@media (hover: hover) and (pointer: fine) { .weiter-liste a:hover { background: #F7F9FB; } }

/* ---------- Fließtext (Über uns, Impressum, Datenschutz) ---------- */
.prosa-karte { background: var(--karte); border-radius: var(--r-gross); padding: clamp(24px, 4vw, 56px); }
.prosa { max-width: 72ch; display: grid; gap: 14px; }
.prosa h2 { font-size: var(--s-unter); margin-top: 22px; }
.prosa h2:first-child { margin-top: 0; }
.prosa h3 { font-size: 1.25rem; margin-top: 10px; }
.prosa p, .prosa li { color: var(--weich); }
.prosa ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.prosa a { color: var(--navy); font-weight: 600; text-decoration-color: var(--orange); }

/* ---------- Bilder-Raster (Galerie, Projektbeispiele) ---------- */
.bilder { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spalt); }
.bilder figure { margin: 0; background: var(--karte); border-radius: var(--r-gross); overflow: hidden; display: grid; align-content: start; }
.bilder img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bilder figcaption { padding: 14px 18px 18px; font-size: var(--s-klein); color: var(--weich); }

/* ---------- Kontakt: Formular + Kontaktblock ---------- */
.kontakt { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--spalt); align-items: start; }
.formular-karte { grid-column: 1 / 8; background: var(--karte); border-radius: var(--r-gross); padding: clamp(22px, 3vw, 44px); display: grid; gap: 22px; }
.formular-karte > h2 { font-size: clamp(2rem, 1.3rem + 2vw, 3rem); }
.formular { display: grid; gap: 18px; }
.feld--voll { grid-column: 1 / -1; }
.feld textarea { min-height: 170px; padding: 12px 14px; border: 2px solid #C6D0DA; border-radius: var(--r-klein); background: #fff; width: 100%; resize: vertical; font: inherit; color: inherit; transition: border-color 160ms ease; }
.feld textarea:focus { border-color: var(--navy); outline: none; }
.feld :is(input, select, textarea):focus-visible { box-shadow: 0 0 0 3px rgba(242, 155, 21, 0.6); /* taste-skill-ignore: Fokusring */ }
.feld input::placeholder, .feld textarea::placeholder { color: #5F7184; }
.pflicht { color: var(--orange-tief); }
.formular-fuss { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.formular-hinweis { font-size: var(--s-klein); color: var(--weich); max-width: 40ch; }
.formular-hinweis a { font-weight: 700; text-decoration-color: var(--orange); }
.knopf[disabled] { opacity: 0.7; cursor: progress; }
.meldung { border-radius: var(--r-mittel); padding: 14px 18px; font-weight: 600; font-size: var(--s-klein); }
.meldung--fehler { background: #FCE7DE; color: #7A2503; }
.erfolg { display: grid; gap: 10px; background: #E4F3EA; color: #0B4A26; border-radius: var(--r-gross); padding: clamp(22px, 3vw, 36px); }
.erfolg h3 { font-size: var(--s-unter); }
.erfolg:focus { outline: none; }
.kontaktblock { grid-column: 8 / 13; display: grid; gap: var(--spalt); }
.kontakt-zeile { background: var(--karte); border-radius: var(--r-gross); padding: 22px 24px; display: grid; gap: 6px; }
.kontakt-zeile h3 { font-size: var(--s-klein); font-weight: 700; letter-spacing: 0; color: var(--weich); }
.kontakt-zeile .gross { font-size: var(--s-unter); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; }
.kontakt-zeile a.gross { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
.kontakt-zeile p { color: var(--weich); }
.kontakt-zeile--navy { background: var(--navy); color: #fff; } .kontakt-zeile--navy h3, .kontakt-zeile--navy p { color: var(--hell); }
.kontakt-zeile .knopf { justify-self: start; margin-top: 8px; }

/* ---------- Bausteine: Tablet ---------- */
@media (max-width: 1099px) {
  .hero--seite { min-height: 0; padding-top: calc(var(--kopf) + 38vh); }
  .hero--klein { padding-top: calc(var(--kopf) + 26vh); }
  .karten { grid-template-columns: 1fr 1fr; }
  .schritte { grid-template-columns: 1fr 1fr; }
  .vn-text, .vn-figur { grid-column: 1 / 13; }
  .band { grid-template-columns: 1fr; }
  .bilder { grid-template-columns: 1fr 1fr; }
  .formular-karte, .kontaktblock { grid-column: 1 / 13; }
  .kontaktblock { grid-template-columns: 1fr 1fr; }
}
/* ---------- Bausteine: Handy ---------- */
@media (max-width: 767px) {
  .hero--seite { padding: calc(var(--kopf) + 30vh) 20px 30px; }
  .hero--klein { padding-top: calc(var(--kopf) + 18vh); }
  .hero--seite .hero-titel { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .krumen ol { font-size: 0.875rem; }
  .karten, .schritte, .bilder { grid-template-columns: 1fr; gap: 10px; }
  .karte, .schritt { border-radius: var(--r-mittel); }
  .schritt { min-height: 0; }
  .schritt-nr { margin-bottom: 10px; }
  .vn-buehne { aspect-ratio: var(--vn-format-handy, 4 / 5); }
  .band { margin: var(--abstand) 12px 0; padding: 28px 22px; }
  .band-knoepfe { display: grid; }
  .band-knoepfe .knopf { width: 100%; }
  .weiter-liste a { min-height: 48px; padding: 0 18px; }
  .felder { grid-template-columns: 1fr; }
  .formular-karte { padding: 22px 16px; }
  .formular-fuss .knopf { width: 100%; }
  .kontaktblock { grid-template-columns: 1fr; gap: 10px; }
}
.fragen-unter { color: var(--weich); font-size: var(--s-lead); line-height: 1.45; max-width: 34ch; }
.kontakt-zeile p.gross { color: inherit; }
.abstand-unten { height: var(--abstand); }
ol.schritte, .krumen ol { padding: 0; list-style: none; }

/* ---------- Hero-Einstieg als CSS (läuft ab dem ersten Bild, ohne auf Skripte zu warten) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-foto img { animation: hero-zoom 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) both; }
  .hero-titel .zeile { animation: hero-steigen 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-titel .zeile + .zeile { animation-delay: 0.08s; }
  .hero .strich { animation: hero-strich 0.85s cubic-bezier(0.77, 0, 0.175, 1) 0.5s both; }
  .hero-badge { animation: hero-auf 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
  .hero-satz { animation: hero-auf 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.32s both; }
  .hero-knoepfe > .knopf { animation: hero-auf 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both; }
  .hero-wege > :nth-child(1) { animation: hero-auf 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both; }
  .hero-wege > :nth-child(2) { animation: hero-auf 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.54s both; }
  .hero-sterne, .krumen { animation: hero-auf 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both; }
  .hero-karte { animation: hero-karte 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both; }
}
@keyframes hero-zoom { from { transform: scale(1.1); } }
@keyframes hero-steigen { from { transform: translateY(18%); } }
@keyframes hero-strich { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-auf { from { opacity: 0; transform: translateY(16px); } }
@keyframes hero-karte { from { opacity: 0; transform: translateY(30px); } }

/* ---------- Keyword-H1 (09.11.2026): Ort/Keyword als erste Zeile, lange Leistungsnamen ---------- */
.hero-titel .zeile--ort { font-size: 0.4em; line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 0.16em; color: #fff; }
.hero-titel { overflow-wrap: break-word; hyphens: manual; }
.hero--seite .hero-titel--lang { font-size: clamp(2.3rem, 0.6rem + 3.6vw, 4.3rem); }
@media (max-width: 767px) {
  .hero--seite .hero-titel--lang { font-size: clamp(1.85rem, 8.6vw, 2.5rem); }
  .hero-titel .zeile--ort { font-size: 0.5em; }
}
