/* ==========================================================================
   Kira Wehland · Website-Stylesheet
   Ein Stylesheet für alle Seiten. Kein Framework, kein CDN, keine Build-Kette.
   Farben: Navy / Cream / Gold · Schrift: Fira Sans für alles (lokal)
   Kontraste: alle Textfarben als feste Werte, geprüft auf WCAG 2.2 AA (≥ 4.5:1)
   ========================================================================== */

/* ── Schriften (lokal, keine Verbindung zu Google) ─────────────────────── */
/* Fira Sans (SIL OFL 1.1): auf Latin-1 und Satzzeichen reduziert, Lizenz in fonts/lizenz.
   fallback statt swap: bei geladener Schrift kein sichtbarer Wechsel von Ersatzschrift zu Fira beim Seitenwechsel */
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: fallback; src: url('../fonts/fira-sans-regular.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500; font-display: fallback; src: url('../fonts/fira-sans-medium.woff') format('woff'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: fallback; src: url('../fonts/fira-sans-semibold.woff') format('woff'); }

/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --navy: #0C2643;
  --cream: #F5F0E8;
  --cream-dark: #EBE5D8;
  --cream-deeper: #DDD6C8;
  --gold: #C4A96A;

  --ink: #0C2643;        /* Überschriften, 15:1 auf Cream */
  --ink-2: #33405A;      /* Fließtext, 9:1 */
  --ink-3: #55606F;      /* Nebentext, Eyebrows, ≥ 5:1 auch auf Cream-dark */
  --ink-4: #697281;      /* zurückgenommene Angaben wie Quellen, 4.6:1 auf Papier */
  --paper: #FCFAF6;      /* helle Modulfläche */
  --on-dark: #F5F0E8;    /* Text auf Navy */
  --on-dark-2: #D9D6D0;  /* Fließtext auf Navy, 11:1 */
  --on-dark-3: #AEB2B9;  /* Nebentext auf Navy, 7:1 */

  --line: rgba(12, 38, 67, 0.10);
  --line-dark: rgba(245, 240, 232, 0.12);
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4rem;
  /* Typoskala Inhalt: fünf Textgrößen mit festen Rollen (Kopfzeile hat eigene Tokens, siehe unten) */
  --fs-xs: 0.75rem;   /* Kennzeilen, Labels, Quellen (Versalien, gesperrt) */
  --fs-sm: 0.875rem;  /* Nebentext: Listen in Kacheln, Zitate, Hinweise, Ablauf, Fußzeile, Buttons */
  --fs-base: 1rem;    /* Fließtext, Fragen, Zwischentitel */
  --fs-md: clamp(1.06rem, 1.25vw, 1.19rem); /* Einleitung, Kachel- und Klappkartentitel, Kernsatz */
  --track: 0.16em;    /* Sperrung der Versalien */
  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ── Basis ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { font-size: 17px; scroll-padding-top: calc(var(--nav-h) + 1px); /* exakt Kopfzeile */ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ── Barrierefreiheit ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 999;
  background: var(--navy); color: var(--cream);
  padding: 0.6rem 1rem; font-size: var(--fs-sm); text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--radius); }
/* Fokusrahmen mindestens 3:1 zum Grund (WCAG 1.4.11): Navy auf hellen Flächen, Gold auf Navy und Bild */
.hero :focus-visible, .bg-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

/* ── Layout ───────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }
.container-sm { width: 100%; max-width: 46rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 640px) { .container, .container-sm { padding-inline: 2rem; } }

.section { padding-block: 3.5rem; }
@media (min-width: 640px) { .section { padding-block: 4.5rem; } }
@media (min-width: 1024px) { .section { padding-block: 6.5rem; } }

.bg-cream { background: var(--cream); }
.bg-cream-dark { background: var(--cream-dark); }
.bg-navy { background: var(--navy); color: var(--on-dark); }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .sm-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; } .mt-6 { margin-top: 3.5rem; }
.maxw-prose { max-width: 42rem; }
.maxw-hero { max-width: 50rem; }

/* ── Typografie ───────────────────────────────────────────────────────── */
.display { text-wrap: balance; font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; font-size: clamp(2.3rem, 5.2vw, 4rem); }
.h2 { font-weight: 500; letter-spacing: -0.005em; line-height: 1.2; font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--ink); }
.h4 { font-weight: 500; font-size: var(--fs-base); line-height: 1.4; color: var(--ink); }
.bg-navy .h2, .bg-navy .h4, .hero .h2 { color: var(--on-dark); }
.eyebrow { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-3); }

.lead { font-size: var(--fs-md); line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--ink-3); font-size: var(--fs-sm); }

.bg-navy .lead { color: var(--on-dark-2); }
.bg-navy .muted { color: var(--on-dark-3); }
.ornament { display: block; width: 44px; height: 1px; background: var(--gold); margin-top: 1.25rem; }
/* Textlinks: ein Stil überall (Fließtext, FAQ, Kontakt, Quellen, Rechtstexte).
   Goldene Linie 1 px mit 3 px Abstand, beim Hover in Textfarbe. Auf Dunkel helle Schrift. */
.text-link, .legal a, .contact-dl a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.text-link:hover, .legal a:hover, .contact-dl a:hover { text-decoration-color: currentColor; }
.bg-navy .text-link, .hero .text-link, .contact-dl a { color: var(--on-dark); }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--ink-2); }
.core-line { font-weight: 500; color: var(--ink); font-size: var(--fs-md); line-height: 1.5; }

/* Keine einzelnen Wörter in der letzten Zeile (zusätzlich geschützte Leerzeichen per build.py) */
h1, h2, h3, h4, .display, .door-title, .topic-title, .sub-title, .faq summary, .core-line { text-wrap: balance; }
p, li, dd, figcaption, .topic-quote, .sub-hint { text-wrap: pretty; }
/* Silbentrennung nur für sehr lange Wörter im Fließtext (deutsche Komposita), Überschriften bleiben ungetrennt */
p, li, dd, figcaption, .legal h2 { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 12 5 5; }
/* Notbremse ohne Trennwörterbuch: lange Wörter dürfen umbrechen statt überzulaufen */
h1, h2, h3, h4, p, li, dd, summary { overflow-wrap: break-word; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.8rem 1.6rem;
  font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0.01em; line-height: 1.2;
  border-radius: var(--radius); text-decoration: none; border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn-light { background: var(--cream); color: var(--navy); }
.btn-light:hover { background: var(--cream-deeper); }
.btn-ghost-light { border-color: rgba(245,240,232,0.45); color: var(--on-dark); }
.btn-ghost-light:hover { border-color: var(--cream); background: rgba(245,240,232,0.06); }

.btn-ghost-dark { border-color: rgba(12,38,67,0.35); color: var(--navy); }
.btn-ghost-dark:hover { border-color: var(--navy); background: rgba(12,38,67,0.04); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ── Kopfzeile / Navigation ───────────────────────────────────────────
   Typo-System Kopf: zwei Größen, zwei Schnitte.
   --brand-fs (22 px, auf schmalen Bildschirmen kleiner) Wortmarke "Kira Wehland · Rechtsanwältin", Name in Fira Sans 600
   --nav-fs  (16 px) alle Navigationseinträge, auch Kontakt (ohne Button)
   --meta-fs (13.6 px) begleitende Angaben: Kurzbeschreibung im Untermenü
   Schnitt 400 überall, 600 nur für "Kira Wehland". Aktiver Zustand über Farbe und Gold, nie über Fettung. */
:root { --brand-fs: 1.3rem; --nav-fs: 0.94rem; --meta-fs: 0.8rem; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 240, 232, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(12,38,67,0.07); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; padding-block: 0.35rem; text-decoration: none; font-size: var(--brand-fs); line-height: 1.2; white-space: nowrap; }
.brand-name { font-weight: 600; color: var(--ink); }
.brand-role { font-weight: 400; color: var(--ink-2); white-space: pre; }
/* Bildmarke D6 (W mit kräftigem Waagebalken) im Quadrat, Maße wie Master logo-master/kira-wehland-bildmarke-d6.svg (Marke 90 % der Fläche). Größe folgt der Wortmarke. */
.brand-mark { flex: none; display: grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 0.6em; color: var(--cream); background: var(--navy); border-radius: var(--radius); }
.mark-svg { width: 90%; height: 90%; overflow: visible; }
.mark-g { stroke: var(--gold); }
.mark-d { fill: var(--gold); }
.brand-mark-light { color: var(--navy); background: var(--cream); }
.footer-brand .brand-mark { width: 1.9em; height: 1.9em; margin-right: 0.65em; }
/* Wortmarke passt sich an, damit sie nie an Menüsymbol oder Navigation stößt */
@media (max-width: 479px) { :root { --brand-fs: 1.15rem; } }
@media (max-width: 429px) { :root { --brand-fs: 1.02rem; } }
@media (max-width: 389px) { :root { --brand-fs: 0.95rem; } }
@media (max-width: 369px) { :root { --brand-fs: 0.88rem; } }
@media (max-width: 339px) { :root { --brand-fs: 0.8rem; } }
@media (min-width: 860px) and (max-width: 1099px) { :root { --brand-fs: 1.15rem; } .nav-links { gap: 1.5rem; } }
@media (min-width: 860px) and (max-width: 959px) { :root { --brand-fs: 1.05rem; } .nav-links { gap: 1.25rem; } }

.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 860px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: var(--nav-fs); font-weight: 400; color: var(--ink-2); text-decoration: none; padding-block: 0.4rem; transition: color .2s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .28s ease; }
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current]::after { width: 100%; }

/* Unterebene Desktop: öffnet bei Hover und Tastaturfokus, Esc schließt (site.js) */
.nav-item { position: relative; }
.nav-item > .nav-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-chevron { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-item:hover .nav-chevron, .nav-item:focus-within .nav-chevron { transform: rotate(180deg); }
.subnav { position: absolute; top: calc(100% + 0.9rem); left: -1.1rem; min-width: 21rem; list-style: none; padding: 0.5rem; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(12,38,67,0.10); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; z-index: 10; }
.subnav::before { content: ''; position: absolute; left: 0; right: 0; top: -0.9rem; height: 0.9rem; }
.nav-item:hover .subnav, .nav-item:focus-within .subnav { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.nav-item.is-closed .subnav { opacity: 0; visibility: hidden; }
.subnav a { display: block; padding: 0.65rem 0.9rem; border-left: 2px solid transparent; text-decoration: none; }
.subnav a:hover, .subnav a:focus-visible { background: var(--cream-dark); }
.subnav a[aria-current] { border-left-color: var(--gold); }
.sub-title { display: block; font-size: var(--nav-fs); font-weight: 400; color: var(--ink); }
.sub-hint { display: block; margin-top: 0.15rem; font-size: var(--meta-fs); color: var(--ink-3); }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 860px) { .nav-toggle { display: none; } }

/* Mobiles Menü: gleiche Größe für Haupt- und Unterpunkte, Unterpunkte eingerückt, aktiver Punkt mit Goldlinie */
.mobile-menu { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s var(--ease), visibility 0s linear .35s; }
.mobile-menu.open { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; visibility: visible; transition: max-height .35s var(--ease), visibility 0s; }
@media (min-width: 860px) { .mobile-menu { display: none; } }
.mobile-menu ul { border-top: 1px solid var(--line); padding: 0.25rem 0 1rem; }
.mobile-menu a { display: block; padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--line); border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: var(--nav-fs); font-weight: 400; }
.mobile-menu a[aria-current] { border-left-color: var(--gold); }
.mobile-menu .mobile-sub { border-top: 0; padding: 0; }
.mobile-menu .mobile-sub a { padding: 0.65rem 0.75rem 0.65rem 1.75rem; color: var(--ink-2); }
.mobile-menu .mobile-sub a[aria-current] { color: var(--ink); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(12,38,67,0.66); }
/* v56 Startseiten-Hero: Abdunkelung exakt wie auf der Mediationsseite (Backup 25.10.2026), Verlauf von links nach rechts
   0.85 / 0.65 bei 45 % / 0.35 (ab 1280 px exakt). Farbe im aktuellen Navy. */
.hero-start::after { background: linear-gradient(to right, rgba(12,38,67,0.85) 0%, rgba(12,38,67,0.65) 45%, rgba(12,38,67,0.35) 100%); }
/* Unter 1280 px reicht der Text über die Bildmitte hinaus. Damit Fließtext ≥ 4,5:1 bleibt, hält der Verlauf 0.66 bis hinter
   das Textende (2rem Rand + 36rem) und läuft erst danach auf 0.35 aus. Mobil liegt damit ab der Mitte gleichmäßig 0.66. */
@media (max-width: 1279px) { .hero-start::after { background: linear-gradient(to right, rgba(12,38,67,0.85) 0%, rgba(12,38,67,0.66) 45%, rgba(12,38,67,0.66) calc(2rem + 36rem), rgba(12,38,67,0.35) 100%); } }
.hero-inner { padding-block: 5rem; }
.hero-sub .hero-inner { min-height: 0; }
@media (min-width: 1024px) { .hero-inner { min-height: calc(88vh - var(--nav-h)); display: flex; align-items: center; padding-block: 6rem; } }

.hero .display { color: var(--on-dark); }
.hero .lead { color: var(--on-dark); max-width: 34rem; margin-top: 1.5rem; }
.bg-navy .eyebrow { color: var(--gold); }
/* Kleintext über Bild: Gold erreicht auf der aufgehellten Bildfläche nicht 4,5:1, daher helle Schrift. Gold bleibt als Linie. */
.hero .eyebrow { color: var(--on-dark); }
.hero .hint { color: var(--on-dark); }
.hero-plain .lead, .hero-plain .hint { color: var(--on-dark-2); } /* blaue Fläche ohne Bild wie bisher */
.hero:not(.hero-plain) .btn-ghost-light { border-color: rgba(245,240,232,0.75); } /* Kontur bleibt auf hellerem Bild sichtbar */
.hero-plain .eyebrow, .hero-plain .contact-dl dt { color: var(--gold); } /* blaue Fläche ohne Bild: Gold erreicht 7:1 */
.hero-sub h1 > .eyebrow { display: flex; align-items: center; gap: 0.75rem; }
.hero-sub h1 > .eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: var(--gold); }
.hero h1 > .eyebrow { margin-bottom: 1.75rem; }
h1 > .eyebrow, h1 > .display { display: block; }
.hero .btn-row { margin-top: 2.5rem; }
.hero-start .btn-row { margin-top: 5rem; } /* v59: ein Button im Startseiten-Hero, doppelter Abstand zum Text */
.hero-plain::after { background: none; }
/* Ablauf auf Bild: gleichmäßig 0.66 wie Hero hinter Text, weil Text über die ganze Breite läuft */
.hero-ablauf .hero-img { height: calc(100% + 50px); transform: translateY(-50px); } /* Bildausschnitt 50 px nach oben */
.hero-ablauf .step p, .hero-ablauf .muted, .hero-ablauf .lead { color: var(--on-dark); } /* auf Bild Text in Cream, ≥ 4,5:1 bei 0.66 */
.grain { position: relative; isolation: isolate; }
.grain::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.05; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── Leistungskacheln: ganze Kachel ist der Link, der Kontur-Button zeigt es an ── */
.door {
  display: flex; flex-direction: column; height: 100%;
  background: var(--paper); border-radius: var(--radius);
  padding: 2rem; text-decoration: none; color: var(--ink);
  transition: background .25s ease;
}
.door .door-kicker { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-3); }
.door .door-title { margin-top: 0.75rem; font-weight: 500; font-size: var(--fs-md); line-height: 1.35; }
.door ul { margin-block: 1rem 1.75rem; display: grid; gap: 0.3rem; }
.door li { position: relative; padding-left: 1.1rem; color: var(--ink-2); font-size: var(--fs-sm); }
.door li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 0.45rem; height: 1px; background: var(--gold); }
.door .door-more { margin-top: auto; align-self: flex-start; padding-inline: 1.1rem; }
.door .door-more svg { transition: transform .25s ease; }
.door:hover { background: #fff; }
.door:hover .door-more { border-color: var(--navy); }
.door:hover .door-more svg { transform: translateX(4px); }
@media (max-width: 1023px) { .door-guide { padding: 1.5rem; } }

/* ── Kennzahl ─────────────────────────────────────────────────────────── */
/* Kennzahl als eigenes Modul: helle Karte mit Goldkante, Quelle zurückgenommen und abgesetzt */
.fact { display: grid; gap: 1rem 2.5rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 1.5rem 1.25rem 1.25rem; }
@media (min-width: 720px) { .fact { grid-template-columns: auto 1fr; padding: 2.25rem 2.5rem 1.75rem; } }
/* Text mit Seitenmodul (Kennzahl, Hinweis): mobil untereinander, ab Desktop Modul rechts daneben */
.intro-split { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .intro-split { grid-template-columns: fit-content(46rem) minmax(15rem, 1fr); gap: 4rem; align-items: start; } /* Modul mind. 15rem, sonst Überlauf zwischen 1024 und 1100 px */
  .intro-split .fact { grid-template-columns: 1fr; padding: 2rem; }
}
.fact-number { font-weight: 500; font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.fact-number span { font-size: 0.5em; margin-left: 0.1em; }
.fact p { color: var(--ink-2); }
.fact p strong { color: var(--ink); }
.fact .source { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--line); font-size: var(--fs-xs); line-height: 1.55; color: var(--ink-4); }
.fact .source .text-link { color: inherit; }

/* ── Klappkarten: Anliegen mit Einordnung (details/summary, ohne JS) ── */
.topics { border-top: 1px solid var(--line); }
.topic { border-bottom: 1px solid var(--line); }
.topic summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; padding: 1.4rem 0.25rem; }
.topic summary::-webkit-details-marker { display: none; }
.topic summary:hover .topic-title { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.topic-title { display: block; font-weight: 500; font-size: var(--fs-md); line-height: 1.35; color: var(--ink); }
.topic-quote { display: block; margin-top: 0.4rem; color: var(--ink-3); font-size: var(--fs-sm); }
.topic-body { padding: 0 0.25rem 2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 900px) { .topic-body { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; } }
.topic-body h3 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.75rem; }
.topic-body p { color: var(--ink-2); }
.topic-body p + p { margin-top: 0.8rem; }

/* Häkchenliste */
.checklist { display: grid; gap: 0.6rem; list-style: none; }
.checklist li { position: relative; padding-left: 1.6rem; color: var(--ink-2); }
.checklist li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 0.7rem; height: 0.4rem; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }

/* Plus-Symbol der FAQ (details/summary, ohne JS) */
.topic-icon { position: relative; width: 1.75rem; height: 1.75rem; margin-top: 0.1rem; border: 1px solid rgba(12,38,67,0.25); border-radius: 50%; }
.topic-icon::before, .topic-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 0.7rem; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .25s ease; }
.topic-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .topic-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

/* ── Schritte / Ablauf ────────────────────────────────────────────────── */
/* Icons im Duktus von Fira Sans: Linie 1,5 auf 32er-Raster, gerade Strichenden, weiche Ecken, wenige Details.
   Überdeckende Teile (Hörer, Hand) sparen die Linien dahinter per Maske aus, funktioniert auf jedem Hintergrund. */
.step-icon { width: 3rem; height: 3rem; color: var(--gold); margin-bottom: 1.5rem; }
.step .h4 { margin-bottom: 0.6rem; }
.step p { font-size: var(--fs-sm); color: var(--on-dark-3); }

/* Zeitleiste (erste Schritte nach Todesfall) */
.timeline { list-style: none; counter-reset: tl; display: grid; gap: 0; max-width: 46rem; } /* links bündig, rechts begrenzt für lesbare Zeilen */
.timeline li { position: relative; counter-increment: tl; padding: 0 0 1.75rem 3.25rem; }
.timeline li::before { content: counter(tl); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); font-weight: 500; font-size: var(--fs-base); color: var(--ink); background: var(--cream); }
.timeline li::after { content: ''; position: absolute; left: 1.05rem; top: 2.3rem; bottom: 0.2rem; width: 1px; background: var(--cream-deeper); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 0.2rem; }
.timeline p { color: var(--ink-2); font-size: var(--fs-base); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.25rem 0.25rem; font-weight: 500; font-size: var(--fs-base); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq .faq-a { padding: 0 0.25rem 1.5rem; color: var(--ink-2); max-width: 44rem; }
.faq .faq-a p + p { margin-top: 0.7rem; }
.faq .faq-more { margin-top: 0.9rem; }
.faq-more a { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.faq-more svg { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform .25s ease; }
.faq-more a:hover svg { transform: translateX(4px); }

/* ── Kontakt ──────────────────────────────────────────────────────────── */
.contact-dl { display: grid; gap: 1.5rem; }
.contact-dl dt { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--on-dark); margin-bottom: 0.35rem; }
.contact-dl dd { color: var(--on-dark); }
@media (min-width: 640px) { .contact-cols { grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; } }

.hint { font-size: var(--fs-sm); color: var(--ink-3); }
.bg-navy .hint { color: var(--on-dark-3); }

/* Porträt neben Text */
.portrait { max-width: 22rem; }
@media (max-width: 1023px) { .portrait { max-width: 15rem; } }
.portrait-frame { aspect-ratio: 4 / 5; background: var(--cream-deeper); border-radius: var(--radius); overflow: hidden; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 2fr 3fr; gap: 4.5rem; } }

/* Rechtstexte */
.legal h2 { font-size: var(--fs-md); font-weight: 500; margin-top: 2.75rem; margin-bottom: 0.9rem; color: var(--ink); letter-spacing: -0.01em; }
.legal h3 { font-size: var(--fs-base); font-weight: 500; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--ink); }
.legal p, .legal li, .legal address { color: var(--ink-2); font-style: normal; }
.legal p + p { margin-top: 0.75rem; }
.legal ul { margin: 0.6rem 0 0.6rem 1.2rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem; }
.legal a { word-break: break-word; }
.legal .stand { margin-top: 3rem; font-size: var(--fs-sm); color: var(--ink-3); }

/* ── Fußzeile ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding-block: 3.5rem 2rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; gap: 2rem; } } /* Kontakt rechtsbündig zur Containerkante, wie Impressum/Datenschutz darunter */
.footer-grid address { font-style: normal; }
.footer-grid li { font-size: var(--fs-sm); }
.footer-brand { display: flex; align-items: center; font-weight: 600; font-size: var(--fs-base); color: var(--on-dark); }
.footer-grid .footer-role { font-size: var(--meta-fs); color: var(--on-dark-3); }
.footer-grid h2 { font-size: var(--fs-xs); font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-grid a { display: inline-block; padding-block: 0.2rem; color: var(--on-dark-2); text-decoration: none; font-size: var(--fs-sm); } /* Trefferfläche ≥ 24 px (WCAG 2.5.8) */

.footer-grid p { font-size: var(--fs-sm); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: var(--fs-sm); color: var(--on-dark-3); }
.footer-bottom ul { list-style: none; display: flex; gap: 1.5rem; }
.footer-bottom a { display: inline-block; padding-block: 0.2rem; color: var(--on-dark-2); text-decoration: none; }
/* Fußzeile: ruhige Navigationslinks ohne Linie, beim Hover dieselbe goldene Linie wie Textlinks */
.footer-grid a:hover, .footer-bottom a:hover { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ── Einblendungen ────────────────────────────────────────────────────── */
@keyframes revealUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-anim > * { animation: revealUp .9s var(--ease) both; }
.hero-anim > *:nth-child(2) { animation-delay: .12s; }
.hero-anim > *:nth-child(3) { animation-delay: .24s; }
.hero-anim > *:nth-child(4) { animation-delay: .36s; }
.hero-anim > *:nth-child(5) { animation-delay: .48s; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-anim > * { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .door, .door-more svg { transition: none; }
  .subnav, .nav-chevron { transition: none; }
}

/* ── Druck ────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .mobile-menu, .skip-link, .hero-img, .btn-row { display: none !important; }
  .hero, .bg-navy, .site-footer { background: #fff !important; color: #000 !important; }
  .hero::after, .grain::before { display: none; }
  .hero .display, .hero .lead, .bg-navy .h2, .hero .h2, .bg-navy .lead { color: #000 !important; }
  .faq .faq-a, .topic-body { display: block !important; }
  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
