/* ==========================================================================
   Physio Jobs Niedersachsen 2026 — Design System
   Sister theme to gutepflege-2026 (modern, warm, slightly playful)
   ========================================================================== */

/* §0 — Self-hosted fonts (GDPR-compliant) */

@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lora';
  src: url('../fonts/Lora-Italic-Variable.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* §1 — Design tokens */
:root {
  /* Brand: soft navy + warm coral, on warm cream paper.
     Navy carries trust; coral keeps the site inviting and contemporary;
     cream neutral does the "friendly" work without bright color noise. */
  --color-primary:      #1F3A5F;  /* soft navy — primary action */
  --color-primary-dark: #142844;  /* hover state */
  --color-primary-soft: #EAF1F8;  /* pale cool blue wash */
  --color-primary-rgb:  31, 58, 95;

  --color-accent:       #E87B5C;  /* warm coral — secondary highlight */
  --color-accent-dark:  #C9613F;
  --color-accent-soft:  #FBEDE6;  /* peach wash */

  /* Dark navy band — header dark variant, footer, final-CTA bg */
  --color-deep:         #142844;
  --color-deep-soft:    #EAF1F8;  /* pale cool blue wash (form section bg) */

  /* Neutrals */
  --color-cream:  #F5EDD8;  /* warm cream paper — visible band against white sections */
  --color-text:   #1F2933;  /* anthracite body text */
  --color-muted:  #5A6B7A;  /* desaturated cool gray */
  --color-border: #E2E5EB;  /* neutral cool gray */
  --color-white:  #FFFFFF;

  /* Brand: WhatsApp green (only place this color is allowed) */
  --color-whatsapp:      #25D366;
  --color-whatsapp-dark: #1EBE57;

  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Fluid type scale — scaled down ~12% for a calmer, less zoomed-in feel */
  --step--1: clamp(0.875rem,   0.85rem + 0.1vw,  0.9375rem);
  --step-0:  clamp(1rem,       0.96rem + 0.15vw, 1.0625rem);
  --step-1:  clamp(1.125rem,   1.07rem + 0.2vw,  1.1875rem);
  --step-2:  clamp(1.1875rem,  1.13rem + 0.25vw, 1.3125rem);
  --step-3:  clamp(1.3125rem,  1.23rem + 0.4vw,  1.5625rem);
  --step-4:  clamp(1.5rem,     1.35rem + 0.7vw,  1.9375rem);
  --step-5:  clamp(1.75rem,    1.55rem + 1vw,    2.375rem);
  --step-6:  clamp(2rem,       1.7rem + 1.4vw,   2.875rem);

  /* Spacing — section padding pulled in for less overwhelm */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 5rem;
  --space-2xl: 6rem;

  --container-xl: 1320px;
  --container-lg: 1140px;
  --container-md:  820px;
  --container-sm:  640px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-btn:  8px;   /* Buttons: businesslike, not pill (sister theme uses pill) */
  --radius-pill: 999px;

  --shadow-card:    0 2px 12px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-hover:   0 8px 28px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.08);
  --shadow-sticky:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-primary: 0 6px 20px rgba(var(--color-primary-rgb), 0.2);

  --header-h: 84px;
}

/* §2 — Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  hyphens: auto;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
/* Subtle contrast bump on photos — neutral/professional (sister site is slightly warmer). */
.section img:not(.site-header__logo img):not(.site-footer__logo):not(.client-logo__img):not(.brand-mark):not([alt=""][role="presentation"]),
.block-hero img,
.hero-overlay__img,
.block-feature-split__image img { filter: contrast(1.03); }
a { color: inherit; text-decoration: none; }

/* §3 — Headings */
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.6em; font-weight: 500; line-height: 1.2; color: var(--color-deep); }
h1, h2 { font-family: var(--font-display); letter-spacing: -0.018em; }
h1 { font-size: var(--step-5); line-height: 1.15; letter-spacing: -0.02em; max-width: 24ch; }
h2 { font-size: var(--step-4); line-height: 1.2; letter-spacing: -0.015em; max-width: 28ch; }
h3 { font-family: var(--font-body); font-size: var(--step-3); font-weight: 600; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: var(--step-2); font-weight: 600; line-height: 1.35; }
h1, h2, h3, h4, .btn, .eyebrow { hyphens: manual; }

/* §4 — Layout containers */
.container, .container-xl { max-width: var(--container-xl); margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-xl) 0; } }
.section--cream { background: var(--color-cream); }
.section--cool  { background: var(--color-deep-soft); }
.section--dark  { background: var(--color-deep); color: var(--color-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }

/* §5 — Eyebrow labels — gold dot, slightly bolder than gutepflege */
.eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 1.85rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.eyebrow::before {
  /* Square mark in coral — site-wide accent moment under every section eyebrow. */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 10px; height: 10px;
  background: var(--color-accent);
  border-radius: 2px;
}

/* §6 — Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-btn); /* 8px — businesslike, vs. pill on sister */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232, 123, 92, 0.3); }
.btn-ghost { background: transparent; color: var(--color-deep); border-color: var(--color-deep); }
.btn-ghost:hover { background: var(--color-deep); color: #fff; }
.btn-accent { background: var(--color-accent); color: var(--color-text); border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }
.btn-whatsapp { background: var(--color-whatsapp); color: #fff; border-color: var(--color-whatsapp); }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); border-color: var(--color-whatsapp-dark); transform: translateY(-1px); }
.btn-large { padding: 1.125rem 2.25rem; font-size: var(--step-1); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: var(--radius-sm); }

/* §7 — Prose */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.25em; }
.prose a:not(.btn) {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
.prose a:not(.btn):hover { text-decoration-color: var(--color-primary); }
.prose strong { font-weight: 600; color: var(--color-text); }
.prose em { font-style: italic; }
.prose mark { background: transparent; color: inherit; padding: 0; font-weight: 600; }
.prose blockquote {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.35;
  border-left: 3px solid var(--color-accent);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}
.prose blockquote cite { display: block; margin-top: 0.75rem; font-size: var(--step-0); font-style: normal; color: var(--color-muted); font-family: var(--font-body); }
.prose blockquote cite::before { content: "— "; }
.prose ul { list-style: none; padding-left: 0; margin: 0 0 1.25em; }
.prose ul li { position: relative; padding-left: 1.75rem; margin-bottom: 0.5rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.prose ul.checks li::before {
  content: "✓"; background: transparent; width: auto; height: auto;
  color: var(--color-primary); font-weight: 700; font-size: 1rem; top: 0.05em;
}
.prose ol { padding-left: 1.5rem; margin: 0 0 1.25em; }
.prose ol li { margin-bottom: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 2rem 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.prose th { background: var(--color-cream); padding: 1rem; text-align: left; font-weight: 600; font-size: var(--step--1); color: var(--color-text); border-bottom: 2px solid var(--color-border); }
.prose td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--color-border); }
.prose tr:nth-child(even) td { background: var(--color-cream); }
.prose tr:last-child td { border-bottom: none; }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--color-muted); max-width: 60ch; }
small, .meta { font-size: var(--step--1); color: var(--color-muted); }

/* §8 — Sticky header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow 0.25s ease, height 0.25s ease, background 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sticky);
  height: calc(var(--header-h) - 8px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom-color: var(--color-border);
}

/* §10b — Transparent-header treatment over photo heroes (home).
   While the .block-hero--photo is in view, the header is transparent and white.
   On scroll past, JS toggles .scrolled and the header switches to opaque + dark text. */
body:has(.block-hero--photo) .site-header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}
body:has(.block-hero--photo) .site-header:not(.scrolled) .site-header__logo img {
  /* Original colored logo over the photo. Drop-shadow keeps it legible. */
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
body:has(.block-hero--photo) .site-header:not(.scrolled) .site-nav__link,
body:has(.block-hero--photo) .site-header:not(.scrolled) .site-header__phone {
  color: #fff;
  background: transparent;
}
body:has(.block-hero--photo) .site-header:not(.scrolled) .site-nav__link:hover,
body:has(.block-hero--photo) .site-header:not(.scrolled) .site-header__phone:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}
body:has(.block-hero--photo) .site-header:not(.scrolled) .hamburger span {
  background: #fff;
}
.site-header__logo img,
.site-nav__link,
.site-header__phone {
  transition: color 0.3s ease, background 0.2s ease, filter 0.3s ease, height 0.25s ease;
}

/* Hero photo extends behind the transparent header and matches viewport height.
   Fixed at 100dvh (with 100vh fallback) so the hero always fills exactly one
   screen, never more. Equal top/bottom padding so flex-centered content sits
   at viewport center. overflow:hidden as a safety net for short viewports. */
body:has(.block-hero--photo) .block-hero--photo {
  margin-top: calc(-1 * var(--header-h));
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  padding-top: var(--header-h);
  padding-bottom: var(--header-h);
  overflow: hidden;
}
.site-header__inner { display: grid; grid-template-columns: max-content 1fr max-content; align-items: center; gap: 2.25rem; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }
.site-header__nav { display: flex; justify-content: center; min-width: 0; }
.site-header__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Logo is 1536x1024 (3:2) — height-driven sizing keeps the header tidy. */
.site-header__logo img { height: 60px; width: auto; max-width: none; transition: height 0.25s ease; }
.site-header.scrolled .site-header__logo img { height: 48px; }
@media (max-width: 1439px) { .site-header__logo img { height: 56px; } .site-header.scrolled .site-header__logo img { height: 44px; } }
@media (max-width: 1024px) { .site-header__logo img { height: 48px; } .site-header.scrolled .site-header__logo img { height: 40px; } }
.site-nav { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.7rem; font-weight: 500;
  font-size: 0.9375rem; color: var(--color-text);
  border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s; white-space: nowrap; position: relative;
}
@media (min-width: 1380px) { .site-nav__link { padding: 0.5rem 0.85rem; font-size: 1rem; } }
.site-nav__link:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.site-nav__link.active { color: var(--color-primary); }
.site-nav__link.active::after { content: ''; position: absolute; left: 0.875rem; right: 0.875rem; bottom: 0.25rem; height: 2px; background: var(--color-primary); border-radius: 2px; }

.site-header__actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.site-header__actions .btn { padding: 0.65rem 1.2rem; font-size: 0.9375rem; }
.site-header__phone, .site-header__whatsapp {
  display: inline-flex; align-items: center; gap: 0.45rem;
  width: 40px; height: 40px; padding: 0; justify-content: center;
  border-radius: var(--radius-sm); transition: color 0.2s, background 0.2s, transform 0.2s; white-space: nowrap;
}
.site-header__phone { color: var(--color-primary); background: var(--color-primary-soft); }
.site-header__phone:hover { transform: scale(1.05); }
.site-header__whatsapp { color: var(--color-whatsapp); background: rgba(37, 211, 102, 0.1); }
.site-header__whatsapp:hover { transform: scale(1.05); }
.site-header__phone-text, .site-header__whatsapp-text { display: none; font-weight: 600; font-size: var(--step--1); }
@media (min-width: 1440px) {
  .site-header__phone-text, .site-header__whatsapp-text { display: inline; }
  .site-header__phone, .site-header__whatsapp { width: auto; height: auto; padding: 0.5rem 0.85rem; background: transparent; }
  .site-header__phone { color: var(--color-text); }
  .site-header__whatsapp { color: var(--color-whatsapp-dark); }
  .site-header__phone:hover { color: var(--color-primary); background: var(--color-primary-soft); transform: none; }
  .site-header__whatsapp:hover { background: rgba(37, 211, 102, 0.1); transform: none; }
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 24px; height: 18px; background: none; border: none; cursor: pointer; padding: 0; }
.hamburger span { display: block; height: 2px; background: var(--color-text); border-radius: 2px; transition: all 0.25s ease; }

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; background: var(--color-white); z-index: 200; display: flex; flex-direction: column; padding: 2rem 1.5rem; transform: translateX(100%); transition: transform 0.25s ease; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__close { align-self: flex-end; background: none; border: none; cursor: pointer; color: var(--color-text); padding: 0.5rem; margin-bottom: 1.5rem; }
.mobile-menu__close svg { width: 22px; height: 22px; }
.mobile-menu__nav { list-style: none; padding: 0; margin: 0; flex: 1; }
.mobile-menu__nav li a {
  display: flex; align-items: center; padding: 1rem 0;
  font-size: var(--step-1); font-weight: 500;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text); min-height: 56px;
}
.mobile-menu__nav li a:hover { color: var(--color-primary); }
.mobile-menu__cta { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }

@media (max-width: 1279px) { .site-nav { display: none; } .hamburger { display: flex; } }
@media (max-width: 1024px) { .site-header__phone, .site-header__whatsapp { display: none; } :root { --header-h: 60px; } }

/* §9 — Hero */
.block-hero { padding: 3.5rem 0 4.5rem; background: linear-gradient(135deg, var(--color-cream) 0%, #fff 60%); overflow: hidden; position: relative; }
/* Text on the left (narrower) | media on the right (wider). center-align so the
   16:9 video keeps its native shape rather than stretching to text-column height. */
.block-hero__inner { display: grid; grid-template-columns: 7fr 5fr; gap: 3rem; align-items: center; max-width: var(--container-xl); margin: 0 auto; padding: 0 1.5rem; }
.block-hero__text { display: flex; flex-direction: column; justify-content: center; }
.block-hero h1 { font-size: var(--step-5); line-height: 1.12; max-width: 22ch; }
.block-hero h1 .salary-strong {
  color: var(--color-primary);
  white-space: nowrap;
}
.block-hero__lede { font-size: var(--step-1); color: var(--color-muted); max-width: 36rem; margin: 1.5rem 0 1.5rem; line-height: 1.65; }
.block-hero__checks { list-style: none; padding: 0; margin: 0 0 2rem; }
.block-hero__checks li { position: relative; padding-left: 1.85rem; margin-bottom: 0.4rem; font-size: var(--step-0); }
.block-hero__checks li::before { content: "✓"; position: absolute; left: 0; top: 0.05em; color: var(--color-primary); font-weight: 700; }
.block-hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.block-hero__sub { margin-top: 0.75rem; font-size: var(--step--1); color: var(--color-muted); }
.block-hero__image { position: relative; aspect-ratio: 1 / 1; }
.block-hero__image img,
.block-hero__image video { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: var(--radius-lg); display: block; }
@media (max-width: 768px) {
  .block-hero { padding: 3rem 0 4rem; }
  .block-hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .block-hero h1 { font-size: var(--step-5); }
  .block-hero__image { display: none; }
}

/* §9b — Hero variant: full-bleed photo with text overlay (ivydentist.com pattern) */
.block-hero--photo {
  position: relative;
  min-height: 64vh;
  padding: 3.5rem 0;
  display: flex;
  align-items: center;
  background: var(--color-deep);
  overflow: hidden;
}
.block-hero--photo .block-hero__photo { position: absolute; inset: 0; z-index: 0; margin: 0; padding: 0; }
.block-hero--photo .block-hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.block-hero--photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(20, 40, 68, 0.92) 0%,
    rgba(31, 58, 95, 0.78) 38%,
    rgba(31, 58, 95, 0.35) 70%,
    rgba(31, 58, 95, 0.05) 100%);
  z-index: 1;
}
.block-hero--photo .block-hero__inner {
  position: relative; z-index: 2;
  display: block;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.block-hero--photo .block-hero__text {
  max-width: 42rem;
  color: #fff;
  text-align: left;
}
.block-hero--photo .eyebrow { color: rgba(255, 255, 255, 0.92); }
.block-hero--photo .eyebrow::before { background: var(--color-accent); }
.block-hero--photo h1 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.18; max-width: 26ch; margin-bottom: 0.5em; }
/* Photo-hero CTAs: trimmed down so the hero feels compact on a typical laptop viewport */
.block-hero--photo .btn-large { padding: 0.75rem 1.4rem; font-size: var(--step-0); }
.block-hero--photo .block-hero__lede { line-height: 1.55; margin: 1rem 0 1.25rem; }
.block-hero--photo .block-hero__sub { margin-top: 0.6rem; font-size: 0.85rem; }
.block-hero--photo .eyebrow { font-size: 0.78rem; margin-bottom: 0.85rem; }
.block-hero--photo .text-accent { color: var(--color-accent); font-style: italic; }
.block-hero--photo .block-hero__lede { color: rgba(255, 255, 255, 0.92); max-width: 34rem; font-size: var(--step-0); }
.block-hero--photo .block-hero__sub { color: rgba(255, 255, 255, 0.78); }
.block-hero--photo .btn-ghost--on-photo {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.block-hero--photo .btn-ghost--on-photo:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #fff;
  color: #fff;
}
@media (max-width: 768px) {
  .block-hero--photo {
    min-height: 0;
    padding: 3.5rem 0 3rem;
  }
  .block-hero--photo h1 { font-size: var(--step-5); }
  .block-hero--photo::after {
    background: linear-gradient(180deg,
      rgba(20, 40, 68, 0.55) 0%,
      rgba(31, 58, 95, 0.85) 60%,
      rgba(31, 58, 95, 0.95) 100%);
  }
  .block-hero--photo .block-hero__photo img { object-position: center 20%; }
}

/* §9c — Trust strip below hero */
.block-trust-strip {
  background: var(--color-deep);
  color: #fff;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trust-strip {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: nowrap; gap: 2rem;
  justify-content: space-between; align-items: center;
}
.trust-strip li {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
.trust-strip li svg { flex-shrink: 0; opacity: 0.85; }
@media (max-width: 1024px) {
  .trust-strip { gap: 1.25rem; font-size: 0.875rem; }
  .trust-strip li { font-size: 0.875rem; }
}
@media (max-width: 768px) {
  .trust-strip { flex-wrap: wrap; justify-content: center; gap: 0.85rem 1.5rem; }
}

/* §10 — Trust badges */
.block-trust-badges { padding: 2rem 0; background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.block-trust-badges__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-badge {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-decoration: none; color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) { .trust-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); } }
.trust-badge__icon {
  flex-shrink: 0; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: var(--color-white);
  border-radius: 50%;
}
.trust-badge__icon--accent { background: var(--color-accent); color: var(--color-text); }
.trust-badge__icon svg { width: 22px; height: 22px; }
.trust-badge__text strong { display: block; font-size: var(--step-0); font-weight: 700; margin-bottom: 0.2rem; }
.trust-badge__text span { font-size: var(--step--1); color: var(--color-muted); line-height: 1.4; }
@media (max-width: 768px) { .block-trust-badges__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .block-trust-badges__grid { grid-template-columns: 1fr; } }

/* Stats band — animated counters */
.block-stats { padding: 3.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat__label { font-size: var(--step--1); color: var(--color-muted); font-weight: 500; line-height: 1.4; max-width: 18ch; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }

/* §11 — Service cards */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 2rem; background: #fff;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none; color: inherit; display: block;
}
@media (hover: hover) { .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-top: 3px solid var(--color-accent); padding-top: calc(2rem - 2px); } }
.service-card__icon {
  width: 52px; height: 52px;
  background: var(--color-primary); color: var(--color-white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card__icon--accent { background: var(--color-accent); color: var(--color-text); }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.service-card p { color: var(--color-muted); font-size: var(--step-0); line-height: 1.65; margin: 0 0 1rem; }
.service-card__link { display: inline-block; color: var(--color-primary); font-weight: 600; font-size: var(--step-0); }

/* §12 — Feature split */
.block-feature-split { container-type: inline-size; }
.block-feature-split__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.block-feature-split--reverse .block-feature-split__inner { direction: rtl; }
.block-feature-split--reverse .block-feature-split__inner > * { direction: ltr; }
.block-feature-split__image { position: relative; }
.block-feature-split__image::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.block-feature-split--reverse .block-feature-split__image::before { inset: 16px 16px -16px -16px; background: var(--color-accent-soft); }
.block-feature-split__image img { border-radius: var(--radius-lg); width: 100%; height: auto; }
.block-feature-split__text .eyebrow { display: block; }
.block-feature-split__text h2 { margin-top: 0.5rem; }
.block-feature-split__text p { color: var(--color-muted); margin-bottom: 1.5rem; }
@media (max-width: 768px) {
  .block-feature-split__inner { grid-template-columns: 1fr; gap: 2.5rem; direction: ltr !important; }
  .block-feature-split__image { display: none; }
}

/* §13 — Process tabs */
.block-process { background: var(--color-cream); }
.block-process__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.process-tabs { list-style: none; padding: 0; margin: 2rem 0 0; }
.process-tab { border-bottom: 1px solid var(--color-border); }
.process-tab__btn {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; padding: 1.25rem 0;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 500;
  color: var(--color-muted); transition: color 0.2s;
}
.process-tab__btn:hover { color: var(--color-primary); }
.process-tab.active .process-tab__btn { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); margin-bottom: -1px; }
.process-tab__num { font-family: var(--font-body); font-size: 1.5rem; font-weight: 600; color: var(--color-border); min-width: 2rem; transition: color 0.2s; }
.process-tab.active .process-tab__num { color: var(--color-primary); }
.process-content { display: none; }
.process-content.active { display: block; }
.process-content__body { padding: 2rem 0; }
.process-content__step { font-size: var(--step-5); font-family: var(--font-display); font-weight: 700; color: var(--color-primary-soft); line-height: 1; margin-bottom: 0.5rem; }
.process-content h3 { font-size: var(--step-3); margin: 0.5rem 0 1rem; }
.process-content p { color: var(--color-muted); max-width: 38ch; }
@media (max-width: 768px) { .block-process__inner { grid-template-columns: 1fr; gap: 2rem; } .process-content__step { font-size: var(--step-4); } }

/* §14 — Why grid */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
/* --wide is used for grids of 6 — 3x2 keeps every row full. */
.why-grid--wide { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .why-grid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid--wide { grid-template-columns: 1fr; } .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: 2rem; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
/* Why-card icons: navy variant — calmer than the red service-card icons,
   gives the page two icon styles within boss-approved colors. */
.why-card__icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-deep-soft); margin-bottom: 1rem; color: var(--color-deep); }
.why-card__icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: var(--step-2); margin-bottom: 0.5rem; }
.why-card p { color: var(--color-muted); font-size: var(--step-0); line-height: 1.65; margin: 0; }

.block-cost-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 900px) { .block-cost-summary { grid-template-columns: 1fr; gap: 2.5rem; } .block-cost-summary .pricing-card { margin: 0 auto; } }

/* §15 — Salary card (pricing card) */
.pricing-card {
  background: linear-gradient(135deg, var(--color-primary-soft) 0%, #fff 60%);
  border: 2px solid var(--color-primary-soft);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  max-width: 560px;
  position: relative;
}
.pricing-card__eyebrow {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--step-6);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
  line-height: 1;
  letter-spacing: -0.025em;
}
.pricing-card__sub { color: var(--color-muted); font-size: var(--step--1); margin-bottom: 1.5rem; line-height: 1.5; }
.pricing-card__benefits { list-style: none; padding: 0; margin: 0 0 2rem; }
.pricing-card__benefits li { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.6rem 0; border-bottom: 1px solid var(--color-border); font-size: var(--step-0); }
.pricing-card__benefits li:last-child { border-bottom: none; }
.pricing-card__benefits li::before { content: "✓"; color: var(--color-primary); font-weight: 700; flex-shrink: 0; }

/* §16 — Testimonials placeholder */
.block-testimonials { background: var(--color-cream); }
.testimonials-placeholder {
  max-width: 640px; margin: 1.5rem auto 0;
  padding: 2.5rem 2rem;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-card);
}
.testimonials-placeholder__stars { color: #FBB41A; font-size: 1.5rem; letter-spacing: 0.12em; margin-bottom: 0.75rem; }
.testimonials-placeholder__text { margin: 0; color: var(--color-muted); line-height: 1.6; }

/* §17 — FAQ accordion */
.faq-list { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 0; cursor: pointer;
  font-weight: 600; font-size: var(--step-1);
  list-style: none; transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--color-primary); }
.faq-item[open] summary,
.faq-item details[open] summary { color: var(--color-primary); }
.faq-item summary::after {
  /* Two crossed lines drawn with linear-gradient. Cleaner rotation than a + glyph. */
  content: "";
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  transform-origin: center;
  transition: transform 0.3s ease, color 0.2s ease;
}
/* Two structures in use across the site:
     /faq/                <li class="faq-item"><details>...</details></li>
     /einrichtungen/ etc. <details class="faq-item">...</details>
   Both selectors below cover the open-state rotation. */
.faq-item[open] summary::after,
.faq-item details[open] summary::after {
  transform: rotate(45deg);
  color: var(--color-accent);
}
.faq-answer { padding: 0 0 1.25rem; color: var(--color-muted); line-height: 1.7; }
.faq-answer a { color: var(--color-primary); text-decoration: underline; }

/* §18 — Recruiter card (single-person team strip) */
.recruiter-card {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 2rem; align-items: center;
  max-width: 720px; margin: 2.5rem auto 0;
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 2rem;
}
.recruiter-card__photo {
  width: 100%; aspect-ratio: 3/4;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--color-cream);
}
.recruiter-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.recruiter-card__name { font-family: var(--font-display); font-size: var(--step-3); margin: 0 0 0.25rem; }
.recruiter-card__role { color: var(--color-primary); font-weight: 600; margin: 0 0 1rem; font-size: var(--step-0); }
.recruiter-card__contacts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.recruiter-card__contacts a { font-size: var(--step--1); }
@media (max-width: 720px) {
  .recruiter-card { grid-template-columns: 1fr; text-align: center; }
  .recruiter-card__photo { max-width: 200px; margin: 0 auto; }
  .recruiter-card__contacts { justify-content: center; }
}

/* §20 — Contact block */
.block-contact { background: var(--color-cream); }
.block-contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.contact-details li {
  display: flex; align-items: flex-start; gap: 0.875rem;
  padding: 0.875rem 0; border-bottom: 1px solid var(--color-border); font-size: var(--step-0);
}
.contact-details li:last-child { border-bottom: none; }
.contact-details__icon { color: var(--color-primary); font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1em; }
.contact-details__icon--whatsapp { color: var(--color-whatsapp); }
@media (max-width: 768px) { .block-contact__inner { grid-template-columns: 1fr; gap: 2rem; } }

/* §21 — CTA strip */
.block-cta-strip { background: var(--color-cream); text-align: center; }
.block-cta-strip h2 { margin: 0 auto 0.75rem; }
.block-cta-strip p { color: var(--color-muted); max-width: 50ch; margin: 0 auto 2rem; }
.block-cta-strip__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* §22 — Info box */
.info-box { background: var(--color-cream); border-left: 4px solid var(--color-accent); border-radius: var(--radius-md); padding: 1.5rem 2rem; margin: 2rem 0; }
.info-box h2, .info-box h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.info-box ul { list-style: none; padding: 0; margin: 0; }
.info-box ul li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  /* explicit reset of .prose ul li (padding-left:1.75rem; position:relative) */
  padding: 0.5rem 0;
  position: static;
  font-size: var(--step-0);
  border-bottom: 1px solid var(--color-border);
}
.info-box ul li:last-child { border-bottom: none; }
.info-box ul li::before {
  /* Full reset of .prose ul li::before so the ✓ doesn't sit on a yellow dot */
  content: "✓";
  position: static;
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  top: auto;
  left: auto;
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* §24 — Inline CTA */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; background: var(--color-primary-soft);
  border: 1px solid var(--color-primary); border-radius: var(--radius-lg);
  padding: 1.5rem 2rem; margin: 3rem 0; flex-wrap: wrap;
}
.inline-cta p { margin: 0; font-weight: 500; }

/* §25 — Footer */
.site-footer { background: var(--color-deep); color: rgba(255,255,255,0.85); padding: 4rem 0 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.site-footer__logo { height: 64px; width: auto; margin-bottom: 1rem; display: block; }
.site-footer__tagline { font-size: var(--step--1); color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.6; max-width: 36ch; }
.site-footer__contact { list-style: none; padding: 0; margin: 0; }
.site-footer__contact li { margin-bottom: 0.5rem; }
.site-footer__contact a, .site-footer__contact span {
  display: flex; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.9); font-size: var(--step--1);
  transition: color 0.15s;
}
.site-footer__contact a:hover { color: var(--color-white); }
.footer-col h4 {
  color: var(--color-white); font-size: var(--step--1);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.78); font-size: var(--step--1); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--color-white); }
.footer-hours { font-size: var(--step--1); color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.8; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  font-size: var(--step--1); color: rgba(255,255,255,0.5);
}
.site-footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.site-footer__legal a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.site-footer__legal a:hover { color: rgba(255,255,255,0.85); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* §26 — Floating mobile actions (call + WhatsApp) */
.float-actions { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 90; display: none; flex-direction: column; gap: 0.75rem; }
.float-call, .float-whatsapp {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: transform 0.2s, opacity 0.3s ease;
  opacity: 0;
}
.float-actions.visible .float-call,
.float-actions.visible .float-whatsapp { opacity: 1; }
.float-call { background: var(--color-primary); color: #fff; }
.float-whatsapp { background: var(--color-whatsapp); color: #fff; }
.float-call:hover, .float-whatsapp:hover { transform: scale(1.08); }
@media (max-width: 1024px) { .float-actions { display: flex; } }

/* §27 — Section header */
.section-header { margin-bottom: 3rem; }
.section-header--center { text-align: center; }
.section-header--center h2 { margin-left: auto; margin-right: auto; }

/* §28 — Overlay hero */
.hero-overlay { position: relative; width: 100%; min-height: 460px; overflow: hidden; background: var(--color-deep); isolation: isolate; }
.hero-overlay__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 0; }
.hero-overlay__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,14,10,0.78) 0%, rgba(20,14,10,0.5) 45%, rgba(20,14,10,0.2) 100%),
              linear-gradient(180deg, rgba(20,14,10,0.25) 0%, rgba(20,14,10,0) 30%, rgba(20,14,10,0.4) 100%);
}
.hero-overlay__inner { position: relative; z-index: 2; padding: 2.5rem 1.5rem 3rem; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-overlay__text { max-width: 44rem; color: var(--color-white); }
.hero-overlay__title { font-family: var(--font-display); font-size: var(--step-6); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-white); margin: 0 0 1rem; max-width: 24ch; }
.hero-overlay__lede { font-size: var(--step-1); line-height: 1.55; color: rgba(255,255,255,0.92); margin: 0 0 1.5rem; max-width: 38rem; }
.hero-overlay__ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-ghost--onimg { color: var(--color-white); border-color: rgba(255,255,255,0.55); background: transparent; }
.btn-ghost--onimg:hover { background: var(--color-white); color: var(--color-text); border-color: var(--color-white); }
.hero-overlay .breadcrumb { color: rgba(255,255,255,0.78); padding: 0; margin-bottom: auto; }
.hero-overlay .breadcrumb a, .hero-overlay .breadcrumb li:last-child { color: rgba(255,255,255,0.78); }
.hero-overlay .breadcrumb a:hover { color: var(--color-white); }
@media (max-width: 768px) {
  .hero-overlay, .hero-overlay__inner { min-height: 380px; }
  .hero-overlay__scrim { background: linear-gradient(180deg, rgba(20,14,10,0.35) 0%, rgba(20,14,10,0.65) 60%, rgba(20,14,10,0.82) 100%); }
  .hero-overlay__inner { padding: 2rem 1.25rem 2.25rem; }
  .hero-overlay__title { font-size: var(--step-5); }
}

/* §29 — Breadcrumb */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 1rem 0; margin: 0; font-size: var(--step--1); color: var(--color-muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb li:last-child { color: var(--color-text); }

/* §30 — Scroll animations */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }
[data-animate-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s;   opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(7) { transition-delay: 0.6s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(8) { transition-delay: 0.7s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(n+9) { transition-delay: 0.8s; opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-animate-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* §31 — Utility classes */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent-dark); }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -99px; left: 1rem; background: var(--color-primary); color: #fff; padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-weight: 600; z-index: 999; }
.skip-link:focus { top: 1rem; }

/* ==========================================================================
   Forms — pn-form (mirrors gp-form, namespaced for this theme)
   ========================================================================== */
.pn-form { display: grid; gap: 1.25rem; margin: 0; padding: 0; border: 0; }
.pn-form__notice { padding: 1.25rem 1.5rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; font-size: var(--step-0); line-height: 1.55; }
.pn-form__notice--ok { background: var(--color-accent-soft); border: 1px solid var(--color-accent); color: var(--color-text); }
.pn-form__notice--err { background: var(--color-primary-soft); border: 1px solid var(--color-primary); color: var(--color-text); }
.pn-form__row { display: grid; gap: 1.25rem; }
.pn-form__row--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .pn-form__row--2col { grid-template-columns: 1fr; gap: 1rem; } }
.pn-field { display: grid; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.pn-field__label { font-size: var(--step--1); font-weight: 600; color: var(--color-text); }
.pn-field__label--optional::after { content: " (optional)"; color: var(--color-muted); font-weight: 400; }
.pn-field__req { color: var(--color-primary); font-weight: 700; }
.pn-form input[type="text"],
.pn-form input[type="email"],
.pn-form input[type="tel"],
.pn-form input[type="date"],
.pn-form input[type="number"],
.pn-form input[type="file"],
.pn-form select,
.pn-form textarea {
  width: 100%; font-family: inherit; font-size: var(--step-0);
  color: var(--color-text); background: var(--color-white);
  border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none; appearance: none;
}
.pn-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235a5a5a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 12px 8px; padding-right: 2.5rem; cursor: pointer;
}
.pn-form textarea { resize: vertical; min-height: 120px; }
.pn-form input:focus, .pn-form select:focus, .pn-form textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}
.pn-choice { display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr; }
.pn-choice--stack { grid-template-columns: 1fr; }
.pn-choice--row { grid-template-columns: repeat(3, 1fr); }
.pn-choice label {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--color-white); border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-weight: 500; font-size: var(--step-0); color: var(--color-text); line-height: 1.3;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  min-height: 52px;
}
.pn-choice label:hover { border-color: var(--color-primary); }
.pn-choice label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 15%, transparent);
}
.pn-choice input[type="radio"], .pn-choice input[type="checkbox"] { margin: 0; accent-color: var(--color-primary); flex-shrink: 0; }
@media (max-width: 640px) {
  .pn-choice { grid-template-columns: 1fr; }
  .pn-choice--row { grid-template-columns: repeat(3, 1fr); }
}
.pn-field--check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: flex-start; font-size: var(--step--1); line-height: 1.55; color: var(--color-muted); }
.pn-field--check input { margin-top: 0.3rem; accent-color: var(--color-primary); }
.pn-field--check a { color: var(--color-primary); text-decoration: underline; }
.pn-form__actions { display: flex; justify-content: flex-start; gap: 0.75rem; margin-top: 0.5rem; flex-wrap: wrap; }

/* §Wizard */
.pn-form--bewerbung_kurz, .pn-form--bewerbung_lang { gap: 2rem; }
.pn-wizard__progress {
  list-style: none; margin: 0 0 0.5rem; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem;
}
.pn-wizard__progress li {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--color-cream); border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 500; color: var(--color-muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.pn-wizard__progress li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-white); color: var(--color-muted);
  font-weight: 700; font-size: 0.8125rem; flex-shrink: 0;
}
.pn-wizard__progress li.is-current { background: var(--color-primary); color: #fff; }
.pn-wizard__progress li.is-current span { background: #fff; color: var(--color-primary); }
.pn-wizard__progress li.is-done { background: var(--color-primary-soft); color: var(--color-primary); }
.pn-wizard__progress li.is-done span { background: var(--color-primary); color: #fff; }
@media (max-width: 640px) {
  .pn-wizard__progress { grid-template-columns: repeat(4, 1fr); gap: 0.25rem; }
  .pn-wizard__progress li { flex-direction: column; gap: 0.25rem; padding: 0.5rem 0.25rem; font-size: 0.75rem; text-align: center; }
}
.pn-wizard__step { display: none; }
.pn-wizard__step.is-active { display: grid; gap: 1.25rem; }
.pn-wizard__q { font-family: var(--font-body); font-size: var(--step-3); font-weight: 600; margin: 0; line-height: 1.25; }
.pn-wizard__hint { color: var(--color-muted); margin: -0.5rem 0 0; font-size: var(--step-0); }
.pn-wizard__nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; }
.pn-wizard__nav button[disabled] { opacity: 0.4; cursor: not-allowed; }
.pn-wizard__notice {
  padding: 1rem 1.25rem;
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* §TOC */
.toc { background: var(--color-cream); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; margin: 0; }
.toc h2 { font-size: var(--step-0); font-family: var(--font-body); font-weight: 700; margin-bottom: 0.875rem; }
.toc ol { padding-left: 1.25rem; margin: 0; }
.toc li { margin-bottom: 0.35rem; font-size: var(--step--1); }
.toc a { color: var(--color-text); transition: color 0.15s; }
.toc a:hover { color: var(--color-primary); }

.pillar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.pillar-toc { position: sticky; top: 6rem; }
@media (max-width: 900px) {
  .pillar-layout { grid-template-columns: 1fr; }
  .pillar-toc { position: static; order: -1; margin-bottom: 1.5rem; }
}

/* §Kontakt page — full-width form card with generous breathing room */
.pn-kontakt-intro { padding-bottom: 2rem; }
.pn-kontakt-intro__inner { text-align: center; }
.pn-kontakt-intro__inner .eyebrow { display: inline-flex; }
.pn-kontakt-intro__inner h1 { max-width: none; margin-left: auto; margin-right: auto; }
.pn-kontakt-intro__inner .lede { margin-left: auto; margin-right: auto; }

.section--form { background: var(--color-cream); padding-top: 0; padding-bottom: 4rem; }
@media (min-width: 768px) { .section--form { padding-bottom: 6rem; } }

.pn-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: 24px;
  padding: clamp(1.75rem, 3.5vw, 3.5rem);
  box-shadow: 0 12px 40px rgba(63, 79, 37, 0.06), 0 2px 8px rgba(63, 79, 37, 0.04);
  margin-top: -2.5rem;
  position: relative;
}
@media (max-width: 640px) {
  .pn-form-card { padding: 1.5rem 1.25rem; border-radius: 18px; margin-top: -1.5rem; }
}

/* Generous, breathable layout inside the form card */
.pn-form-card .pn-form { gap: 1.75rem; }
.pn-form-card .note-bar { margin-bottom: 0.5rem; border-radius: 14px; padding: 1.1rem 1.4rem; }
.pn-form-card .pn-form__notice { padding: 1.25rem 1.5rem; border-radius: 14px; border-width: 1.5px; }
.pn-form-card .pn-form__row,
.pn-form-card .pn-form__row--2col { gap: 1.5rem; }
.pn-form-card .pn-field { gap: 0.55rem; }
.pn-form-card .pn-field__label {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-deep);
  font-weight: 700;
}
.pn-form-card .pn-field__label--optional::after { color: var(--color-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.pn-form-card .pn-field__req { color: var(--color-primary); }

.pn-form-card .pn-form input[type="text"],
.pn-form-card .pn-form input[type="email"],
.pn-form-card .pn-form input[type="tel"],
.pn-form-card .pn-form input[type="number"],
.pn-form-card .pn-form input[type="date"],
.pn-form-card .pn-form select,
.pn-form-card .pn-form textarea {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  font-size: 1.0625rem;
  border-width: 1.5px;
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pn-form-card .pn-form input:hover:not(:focus),
.pn-form-card .pn-form select:hover:not(:focus),
.pn-form-card .pn-form textarea:hover:not(:focus) {
  border-color: color-mix(in srgb, var(--color-primary) 50%, var(--color-border));
}
.pn-form-card .pn-form textarea { min-height: 160px; padding: 1rem 1.15rem; }
.pn-form-card .pn-form input:focus,
.pn-form-card .pn-form select:focus,
.pn-form-card .pn-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.18);
}

/* Radio / checkbox tile groups — bigger touch targets, softer rounded */
.pn-form-card .pn-choice { gap: 0.75rem; }
.pn-form-card .pn-choice label {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  min-height: 60px;
  border-width: 2px;
  background: var(--color-white);
}
.pn-form-card .pn-choice label:hover { background: color-mix(in srgb, var(--color-primary-soft) 60%, var(--color-white)); }
.pn-form-card .pn-choice label:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-deep);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.18);
}

/* Group radio fieldsets — pad them as visual sub-groups */
.pn-form-card .pn-form > fieldset.pn-field {
  gap: 0.85rem;
  padding: 1.5rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: 16px;
}
.pn-form-card .pn-form > fieldset.pn-field > .pn-field__label,
.pn-form-card .pn-form > fieldset.pn-field > legend.pn-field__label {
  margin-bottom: 0.25rem;
}

/* Consent box — visually distinct, soft sage tint */
.pn-form-card .pn-field--check {
  padding: 1.25rem 1.5rem;
  background: var(--color-primary-soft);
  border: 1px solid color-mix(in srgb, var(--color-primary) 25%, transparent);
  border-radius: 14px;
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.6;
}
.pn-form-card .pn-field--check a { color: var(--color-primary-dark); font-weight: 600; }

/* Submit button row */
.pn-form-card .pn-form__actions { margin-top: 1rem; justify-content: center; }
.pn-form-card .pn-form__actions .btn { padding: 1.1rem 2.4rem; border-radius: 12px; font-size: 1.0625rem; }

/* "How it goes from here" direct-contact band below the why-grid */
.kontakt-direct {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 4px 16px rgba(63, 79, 37, 0.04);
}
.kontakt-direct__title strong { display: block; font-size: 1.0625rem; color: var(--color-deep); margin-bottom: 0.25rem; }
.kontakt-direct__title p { margin: 0; color: var(--color-muted); font-size: 0.9375rem; }
.kontakt-direct__items { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.kontakt-direct__items li { margin: 0; }
.kontakt-direct__items a,
.kontakt-direct__items .kontakt-direct__hours {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--color-primary-soft);
  border-radius: 10px;
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.kontakt-direct__items a:hover { background: var(--color-primary); color: #fff; }
.kontakt-direct__items .kontakt-direct__hours { background: transparent; color: var(--color-muted); font-weight: 500; }
@media (max-width: 720px) {
  .kontakt-direct { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .kontakt-direct__items { flex-direction: column; align-items: stretch; }
  .kontakt-direct__items a, .kontakt-direct__items .kontakt-direct__hours { justify-content: center; }
}

/* Map placeholder */
.map-container { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-border); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.map-container iframe { width: 100%; height: 100%; min-height: 320px; border: none; }

/* Tick marks */
.tick { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5em; font-weight: 700; line-height: 1; }
.tick--yes { color: var(--color-primary); }
.tick--no { color: var(--color-muted); }

/* ==========================================================================
   Video swap (Therapie dort, wo Menschen leben)
   ========================================================================== */
.block-feature-split__video video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* ==========================================================================
   Benefits section — decorative skeleton
   ========================================================================== */
.block-benefits { position: relative; overflow: hidden; }
.block-benefits__deco {
  position: absolute;
  right: -3rem;
  bottom: -2rem;
  width: clamp(180px, 22vw, 360px);
  height: auto;
  opacity: 0.10;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  filter: none;
}
.block-benefits .container-xl { position: relative; z-index: 1; }
@media (max-width: 768px) {
  .block-benefits__deco { right: -3rem; bottom: -3rem; opacity: 0.07; }
}

/* ==========================================================================
   Testimonial carousel
   ========================================================================== */
.testimonial-carousel { position: relative; margin-top: 1rem; }
.testimonial-carousel__viewport {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 1rem 0.25rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.testimonial-carousel__viewport::-webkit-scrollbar { display: none; }

.testimonial-card {
  flex: 0 0 calc((100% - 3rem) / 3); /* 3 visible by default */
  min-width: 280px;
  max-width: 380px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  scroll-snap-align: start;
  display: grid;
  gap: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.testimonial-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-cream);
}
.testimonial-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}

.testimonial-card__stars {
  color: #FBB41A;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: -0.25rem;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  margin: 0;
}

.testimonial-card__bio {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}

.testimonial-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.testimonial-carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.testimonial-carousel__btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.testimonial-carousel__btn[data-pn-carousel-prev] svg { transform: rotate(180deg); }

.testimonial-carousel__dots {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.testimonial-carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.testimonial-carousel__dot.is-active {
  background: var(--color-primary);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .testimonial-card { flex-basis: calc((100% - 1.5rem) / 2); }
}
@media (max-width: 640px) {
  .testimonial-card { flex-basis: 86%; }
}

/* Map figure caption — used on the planbarkeit cellemap */
.map-figure { margin: 0; }
.map-figure__caption {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--color-muted);
  font-style: italic;
  text-align: center;
}

/* ==========================================================================
   B2B EXTENSIONS — physiotherapie-2026 only
   Client carousel + grid, Ablauf timeline, comparison block, audience cards
   ========================================================================== */

/* §B1 — Client logo carousel (home) — auto-scrolling marquee */
.block-clients { background: var(--color-cream); padding: 4rem 0; overflow: hidden; }
.block-clients .container-xl { position: relative; }
.block-clients__intro { text-align: center; max-width: 60ch; margin: 0 auto 2.5rem; }
.block-clients__intro .eyebrow { display: inline-block; }
.block-clients__intro h2 { font-size: var(--step-3); margin: 0 auto 0.75rem; max-width: none; }
.block-clients__intro p { color: var(--color-muted); margin: 0 auto; }

.client-carousel { position: relative; mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
.client-carousel__track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: client-marquee 45s linear infinite;
  will-change: transform;
}
@keyframes client-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.client-carousel:hover .client-carousel__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .client-carousel__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; gap: 2rem; }
  .client-carousel { mask-image: none; -webkit-mask-image: none; }
}
.client-carousel__item { flex-shrink: 0; position: relative; width: 200px; }
.client-carousel__item + .client-carousel__item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-border);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (max-width: 768px) {
  .client-carousel__item { width: 150px; }
  .client-carousel__item + .client-carousel__item::before { left: -1.25rem; }
}
.client-carousel__item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 80px; padding: 0.5rem; border-radius: var(--radius-md); }
.client-logo__img { max-height: 56px; width: auto; max-width: 100%; height: auto; object-fit: contain; }
.client-carousel .client-logo__img { filter: grayscale(1); opacity: 0.7; transition: filter 0.35s ease, opacity 0.35s ease; }
.client-carousel__item a:hover .client-logo__img,
.client-carousel__item a:focus-visible .client-logo__img { filter: grayscale(0); opacity: 1; }
@media (max-width: 768px) {
  .client-logo__img { max-height: 44px; max-width: 160px; }
  .client-carousel__track { gap: 2.5rem; animation-duration: 30s; }
}

/* §B2 — Client grid (full /kunden/ page) */
.client-grid {
  /* Fixed 3-col on desktop so any logo count divisible by 3 lands square.
     Currently 6 logos = 3x2; the operator can bump to repeat(4,1fr) once they
     exceed ~12 logos and want a denser layout. */
  list-style: none; padding: 0; margin: 2.5rem auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .client-grid { grid-template-columns: 1fr; } }
.client-grid__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex; align-items: center; justify-content: center;
  min-height: 160px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.client-grid__item:hover { transform: translateY(-2px); border-color: var(--color-primary-soft); box-shadow: var(--shadow-card); }
.client-grid__item a { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; width: 100%; }
.client-grid__item .client-logo__img { max-height: 72px; max-width: 100%; }
.client-grid__name { font-size: var(--step--1); color: var(--color-muted); font-weight: 500; text-align: center; }

/* §B3 — Ablauf timeline (5 step horizontal) */
.block-ablauf { padding: 4rem 0; }
.ablauf-list {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
  position: relative;
  counter-reset: ablauf;
}
.ablauf-list::before {
  content: ''; position: absolute; top: 22px; left: 5%; right: 5%; height: 2px;
  background: var(--color-primary-soft); z-index: 0;
}
.ablauf-step { position: relative; z-index: 1; counter-increment: ablauf; }
.ablauf-step__num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: var(--color-white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1;
  margin: 0 auto 1rem;
  box-shadow: 0 0 0 6px var(--color-white);
}
.ablauf-step__num::before { content: counter(ablauf); }
.ablauf-step h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; margin: 0 0 0.5rem; text-align: center; }
.ablauf-step p { color: var(--color-muted); font-size: var(--step--1); margin: 0; line-height: 1.55; text-align: center; }
@media (max-width: 900px) {
  .ablauf-list { grid-template-columns: 1fr; gap: 1.5rem; }
  .ablauf-list::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .ablauf-step { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; text-align: left; }
  .ablauf-step__num { margin: 0; }
  .ablauf-step h3, .ablauf-step p { text-align: left; }
}

/* §B4 — Two-column comparison (Was wir übernehmen / Was Ihre Einrichtung beibehält) */
.compare-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2rem 0 0; }
.compare-col {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}
.compare-col--us { border-top: 4px solid var(--color-primary); }
.compare-col--you { border-top: 4px solid var(--color-accent); }
.compare-col h3 { font-size: var(--step-2); margin: 0 0 1rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col ul li { position: relative; padding-left: 1.85rem; margin-bottom: 0.5rem; line-height: 1.5; }
.compare-col ul li::before { content: '✓'; position: absolute; left: 0; top: 0.05em; color: var(--color-primary); font-weight: 700; }
.compare-col--you ul li::before { color: var(--color-accent-dark); }
@media (max-width: 768px) { .compare-2col { grid-template-columns: 1fr; gap: 1.25rem; } }

/* §B5 — Audience cards (Für welche Einrichtungen?) — uses service-card primitives */
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 1024px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .audience-grid { grid-template-columns: 1fr; } }

/* §B6 — Therapieziele list (multi-column inline) */
.goal-grid {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.5rem 1.5rem;
}
.goal-grid li { position: relative; padding-left: 1.5rem; line-height: 1.5; }
.goal-grid li::before { content: '✓'; position: absolute; left: 0; top: 0.05em; color: var(--color-primary); font-weight: 700; }

/* §B7 — Trust note bar (the form intro warning, the regional coverage note) */
.note-bar {
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: var(--step--1);
  line-height: 1.55;
  color: var(--color-text);
}
.note-bar strong { color: var(--color-text); }

/* §B8 — Team grid (4 cards, square photos) */
.team-grid {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.team-card__photo { aspect-ratio: 4 / 5; background: var(--color-cream); overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-card__body { padding: 1.5rem; }
.team-card__name { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; margin: 0 0 0.25rem; }
.team-card__role { color: var(--color-primary); font-weight: 600; font-size: var(--step--1); margin: 0; }

/* Physios banner: equal-height, evenly-spaced grid sitting flush with the
   upper team section (both on --cream so they read as one team area). */
.pn-physios { padding-top: 2.5rem; }
.pn-physios .team-grid { grid-template-columns: repeat(4, 1fr); }
.pn-physios .team-card { display: flex; flex-direction: column; }
.pn-physios .team-card__body { flex: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 1.25rem; }
.pn-physios .team-card__name { font-size: var(--step-1); }
@media (max-width: 1024px) { .pn-physios .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pn-physios .team-grid { grid-template-columns: 1fr; } }

/* §B9 — Final CTA bar (slightly different visual — fills cream block) */
.block-final-cta { background: var(--color-deep); color: var(--color-white); }
.block-final-cta h2 { color: var(--color-white); margin-left: auto; margin-right: auto; }
.block-final-cta p { color: rgba(255,255,255,0.85); max-width: 60ch; margin: 0 auto 2rem; }
.block-final-cta .btn-ghost { color: var(--color-white); border-color: rgba(255,255,255,0.45); }
.block-final-cta .btn-ghost:hover { background: var(--color-white); color: var(--color-deep); border-color: var(--color-white); }
.block-final-cta__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.block-final-cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* §B10 — Region pferd accent (footer / header decoration) */
.brand-mark { display: inline-block; vertical-align: middle; opacity: 0.85; }

/* ==========================================================================
   §C — Mobile polish
   Consolidated mobile rules that fix common edge-touching, overflow, and
   button-sizing issues. Applied after all section-specific rules so they win
   the cascade where needed.
   ========================================================================== */

@media (max-width: 768px) {
  /* Containers respect iPhone notch / safe-area on the left and right */
  .container, .container-xl, .container-lg, .container-md, .container-sm {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }

  /* Photo hero: keep symmetric padding so content stays vertically centered */
  body:has(.block-hero--photo) .block-hero--photo {
    padding-top: var(--header-h);
    padding-bottom: var(--header-h);
  }

  /* Prose tables: scroll the table horizontally instead of breaking layout */
  .prose { overflow-x: visible; }
  .prose table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }

  /* Long unbreakable strings (emails, URLs) wrap inside their container */
  .prose a, .site-footer a, .pn-form a, .kontakt-direct__items a {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Form card: more breathing room from screen edges than the original 1.25rem */
  .pn-form-card { padding: 1.5rem 1.1rem; border-radius: 16px; }
  .pn-form-card .pn-form__row { gap: 1rem; }
  .pn-form-card .pn-field__label { font-size: 0.78rem; }

  /* Form input padding: slightly tighter so wide labels still leave room */
  .pn-form-card .pn-form input,
  .pn-form-card .pn-form select,
  .pn-form-card .pn-form textarea { padding: 0.85rem 0.95rem; font-size: 1rem; }

  /* Section vertical rhythm */
  .section { padding: 2.5rem 0; }
  .block-hero { padding: 2.25rem 0 2.75rem; }
}

@media (max-width: 480px) {
  /* Edge-flush layout on very small phones (iPhone SE, mini variants) */
  .container, .container-xl, .container-lg, .container-md, .container-sm {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  /* Stack hero CTAs so neither button gets squashed by the other */
  .block-hero__ctas { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .block-hero__ctas .btn { width: 100%; justify-content: center; }

  /* Final-CTA stack as well */
  .block-final-cta__btns { flex-direction: column; align-items: stretch; }
  .block-final-cta__btns .btn { width: 100%; justify-content: center; }

  /* Form card: tighter still on tiny screens */
  .pn-form-card { padding: 1.25rem 1rem; border-radius: 14px; }
  .pn-form-card .pn-choice label { padding: 0.75rem 0.85rem; min-height: 50px; font-size: 0.95rem; }

  /* Form actions stack */
  .pn-form__actions { flex-direction: column; align-items: stretch; }
  .pn-form__actions .btn { width: 100%; justify-content: center; }

  /* Three-option choice rows fall back to single column on tiny screens */
  .pn-choice--row { grid-template-columns: 1fr; }

  /* Direct-contact items wrap cleanly */
  .kontakt-direct__items { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  /* Site-header CTA shrinks so it fits next to the hamburger */
  .site-header__actions .btn { padding: 0.55rem 0.9rem; font-size: 0.875rem; }
}
