/* ============================================================
   ERGO-VITAL am Deister — Design System
   "Editorial Medical" — warm, ruhig, vertrauensvoll
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand */
  --c-bordeaux-900: #5C1720;
  --c-bordeaux-800: #701D28;
  --c-bordeaux-700: #8B2332;
  --c-bordeaux-600: #A63344;
  --c-bordeaux-500: #B85365;
  --c-bordeaux-100: #F2D8DB;
  --c-bordeaux-50:  #F9EDEE;

  /* Warm Neutrals */
  --c-cream-50:  #FBF8F3;
  --c-cream-100: #F4EFE7;
  --c-cream-200: #E8E0D1;
  --c-cream-300: #D9CDB8;

  --c-ink-900: #1A1513;
  --c-ink-800: #2A2220;
  --c-ink-700: #3D3532;
  --c-ink-600: #554B46;
  --c-ink-500: #7A6F6A;
  --c-ink-400: #A39993;
  --c-ink-300: #C4BCB6;
  --c-ink-200: #E0D9D3;

  --c-sage-700: #445C4E;
  --c-sage-600: #5C7A65;
  --c-sage-500: #7B9882;
  --c-sage-100: #E1E9DF;
  --c-sage-50:  #EEF3EC;

  /* Semantic */
  --bg: var(--c-cream-50);
  --bg-elevated: #FFFFFF;
  --bg-subtle: var(--c-cream-100);
  --bg-tonal: var(--c-cream-200);
  --fg: var(--c-ink-900);
  --fg-muted: var(--c-ink-700);
  --fg-subtle: var(--c-ink-500);
  --accent: var(--c-bordeaux-700);
  --accent-hover: var(--c-bordeaux-800);
  --border: var(--c-cream-200);
  --border-strong: var(--c-ink-200);

  /* Typography */
  --font-display: "Fraunces", ui-serif, "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.375rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.75rem;
  --fs-6xl: 4.75rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.75rem;
  --sp-8: 3.75rem;
  --sp-9: 5rem;
  --sp-10: 6.5rem;
  --sp-11: 8rem;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows — warm, soft */
  --shadow-xs: 0 1px 2px rgb(26 21 19 / 0.04);
  --shadow-sm: 0 2px 8px -2px rgb(26 21 19 / 0.06);
  --shadow-md: 0 12px 32px -12px rgb(26 21 19 / 0.10);
  --shadow-lg: 0 28px 64px -24px rgb(26 21 19 / 0.14);
  --shadow-inset: inset 0 0 0 1px var(--border);

  /* Motion */
  --e-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --e-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-fast: 180ms;
  --t-med: 340ms;
  --t-slow: 620ms;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 920px;
  --wrap-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 2.25rem);
  --header-h: 74px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "kern";
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--c-ink-900);
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
h1 { font-size: clamp(2.25rem, 5.5vw, var(--fs-6xl)); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 4vw, var(--fs-4xl)); }
h3 { font-size: clamp(1.375rem, 2.2vw, var(--fs-xl)); line-height: 1.15; }
h4 { font-size: var(--fs-lg); line-height: 1.25; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 1.5em; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.center { justify-content: center; }
.eyebrow.no-rule::before { display: none; }

.lead {
  font-size: clamp(var(--fs-md), 1.8vw, 1.3125rem);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 62ch;
}

.serif { font-family: var(--font-display); }
.italic { font-style: italic; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

a.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--t-fast) var(--e-out);
}
a.inline-link:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

/* ---------- 4. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--wrap-narrow); }
.wrap-wide { max-width: var(--wrap-wide); }

section { padding-block: clamp(3.5rem, 7vw, var(--sp-10)); }
section.compact { padding-block: clamp(2.5rem, 5vw, var(--sp-9)); }
section.tonal { background: var(--bg-subtle); }
section.deep { background: var(--c-ink-900); color: #F4EFE7; }
section.deep h1, section.deep h2, section.deep h3 { color: var(--c-cream-50); }

.stack > * + * { margin-top: var(--flow, 1.25rem); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 1.5em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary { background: var(--c-ink-900); color: var(--c-cream-50); }
.btn-primary:hover { background: var(--c-bordeaux-700); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--c-bordeaux-700); color: #fff; }
.btn-accent:hover { background: var(--c-bordeaux-800); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--c-ink-900); border-color: var(--c-ink-900); }
.btn-ghost:hover { background: var(--c-ink-900); color: var(--c-cream-50); }

.btn-outline { background: transparent; color: var(--c-ink-900); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--c-ink-900); background: var(--bg-elevated); }

.btn-icon {
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: var(--bg-elevated); color: var(--c-ink-900); border-color: var(--border-strong);
}
.btn-icon:hover { background: var(--c-ink-900); color: var(--c-cream-50); border-color: var(--c-ink-900); }

.btn-lg { padding: 1.1em 1.85em; font-size: var(--fs-base); }

.btn .arrow { transition: transform var(--t-fast) var(--e-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- 6. Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--e-out), border-color var(--t-med) var(--e-out);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom-color: var(--border);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.brand img { height: 40px; width: auto; border-radius: 4px; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--c-bordeaux-700);
}
.brand-text span {
  font-size: 0.7rem; color: var(--fg-subtle);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.nav-main { display: none; }
@media (min-width: 960px) {
  .nav-main { display: flex; align-items: center; gap: 0.25rem; }
  .nav-main a {
    position: relative;
    text-decoration: none;
    color: var(--c-ink-800);
    padding: 0.6em 0.95em;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: color var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out);
  }
  .nav-main a:hover { color: var(--accent); background: var(--c-bordeaux-50); }
  .nav-main a[aria-current="page"] { color: var(--accent); }
  .nav-main a[aria-current="page"]::after {
    content: ""; position: absolute;
    left: 50%; bottom: 2px; transform: translateX(-50%);
    width: 14px; height: 2px;
    background: var(--accent); border-radius: 999px;
  }
}

.header-cta { display: none; }
@media (min-width: 720px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: transparent; border: 1px solid var(--border-strong); color: var(--c-ink-900);
  cursor: pointer;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 22px; height: 22px; }

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  padding: var(--sp-5) var(--gutter) var(--sp-7);
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--t-med) var(--e-in-out), opacity var(--t-med) var(--e-in-out);
}
.nav-drawer.is-open { transform: translateY(0); opacity: 1; }
.nav-drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  margin-bottom: var(--sp-5);
}
.nav-drawer nav { display: flex; flex-direction: column; gap: 0.25rem; }
.nav-drawer a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2rem);
  color: var(--c-ink-900);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-drawer a:hover { color: var(--accent); }
.nav-drawer .drawer-cta { margin-top: var(--sp-6); }

body.no-scroll { overflow: hidden; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink-900); color: var(--c-cream-50);
  padding: 0.5rem 0.75rem; border-radius: 0 0 var(--r-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, var(--sp-10)) clamp(4rem, 8vw, var(--sp-10));
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 15%, rgba(139,35,50,0.08), transparent 60%),
    radial-gradient(ellipse 60% 45% at 10% 90%, rgba(92,122,101,0.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 {
  font-weight: 400;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--c-bordeaux-700);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 460px;
  margin-inline: auto;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--c-cream-100), var(--c-cream-200) 70%, var(--c-bordeaux-50));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.5), transparent 55%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}
.hero-visual > * { position: relative; z-index: 1; }
.hero-visual .visual-label {
  position: absolute; left: 1.5rem; bottom: 1.5rem; right: 1.5rem;
  z-index: 2;
  color: var(--c-ink-900);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.3;
}
.hero-visual svg.decor {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  opacity: 0.94;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero-meta .meta-item {
  display: flex; flex-direction: column;
  font-size: 0.9rem; color: var(--fg-subtle);
  gap: 0.1rem;
}
.hero-meta .meta-item strong {
  font-family: var(--font-display); font-weight: 500;
  color: var(--c-ink-900);
  font-size: 1.35rem;
  line-height: 1;
}

/* ---------- 8. Trust bar / stat strip ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.trust-item {
  padding: 1.75rem 1.25rem;
  text-align: left;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.trust-item:last-child { border-right: none; }
.trust-item strong {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 500;
  color: var(--c-bordeaux-700);
  line-height: 1;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.trust-item span { font-size: 0.88rem; color: var(--fg-muted); }
@media (max-width: 640px) {
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); padding: 1.25rem var(--gutter); }
  .trust-item:last-child { border-bottom: none; }
}

/* ---------- 9. Section headers ---------- */
.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  max-width: var(--wrap-narrow);
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--fg-muted); font-size: clamp(var(--fs-md), 1.6vw, var(--fs-lg)); max-width: 64ch; }
.section-head.center p { margin-inline: auto; }

/* ---------- 10. Service cards (grid) ---------- */
.svc-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.svc-card {
  display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out), border-color var(--t-med) var(--e-out);
  min-height: 220px;
}
.svc-card::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 3px; background: var(--c-bordeaux-700);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t-med) var(--e-out);
}
.svc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-cream-300);
}
.svc-card:hover::after { transform: scaleX(1); }
.svc-card .svc-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-bordeaux-700);
  background: var(--c-bordeaux-50);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.svc-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.svc-card p { color: var(--fg-muted); font-size: 0.97rem; line-height: 1.55; }
.svc-card .svc-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-bordeaux-700);
  display: inline-flex; align-items: center; gap: 0.4em;
  transition: gap var(--t-fast) var(--e-out);
}
.svc-card:hover .svc-link { gap: 0.75em; }

.svc-card.featured {
  background: var(--c-ink-900); color: var(--c-cream-100);
  border-color: var(--c-ink-800);
  grid-column: span 2;
}
@media (max-width: 640px) { .svc-card.featured { grid-column: auto; } }
.svc-card.featured h3 { color: var(--c-cream-50); }
.svc-card.featured p { color: rgb(244 239 231 / 0.78); }
.svc-card.featured .svc-icon { background: rgb(184 83 101 / 0.18); color: var(--c-bordeaux-500); }
.svc-card.featured .svc-link { color: var(--c-bordeaux-500); }

/* ---------- 11. Split / explainer ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split.narrow-left { grid-template-columns: 1fr; }
@media (min-width: 860px) { .split.narrow-left { grid-template-columns: 0.9fr 1.1fr; } }

.quote-block {
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--c-cream-100);
  border-radius: var(--r-lg);
  position: relative;
}
.quote-block blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  color: var(--c-ink-900);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  text-wrap: pretty;
}
.quote-block blockquote::before {
  content: "«";
  display: block;
  font-family: var(--font-display);
  font-size: 4rem; line-height: 0.6;
  color: var(--c-bordeaux-700);
  margin-bottom: 0.5rem;
}
.quote-block cite {
  display: block; font-style: normal; font-size: 0.92rem;
  color: var(--fg-subtle); margin-top: 1.5rem;
}

.checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.7rem;
}
.checklist li {
  position: relative; padding-left: 2rem;
  font-size: 1.02rem; line-height: 1.55;
  color: var(--c-ink-700);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--c-sage-100);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235C7A65' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 10.5 8.5 14 15 7'/></svg>");
  background-repeat: no-repeat; background-position: center;
  background-size: 14px 14px;
}

/* ---------- 12. Location split ---------- */
.loc-grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 840px) { .loc-grid { grid-template-columns: 1fr 1fr; } }

.loc-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}
.loc-card .loc-eyebrow {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--c-bordeaux-700);
}
.loc-card h3 { font-size: 1.8rem; line-height: 1.1; }
.loc-card address {
  font-style: normal;
  color: var(--fg-muted); line-height: 1.65;
}
.loc-card .loc-meta {
  display: flex; flex-direction: column; gap: 0.35rem;
  font-size: 0.95rem; color: var(--fg-muted);
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.loc-card .loc-meta strong { color: var(--c-ink-900); font-weight: 600; }
.loc-card .loc-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.loc-card .loc-actions .btn { flex: 1 1 auto; }

/* ---------- 13. FAQ accordion ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  display: grid; gap: 0.5rem;
}
.faq details {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0.25rem;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.3;
  color: var(--c-ink-900);
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-weight: 300;
  font-size: 1.8rem; line-height: 0.9;
  color: var(--c-bordeaux-700);
  flex-shrink: 0;
  transition: transform var(--t-fast) var(--e-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 0.85rem; color: var(--fg-muted); line-height: 1.65;
  max-width: 72ch;
}

/* ---------- 14. Final CTA band ---------- */
.cta-band {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--c-ink-900);
  color: var(--c-cream-100);
  border-radius: var(--r-xl);
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: auto 0 -50% 0;
  height: 120%;
  background: radial-gradient(ellipse at 100% 100%, rgba(139,35,50,0.4), transparent 55%);
  pointer-events: none;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1.4fr 1fr; gap: 3rem; } }
.cta-band h2 { color: var(--c-cream-50); }
.cta-band .cta-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  position: relative; z-index: 2;
}
.cta-band .btn-outline {
  color: var(--c-cream-50); border-color: rgb(244 239 231 / 0.35);
}
.cta-band .btn-outline:hover { color: var(--c-ink-900); background: var(--c-cream-50); border-color: var(--c-cream-50); }
.cta-band .cta-phone {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--c-cream-50); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.6em;
  transition: color var(--t-fast) var(--e-out);
}
.cta-band .cta-phone:hover { color: var(--c-bordeaux-500); }

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--c-cream-100);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.2fr repeat(3, 1fr);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.footer-grid a {
  color: var(--fg-muted); text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--t-fast) var(--e-out);
}
.footer-grid a:hover { color: var(--accent); }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand p { color: var(--fg-muted); font-size: 0.95rem; line-height: 1.6; }
.footer-brand img { height: 48px; width: auto; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: 0.85rem; color: var(--fg-subtle);
}
.footer-bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom nav a { color: var(--fg-subtle); text-decoration: none; }
.footer-bottom nav a:hover { color: var(--accent); }

/* ---------- 16. Cookie banner ---------- */
.cookie {
  position: fixed;
  z-index: 150;
  left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  max-width: 560px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  display: grid; gap: 1rem;
  transform: translateY(calc(100% + 2rem));
  opacity: 0;
  transition: transform var(--t-med) var(--e-out), opacity var(--t-med) var(--e-out);
  pointer-events: none;
}
.cookie.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie h4 {
  font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2;
  color: var(--c-ink-900); margin: 0;
}
.cookie p { font-size: 0.92rem; color: var(--fg-muted); margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-actions .btn { padding: 0.7em 1.2em; font-size: 0.85rem; flex: 1 1 auto; }

/* ---------- 17. Page header (inner pages) ---------- */
.page-head {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(139,35,50,0.07), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.crumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.82rem; color: var(--fg-subtle);
  margin-bottom: 1.25rem;
}
.crumbs a { color: var(--fg-subtle); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: 0.5; }
.crumbs [aria-current="page"] { color: var(--c-ink-900); }

/* Alias: .breadcrumbs (used on detail pages) */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.82rem; color: var(--fg-subtle);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}
.breadcrumbs a { color: var(--fg-subtle); text-decoration: none; transition: color var(--t-fast) var(--e-out); }
.breadcrumbs a:hover { color: var(--c-bordeaux-500); }
.breadcrumbs [aria-current="page"] { color: var(--c-ink-800); font-weight: 500; }
.breadcrumbs span[aria-hidden="true"] { opacity: 0.45; }

/* ---------- 18. Forms ---------- */
.form {
  display: grid; gap: 1.25rem;
  max-width: 640px;
}
.field { display: grid; gap: 0.35rem; }
.field label {
  font-size: 0.82rem; font-weight: 600;
  color: var(--c-ink-800);
  letter-spacing: 0.02em;
}
.field label .req { color: var(--c-bordeaux-700); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c-ink-900);
  transition: border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--c-bordeaux-700);
  box-shadow: 0 0 0 4px rgb(139 35 50 / 0.1);
}
.field.check {
  display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; align-items: flex-start;
}
.field.check input { width: 18px; height: 18px; margin-top: 0.2rem; }
.field.check label {
  font-weight: 400; font-size: 0.92rem; letter-spacing: 0;
  color: var(--fg-muted); line-height: 1.55;
}
.field-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- 18b. Contact form (used on kontakt.html) ---------- */
.contact-form {
  display: grid; gap: 1.25rem;
}
.contact-form label {
  display: grid; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 600;
  color: var(--c-ink-800);
  letter-spacing: 0.02em;
}
.contact-form label > span {
  display: block;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-family: var(--ff-body, var(--font-body));
  font-size: 1rem;
  color: var(--c-ink-900);
  font-weight: 400;
  letter-spacing: normal;
  transition: border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
}
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--c-bordeaux-500);
  box-shadow: 0 0 0 4px rgb(139 35 50 / 0.12);
}
.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #c04e58;
}

.form-grid-2 {
  display: grid; gap: 1.25rem;
}
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}

.contact-form .choice-call,
.contact-form .choice-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400;
  letter-spacing: 0;
  padding: 0.85rem 1rem;
  background: var(--c-cream-50);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out);
}
.contact-form .choice-call:hover,
.contact-form .choice-consent:hover {
  border-color: var(--c-cream-300);
  background: var(--bg-elevated);
}
.contact-form .choice-call input[type="checkbox"],
.contact-form .choice-consent input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--c-bordeaux-500);
  padding: 0;
  flex-shrink: 0;
}
.contact-form .choice-call span,
.contact-form .choice-consent span {
  font-size: 0.92rem;
  color: var(--fg-muted);
  line-height: 1.55;
  font-weight: 400;
}
.contact-form .choice-consent {
  align-items: flex-start;
}

.contact-form [data-form-status] {
  font-size: 0.92rem;
  margin: 0;
}
.contact-form [data-form-status].ok { color: #3f6b48; }
.contact-form [data-form-status].err { color: #a83242; }

/* ---------- 18c. Button size variants ---------- */
.btn-sm {
  padding: 0.55em 1em;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---------- 19. Ergotherapie explainer / prose ---------- */
.prose {
  max-width: 68ch;
  --flow: 1.3rem;
}
.prose > * + * { margin-top: var(--flow); }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prose h3 { margin-top: 2rem; font-size: 1.35rem; }
.prose p { color: var(--c-ink-700); font-size: 1.05rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--c-ink-700); }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose strong { color: var(--c-ink-900); font-weight: 600; }

/* ---------- 20. Related cards ---------- */
.related {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 2rem;
}
.related-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.25rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none; color: inherit;
  transition: transform var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out);
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-cream-300);
}
.related-card span.tag {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fg-subtle); font-weight: 600;
}
.related-card h4 { font-size: 1.15rem; line-height: 1.3; color: var(--c-ink-900); }
.related-card p { font-size: 0.9rem; color: var(--fg-muted); margin: 0; }

/* ---------- 20b. Content lists (for service detail pages) ---------- */
.bullet-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.25rem;
}
.bullet-list li {
  padding-left: 1.75rem;
  position: relative;
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-bordeaux-500);
}
.bullet-list li strong {
  display: block;
  color: var(--c-ink-900);
  font-weight: 600;
  font-size: 1.025rem;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}
.bullet-list li span {
  display: block;
  color: var(--fg-muted);
  font-size: 0.975rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.check-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.85rem;
}
.check-list li {
  padding-left: 2rem;
  position: relative;
  color: var(--fg-body);
  font-size: 1rem;
  line-height: 1.55;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-bordeaux-500);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBF8F3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Related grid shortcut for detail pages */
.related-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 72rem; margin: 0 auto;
}
.related-grid .related-card {
  padding: 1.5rem;
}
.related-grid .related-card .link-arrow {
  margin-top: 0.5rem;
  font-size: 0.875rem; color: var(--c-bordeaux-500); font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.35rem;
}

/* ---------- 21. Map placeholder ---------- */
.map-placeholder {
  aspect-ratio: 16/10;
  border-radius: var(--r-md);
  background: var(--c-cream-100);
  border: 1px dashed var(--border-strong);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem;
  text-align: center; gap: 0.75rem;
}
.map-placeholder .muted { color: var(--fg-subtle); font-size: 0.9rem; }
.map-placeholder iframe { width: 100%; height: 100%; border: 0; border-radius: var(--r-md); }

/* ---------- 22. Team cards ---------- */
.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.team-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 0.65rem;
}
.team-avatar {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--c-cream-200), var(--c-bordeaux-50));
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem; color: var(--c-bordeaux-700);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.team-card h3 { font-size: 1.3rem; }
.team-card .role { color: var(--fg-subtle); font-size: 0.88rem; }
.team-card.lead { background: var(--c-ink-900); color: var(--c-cream-100); }
.team-card.lead h3 { color: var(--c-cream-50); }
.team-card.lead .team-avatar { background: rgb(139 35 50 / 0.25); color: var(--c-bordeaux-500); }
.team-card.lead .role { color: rgb(244 239 231 / 0.6); }

/* ---------- 23. Utility ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.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: 3rem; }
.text-center { text-align: center; }
.text-muted { color: var(--fg-muted); }
.divider { height: 1px; background: var(--border); margin: 3rem 0; }

/* ---------- 24. Motion: enter on view ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--e-out), transform 700ms var(--e-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 25. Print ---------- */
@media print {
  .site-header, .site-footer, .cookie, .nav-drawer, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 26. Selection ---------- */
::selection { background: var(--c-bordeaux-700); color: var(--c-cream-50); }


/* ============================================================
   27. UPDATE v2 — Fehlende Klassen + Footer- und UI-Fixes
   ============================================================
   Ergänzt .service-grid/.service-card/.location-cards/.location-card
   .link-arrow/.tag (werden auf den Detail-Seiten verwendet).
   Fixt Footer-Logo-Verzerrung, Cookie-Einstellungen-Schriftgröße,
   entfernt doppelte "Rechtliches"-Zeile visuell und korrigiert
   den Textfluss in der prose-Sektion.
   ============================================================ */

/* --- 27.1 Service-Grid (Leistungen-Seiten) --- */
.service-grid {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 84rem;
  margin-inline: auto;
}
.service-grid.with-image {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  transition: transform var(--t-med) var(--e-out),
              box-shadow var(--t-med) var(--e-out),
              border-color var(--t-med) var(--e-out);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--c-bordeaux-700);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-med) var(--e-out);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-cream-300);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--c-ink-900);
  margin: 0;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.service-card p {
  color: var(--fg-muted);
  font-size: 0.975rem;
  line-height: 1.55;
  margin: 0;
  text-wrap: pretty;
}
.service-card .tag {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-bordeaux-700);
  background: var(--c-bordeaux-50);
  padding: 0.25rem 0.7rem;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.service-card .link-arrow {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-bordeaux-700);
  letter-spacing: 0.01em;
  transition: gap var(--t-fast) var(--e-out);
}
.service-card:hover .link-arrow { gap: 0.7rem; }

/* Featured card = dark treatment */
.service-card.featured {
  background: var(--c-ink-900);
  color: var(--c-cream-100);
  border-color: var(--c-ink-900);
}
.service-card.featured h3 { color: var(--c-cream-50); }
.service-card.featured p { color: rgb(244 239 231 / 0.78); }
.service-card.featured .tag {
  background: rgb(184 83 101 / 0.18);
  color: var(--c-bordeaux-500);
}
.service-card.featured .link-arrow { color: var(--c-bordeaux-500); }
.service-card.featured::after { background: var(--c-bordeaux-500); }

/* Service-Card with image */
.service-card .card-image {
  margin: -1.75rem -1.5rem 0.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--c-cream-100);
  border-bottom: 1px solid var(--border);
}
.service-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow) var(--e-out);
}
.service-card:hover .card-image img { transform: scale(1.04); }


/* --- 27.2 Location-Cards (Kontakt / Standorte-Hub) --- */
.location-cards {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 840px) {
  .location-cards { grid-template-columns: 1fr 1fr; }
}
.location-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  transition: border-color var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out);
}
.location-card:hover {
  border-color: var(--c-cream-300);
  box-shadow: var(--shadow-md);
}
.location-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.15;
  color: var(--c-ink-900);
  margin: 0.35rem 0 0;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.location-card p {
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}


/* --- 27.3 Prose-Fix + Page-Head-Fix: Textfluss auf Desktop --- */
/* Problem: p { text-wrap: pretty; } auf Detail-Seiten + schmaler max-width
   erzeugt auf manchen Browsern enge Umbrüche. Wir heben die strikte
   Breitenbegrenzung in den Split-Layouts auf und setzen pretty gezielter ein. */

.page-head {
  padding-block: clamp(3rem, 6vw, 6rem) clamp(2rem, 4vw, 4rem);
  background:
    radial-gradient(ellipse at 90% 10%, rgba(139,35,50,0.07), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-head h1 {
  margin-top: 0.25rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.page-head h1 em {
  font-style: italic;
  color: var(--c-bordeaux-700);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

/* In Split-Sektionen: rechte Spalte darf den verfügbaren Platz nutzen */
.split > div > p,
.split > div > ul,
.split > div > ol {
  max-width: 62ch;
}
/* Aber: H2 darf sich NICHT auf 42ch quetschen */
.split > div > h2 {
  max-width: none;
}

/* prose + lead sollen nicht mit zu engem Text-Wrap arbeiten */
.lead {
  text-wrap: pretty;
}
p.pretty {
  text-wrap: pretty;
  max-width: none;
}


/* --- 27.4 Hero-Headline mit sauberem Zeilenumbruch --- */
.hero h1 br {
  display: block;
  content: "";
}


/* --- 27.5 Footer-Fixes --- */
.site-footer img,
.footer-brand img {
  height: 44px !important;
  width: auto !important;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.footer-grid button.inline-link {
  /* Cookie-Einstellungen gleich groß wie andere Footer-Links */
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  font-weight: 400;
  letter-spacing: normal;
  transition: color var(--t-fast) var(--e-out);
}
.footer-grid button.inline-link:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Doppelte Rechtliches-Nav im footer-bottom ausblenden */
.footer-bottom nav[aria-label="Rechtliches im Footer"] {
  display: none;
}


/* --- 27.6 Team-Cards v2 (über-uns mit runden Portraits) --- */
.team-grid-v2 {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 76rem;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .team-grid-v2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .team-grid-v2 { grid-template-columns: repeat(4, 1fr); }
}

.team-card-v2 {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-med) var(--e-out), box-shadow var(--t-med) var(--e-out), border-color var(--t-med) var(--e-out);
  min-height: 380px;
}
.team-card-v2:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-cream-300);
}
.team-card-v2 .avatar-wrap {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-cream-100);
  border: 3px solid var(--bg-elevated);
  box-shadow: 0 6px 20px -6px rgb(26 21 19 / 0.18), 0 0 0 1px var(--border);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-card-v2 .avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card-v2 .avatar-wrap.placeholder {
  background: linear-gradient(135deg, var(--c-cream-100), var(--c-cream-200));
  color: var(--c-bordeaux-700);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.team-card-v2 h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--c-ink-900);
  margin: 0;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.team-card-v2 .role {
  font-size: 0.85rem;
  color: var(--c-bordeaux-700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0;
}
.team-card-v2 .contact {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}
.team-card-v2 .contact a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--t-fast) var(--e-out);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
}
.team-card-v2 .contact a:hover { color: var(--c-bordeaux-700); }
.team-card-v2 .contact svg {
  width: 14px;
  height: 14px;
  opacity: 0.55;
  flex-shrink: 0;
}


/* --- 27.7 Leistungen-Hub mit Bildern: Explainer-Section besser --- */
/* Verhindert engen Zeilenumbruch in "In vier Schritten"-Liste */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
.steps-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.steps-list .step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--c-bordeaux-700);
  line-height: 1;
  font-variation-settings: "opsz" 9, "SOFT" 100;
}
.steps-list .step-body strong {
  display: block;
  color: var(--c-ink-900);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.steps-list .step-body span {
  display: block;
  color: var(--fg-muted);
  line-height: 1.55;
  text-wrap: pretty;
}


/* --- 27.8 Detail-Seiten: Hero ohne die engen Umbrüche --- */
.page-head .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.6;
  color: var(--fg-muted);
  text-wrap: pretty;
  max-width: 62ch;
}

.page-head h1 em br { display: none; }


/* --- 27.9 prose-Section optimiert --- */
.prose {
  max-width: 68ch;
  margin-inline: auto;
}
.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--c-ink-900);
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.3rem;
  color: var(--c-ink-900);
}
.prose p {
  color: var(--c-ink-700);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-top: 1rem;
  text-wrap: pretty;
}
.prose ul, .prose ol {
  padding-left: 1.25rem;
  color: var(--c-ink-700);
  margin-top: 1rem;
}
.prose li { margin-bottom: 0.5rem; line-height: 1.65; }
.prose strong { color: var(--c-ink-900); font-weight: 600; }
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* --- 27.10 Utility: py-N für konsistente Section-Abstände --- */
.py-4 { padding-block: clamp(1.75rem, 3vw, 2.5rem); }
.py-5 { padding-block: clamp(2.5rem, 4vw, 3.5rem); }
.py-6 { padding-block: clamp(3rem, 5vw, 4.5rem); }
.py-7 { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.pb-4 { padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.mt-6 { margin-top: 3.5rem; }


/* --- 27.11 Responsive: Kontaktformular-Feinheiten --- */
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .cta-band {
    padding: 2rem 1.5rem !important;
  }
  .cta-phone { font-size: 1.5rem !important; }
}


/* --- 27.12 Map-Embed-Container (Google Maps) --- */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-cream-100);
  border: 1px solid var(--border);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-embed .map-gate {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--c-cream-100), var(--c-cream-200));
  z-index: 2;
}
.map-embed .map-gate p { margin: 0; }
.map-embed .map-gate .map-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--c-ink-900);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
.map-embed .map-gate .map-hint {
  color: var(--fg-subtle);
  font-size: 0.88rem;
  max-width: 40ch;
  line-height: 1.5;
}


/* --- 27.13 Fix: Headline-Umbruch in cta-band --- */
.cta-band h2 br { display: block; }
.cta-band h2 {
  text-wrap: balance;
}
