/* Welp & Welp, Stylesheet
   Marke: Navy, dazu Sandgold nur für Linien und Details (wie im Leitfaden),
   Überschriften in Bitter, Text in Source Sans 3.
   Formen: überall 2px Radius (Buttons, Felder, Flächen, Bilder). */

/* ---------- Schriften (selbst gehostet, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Bitter"; src: url("/assets/fonts/bitter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bitter"; src: url("/assets/fonts/bitter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

/* ---------- Farben und Maße ---------- */
:root {
  --bg: #F4F4EF;
  --bg-alt: #E9EAE3;
  --surface: #FBFBF8;
  --ink: #13213A;
  --text: #27334A;
  --muted: #545F73;
  --line: #D3D5CF;
  --line-strong: #7D8697;
  --accent: #C2A266;        /* Sandgold: Linien, Unterstreichungen, nie als Fläche */
  --accent-text: #7A6034;   /* Sandgold dunkel: kleine Schrift auf hellem Grund */
  --gold: #E8C883;          /* Hellgold aus dem Leitfaden: nur auf Navy */
  --btn: #13213A;
  --btn-hover: #24375A;
  --btn-ink: #F4F4EF;
  --navy: #13213A;
  --navy-deep: #0D1729;
  --on-dark: #F2F1EC;
  --on-dark-muted: #B9C1CE;
  --error: #A3341F;
  --focus: #13213A;
  --shadow: 0 1px 2px rgb(19 33 58 / .06), 0 14px 32px -18px rgb(19 33 58 / .28);
  --radius: 2px;
  --font-serif: "Bitter", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1200px;
  --gutter: clamp(1rem, .45rem + 2.4vw, 2.5rem);
  --section: clamp(4rem, 2.6rem + 5vw, 7.5rem);
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);   /* schnell rein, dann ruhig auslaufen */
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1828;
    --bg-alt: #132036;
    --surface: #16233A;
    --ink: #F1F0EA;
    --text: #D3D8E0;
    --muted: #A3ACBA;
    --line: #283753;
    --line-strong: #7584A0;
    --accent: #CDB37C;
    --accent-text: #E8C883;
    --gold: #E8C883;
    --btn: #F1F0EA;
    --btn-hover: #E8C883;
    --btn-ink: #13213A;
    --navy: #16243C;
    --navy-deep: #0A1220;
    --error: #F2917B;
    --focus: #E8C883;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 36px -18px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 900px) { body { font-size: 1.1875rem; } }
body.menu-open { overflow: hidden; }

img, picture, svg { display: block; max-width: 100%; height: auto; }
picture img { width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h2, .h2 { font-size: clamp(1.75rem, 1.32rem + 1.65vw, 2.625rem); line-height: 1.12; }
h3, .h3 { font-size: clamp(1.3rem, 1.18rem + .5vw, 1.55rem); line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p, li, dd, figcaption, td { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
@media (max-width: 600px) { h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; } }
strong { font-weight: 650; color: var(--ink); }

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  transition: text-decoration-color .15s ease, color .15s ease;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -6rem; z-index: 100; background: var(--ink); color: var(--bg); padding: .75rem 1rem; font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Raster ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section:not(.section-alt) + .section:not(.section-alt):not(.section-flush) { padding-top: 0; }
.section-head { max-width: 46rem; }
.section-head > p { font-size: 1.15rem; }
.section-head + * { margin-top: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.measure { max-width: 64ch; }
.muted { color: var(--muted); }

.lead { font-size: clamp(1.2rem, 1.08rem + .48vw, 1.42rem); line-height: 1.5; hyphens: manual; -webkit-hyphens: manual; }
.eyebrow { font-family: var(--font-sans); font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 1.1rem; }

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---------- Buttons und Links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .7rem 1.35rem;
  font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 650; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-size .5s var(--ease-out), color .25s ease, border-color .18s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
/* Beim Überfahren wischt die Hover-Farbe von links herein */
.btn-primary { background: linear-gradient(var(--btn-hover), var(--btn-hover)) left / 0 100% no-repeat, var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background-size: 100% 100%; color: var(--btn-ink); }
.btn-secondary { background: linear-gradient(var(--ink), var(--ink)) left / 0 100% no-repeat, transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background-size: 100% 100%; color: var(--bg); }
.btn-lg { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.125rem; }

.link-arrow { display: inline-flex; align-items: baseline; gap: .45em; font-weight: 650; text-decoration: none; color: var(--ink); }
.link-arrow > span:first-child { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.link-arrow:hover > span:first-child { text-decoration-color: currentColor; }
.arrow { display: inline-block; transition: transform .18s ease; }
.link-arrow:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- Kopfzeile ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; color: var(--ink); text-decoration: none; flex: none; }
.logo { display: block; background-color: currentColor; -webkit-mask: var(--logo) no-repeat left center / contain; mask: var(--logo) no-repeat left center / contain; }
.logo-quer { --logo: url("/assets/img/logo-quer.png"); width: 11.5rem; height: 1.56rem; }
.logo-gestapelt { --logo: url("/assets/img/logo-gestapelt.png"); width: 8.5rem; height: 4.12rem; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; align-items: center; gap: 1.85rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: .55rem 0;
  font: 600 1.0625rem/1.2 var(--font-sans); color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-link[aria-current="page"], .nav-link.is-current { box-shadow: inset 0 -2px 0 var(--accent); }
.nav-link:hover { box-shadow: inset 0 -2px 0 var(--accent); }
.sub-toggle::after {
  content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .5em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-.22em) rotate(45deg); transition: transform .18s ease;
}
.sub-toggle[aria-expanded="true"]::after { transform: translateY(.05em) rotate(225deg); }
.has-sub { position: relative; }
.subnav {
  position: absolute; top: calc(100% + .85rem); left: -1.1rem; z-index: 60;
  width: 23rem; margin: 0; padding: .5rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.sub-toggle[aria-expanded="true"] + .subnav { display: block; }
@media (hover: hover) and (min-width: 1080px) { .has-sub:hover > .subnav { display: block; } }
.subnav a { display: block; padding: .7rem .85rem; text-decoration: none; border-radius: var(--radius); }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--bg-alt); }
.subnav-label { display: block; font-weight: 650; color: var(--ink); line-height: 1.3; }
.subnav-note { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.35; }

.menu-button { display: none; }

@media (max-width: 1079.98px) {
  .menu-button {
    display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: 0 .25rem;
    background: none; border: 0; cursor: pointer; font: 650 1.0625rem/1 var(--font-sans); color: var(--ink);
  }
  .menu-icon { position: relative; width: 1.35rem; height: 2px; background: currentColor; transition: background-color .2s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: calc(var(--header-h) + 1px) 0 0 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 3rem; overflow-y: auto; background: var(--bg);
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-nav { position: static; padding-bottom: 1.5rem; }
  html:not(.js) .header-bar { flex-wrap: wrap; }
  html:not(.js) .menu-button { display: none; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { display: block; width: 100%; padding: 1.05rem 0; text-align: left; font-size: 1.25rem; }
  .nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-current { box-shadow: none; }
  .nav-link[aria-current="page"] { color: var(--accent-text); }
  .sub-toggle { display: flex; justify-content: space-between; align-items: center; }
  .subnav { position: static; width: auto; display: none; padding: 0 0 1rem; border: 0; box-shadow: none; background: none; }
  html:not(.js) .subnav { display: block; }
  .subnav a { padding: .65rem 0; }
  .subnav a:hover { background: none; }
  .nav-cta { margin-top: 1.75rem; min-height: 3.5rem; }
}

/* ---------- Brotkrumen ---------- */
.breadcrumb { padding-top: 1.35rem; font-size: .9375rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); text-decoration-color: transparent; }
.breadcrumb a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- Startseite: Einstieg ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 4.5vw, 5rem) clamp(3.5rem, 2rem + 5vw, 6.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.5rem); line-height: 1.04; letter-spacing: -0.024em; margin-bottom: 1.5rem; }
.hero-lead { max-width: 36ch; margin-bottom: 2.25rem; }
.hero-people { --offset: clamp(2.25rem, 5vw, 4rem); position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2vw, 1.25rem); align-items: start; margin: 0; }
.hero-person { position: relative; margin: 0; }
.hero-person:nth-child(2) { margin-top: var(--offset); }
.hero-person img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #E6E9EC; }
.hero-person figcaption { margin-top: .9rem; font-size: .9375rem; line-height: 1.4; color: var(--muted); hyphens: manual; }
.hero-person figcaption strong { display: block; margin-bottom: .15rem; font-family: var(--font-serif); font-size: 1.125rem; color: var(--ink); }
/* Das „&“ steht aufrecht und leicht im Freiraum über dem zweiten Porträt */
.hero-amp {
  position: absolute; left: -.04em; bottom: 100%;
  font-family: var(--font-serif); font-weight: 300;
  font-size: calc(var(--offset) * 1.15); line-height: .92;
  color: var(--accent);
  pointer-events: none; user-select: none;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* Direkt zum Anliegen: kleine Weiche unter dem Einstieg */
.anliegen { margin-top: 2rem; }
.anliegen-label { margin: 0 0 .65rem; font-size: .9375rem; font-weight: 600; color: var(--muted); }
.anliegen ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.anliegen a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .95rem;
  font-size: 1rem; font-weight: 600; line-height: 1.2; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .2s ease, background-color .2s ease;
}
.anliegen a:hover { border-color: var(--ink); background: var(--bg-alt); }

/* ---------- Zahlen ---------- */
.stats-grid { display: grid; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.stat { position: relative; margin: 0; padding-top: 1.25rem; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--ink); transform-origin: left center; }
.stat-value { display: block; margin-bottom: .7rem; font-family: var(--font-serif); font-weight: 650; font-size: clamp(2.75rem, 2rem + 2.6vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-text { margin: 0; font-size: 1.0625rem; hyphens: manual; -webkit-hyphens: manual; }
.stat-source { margin: .65rem 0 0; font-size: .875rem; color: var(--muted); }
.stat-source a { color: var(--muted); }
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); } }

/* ---------- Leistungsübersicht ---------- */
.service-index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-row { position: relative; display: grid; gap: .6rem 2.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.service-row h3 { margin: 0; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.875rem); }
.service-row h3 a { text-decoration: none; }
.service-row h3 { transition: transform .5s var(--ease-out); }
.service-for { display: block; margin-top: .4rem; font-family: var(--font-sans); font-size: .9375rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.service-row p { margin: 0; }
.service-row .arrow { font-size: 1.5rem; line-height: 1; color: var(--ink); transition: transform .5s var(--ease-out); }
/* Beim Überfahren zieht eine Linie unter der Zeile durch */
.service-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--ease-out); }
.service-row:is(:hover, :focus-within)::after { transform: scaleX(1); }
.service-row:is(:hover, :focus-within) h3 { transform: translateX(.4rem); }
.service-row:is(:hover, :focus-within) .arrow { transform: translateX(6px); }
@media (min-width: 860px) {
  .service-row { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 2rem; align-items: baseline; padding: 2.1rem 0; }
}

/* ---------- Bild über volle Breite mit Satz ---------- */
.bleed { margin: 0; }
.bleed img { height: clamp(15rem, 36vw, 34rem); object-fit: cover; }
.statement-wrap { padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem) 0; }
.statement { hyphens: manual; -webkit-hyphens: manual; max-width: 34ch; margin: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.45rem, 1.1rem + 1.45vw, 2.25rem); line-height: 1.3; color: var(--ink); }

/* ---------- Angebot (Zukunftscheck) ---------- */
.offer {
  position: relative; display: grid; gap: 2.5rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.offer::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--accent); transform-origin: left center; }
.offer h2 { margin-bottom: .6rem; }
.offer-facts { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 1.75rem 0 2rem; font-size: 1.0625rem; }
.offer-facts dt { font-weight: 700; color: var(--ink); }
.offer-facts dd { margin: 0; }
@media (min-width: 960px) { .offer { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 5vw, 5rem); align-items: start; } }

/* ---------- Schritte (nummerierter Ablauf) ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; max-width: 50rem; }
.steps > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0 1.25rem; padding-bottom: 2rem; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before {
  content: counter(step);
  position: relative; z-index: 1; width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 650; font-size: 1.25rem; color: var(--ink);
  background: var(--bg); border: 2px solid var(--ink); border-radius: var(--radius);
}
.offer .steps > li::before { background: var(--surface); }
.steps > li::after { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 2.75rem; bottom: 0; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { margin: .4rem 0 .3rem; font-size: 1.25rem; }
.steps p { margin: 0; }
.steps .when { display: block; margin-bottom: .15rem; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }

/* ---------- Team und Haltung ---------- */
.team-grid { display: grid; gap: 3rem; }
.principles { display: grid; gap: 1.6rem; margin: 0; }
.principles > div { position: relative; padding-left: 1.25rem; }
.principles > div::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform-origin: center top; }
.principles dt { margin-bottom: .2rem; font-family: var(--font-serif); font-weight: 650; font-size: 1.2rem; color: var(--ink); }
.principles dd { margin: 0; }
@media (min-width: 960px) { .team-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 7vw, 7rem); } }

/* ---------- Zitat ---------- */
.quote-block { margin: 0; max-width: 46rem; }
.quote-rule { width: 4rem; height: 3px; margin-bottom: 2rem; background: var(--accent); transform-origin: left center; }
.quote-block blockquote { margin: 0; }
.quote-block blockquote p { hyphens: manual; -webkit-hyphens: manual; margin: 0; font-family: var(--font-serif); font-style: italic; font-weight: 450; font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3.25rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); padding-bottom: .1em; }
.quote-block figcaption { margin-top: 1.5rem; font-size: 1rem; color: var(--muted); }
.quote-block figcaption a { color: var(--muted); }

/* ---------- Zitat-Abschnitt: leicht nach rechts versetzt ---------- */
@media (min-width: 960px) { .quote-section .quote-block { margin-left: calc(100% / 12 * 3); } }

/* ---------- Fallbeispiel ---------- */
.case { position: relative; display: grid; gap: 2rem; align-items: center; }
.case-media { margin: 0; }
.img-note { margin-top: .5rem; font-size: .8125rem; color: var(--muted); }
.case img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.case h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
.case-facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; margin: 1.5rem 0 1.75rem; }
.case-facts dt { font-family: var(--font-serif); font-weight: 650; font-size: 2rem; line-height: 1; color: var(--ink); }
.case-facts dd { margin: .4rem 0 0; font-size: .9375rem; color: var(--muted); }
@media (min-width: 960px) { .case { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 5rem); } }
.more-posts { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.more-posts > h3 { margin-bottom: 1.25rem; font-size: 1.15rem; font-family: var(--font-sans); font-weight: 700; color: var(--ink); }

/* ---------- Beitragslisten ---------- */
.post-meta { margin: 0 0 .5rem; font-size: .9rem; color: var(--muted); }
.post-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-list-item { position: relative; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.post-list-title { margin: 0; font-size: 1.2rem; line-height: 1.32; }
.post-list-title a { text-decoration: none; }
.post-list-item:hover .post-list-title a { text-decoration: underline; text-decoration-color: var(--accent); }
@media (min-width: 900px) {
  .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; border-top: 0; }
  .post-list-item { padding: 1.25rem 0 0; border-bottom: 0; border-top: 2px solid var(--ink); }
}

.post-feature { position: relative; display: grid; gap: 1.75rem; align-items: center; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.post-feature-media img, .post-row-media img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.post-feature-title { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem); }
.post-feature-title a, .post-row-title a { text-decoration: none; }
.post-feature:hover .post-feature-title a, .post-row:hover .post-row-title a { text-decoration: underline; text-decoration-color: var(--accent); }
.post-feature-more { margin: 0; font-weight: 650; color: var(--ink); }
.post-feature:hover .arrow { transform: translateX(4px); }
.post-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.post-row { position: relative; display: grid; gap: 1rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.post-row-title { margin-bottom: .5rem; font-size: clamp(1.25rem, 1.15rem + .45vw, 1.5rem); }
.post-row-excerpt { margin: 0; }
@media (min-width: 700px) { .post-row { grid-template-columns: 13.75rem minmax(0, 1fr); align-items: start; } }
@media (min-width: 1000px) { .post-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; } }

/* ---------- Häufige Fragen ---------- */
.faq-layout { display: grid; gap: 2.5rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.35; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: .65rem; height: .65rem; margin-right: .35rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-.2rem) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(.15rem) rotate(225deg); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-answer { max-width: 62ch; padding-bottom: 1.5rem; }
.faq-answer p:last-child, .faq-answer ul:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.faq-group > h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); margin-bottom: 1rem; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

.guide-teaser { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.guide-teaser img { border-radius: var(--radius); box-shadow: var(--shadow); }
.guide-teaser p { margin: 0 0 .5rem; font-size: 1rem; }
.guide-teaser .guide-title { font-family: var(--font-serif); font-weight: 650; font-size: 1.1rem; line-height: 1.3; color: var(--ink); }

/* ---------- Unterseiten: Einstieg ---------- */
.page-hero { padding-block: clamp(1.75rem, 1rem + 2.5vw, 3rem) clamp(3rem, 2rem + 4vw, 5.5rem); }
.page-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.page-title { font-size: clamp(2.125rem, 1.55rem + 2.1vw, 3.1rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.page-hero .lead { max-width: 42ch; margin-bottom: 2rem; }
.page-hero-media img { aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.page-hero-plain > * { max-width: 50rem; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); } }

/* ---------- Kurz gesagt ---------- */
.summary { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.summary h2 { font-size: 1.35rem; margin-bottom: 1.25rem; }
.facts { display: grid; gap: .35rem 2rem; margin: 0; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0 0 .9rem; }
@media (min-width: 720px) {
  .facts { grid-template-columns: 12rem minmax(0, 1fr); gap: 1rem 2rem; }
  .facts dd { margin: 0; }
}

/* ---------- Ansprechpartner neben „Kurz gesagt“ ---------- */
.summary-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1000px) { .summary-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; } }
.contact-card { padding: clamp(1.5rem, 1rem + 2vw, 2.25rem); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius); }
.contact-card .eyebrow { margin-bottom: 1.25rem; }
.contact-people { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.contact-person { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.contact-person img { width: 4.5rem; height: 5.6rem; object-fit: cover; border-radius: var(--radius); background: #E6E9EC; }
.contact-name { margin: 0; font-family: var(--font-serif); font-weight: 650; font-size: 1.15rem; line-height: 1.3; color: var(--ink); }
.contact-role { margin: .2rem 0 .5rem; font-size: 1rem; line-height: 1.4; color: var(--muted); }
.contact-person .link-arrow { font-size: 1rem; }
.contact-note { margin: 0 0 1.25rem; font-size: 1rem; }

/* ---------- Wege der Nachfolge (Übergeber, Nachfolger, Käufer) ---------- */
.audience { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.audience > li { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem 1.5rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--radius); scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.audience h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.audience p { margin: 0 0 1rem; }
.audience .link-arrow { margin-top: auto; }
@media (min-width: 900px) { .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Häkchen-Liste ---------- */
.check-grid { display: grid; gap: 1.75rem 3rem; margin: 0; padding: 0; list-style: none; }
.check-grid li { position: relative; padding-left: 2.25rem; }
.check-grid li::before {
  content: ""; position: absolute; left: .15rem; top: .38em;
  width: 1.05rem; height: .55rem;
  border-left: 3px solid var(--accent-text); border-bottom: 3px solid var(--accent-text);
  transform: rotate(-45deg);
}
.check-grid strong { display: block; margin-bottom: .2rem; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; }
.check-grid p { margin: 0; }
@media (min-width: 800px) { .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Zweispaltiger Inhalt ---------- */
.split { display: grid; gap: 2.5rem; }
.split-media img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 5.5rem); align-items: center; } }

/* ---------- Personen (Über uns) ---------- */
.person { display: grid; gap: 2rem; }
.person + .person { margin-top: clamp(4rem, 3rem + 4vw, 6.5rem); }
.person-photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #E6E9EC; }
.person h2 { margin-bottom: .35rem; }
.person-role { margin: 0 0 1.5rem; font-weight: 600; color: var(--muted); }
.person-links { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 1.5rem; }
@media (min-width: 900px) {
  .person { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 5.5rem); align-items: start; }
  .person:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .person:nth-of-type(even) .person-photo { order: 2; }
}

.pub-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pub-list li { position: relative; display: grid; gap: .25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.pub-list .pub-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.35; }
.pub-list .pub-title a { text-decoration: none; }
.pub-list li:hover .pub-title a { text-decoration: underline; text-decoration-color: var(--accent); }
.pub-list .pub-meta { font-size: .95rem; color: var(--muted); }

/* ---------- Fließtext (Ratgeber, Rechtliches) ---------- */
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.4em 0 .6em; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); }
.prose h3 { margin: 2em 0 .5em; font-size: 1.3rem; }
.prose ul, .prose ol { margin: 0 0 1.25em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; padding-left: .2em; }
.prose li::marker { color: var(--accent-text); font-weight: 700; }
.prose blockquote { margin: 2em 0; padding: .2em 0 .2em 1.5em; border-left: 4px solid var(--accent); }
.prose blockquote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink); }
.prose blockquote footer { margin-top: .75em; font-size: .95rem; font-weight: 600; color: var(--muted); }
.prose figure { margin: 2.5em 0; }
.prose figcaption { margin-top: .75rem; font-size: .95rem; color: var(--muted); }
.prose table { width: 100%; margin: 1.5em 0 2em; border-collapse: collapse; font-size: 1.0625rem; }
.prose th, .prose td { padding: .65rem .75rem .65rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); }
.prose .table-wrap { overflow-x: auto; }
@media (max-width: 700px) { .prose .table-wrap::before { content: "Tabelle seitlich wischen →"; display: block; margin-bottom: .35rem; font-size: .9375rem; color: var(--muted); } }
.prose hr { margin: 3em 0; border: 0; border-top: 1px solid var(--line); }

.tldr { margin: 0 0 2.75rem; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.tldr h2 { margin: 0 0 .6rem; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
.tldr ul { margin: 0; }
.tldr li:last-child { margin-bottom: 0; }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .975rem; color: var(--muted); }
.sources h2 { margin: 0 0 .75rem; font-family: var(--font-sans); font-size: 1.05rem; font-weight: 700; }
.sources a { color: var(--muted); }
.post-cta { margin: 3rem 0 0; padding: 1.75rem; background: var(--bg-alt); border-radius: var(--radius); }
.post-cta p { margin-bottom: 1rem; }

.phases { display: grid; gap: 1rem; margin: 2em 0; padding: 0; list-style: none; }
.phases li { margin: 0; padding: 1.25rem 1.25rem 1.35rem; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); }
.phases li:last-child { border-top-color: var(--accent); }
.phases strong { display: block; margin-bottom: .35rem; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; }
.phases span { display: block; font-size: 1rem; }
@media (min-width: 760px) { .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.glossary { margin: 1.5em 0 2em; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.glossary dt { font-family: var(--font-serif); font-weight: 650; font-size: 1.1rem; color: var(--ink); }
.glossary dd { margin: .2rem 0 1.1rem; }
.glossary dd:last-child { margin-bottom: 0; }
.prose .selftest { counter-reset: q; list-style: none; padding: 0; margin: 1.25em 0 1.5em; border-top: 1px solid var(--line); }
.prose .selftest li { counter-increment: q; position: relative; margin: 0; padding: .85rem 0 .85rem 2.6rem; border-bottom: 1px solid var(--line); }
.prose .selftest li::before { content: counter(q); position: absolute; left: 0; top: .8rem; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; font-size: .95rem; font-weight: 700; color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); }
.prose .faq-list { margin: 1em 0 2em; }
.article-cover .img-note { margin-top: .5rem; }

/* ---------- Artikel ---------- */
.article-header { max-width: calc(50rem + 2 * var(--gutter)); padding-bottom: 2.5rem; }
.article-header .breadcrumb { margin-bottom: 1.75rem; }
.article-kicker { margin: 0 0 .9rem; }
.article-kicker a { font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); text-decoration: none; }
.article-title { font-size: clamp(2rem, 1.45rem + 2.3vw, 3.25rem); line-height: 1.1; letter-spacing: -0.018em; margin-bottom: 1rem; }
.article-lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.5; margin-bottom: 1.5rem; }
.byline { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; font-size: .9375rem; color: var(--muted); }
.article-cover { margin: 0 auto clamp(2.5rem, 2rem + 2vw, 4rem); }
.article-cover img { aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }
.article-body, .article-footer { max-width: calc(44rem + 2 * var(--gutter)); }
.article-footer { margin-top: 3rem; }
.author-box { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.5rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.author-photo img { width: 5.5rem; height: 6.9rem; object-fit: cover; border-radius: var(--radius); }
.author-name { margin: 0; font-family: var(--font-serif); font-weight: 650; font-size: 1.2rem; color: var(--ink); }
.author-role { margin: 0 0 .75rem; font-size: .95rem; color: var(--muted); }
.author-box p:not(.author-name):not(.author-role) { font-size: 1.0625rem; }
.author-links { display: flex; gap: 1.5rem; margin: 0; font-weight: 600; }
.related { padding-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); }
.related h2 { margin-bottom: 1.5rem; }

/* ---------- Formulare ---------- */
.form-card { padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form { display: grid; gap: 1.35rem; }
.form-row { display: grid; gap: 1.35rem; align-items: end; }
@media (min-width: 700px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 650; font-size: 1rem; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: .75rem .9rem;
  font: inherit; font-size: 1.0625rem; line-height: 1.4; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 9.5rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.35rem) 52%, calc(100% - 1rem) 52%;
  background-size: .38rem .38rem; background-repeat: no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.field-hint { font-size: .9375rem; color: var(--muted); }
.consent { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .8rem; align-items: start; font-size: 1rem; line-height: 1.5; }
.consent input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--ink); }
.consent label { font-weight: 400; color: var(--text); }
.form-note { margin: 0; font-size: .9375rem; color: var(--muted); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Ergänzende Bausteine ---------- */
.section-flush { padding-top: 0; }
.split-cover { margin: 0; justify-self: center; }
.split-cover img { aspect-ratio: auto; width: min(18.75rem, 70vw); box-shadow: var(--shadow); }
.person-photo { margin: 0; }
.person-quote { margin: 1.75rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); }
.person-quote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.toc { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.toc a { font-weight: 600; text-decoration-color: transparent; }
.toc a:hover { text-decoration-color: var(--accent); }
.faq-group > h2 { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.contact-grid, .guide-grid { display: grid; gap: 2.5rem; align-items: start; }
.contact-intro h2 { margin-top: 2.25rem; margin-bottom: 1rem; }
.facts-compact { gap: .3rem 1.5rem; }
.facts-compact dd { margin-bottom: .75rem; }
.contact-direct { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .facts-compact { grid-template-columns: 9.5rem minmax(0, 1fr); } .facts-compact dd { margin: 0; } }
@media (min-width: 1000px) {
  .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 5.5rem); }
  .guide-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 5.5rem); }
}
.guide-form-head { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: center; margin-bottom: 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.guide-form-head img { box-shadow: var(--shadow); border-radius: var(--radius); }
.guide-form-head p { margin: 0; font-size: 1.0625rem; }
.guide-cover { margin: 0; justify-self: center; }
.guide-cover img { width: min(20rem, 70vw); border-radius: var(--radius); box-shadow: var(--shadow); }

.nine { display: grid; gap: 0 3rem; margin: 0; padding: 0; list-style: none; counter-reset: nine; }
.nine li { counter-increment: nine; position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: .75rem; padding: 1.1rem 0; border-top: 1px solid var(--line); font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.4; color: var(--ink); }
.nine li::before { content: counter(nine); font-weight: 650; color: var(--accent-text); }
@media (min-width: 860px) { .nine { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.legal > * { max-width: 46rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.link-list { display: grid; gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.thanks { min-height: 50vh; }

/* Buttons dürfen auf sehr schmalen Bildschirmen umbrechen */
@media (max-width: 380px) { .btn { white-space: normal; text-align: center; } }

/* ---------- Abschluss-Band und Footer ---------- */
.cta-band { padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); background: var(--navy); color: var(--on-dark-muted); }
.cta-band-grid { display: grid; gap: 2.75rem; }
.cta-band h2 { max-width: 18ch; margin-bottom: 1rem; font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); color: var(--on-dark); }
.cta-band p { max-width: 46ch; margin-bottom: 2rem; font-size: 1.15rem; }
.cta-band-list { display: grid; gap: 1.15rem; margin: 0; padding: 0 0 0 2rem; list-style: none; border-left: 1px solid rgb(255 255 255 / .2); }
.cta-band-list strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; color: var(--gold); }
.cta-band .btn-primary { --btn: var(--on-dark); --btn-hover: var(--gold); --btn-ink: #13213A; }
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }
@media (min-width: 960px) { .cta-band-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; } }

.site-footer { padding-top: clamp(3.5rem, 3rem + 2vw, 5rem); background: var(--navy-deep); color: var(--on-dark-muted); font-size: 1rem; }
.cta-band + .site-footer { border-top: 1px solid rgb(255 255 255 / .08); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand { margin-bottom: 1.35rem; color: var(--on-dark); }
.footer-brand p { max-width: 32ch; margin: 0; }
.footer-title { margin-bottom: 1rem; font-family: var(--font-sans); font-size: .875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark); }
.site-footer ul { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .9375rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 1.75rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; } }

/* ---------- Bewegung ----------
   Ruhige Auftritte statt Effekte: schnell herein, dann stehen lassen.
   - Überschriften (h1, Zitat) steigen wortweise aus einer Maske. Die Wörter verpackt der Build in .w > span.
   - Bilder öffnen sich von unten, Linien zeichnen sich, Zahlen zählen hoch (site.js).
   - Inhalte unterhalb des Einstiegs erscheinen beim Scrollen. Der Build setzt die Klassen:
     .rv (Block steigt auf), .rv-group (Kinder nacheinander), .rv-self (nur Auslöser, eigene Regeln).
     site.js setzt .is-in, sobald ein Element ins Bild kommt.
   Versteckt wird nur unter .js. Lädt site.js nicht, nimmt das Inline-Skript .js nach 4 Sekunden
   wieder weg und alles ist sichtbar. Bei „Bewegung reduzieren“ bleibt alles still. */

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .1em .22em; margin: -.14em -.1em -.22em; }
.w > span { display: inline-block; }
.w:nth-of-type(2) { --i: 1; } .w:nth-of-type(3) { --i: 2; } .w:nth-of-type(4) { --i: 3; } .w:nth-of-type(5) { --i: 4; }
.w:nth-of-type(6) { --i: 5; } .w:nth-of-type(7) { --i: 6; } .w:nth-of-type(8) { --i: 7; } .w:nth-of-type(9) { --i: 8; }
.w:nth-of-type(10) { --i: 9; } .w:nth-of-type(11) { --i: 10; } .w:nth-of-type(12) { --i: 11; } .w:nth-of-type(13) { --i: 12; }
.w:nth-of-type(14) { --i: 13; } .w:nth-of-type(15) { --i: 14; } .w:nth-of-type(n+16) { --i: 15; }
.rv { --k: 0; }
.rv-group > * { --k: 0; }
.rv-group > :nth-child(2) { --k: 1; } .rv-group > :nth-child(3) { --k: 2; } .rv-group > :nth-child(4) { --k: 3; }
.rv-group > :nth-child(5) { --k: 4; } .rv-group > :nth-child(6) { --k: 5; } .rv-group > :nth-child(n+7) { --k: 6; }
@media (max-width: 600px) { .w, .w > span { display: inline; padding: 0; margin: 0; } }

:is(.hero-person, .page-hero-media, .article-cover, .bleed, .case-media, .post-feature-media, .post-row-media) picture { overflow: hidden; border-radius: var(--radius); }
.bleed picture { border-radius: 0; }

.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 28px -24px rgb(19 33 58 / .5); }

@keyframes rise { from { opacity: 0; transform: translate3d(0, 1rem, 0); } }
@keyframes fade { from { opacity: 0; } }
@keyframes word-up { from { transform: translate3d(0, 115%, 0); } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
@keyframes settle { from { transform: scale(1.08); } }

@media (prefers-reduced-motion: no-preference) {
  /* Einstieg: läuft beim Laden, auch ohne JavaScript */
  :is(.hero, .page-hero) .eyebrow, .article-kicker { animation: rise .8s var(--ease-out) both; }
  .breadcrumb { animation: fade .8s ease both; }
  :is(.hero-lead, .page-hero .lead, .article-lead) { animation: rise .9s var(--ease-out) .35s both; }
  :is(.hero, .page-hero) .actions, .byline { animation: rise .9s var(--ease-out) .5s both; }
  .hero .anliegen { animation: rise .9s var(--ease-out) .65s both; }
  :is(.hero-person, .page-hero-media, .article-cover) picture { animation: unveil 1.2s var(--ease-out) .15s both; }
  :is(.hero-person, .page-hero-media, .article-cover) img { animation: settle 1.8s var(--ease-out) .15s both; }
  .hero-person:nth-child(2) :is(picture, img) { animation-delay: .45s; }
  .hero-person figcaption { animation: rise .8s var(--ease-out) .75s both; }
  .hero-person:nth-child(2) figcaption { animation-delay: 1.05s; }
  .hero-amp { animation: rise 1s var(--ease-out) .8s both; }

  /* Beim Scrollen */
  .js .rv, .js .rv-group > * { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--k) * 90ms); }
  .js .rv:not(.is-in), .js .rv-group:not(.is-in) > * { opacity: 0; transform: translate3d(0, 1.75rem, 0); }

  /* Linien zeichnen sich */
  .js .stat::before { transition: transform 1.3s var(--ease-out) calc(var(--d, 0ms) + var(--k) * 90ms + .1s); }
  .js .stats-grid:not(.is-in) .stat::before { transform: scaleX(0); }
  .js .offer::before { transition: transform 1.3s var(--ease-out) calc(var(--d, 0ms) + .35s); }
  .js .offer:not(.is-in)::before { transform: scaleX(0); }
  .js .principles > div::before { transition: transform 1s var(--ease-out) calc(var(--d, 0ms) + var(--k) * 90ms + .2s); }
  .js .principles:not(.is-in) > div::before { transform: scaleY(0); }
  .js .steps > li::after { transform-origin: center top; transition: transform 1s var(--ease-out) calc(var(--d, 0ms) + var(--k) * 90ms + .4s); }
  .js .steps:not(.is-in) > li::after { transform: scaleY(0); }
  .js .quote-rule { transition: transform 1s var(--ease-out) var(--d, 0ms); }
  .js .quote-block:not(.is-in) .quote-rule { transform: scaleX(0); }
  .js .quote-block figcaption { transition: opacity .9s ease calc(var(--d, 0ms) + .8s); }
  .js .quote-block:not(.is-in) figcaption { opacity: 0; }

  /* Breites Bild öffnet sich von unten */
  .js .bleed picture { clip-path: inset(0); transition: clip-path 1.5s var(--ease-out) var(--d, 0ms); }
  .js .bleed:not(.is-in) picture { clip-path: inset(100% 0 0 0); }

  /* Der Küchentisch-Satz färbt sich beim Lesen Wort für Wort ein (site.js setzt --p) */
  .statement.is-inking .ink { opacity: clamp(.18, calc((var(--p, 1) * (var(--n, 1) + 4) - var(--i, 0)) / 4), 1); transition: opacity .3s linear; }

  /* Bilder in Beitragslisten und im Fallbeispiel kommen beim Überfahren leicht näher */
  :is(.post-feature-media, .post-row-media, .case-media) img { transition: transform .9s var(--ease-out); }
  :is(.post-feature, .post-row, .case):hover :is(.post-feature-media, .post-row-media, .case-media) img { transform: scale(1.035); }

  /* Menü und Untermenü blenden weich ein */
  .js .site-nav.is-open { animation: fade .25s ease both; }
  .js .site-nav.is-open .nav-item { animation: rise .55s var(--ease-out) both; }
  .js .site-nav.is-open .nav-item:nth-child(2) { animation-delay: .05s; }
  .js .site-nav.is-open .nav-item:nth-child(3) { animation-delay: .1s; }
  .js .site-nav.is-open .nav-item:nth-child(4) { animation-delay: .15s; }
  .js .site-nav.is-open .nav-cta { animation: rise .55s var(--ease-out) .2s both; }
  .subnav { transition: opacity .2s ease, transform .3s var(--ease-out); }
  @starting-style { .subnav { opacity: 0; transform: translateY(-.4rem); } }

  /* Seitenwechsel als kurze Überblendung (Chrome, Edge, Safari) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: fade-out .18s ease both; }
  ::view-transition-new(root) { animation: fade .3s ease both; }
  .site-header { view-transition-name: site-header; }
}
@keyframes fade-out { to { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) and (min-width: 600.02px) {
  h1 .w > span { animation: word-up 1s var(--ease-out) both; animation-delay: calc(var(--t0, 60ms) + var(--i, 0) * var(--step, 45ms)); }
  .hero-title { --t0: 80ms; --step: 75ms; }
  .js .quote-block .w > span { transition: transform 1.1s var(--ease-out) calc(var(--d, 0ms) + .15s + var(--i, 0) * 55ms); }
  .js .quote-block:not(.is-in) .w > span { transform: translate3d(0, 115%, 0); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 600px) {
  h1 { animation: rise .9s var(--ease-out) both; }
  .js .quote-block blockquote { transition: opacity .9s var(--ease-out) var(--d, 0ms), transform 1.1s var(--ease-out) var(--d, 0ms); }
  .js .quote-block:not(.is-in) blockquote { opacity: 0; transform: translate3d(0, 1rem, 0); }
}

/* Leichte Tiefe beim Scrollen über das breite Bild (nur wo der Browser es nativ kann) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bleed img { scale: 1.12; animation: drift linear both; animation-timeline: view(); }
    @keyframes drift { from { translate: 0 -4%; } to { translate: 0 4%; } }
  }
}

/* Antworten in den Fragen klappen weich auf (Chrome, Edge) */
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-item { interpolate-size: allow-keywords; }
    .faq-item::details-content { height: 0; overflow: clip; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
    .faq-item[open]::details-content { height: auto; }
  }
}

/* ---------- Dunkelmodus: Bilder leicht zurücknehmen ---------- */
@media (prefers-color-scheme: dark) {
  picture img { filter: brightness(.93); }
  .hero-person img, .person-photo img { background: #2A3346; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .cta-band, .site-footer nav, .menu-button, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a { color: #000; }
  .rv, .rv-group > *, .statement .ink { opacity: 1 !important; transform: none !important; }
  .w > span, picture, img { animation: none !important; transform: none !important; clip-path: none !important; }
}
