/* ==========================================================================
   CPAP-Hilfe – Design-System
   Farbwelt: Navy/Türkis/Vertrauen. Ein Sans-Stack für Anzeige und Fließtext
   (Atkinson Hyperlegible, in Regular und Bold), Mono für Fakten/Quellen.
   Signatur: die "Atem-Wellenlinie" als Trenner, nummerierte Abschnitts-
   Eyebrows als ruhiger Lesefaden durch die Seite.

   SCHRIFTEN: bewusst NICHT von Google-Servern geladen (DSGVO – die
   Übertragung der Besucher-IP an Google ist ohne Einwilligung
   abmahnfähig, LG München I, Az. 3 O 17493/20). Die Schriftdateien
   werden lokal ausgeliefert. Anleitung: siehe assets/fonts/LIESMICH.txt
   Solange die Dateien fehlen, greifen automatisch Systemschriften –
   die Seite bleibt also in jedem Fall lesbar.
   ========================================================================== */

@font-face{
  font-family:'Atkinson Hyperlegible'; font-style:normal; font-weight:400;
  font-display:swap; src:url('/assets/fonts/atkinson-hyperlegible-regular.woff2') format('woff2');
}
@font-face{
  font-family:'Atkinson Hyperlegible'; font-style:normal; font-weight:700;
  font-display:swap; src:url('/assets/fonts/atkinson-hyperlegible-700.woff2') format('woff2');
}
@font-face{
  font-family:'IBM Plex Mono'; font-style:normal; font-weight:400 500;
  font-display:swap; src:url('/assets/fonts/ibm-plex-mono-regular.woff2') format('woff2');
}

:root{
  /* Farben */
  --ink:        #29303B;   /* dunkles Navygrau – Fließtext */
  --night:      #16233D;   /* tiefes Navy – Header/Footer/dunkle Flächen, Überschriften */
  --night-2:    #223354;   /* eine Stufe heller (Hover, Trennlinien auf dunklem Grund) */
  --night-rgb:  22,35,61;  /* wie --night, als RGB-Tripel für rgba()-Schatten */
  --breath:     #4C6B72;   /* gedämpftes Blaugrün – ruhiger Linkton, Eyebrows */
  --breath-lt:  #E7EEEC;   /* helles Blaugrün für Flächen/Badges */
  --gold:       #1B7A6A;   /* Türkis-Akzent für CTAs, mit --white-Text AA-konform */
  --gold-dark:  #145F52;
  --gold-light: #6FC3B4;   /* helleres Türkis – Text/Links auf dunklem --night-Grund */
  --gold-lt:    #E1F3EE;   /* helle Türkis-Wash für Hervorhebungsflächen in Infografiken */
  --paper:      #F6F5F1;   /* Seitenhintergrund, warmes Off-White */
  --paper-2:    #ECEAE3;   /* leicht abgesetzte Flächen */
  --line:       #DAD7CD;   /* Trennlinien */
  --white:      #FFFFFF;
  --muted:      #5B6472;   /* gedämpfter Fließtext auf hellem Grund (Lead, Card-Text) */
  --muted-lt:   #5E6A76;   /* Meta-/Bildunterschriften-Text auf hellem Grund – AA-Kontrast geprüft (≥4.5:1 auf paper/paper-2/white) */
  --on-dark:    #DCE3EA;   /* Fließtext auf --night-Grund (Nav, dunkle Sektionen) */
  --on-dark-lt: #A9B4C2;   /* gedämpfter Text/Links auf --night-Grund (Footer) */

  /* Typografie – ein Sans-Stack für Anzeige und Fließtext (kein zweites
     selbst gehostetes Display-Font im Projekt vorhanden, siehe LIESMICH.txt) */
  --font-display: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body:    'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', Consolas, 'Courier New', monospace;

  --radius: 14px;
  --radius-pill: 100px;
  --mark-bg: #FFF0C2;      /* Offene Stellen in Rechtstexten */
  --max-width: 1120px;

  /* Easing (Emil Kowalski: staerkere Kurven statt schwacher CSS-Standardeasings) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 18px;
}
img{ max-width:100%; display:block; }

/* ---------- Feines Rauschen fuer Waerme ----------
   Sehr dezente Korn-Textur ueber der ganzen Seite, damit Flaechen
   nicht steril-digital wirken. pointer-events:none haelt sie aus dem
   Weg der Bedienung, die niedrige Deckkraft macht sie fast unsichtbar. */
body::before{
  content:'';
  position:fixed; inset:0; z-index:2147483647; pointer-events:none;
  opacity:0.035; mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-repeat:repeat;
}
a{ color: var(--breath); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover{ color: var(--gold-dark); }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--night);
  line-height: 1.16;
  margin: 0 0 0.6em;
}
h1{ font-size: clamp(2rem, 4vw, 3.1rem); }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3{ font-size: 1.28rem; letter-spacing:-0.01em; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--breath);
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom: 0.7em;
  font-weight:600;
}
.eyebrow .num{
  font-family: var(--font-mono);
  color: var(--night);
  opacity:0.32;
  font-weight:700;
  font-size:0.92em;
}

.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Bewegung: Scroll-Reveal ----------
   .reveal auf einzelne Elemente (Texte, Formulare), .reveal-group auf einen
   Container, dessen direkte Kinder gestaffelt nacheinander einblenden sollen
   (Karten-Raster). Wird von main.js per IntersectionObserver ausgeloest. */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.is-visible{ opacity: 1; transform: none; }

.reveal-group > *{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal-group.is-visible > *{ opacity: 1; transform: none; }
.reveal-group.is-visible > *:nth-child(1){ transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2){ transition-delay: 60ms; }
.reveal-group.is-visible > *:nth-child(3){ transition-delay: 120ms; }
.reveal-group.is-visible > *:nth-child(4){ transition-delay: 180ms; }
.reveal-group.is-visible > *:nth-child(5){ transition-delay: 240ms; }
.reveal-group.is-visible > *:nth-child(6){ transition-delay: 300ms; }
.reveal-group.is-visible > *:nth-child(7){ transition-delay: 360ms; }
.reveal-group.is-visible > *:nth-child(8){ transition-delay: 420ms; }
.reveal-group.is-visible > *:nth-child(9){ transition-delay: 480ms; }
.reveal-group.is-visible > *:nth-child(10){ transition-delay: 540ms; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal-group > *{
    opacity: 1; transform: none; transition: none;
  }
}

/* ---------- Header ---------- */
.site-header{
  background: var(--night);
  color: var(--white);
  position: sticky; top:0; z-index: 50;
  transition: background-color 300ms var(--ease-in-out), backdrop-filter 300ms var(--ease-in-out), box-shadow 300ms var(--ease-in-out);
}
.site-header--scrolled{
  background-color: rgba(var(--night-rgb), 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(var(--night-rgb), 0.15);
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px;
  transition: padding 220ms var(--ease-out);
}
.site-header--scrolled .container{
  padding-top:10px; padding-bottom:10px;
}
.site-logo{ display:flex; align-items:center; }
.site-logo img{
  height:32px; width:auto;
  transform-origin: left center;
  transition: transform 220ms var(--ease-out);
}
.site-header--scrolled .site-logo img{ transform: scale(0.8); }
.nav{ display:flex; gap:28px; align-items:center; }
.nav a{
  color: var(--on-dark); text-decoration:none; font-size:0.96rem;
  padding: 10px 0; display:inline-block;
}
.nav a:hover{ color: var(--gold-light); }
.nav a.nav-aktiv{ color: var(--white); font-weight:700; }
.nav a.nav-cta{
  background: linear-gradient(155deg, var(--gold-light) -40%, var(--gold) 55%); color: var(--white) !important; padding:9px 18px;
  border-radius: var(--radius-pill); font-weight:700;
  transition: background-color 200ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.nav-cta:active{ transform: scale(0.97); }
.nav-toggle{ display:none; }

/* ---------- Dropdown-Menüs in der Hauptnavigation ----------
   Desktop: :hover UND .open (JS-Klick-/Tastatur-Fallback) zeigen das
   Menü. Herkunft der Sichtbarkeitslogik bewusst doppelt (CSS-Hover +
   JS-Klasse), damit Maus, Touch und Tastatur alle funktionieren. */
.nav-dropdown{ position:relative; }
.nav-dropdown-trigger{
  background:none; border:none; cursor:pointer; font-family:var(--font-body);
  color: var(--on-dark); font-size:0.96rem; padding:10px 0; display:inline-flex;
  align-items:center; gap:5px;
}
.nav-dropdown-trigger:hover{ color: var(--gold-light); }
.nav-dropdown-trigger.nav-aktiv{ color: var(--white); font-weight:700; }
.nav-caret{ font-size:0.7em; transition: transform 180ms var(--ease-out); }
.nav-dropdown.open .nav-caret,
.nav-dropdown:hover .nav-caret{ transform: rotate(180deg); }

.nav-dropdown-menu{
  position:absolute; top:100%; left:0; margin-top:8px; min-width:220px;
  background: linear-gradient(165deg, var(--night-2) 0%, var(--night) 70%);
  border:1px solid var(--night-2); border-radius: var(--radius);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.5);
  padding:8px; display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transform: translateY(6px) scale(0.97);
  transform-origin: top left;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 160ms;
}
.nav-dropdown-menu a{
  padding:11px 14px; border-radius:8px; font-size:0.92rem; white-space:nowrap;
}
.nav-dropdown-menu a:hover{ background: rgba(255,255,255,0.06); }

@media (hover: hover) and (pointer: fine){
  .nav-dropdown:hover .nav-dropdown-menu{
    opacity:1; visibility:visible; transform: translateY(0) scale(1);
  }
}
.nav-dropdown.open .nav-dropdown-menu{
  opacity:1; visibility:visible; transform: translateY(0) scale(1);
}

@media (max-width: 780px){
  .nav{
    position:absolute; top:100%; left:0; right:0; background:var(--night);
    flex-direction:column; align-items:stretch; padding: 16px 24px 24px;
    display:none; gap:4px;
  }
  .nav.open{ display:flex; }
  .nav-toggle{
    display:block; background:none; border:none; color:var(--white);
    font-size:1.6rem; cursor:pointer; padding:10px; margin:-10px;
  }
  /* Mindestens 48px hohe Tippflächen auf Mobilgeräten */
  .nav a, .nav-dropdown-trigger{
    min-height:48px; display:flex; align-items:center; width:100%;
    padding:12px 4px;
  }
  .nav a.nav-cta{ justify-content:center; margin-top:8px; }
  .nav-dropdown-trigger{ justify-content:space-between; }
  .nav-dropdown-menu{
    position:static; opacity:1; visibility:visible; transform:none;
    box-shadow:none; background:rgba(255,255,255,0.04); margin-top:0;
    display:none; padding:4px 0 4px 14px;
  }
  .nav-dropdown.open .nav-dropdown-menu{ display:flex; }
  .nav-dropdown-menu a{ min-height:48px; padding:12px 14px; }
}

/* ---------- Breath-line divider (Signatur-Element) ---------- */
.breathline{ width:100%; height:48px; margin: 8px 0; }
.breathline path{
  fill:none; stroke: var(--breath); stroke-width:2;
  stroke-dasharray: 900; stroke-dashoffset: 900;
  animation: draw 1.8s ease forwards;
}
@media (prefers-reduced-motion: reduce){
  .breathline path{ animation:none; stroke-dashoffset:0; }
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

/* ---------- Hero ---------- */
.hero{ padding: 64px 0 40px; }
.hero-grid{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap:48px; align-items:center;
}
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero h1{ margin-bottom:0.45em; }
.hero-lead{ font-size:1.15rem; color:var(--muted); max-width:52ch; }
.hero-trust{
  display:flex; gap:14px; align-items:center; margin-top:28px; font-size:0.92rem; color:var(--muted-lt);
}
.hero-trust img{ width:52px; height:52px; border-radius:50%; object-fit:cover; }

/* ---------- Franklyn-Portrait im Hero (Startseite) ---------- */
.hero-portrait{
  margin: 24px auto 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 8px 32px rgba(62,54,44,0.18);
}

.hero-portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 780px){
  .hero-portrait{
    width: 240px;
    height: 240px;
  }
}

/* ---------- Hamburg-Lifestyle-Foto (Startseite, Vertrauens-Abschnitt) ---------- */
.franklyn-lifestyle{
  margin: 32px auto 0;
  max-width: 640px;
  border-radius: var(--radius);
  overflow: hidden;
}
.franklyn-lifestyle img{
  width: 100%;
  height: auto;
  display: block;
}
.lifestyle-caption{
  font-size: 0.85rem;
  color: var(--breath);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* ---------- Der Weg: vier Schritte (Startseite) ---------- */
.weg-schritte{ display:flex; align-items:stretch; gap:0; }
.weg-schritt{
  flex:1; background: linear-gradient(165deg, var(--white) 0%, var(--paper) 130%);
  border:1px solid var(--line); border-radius: var(--radius);
  padding:26px 22px; text-decoration:none; color:inherit;
  box-shadow: 0 20px 40px -30px rgba(var(--night-rgb),0.4);
  transition: transform .18s var(--ease-out), box-shadow .18s ease;
}
.weg-schritt:hover{ transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(var(--night-rgb),0.32); }
.weg-nummer{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%; background: var(--gold-lt);
  color: var(--gold-dark); font-family:var(--font-mono); font-weight:700;
  margin-bottom:14px;
}
.weg-schritt h3{ margin-bottom:0.35em; font-size:1.1rem; }
.weg-schritt p{ color:var(--muted); font-size:0.92rem; margin:0; }
.weg-pfeil{
  align-self:center; color:var(--breath); font-size:1.4rem; padding:0 10px;
  flex-shrink:0;
}
@media (max-width:900px){
  .weg-schritte{ flex-direction:column; }
  .weg-pfeil{ transform: rotate(90deg); padding:6px 0; align-self:flex-start; margin-left:26px; }
}

/* ---------- Selbsttest gross und prominent (Startseite) ---------- */
.selbsttest-feature{
  background: linear-gradient(150deg, var(--night-2) 0%, var(--night) 70%);
  border-radius: calc(var(--radius) + 6px);
  padding: 48px 44px; color: var(--on-dark);
  box-shadow: 0 30px 60px -30px rgba(var(--night-rgb),0.5);
}
.selbsttest-feature h2{ color: var(--white); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.selbsttest-feature p{ max-width:60ch; color:var(--on-dark); font-size:1.05rem; }
.selbsttest-feature .eyebrow{ color: var(--gold-light); }
@media (max-width:700px){ .selbsttest-feature{ padding:32px 26px; } }

/* ---------- Abschluss mit Foto (Startseite) ---------- */
.abschluss-grid{
  display:flex; gap:32px; align-items:center; justify-content:center; flex-wrap:wrap;
  text-align:left;
}
.abschluss-grid img{
  width:150px; height:150px; border-radius:50%; object-fit:cover; flex-shrink:0;
  border:3px solid var(--night-2);
  box-shadow: 0 14px 30px rgba(0,0,0,0.4);
}
.abschluss-grid > div{ max-width:56ch; }
@media (max-width:700px){ .abschluss-grid{ text-align:center; justify-content:center; } }

/* ---------- Hero-Hintergrundbilder (warme Erdtoene) ----------
   .hero-bg traegt das Bild ueber ::before (weichgezeichnet) und einen
   dunklen/terracotta Verlauf ueber ::after, damit weisser Text lesbar
   bleibt. Welches Foto erscheint, legt eine zweite Klasse fest
   (.bg-hero, .bg-schlafapnoe, ...) ueber die CSS-Variable --bg-bild. */
.hero-bg{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg::before{
  content: '';
  position: absolute;
  inset: -10px;
  background-image: var(--bg-bild);
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.68) saturate(0.80);
  z-index: -2;
}

.hero-bg::after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(42, 36, 32, 0.82) 0%,
    rgba(62, 54, 44, 0.58) 55%,
    rgba(193, 85, 44, 0.20) 100%
  );
  z-index: -1;
}

.hero-bg > *{
  position: relative;
  z-index: 1;
}

.hero-bg h1,
.hero-bg h2,
.hero-bg p,
.hero-bg .eyebrow,
.hero-bg .hero-lead{
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.40);
}
.hero-bg .eyebrow .num{ color:#ffffff; opacity:0.55; }
.hero-bg .hero-lead a{ color:#ffffff; text-decoration-color:rgba(255,255,255,0.5); }
.hero-bg .hero-lead a:hover{ text-decoration-color:#ffffff; }

.bg-hero        { --bg-bild: url('/assets/img/hero-bg.webp'); }
.bg-schlafapnoe { --bg-bild: url('/assets/img/bg-schlafapnoe.webp'); }
.bg-cpap        { --bg-bild: url('/assets/img/bg-cpap-probleme.webp'); }
.bg-zungen      { --bg-bild: url('/assets/img/bg-zungen.webp'); }
.bg-beratung    { --bg-bild: url('/assets/img/bg-beratung.webp'); }
.bg-ergebnis    { --bg-bild: url('/assets/img/bg-ergebnis.webp'); }
.bg-erschoepft  { --bg-bild: url('/assets/img/bg-erschoepft.webp'); }

/* ---------- Fade-in beim Scrollen (Karten, Bridge-Box, FAQ, Callouts) ---------- */
.fade-in{
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.sichtbar{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block; padding:13px 26px; border-radius: var(--radius-pill);
  font-weight:700; text-decoration:none; font-size:1rem; cursor:pointer; border:none;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease,
              transform 160ms var(--ease-out), box-shadow 200ms ease;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{ background: linear-gradient(155deg, var(--gold-light) -40%, var(--gold) 55%); color: var(--white); box-shadow: 0 10px 24px -12px rgba(var(--night-rgb),0.45); }
.btn-primary:hover{ background: var(--gold-dark); color:var(--white); }
.btn-outline{ background:transparent; border:1.5px solid var(--night); color:var(--night); }
.btn-outline:hover{ background:var(--night); color:var(--white); }
.btn-lg{ padding:16px 34px; font-size:1.08rem; }

/* Hover-Anhebung nur dort, wo ein Zeigegerät echtes Hover kann (kein
   Fehlauslösen durch Touch-"Hover"). Die kombinierten :hover:active-Regeln
   sorgen dafür, dass der Tastendruck (scale) auch beim Klicken-während-
   Hover sichtbar bleibt – sonst gewinnt sonst per Kaskade der Hover-Zustand
   und der Button fühlt sich beim Klicken tot an. */
@media (hover: hover) and (pointer: fine){
  .btn-primary:hover{ transform: translateY(-2px) scale(1.012); box-shadow: 0 14px 28px -12px rgba(var(--night-rgb), 0.5); }
  .btn-primary:hover:active{ transform: translateY(-1px) scale(0.97); }
  .btn-outline:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(var(--night-rgb), 0.3); }
  .btn-outline:hover:active{ transform: translateY(-1px) scale(0.97); }
  .nav-cta:hover{ transform: translateY(-1px) scale(1.02); box-shadow: 0 4px 12px rgba(var(--night-rgb), 0.2); }
  .nav-cta:hover:active{ transform: translateY(0) scale(0.97); }
}

/* ---------- Cards / Grids ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:24px; }
@media (max-width:800px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

/* .grid-trio: für echte kuratierte Dreiergruppen (nicht für offene Listen
   beliebiger Länge – dafür bleibt .grid-3 gleichmäßig). Erste Karte breiter
   und hervorgehoben, zweite und dritte gestaffelt versetzt. */
.grid-trio{ display:grid; grid-template-columns: 1.35fr 1fr 1fr; gap:22px; align-items:start; }
.grid-trio .card:nth-child(1){ padding:34px; }
.grid-trio .card:nth-child(1) h3{ font-size:1.4rem; }
.grid-trio .card:nth-child(2){ margin-top:26px; }
.grid-trio .card:nth-child(3){ margin-top:52px; }
@media (max-width:900px){
  .grid-trio{ grid-template-columns:1fr; }
  .grid-trio .card:nth-child(2), .grid-trio .card:nth-child(3){ margin-top:0; }
}

.card{
  background: linear-gradient(165deg, var(--white) 0%, var(--paper) 130%);
  border:1px solid var(--line); border-radius: var(--radius);
  padding:26px; box-shadow: 0 20px 40px -30px rgba(var(--night-rgb),0.4);
  transition: transform .18s var(--ease-out), box-shadow .18s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(var(--night-rgb),0.32); }
.card .eyebrow{ margin-bottom:0.5em; }
.card h3{ margin-bottom:0.35em; }
.card p{ color:var(--muted); font-size:0.96rem; margin:0; }
.card-link{ font-size:0.9rem; font-weight:700; color:var(--gold-dark); text-decoration:none; }
.card-link:hover{ text-decoration:underline; }

/* ---------- Sections ----------
   Weiche Verlaeufe statt Volltonflaechen: die Farbe faedet an den
   Abschnittsraendern sanft ein/aus, statt hart an die Nachbarsektion
   zu stossen. */
section{ padding: 56px 0; }
.section-alt{
  background: linear-gradient(180deg,
    var(--paper) 0%, var(--paper-2) 8%, var(--paper-2) 92%, var(--paper) 100%);
}
.section-dark{
  background: linear-gradient(175deg, var(--night) 0%, var(--night-2) 60%, var(--night) 100%);
  color:var(--on-dark);
}
.section-dark h2{ color:var(--white); }
.section-dark a{ color: var(--gold-light); }

/* ---------- Article / Wissensportal ---------- */
.article-meta{
  font-family: var(--font-mono); font-size:0.82rem; color:var(--muted-lt);
  display:flex; gap:18px; flex-wrap:wrap; margin-bottom:1.6em; padding-bottom:1.2em;
  border-bottom:1px solid var(--line);
}
.article-body{ max-width: 74ch; }
.article-body h2{ margin-top:1.4em; }
.article-body p{ margin: 0 0 1.2em; }
.callout{
  background: var(--breath-lt); border: 1px solid var(--line);
  padding: 18px 22px; border-radius: var(--radius); margin: 1.6em 0;
}
.callout p{ margin:0; }
.sources{
  font-family: var(--font-mono); font-size:0.85rem; color:var(--muted-lt);
  border-top:1px solid var(--line); padding-top:1.2em; margin-top:2em;
}
.sources li{ margin-bottom:0.5em; }
.reviewed-badge{
  display:inline-flex; align-items:center; gap:8px; background:var(--breath-lt);
  color:var(--breath); font-family:var(--font-mono); font-size:0.8rem;
  padding:6px 12px; border-radius: 20px; margin-bottom:1.2em;
}

/* ---------- Personal bridge / CTA box within articles ---------- */
.bridge-box{
  background: linear-gradient(160deg, var(--night-2) 0%, var(--night) 65%);
  color:var(--on-dark); border-radius: var(--radius);
  padding: 30px 32px; margin: 2.4em 0; display:flex; gap:24px; align-items:center; flex-wrap:wrap;
}
.bridge-box img{
  width:72px; height:72px; border-radius:50%; object-fit:cover; flex-shrink:0;
  margin-top:-14px; margin-left:-8px;
  border:3px solid var(--paper);
  box-shadow: 0 10px 22px rgba(var(--night-rgb),0.4);
}
.bridge-box p{ margin:0 0 12px; color:var(--on-dark); }
.bridge-box .btn-primary{ }

/* ---------- Timeline (Meine Geschichte) ---------- */
.timeline{ position:relative; padding-left: 32px; border-left: 2px solid var(--line); }
.timeline-item{ position:relative; margin-bottom: 2.2em; }
.timeline-item::before{
  content:''; position:absolute; left:-40px; top:4px; width:14px; height:14px;
  border-radius:50%; background: var(--gold); border:3px solid var(--paper);
}
.timeline-year{ font-family:var(--font-mono); color:var(--breath); font-size:0.9rem; }

/* ---------- Forms ---------- */
.form-box{
  background: linear-gradient(165deg, var(--white) 0%, var(--paper) 140%);
  border:1px solid var(--line); border-radius: var(--radius); padding:32px;
  box-shadow: 0 24px 48px -32px rgba(var(--night-rgb),0.35);
}
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-weight:600; margin-bottom:6px; font-size:0.94rem; }
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size:1rem; background:var(--paper);
}
.form-row textarea{ min-height:110px; resize:vertical; }
.consent-row{ display:flex; gap:10px; align-items:flex-start; font-size:0.88rem; color:var(--muted); }
.consent-row input{ width:auto; margin-top:4px; }

/* ---------- Dreistufiges Beratungsformular (beratung.php) ---------- */
.schritt-kopf{ margin-bottom:28px; }
.schritt-leiste{ height:4px; background:var(--line); border-radius:4px; overflow:hidden; margin-bottom:16px; }
.schritt-leiste-fuellung{
  height:100%; width:0%; background: var(--gold); border-radius:4px;
  transition: width 320ms var(--ease-in-out);
}
.schritt-punkte{ display:flex; justify-content:space-between; gap:8px; }
.schritt-punkt{
  font-family: var(--font-mono); font-size:0.78rem; color:var(--muted-lt);
  display:flex; align-items:center; gap:7px;
}
.schritt-punkt strong{
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
  width:22px; height:22px; border-radius:50%; background:var(--paper-2);
  color:var(--muted-lt); font-size:0.72rem; font-style:normal;
  transition: background-color 200ms ease, color 200ms ease;
}
.schritt-punkt.aktiv{ color:var(--night); font-weight:700; }
.schritt-punkt.aktiv strong{ background: var(--gold); color:var(--white); }
.schritt-punkt.erledigt strong{ background: var(--breath); color:var(--white); }
@media (max-width:520px){ .schritt-punkt-label{ display:none; } }

.formschritt{
  opacity:0; transform: translateY(10px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
}
.formschritt.schritt-sichtbar{ opacity:1; transform:none; }
.formschritt h2{ font-size:1.3rem; margin-bottom:20px; }
.formschritt h2:focus-visible{ outline:none; }

.waehl-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
@media (max-width:700px){ .waehl-grid{ grid-template-columns:1fr; } }

.waehl-karte{
  position:relative; display:block; cursor:pointer;
  background: linear-gradient(165deg, var(--white) 0%, var(--paper) 130%);
  border:2px solid var(--line); border-radius: var(--radius);
  padding:20px 46px 20px 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out);
}
.waehl-karte:hover{ border-color: var(--breath); transform: translateY(-2px); }
.waehl-karte input{
  position:absolute; top:18px; right:16px; width:20px; height:20px; margin:0;
  accent-color: var(--gold);
}
.waehl-karte-titel{ display:block; font-weight:700; color:var(--night); margin-bottom:6px; }
.waehl-karte-text{ display:block; font-size:0.88rem; color:var(--muted); line-height:1.5; }
.waehl-karte:has(input:checked){
  border-color: var(--gold);
  background: linear-gradient(165deg, var(--gold-lt) 0%, var(--white) 140%);
  box-shadow: 0 14px 28px -20px rgba(var(--night-rgb),0.3);
}
.waehl-karte-klein{ padding:18px 46px 18px 18px; }
.waehl-karte-klein .waehl-karte-titel{ font-size:0.98rem; }

.schritt-nav{ display:flex; justify-content:space-between; align-items:center; margin-top:28px; gap:12px; }

/* ---------- FAQ (aufklappbar) ---------- */
.faq-item{
  background: linear-gradient(165deg, var(--white) 0%, var(--paper) 150%);
  border:1px solid var(--line); border-radius: var(--radius);
  margin-bottom:12px; padding: 0 22px;
  box-shadow: 0 14px 30px -28px rgba(var(--night-rgb),0.3);
  transition: box-shadow .18s ease;
}
.faq-item[open]{ box-shadow: 0 20px 38px -26px rgba(var(--night-rgb),0.32); }
.faq-item summary{
  cursor:pointer; padding:18px 0; font-weight:600; color: var(--night);
  font-size:1.05rem; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:'+'; font-size:1.5rem; color: var(--breath); font-weight:400; line-height:1;
}
.faq-item[open] summary::after{ content:'–'; }
.faq-item summary:hover{ color: var(--breath); }
.faq-item p{ margin:0 0 20px; color:var(--muted); }

/* ---------- Breadcrumbs ---------- */
.breadcrumb{
  background: var(--paper-2); border-bottom:1px solid var(--line);
  font-size:0.88rem; padding:10px 0;
}
.breadcrumb a{ color:var(--muted-lt); text-decoration:none; }
.breadcrumb a:hover{ color: var(--breath); text-decoration:underline; }
.breadcrumb span{ color:var(--muted-lt); margin:0 6px; }
.breadcrumb span[aria-current]{ color: var(--night); font-weight:600; margin:0; }

/* ---------- Infografiken in Artikeln ---------- */
.infografik{
  background: linear-gradient(165deg, var(--white) 0%, var(--paper) 140%);
  border:1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 2em 0;
  box-shadow: 0 20px 40px -32px rgba(var(--night-rgb),0.3);
}
.infografik svg{ width:100%; height:auto; display:block; }
.infografik figcaption{
  font-family: var(--font-mono); font-size:0.82rem; color:var(--muted-lt);
  margin-top:14px; padding-top:12px; border-top:1px solid var(--line);
}
.ig-label{ font-family: var(--font-body); font-size:14px; fill: var(--ink); }
.ig-label-strong{ font-family: var(--font-body); font-size:15px; font-weight:600; fill: var(--night); }
.ig-note{ font-family: var(--font-mono); font-size:13px; fill:var(--muted-lt); }

.hp-field{ position:absolute; left:-9999px; top:-9999px; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--night); color:var(--on-dark-lt); padding:48px 0 28px; margin-top:60px; }
.footer-grid{ display:grid; grid-template-columns: 2fr 1fr 1fr; gap:32px; margin-bottom:32px; }
@media (max-width:700px){ .footer-grid{ grid-template-columns:1fr; } }
.site-footer h4{ color:var(--white); font-size:1rem; margin-bottom:0.8em; }
.site-footer a{ color:var(--on-dark-lt); text-decoration:none; display:block; margin-bottom:8px; font-size:0.92rem; }
.site-footer a:hover{ color:var(--gold-light); }
.footer-bottom{ border-top:1px solid var(--night-2); padding-top:20px; font-size:0.85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.disclaimer-strip{
  background:var(--paper-2); font-size:0.85rem; color:var(--muted-lt); text-align:center; padding:10px 20px;
}


/* ---------- Barrierefreiheit: sichtbare Fokus-Zustände ----------
   Ohne diese Regeln ist die Seite mit der Tastatur praktisch
   unbedienbar – relevant für Menschen mit motorischen Einschränkungen
   und für Screenreader-Nutzung. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible{
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
.site-header a:focus-visible,
.site-header button:focus-visible,
.section-dark a:focus-visible,
.skip-link:focus-visible{ outline-color: var(--gold-light); }

/* Pillenförmige Buttons brauchen einen passend runden Fokusring statt
   der eckigen 3px-Standardrundung. */
.btn:focus-visible,
.nav a.nav-cta:focus-visible{ border-radius: var(--radius-pill); }

/* Eingabefelder bei Fokus deutlicher hervorheben */
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color: var(--breath);
  background: var(--white);
}

/* Sprunglink für Screenreader */
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--gold); color:var(--white);
  padding:12px 20px; z-index:100; font-weight:600; text-decoration:none;
}
.skip-link:focus{ left:0; }

/* ---------- Fester Handlungsaufruf auf Mobilgeräten ----------
   Auf dem Handy verschwindet der Kopfbereich beim Scrollen. Diese
   Leiste hält den wichtigsten Weg jederzeit erreichbar. */
.mobile-cta{ display:none; }
@media (max-width: 780px){
  .mobile-cta{
    display:flex; position:fixed; bottom:0; left:0; right:0; z-index:60;
    background:var(--white); border-top:1px solid var(--line);
    padding:10px 14px; gap:10px; box-shadow:0 -2px 14px rgba(var(--night-rgb),0.10);
  }
  .mobile-cta a{
    flex:1; text-align:center; padding:13px 8px; border-radius:var(--radius);
    text-decoration:none; font-weight:600; font-size:0.95rem;
    transition: transform 160ms var(--ease-out), background-color 200ms ease;
  }
  .mobile-cta a:active{ transform: scale(0.97); }
  .mobile-cta .cta-haupt{ background:var(--gold); color:var(--white); }
  .mobile-cta .cta-neben{ border:1.5px solid var(--night); color:var(--night); }
  body{ padding-bottom:74px; }
}


/* ---------- Querverweise am Artikelende ---------- */
.verwandte{ margin: 3em 0 1em; padding-top: 2em; border-top: 2px solid var(--line); }
.verwandte h2{ font-size: 1.4rem; margin-bottom: 0.8em; }
.verwandte-liste{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
@media (max-width: 820px){ .verwandte-liste{ grid-template-columns:1fr; } }
.verwandte-karte{
  display:block; background: var(--white); border:1px solid var(--line);
  border-radius: var(--radius); padding:18px 20px; text-decoration:none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.verwandte-karte:hover{
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(var(--night-rgb),0.08);
  border-color: var(--breath);
}
.verwandte-kategorie{
  display:block; font-family: var(--font-mono); font-size:0.72rem;
  text-transform:uppercase; letter-spacing:0.07em; color: var(--breath); margin-bottom:8px;
}
.verwandte-karte strong{ display:block; color: var(--night); font-size:1.02rem; line-height:1.35; margin-bottom:8px; }
.verwandte-text{ display:block; font-size:0.9rem; color:var(--muted-lt); line-height:1.5; }

/* ---------- Artikelbilder ---------- */
.artikel-bild{ margin: 2em 0; }
.artikel-bild img{ width:100%; height:auto; border-radius: var(--radius); border:1px solid var(--line); }
.artikel-bild figcaption{
  font-family: var(--font-mono); font-size:0.82rem; color:var(--muted-lt); margin-top:10px;
}
.beitragsbild{ margin: 0 0 2em; }
.beitragsbild img{ width:100%; height:auto; border-radius: var(--radius); }


/* Offene Stellen in Rechtstexten sichtbar markieren */
mark{ background: var(--mark-bg); padding: 1px 5px; border-radius: 3px; }
