/* =========================================================
   Podologie Trebsdorf
   Healthcare · "Accessible & Ethical" + sanfte Soft-UI-Tiefe
   Barrierefreiheit nach EN 301 549 / WCAG 2.1 AA (Text überwiegend AAA ≥ 7:1),
   Grundschrift 19px, Barrierefreiheits-Feld (Schriftgröße, Kontrastmodus, Animationen)
   Farben aus dem Praxis-Logo abgeleitet, auf WCAG-Kontrast geprüft:
   Petrolblau (Fuß-Linie) #094E7A → Primär #0E5B8A (7.3:1 mit Weiß)
   Violett (Schriftzug)   #AE0CF3 → Akzent  #9A0BD8 (6.2:1 mit Weiß)
   ========================================================= */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* --- Farb-Tokens (semantisch) --- */
  --color-background: #f7f6fc;
  --color-surface: #ffffff;
  --color-muted: #efeef8;
  --color-foreground: #0b2f4a;        /* 13.8:1 auf Weiß */
  --color-muted-foreground: #3b4360;  /* 9.7:1 auf Weiß */
  --color-primary: #0e5b8a;
  --color-primary-hover: #094e7a;
  --color-primary-soft: #e6eff7;
  --color-on-primary: #ffffff;
  --color-accent: #9a0bd8;
  --color-accent-soft: #f4e8fd;
  --color-accent-text: #8a0cc2;       /* 6.1:1 auf accent-soft */
  --color-border: #dfdcef;            /* nur dekorative Trennlinien */
  --color-border-strong: #6e7494;     /* Ränder von Bedienelementen, ≥ 3:1 */
  --color-ring: #ae0cf3;
  --color-dark: #072f4a;

  /* --- Typo --- */
  --font-heading: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* --- Abstände (Density 3 · großzügig) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* --- Form & Tiefe --- */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 8px 8px 24px rgb(11 47 74 / 0.08), -8px -8px 24px rgb(255 255 255 / 0.9);
  --shadow-card: 0 1px 2px rgb(11 47 74 / 0.06), 0 8px 24px -12px rgb(11 47 74 / 0.18);
  --shadow-float: 0 16px 40px -16px rgb(11 47 74 / 0.35);

  /* --- Motion (Stufe 4 · Standard) --- */
  --dur-fast: 150ms;
  --dur: 250ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.4, 0.64, 1); /* ≈ back.out(1.4) */

  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 1.1875rem;         /* 19px – gut lesbar auch für ältere Patientinnen und Patienten */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  touch-action: manipulation;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
picture > source { display: none; } /* sonst belegt <source> in Grid-Layouts eine eigene Zelle */
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--color-primary); }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--color-foreground);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: anywhere;
}
body { overflow-wrap: break-word; }
/* Vergrößerte Schrift (Barrierefreiheits-Feld): lange Wörter trennen statt seitlich überlaufen */
html[style*="font-size"] body { hyphens: auto; }
p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--space-5));
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  padding: var(--space-3) var(--space-4);
  background: var(--color-foreground); color: #fff;
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip:focus { top: var(--space-4); }

.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.overline {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.overline--light { color: #e9d3fc; }

/* ---------- Buttons (≥ 48px hoch) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border: 2px solid transparent;
  border-radius: 12px;
  font: 600 1rem/1.2 var(--font-heading);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    color var(--dur) ease,
    box-shadow var(--dur) ease,
    transform var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn { text-align: center; }
.btn > .ic { flex: none; }
.btn-lg { min-height: 56px; padding: 0 var(--space-6); font-size: 1.0625rem; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 6px 16px -8px rgb(14 91 138 / 0.7);
}
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }

.btn-white { background: #fff; color: var(--color-dark); }
.btn-white:hover { background: var(--color-primary-soft); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur) ease;
}
.header.is-scrolled { box-shadow: 0 6px 20px -12px rgb(11 47 74 / 0.25); }
.header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  height: var(--header-h);
}

.logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  margin-right: auto;
  color: var(--color-foreground);
  text-decoration: none;
}
.logo__img { display: block; height: 66px; width: auto; }
.logo--footer .logo__img { height: 96px; }

.nav { display: flex; gap: var(--space-1); }
.nav a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-foreground);
  text-decoration: none;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.nav a:hover { background: var(--color-muted); }
.nav a[aria-current="true"] { color: var(--color-primary); background: var(--color-primary-soft); }

.icon-btn {
  display: none; place-items: center;
  width: 48px; height: 48px;
  border: 2px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-foreground);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur) ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn .ic-close { display: none; }
.icon-btn[aria-expanded="true"] .ic-open { display: none; }
.icon-btn[aria-expanded="true"] .ic-close { display: block; }

.menu {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-2) var(--space-5) var(--space-4);
  transform-origin: top;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-hidden { opacity: 0; transform: translateY(-6px); }
.menu a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-foreground);
  text-decoration: none;
}
.menu a:last-child { border-bottom: 0; }
.menu a .ic { color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-9);
  background:
    radial-gradient(60% 70% at 85% 20%, rgb(174 12 243 / 0.09), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgb(14 91 138 / 0.08), transparent 70%),
    var(--color-background);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-8);
  align-items: center;
}
.hero__copy { display: grid; gap: var(--space-5); justify-items: start; }

.pill {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--color-accent-soft);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-accent-text);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }

/* Die h1 enthält die Ortszeile (Pill) und den großen Satz */
.hero__title { display: grid; gap: var(--space-5); justify-items: start; }
.hero__title .pill { letter-spacing: normal; line-height: 1.4; }
.hero__claim {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero__lead {
  max-width: 36em;
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  color: var(--color-muted-foreground);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero__checks {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
  font-size: 1.0625rem;
  font-weight: 500;
}
.hero__checks li { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__checks .ic {
  width: 22px; height: 22px; padding: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  stroke-width: 3;
}

.hero__visual { position: relative; }
.hero__img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-muted);
  box-shadow: var(--shadow-float);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  line-height: 1.3;
}
.float-card strong { display: block; font-family: var(--font-heading); font-size: 1.0625rem; }
.float-card small { display: block; font-size: 0.9375rem; color: var(--color-muted-foreground); }
.float-card--top { top: 32px; left: -40px; }
.float-card--bottom { bottom: 40px; right: -24px; }
.float-card__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--color-primary-soft); color: var(--color-primary);
}
.float-card__icon--accent { background: var(--color-accent-soft); color: var(--color-accent-text); }

/* ---------- Kennzahlen (Soft-UI) ---------- */
.proof { margin-top: calc(-1 * var(--space-7)); position: relative; z-index: 2; }
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.proof__item {
  display: grid; gap: var(--space-1); align-content: start;
  padding: var(--space-5);
  background: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgb(255 255 255 / 0.8);
}
.proof__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-2);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-primary);
  box-shadow: inset 2px 2px 6px rgb(11 47 74 / 0.08), inset -2px -2px 6px #fff;
}
.proof__item strong { font-family: var(--font-heading); font-size: 1.25rem; }
.proof__item span:last-child { font-size: 1rem; color: var(--color-muted-foreground); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { padding: var(--space-9) 0; }
.section--tinted { background: var(--color-surface); border-block: 1px solid var(--color-border); }

.section-head {
  display: grid; gap: var(--space-3); justify-items: start;
  max-width: 760px;
  margin-bottom: var(--space-7);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; }
.section-head p:not(.overline) { color: var(--color-muted-foreground); font-size: 1.1875rem; }

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.service {
  display: grid; gap: var(--space-3); align-content: start;
  padding: var(--space-6);
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease, transform var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover {
    border-color: rgb(14 91 138 / 0.4);
    box-shadow: 0 1px 2px rgb(11 47 74 / 0.06), 0 18px 36px -18px rgb(11 47 74 / 0.3);
    transform: translateY(-2px);
  }
}
.service__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: var(--space-2);
  border-radius: 16px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.service__icon .ic { width: 26px; height: 26px; }
.service h3 { font-size: 1.375rem; font-weight: 700; }
.service__lead { font-weight: 600; color: var(--color-foreground); }
.service p:not(.service__lead) { color: var(--color-muted-foreground); font-size: 1.0625rem; }

.service--featured {
  background: linear-gradient(165deg, #0e5b8a 0%, #072f4a 100%);
  border-color: transparent;
  color: #e4ecf5;
}
.service--featured h3,
.service--featured .service__lead { color: #fff; }
.service--featured p:not(.service__lead) { color: #e4ecf5; }
.service--featured .service__icon { background: rgb(255 255 255 / 0.14); color: #fff; }
.service__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-3); }
.service__tags li {
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

.callout {
  display: flex; align-items: center; gap: var(--space-5);
  margin-top: var(--space-7);
  padding: var(--space-5) var(--space-6);
  background: var(--color-accent-soft);
  border: 1px solid #e6cdfa;
  border-radius: var(--radius-lg);
}
.callout > div { flex: 1; display: grid; gap: var(--space-1); }
.callout__icon {
  display: grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-accent); color: #fff;
}
.callout__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.1875rem; }
.callout p:not(.callout__title) { color: var(--color-muted-foreground); font-size: 1.0625rem; }
.callout .btn { flex: none; }

/* ---------- Über uns ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.about__media { position: relative; padding-bottom: var(--space-8); padding-right: var(--space-7); }
.about__main {
  width: 100%;
  aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.about__inset {
  position: absolute; right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--color-surface);
  box-shadow: var(--shadow-float);
}
.about__copy { display: grid; gap: var(--space-5); justify-items: start; }
.about__copy h2 { font-size: clamp(2rem, 3.4vw, 2.625rem); font-weight: 800; }
.about__copy > p:not(.overline) { color: var(--color-muted-foreground); }
.about__copy > p strong { color: var(--color-foreground); }

.checklist { display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 500; }
.checklist__icon {
  display: grid; place-items: center; flex: none;
  width: 28px; height: 28px; margin-top: 1px;
  border-radius: 50%;
  background: var(--color-accent-soft); color: var(--color-accent-text);
}
.checklist__icon .ic { width: 16px; height: 16px; stroke-width: 3; }

.text-link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.text-link .ic { transition: transform var(--dur) var(--ease); }
.text-link:hover .ic { transform: translateX(3px); }

.audience { margin-top: var(--space-9); }
.audience__title { font-size: 1.5rem; font-weight: 700; margin-bottom: var(--space-5); text-align: center; }
.audience__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}
.audience__grid li {
  hyphens: auto;
  display: grid; justify-items: center; gap: var(--space-3);
  padding: var(--space-5) var(--space-3);
  background: var(--color-background);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
}
.audience__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-surface); color: var(--color-primary);
  box-shadow: inset 2px 2px 6px rgb(11 47 74 / 0.08), inset -2px -2px 6px #fff;
}
.audience__icon .ic { width: 24px; height: 24px; }

/* ---------- Ablauf ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.steps::before {
  /* Verbindungslinie zwischen den Schritten */
  content: "";
  position: absolute;
  top: 28px; left: 16.66%; right: 16.66%;
  border-top: 2px dashed var(--color-border);
}
.step { position: relative; display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding: 0 var(--space-4); }
.step__num {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.375rem;
  box-shadow: 0 0 0 8px var(--color-background), 0 8px 20px -8px rgb(14 91 138 / 0.7);
}
.step h3 { font-size: 1.3125rem; font-weight: 700; margin-top: var(--space-2); }
.step p { color: var(--color-muted-foreground); max-width: 22em; }

.prep {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-top: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.prep__img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.prep__body { padding: var(--space-7); display: grid; gap: var(--space-5); align-content: center; }
.prep__body h3 { font-size: 1.625rem; font-weight: 800; }
.prep__list { display: grid; gap: var(--space-5); }
.prep__list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.prep__list strong { display: block; font-family: var(--font-heading); }
.prep__list span:last-child { color: var(--color-muted-foreground); font-size: 1.0625rem; }
.prep__list strong { color: var(--color-foreground); font-size: 1.0625rem; }
.prep__list a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prep__icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--color-primary-soft); color: var(--color-primary);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-8);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; }
.faq__list { display: grid; gap: var(--space-3); }
.faq__item {
  background: var(--color-background);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.faq__item[open] { background: var(--color-surface); border-color: var(--color-primary); box-shadow: var(--shadow-card); }
.faq__item summary {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--color-primary-soft); color: var(--color-primary);
}
.faq__chev { margin-left: auto; color: var(--color-primary); transition: transform var(--dur) var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item p { padding: 0 var(--space-5) var(--space-5) calc(var(--space-5) + 40px + var(--space-4)); color: var(--color-muted-foreground); }
.faq__item[open] p { animation: fade-in var(--dur) var(--ease); }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--space-7);
  padding: var(--space-8);
  border-radius: 32px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(174 12 243 / 0.32), transparent 60%),
    var(--color-dark);
  color: #dbe5f0;
  overflow: hidden;
}
.contact__main { display: grid; gap: var(--space-5); align-content: center; justify-items: start; }
.contact__main h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.contact__main > p { font-size: 1.1875rem; max-width: 32em; }
.contact__phone {
  display: inline-flex; align-items: center; gap: var(--space-4);
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-6) var(--space-3) var(--space-3);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  line-height: 1.1;
  transition: background-color var(--dur) ease, transform var(--dur-fast) var(--ease);
}
.contact__phone:hover { background: rgb(255 255 255 / 0.14); }
.contact__phone:active { transform: scale(0.98); }
.contact__phone small { display: block; font-size: 0.9375rem; font-weight: 600; color: #e9d3fc; letter-spacing: 0.04em; margin-bottom: 4px; }
.contact__phone-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--color-accent); color: #fff;
}
.contact__phone-icon .ic { width: 28px; height: 28px; }

.contact__side {
  display: grid; gap: var(--space-5); align-content: center;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
}
.contact__row { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact__row strong { color: #fff; }
.contact__row-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: rgb(255 255 255 / 0.1); color: #d9a6fb;
}
.contact__side .btn { justify-self: start; }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--space-4);
  /* unten Platz für den schwebenden Barrierefreiheits-Knopf (52px + Abstand), damit er die letzte Zeile nicht verdeckt */
  padding: var(--space-8) 0 calc(52px + 2 * var(--space-4));
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-size: 1.0625rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-6);
}
.footer__claim { margin-top: var(--space-4); color: var(--color-muted-foreground); max-width: 22em; }
.footer__member {
  display: grid; gap: var(--space-2); justify-items: start;
  margin-top: var(--space-5);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-muted-foreground);
}
.footer__member img { display: block; height: 92px; width: auto; }
.footer__h {
  font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-muted-foreground);
  margin-bottom: var(--space-3);
}
.footer p { color: var(--color-foreground); }
.footer__links { display: grid; gap: var(--space-1); }
.footer a:not(.logo) {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--color-foreground); text-decoration: none;
}
.footer a:not(.logo):hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}
.footer__bottom p { font-size: 0.9375rem; color: var(--color-muted-foreground); }

/* ---------- Mobile Anrufleiste ---------- */
.callbar { display: none; }

/* =========================================================
   Motion – Stagger List (Standard, 300–450ms, back.out(1.4))
   Ohne JS bleibt alles sichtbar.
   ========================================================= */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.js [data-anim] {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 450ms var(--ease) forwards;
}
.js [data-anim]:nth-child(1) { animation-delay: 0ms; }
.js [data-anim]:nth-child(2) { animation-delay: 60ms; }
.js [data-anim]:nth-child(3) { animation-delay: 120ms; }
.js [data-anim]:nth-child(4) { animation-delay: 180ms; }
.js [data-anim]:nth-child(5) { animation-delay: 240ms; }
.js .hero__visual[data-anim] { animation-delay: 120ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease-back);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-stagger].is-visible > * { opacity: 1; transform: none; }
/* Nach dem Einblenden zurück zu schnellen Hover-Transitions */
.js [data-stagger].is-done > * { transition-delay: 0ms; transition-duration: var(--dur); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim],
  .js [data-stagger] > * { opacity: 1; transform: none; animation: none; transition: none; }
  .service:hover { transform: none; }
  .faq__item[open] p { animation: none; }
  .menu { transition: none; }
}

/* =========================================================
   Responsive: 375 · 768 · 1024 · 1440
   ========================================================= */
@media (max-width: 1100px) {
  .float-card--top { left: -16px; }
  .float-card--bottom { right: -8px; }
}

@media (max-width: 1023px) {
  .nav, .header__cta { display: none; }
  .icon-btn { display: grid; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .hero__visual { max-width: 560px; }
  .hero__img { aspect-ratio: 4 / 3; }

  .proof { margin-top: calc(-1 * var(--space-6)); }
  .proof__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about, .faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .audience__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .contact { grid-template-columns: minmax(0, 1fr); padding: var(--space-7); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --header-h: 68px; }
  body { font-size: 1.125rem; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .container { padding-inline: var(--space-4); }
  .section { padding: var(--space-8) 0; }

  .hero { padding: var(--space-6) 0 var(--space-8); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__checks { display: grid; }
  .float-card--top { top: 16px; left: 12px; }
  .float-card--bottom { bottom: 16px; right: 12px; }
  .float-card { padding: var(--space-2) var(--space-4) var(--space-2) var(--space-2); }
  .float-card__icon { width: 36px; height: 36px; }

  .proof__grid { gap: var(--space-3); }
  .proof__item { padding: var(--space-4); }
  .proof__item strong { font-size: 1.0625rem; }
  .proof__icon { width: 40px; height: 40px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { padding: var(--space-5); }
  .callout { flex-direction: column; align-items: flex-start; padding: var(--space-5); }
  .callout .btn { width: 100%; }

  .about__media { padding-right: var(--space-5); padding-bottom: var(--space-7); }
  /* Spaltenzahl richtet sich nach der Schriftgröße (rem), damit lange Wörter auch bei 150 % passen */
  .audience__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
  .proof__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }

  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .steps::before { top: 28px; bottom: 28px; left: 28px; right: auto; border-top: 0; border-left: 2px dashed var(--color-border); }
  .step { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: var(--space-4); row-gap: var(--space-1); padding: 0; }
  .step__num { grid-row: span 2; }
  .step h3 { margin-top: var(--space-2); }

  .prep { grid-template-columns: minmax(0, 1fr); }
  .prep__img { min-height: 0; aspect-ratio: 16 / 9; }
  .prep__body { padding: var(--space-5); }

  .faq__item summary { padding: var(--space-3) var(--space-4); gap: var(--space-3); font-size: 1.0625rem; }
  .faq__item p { padding: 0 var(--space-4) var(--space-4); }

  .contact { padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); }
  .contact__phone { width: 100%; padding-right: var(--space-4); }
  .contact__phone-icon { width: 52px; height: 52px; }
  .contact__side { padding: var(--space-5); }
  .contact__side .btn { width: 100%; justify-self: stretch; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }

  .callbar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    transition: transform var(--dur) var(--ease);
  }
  .callbar .btn { width: 100%; }
  .callbar.is-hidden { transform: translateY(110%); }
}

@media (max-width: 400px) {
  .header .logo__img { height: 52px; }
  .proof__item span:last-child { font-size: 0.9375rem; }
}

/* =========================================================
   Barrierefreiheits-Feld (barrierefrei.js)
   ========================================================= */
.a11y { position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 95; }
.a11y-toggle {
  display: grid; place-items: center;
  width: 52px; height: 52px; padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--color-primary); color: #fff;
  box-shadow: var(--shadow-float);
  cursor: pointer;
  transition: background-color var(--dur) ease, transform var(--dur-fast) var(--ease);
}
.a11y-toggle:hover { background: var(--color-primary-hover); }
.a11y-toggle:active { transform: scale(0.95); }
.a11y-toggle svg { width: 28px; height: 28px; }
.a11y-panel {
  position: absolute; left: 0; bottom: 64px;
  width: min(330px, calc(100vw - 32px));
  padding: var(--space-4) var(--space-5) var(--space-3);
  background: var(--color-surface); color: var(--color-foreground);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 50px -20px rgb(11 47 74 / 0.5);
  max-height: calc(100dvh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.a11y-panel[hidden] { display: none; }
.a11y-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; margin-bottom: var(--space-1); }
.a11y-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600; font-size: 1.0625rem;
}
.a11y-font { display: flex; align-items: center; gap: var(--space-2); }
.a11y-font output { min-width: 3.4em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.font-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: var(--color-surface); color: var(--color-primary);
  font: 800 1rem/1 var(--font-heading);
  cursor: pointer;
}
.font-btn:hover { background: var(--color-primary-soft); }
.font-btn[aria-disabled="true"] { opacity: 0.4; cursor: default; background: var(--color-surface); }
.font-btn small { font-size: 0.75rem; margin-left: 1px; }
.switch {
  position: relative; flex: none;
  width: 56px; height: 32px; padding: 0;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  background: var(--color-surface);
  cursor: pointer;
}
.switch::after {
  content: ""; position: absolute; top: 4px; left: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-primary);
  transition: transform var(--dur) var(--ease);
}
.switch[aria-checked="true"] { background: var(--color-primary); }
.switch[aria-checked="true"]::after { background: #fff; transform: translateX(24px); }
.a11y-reset {
  min-height: 44px; margin-top: var(--space-2); padding: var(--space-2) 2px;
  border: 0; background: none;
  color: var(--color-primary);
  font: 700 1rem var(--font-heading);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}

/* =========================================================
   Unterseiten: Seitenkopf, Rechtstexte
   ========================================================= */
.page-head {
  padding: var(--space-8) 0 var(--space-7);
  background:
    radial-gradient(60% 90% at 90% 0%, rgb(174 12 243 / 0.09), transparent 70%),
    var(--color-background);
  border-bottom: 1px solid var(--color-border);
}
.page-head .container { display: grid; gap: var(--space-3); justify-items: start; }
.page-head .container > * { max-width: 100%; }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
.page-head p:not(.overline) { max-width: 44em; color: var(--color-muted-foreground); font-size: 1.1875rem; }

.legal { max-width: calc(46rem + 2 * var(--space-5)); padding-block: var(--space-7) var(--space-9); }
.legal section + section { margin-top: var(--space-7); }
.legal h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-3); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: var(--space-3); }
.legal a { text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.bullets { display: grid; gap: var(--space-2); }
.bullets li { position: relative; padding-left: 1.4em; }
.bullets li::before {
  content: ""; position: absolute; left: 0.2em; top: 0.68em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
}
.facts { display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: var(--space-3) var(--space-5); margin: 0; }
.facts dt { font-family: var(--font-heading); font-weight: 700; }
.facts dd { margin: 0; }
.legal__stand { margin-top: var(--space-7); color: var(--color-muted-foreground); }

/* =========================================================
   Besucherstatistik
   Diagrammfarben: Menschen = Primär-Petrol, Bots = Lavendel #B36BE0
   (3.4:1 auf Weiß; Abstand bei Rot-/Grün-/Blauschwäche ΔE ≥ 16)
   ========================================================= */
.report { padding-block: var(--space-7) var(--space-9); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.stat {
  display: grid; gap: var(--space-1); align-content: start;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.stat b { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 800; line-height: 1.1; color: var(--color-foreground); font-variant-numeric: tabular-nums; }
.stat span { font-weight: 600; }
.stat small { font-size: 0.9375rem; color: var(--color-muted-foreground); }
.panel {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.panel h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: var(--space-1); }
.panel .sub { color: var(--color-muted-foreground); margin-bottom: var(--space-5); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-5); margin-bottom: var(--space-3); font-weight: 600; }
.legend li { display: flex; align-items: center; gap: var(--space-2); }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; }
.legend__h { background: var(--chart-h, #0e5b8a); }
.legend__b { background: var(--chart-b, #b36be0); }
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 620px; height: auto; }
.chart .bar-h { fill: var(--chart-h, #0e5b8a); }
.chart .bar-b { fill: var(--chart-b, #b36be0); }
.chart .axis { stroke: var(--color-border); stroke-width: 1; }
.chart text { font-family: var(--font-body); font-size: 12px; fill: var(--color-muted-foreground); }
.chart rect.hit { fill: transparent; }
.chart g.day:hover rect.hit { fill: rgb(11 47 74 / 0.06); }
.chart-tip { min-height: 1.6em; margin-top: var(--space-2); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); }
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th, table.data td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--color-border); text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th {
  font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-muted-foreground);
  border-bottom: 2px solid var(--color-primary);
}
table.data tbody th { font-weight: 600; }
table.data tfoot td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--color-border-strong); }
.meter { display: inline-block; margin-right: var(--space-2); fill: var(--chart-b, #b36be0); vertical-align: middle; }
.empty { color: var(--color-muted-foreground); }
details.table-toggle { margin-top: var(--space-3); }
details.table-toggle summary {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--color-primary); font-family: var(--font-heading); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.note { margin-top: var(--space-6); color: var(--color-muted-foreground); max-width: 60em; }

@media (max-width: 1023px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 767px) {
  .a11y { bottom: calc(84px + env(safe-area-inset-bottom)); left: var(--space-3); }
  .a11y-panel { max-height: calc(100dvh - 200px); }
  .page-head { padding: var(--space-7) 0 var(--space-6); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .facts dd + dt { margin-top: var(--space-3); }
  .panel { padding: var(--space-5) var(--space-4); }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Hoher Kontrast (Barrierefreiheits-Feld oder prefers-contrast: more)
   ========================================================= */
html.contrast {
  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-muted: #ffffff;
  --color-foreground: #000000;
  --color-muted-foreground: #1a1a1a;
  --color-primary: #003a63;
  --color-primary-hover: #00243f;
  --color-primary-soft: #ffffff;
  --color-accent: #5c0089;
  --color-accent-soft: #ffffff;
  --color-accent-text: #5c0089;
  --color-border: #000000;
  --color-border-strong: #000000;
  --color-dark: #001427;
  --shadow-soft: none;
  --shadow-card: none;
  --shadow-float: none;
  --chart-h: #003a63;
  --chart-b: #7a2bb0;
}
html.contrast .hero, html.contrast .page-head { background: #fff; }
html.contrast .header, html.contrast .callbar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: #000; }
html.contrast .card, html.contrast .proof__item, html.contrast .audience__grid li, html.contrast .float-card,
html.contrast .prep, html.contrast .faq__item, html.contrast .stat, html.contrast .panel, html.contrast .callout,
html.contrast .proof__icon, html.contrast .audience__icon, html.contrast .service__icon, html.contrast .prep__icon,
html.contrast .faq__q-icon, html.contrast .float-card__icon, html.contrast .checklist__icon, html.contrast .pill {
  border: 2px solid #000; box-shadow: none;
}
html.contrast .service--featured, html.contrast .contact { background: var(--color-dark); }
html.contrast .service--featured .service__icon, html.contrast .service__tags li { border-color: #fff; }
html.contrast .contact, html.contrast .contact__side, html.contrast .contact__phone { border: 2px solid #fff; }
html.contrast .contact__phone small, html.contrast .overline--light, html.contrast .contact__row-icon { color: #fff; }
html.contrast main a:not(.btn):not(.contact__phone), html.contrast .footer a:not(.logo) { text-decoration: underline; }
html.contrast .about__inset { border-color: #000; }
html.contrast .steps::before { border-color: #000; }

/* Animationen anhalten (Barrierefreiheits-Feld) */
html.still { scroll-behavior: auto; }
html.still *, html.still *::before, html.still *::after { animation: none !important; transition: none !important; }
html.still.js [data-anim], html.still.js [data-stagger] > * { opacity: 1; transform: none; }
