/* ==========================================================================
   Herzlicht — Basis, Layout, Header/Navigation, Startseite, Footer
   Stil: „Accessible & Ethical“ (ui-ux-pro-max) · Lexend + Source Sans 3
   ========================================================================== */

:root {
  --brand: #164a45;
  --brand-deep: #0f3532;
  --brand-tint: #e4eeeb;
  --accent: #f0b44c;
  --accent-ink: #1b2624;
  --ink: #1b2624;
  --ink-soft: #3d4d4a;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --line: #d3dedb;
  --focus: #b4531f;

  --primary: var(--brand);
  --radius: 14px;
  --radius-sm: 10px;

  --font-head: "Lexend", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(1.85rem, 1.5rem + 1.6vw, 2.75rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.8vw, 3.6rem);

  --space-s: clamp(0.75rem, 0.6rem + 0.5vw, 1rem);
  --space-m: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-l: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  --space-xl: clamp(3.5rem, 2.4rem + 5vw, 7rem);

  --shadow-soft: 0 1px 2px rgba(15, 53, 50, 0.06), 0 6px 8px -4px rgba(15, 53, 50, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;

  --z-header: 100;
  --z-overlay: 200;
  --z-drawer: 210;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
.icon { width: 1.4em; height: 1.4em; flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.18; letter-spacing: -0.015em; margin: 0 0 0.6em; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--brand); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; transition: color 180ms var(--ease-out); }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }
.container { width: min(100% - 2.5rem, 1200px); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-l) 0; }
.section--muted { background: var(--brand-tint); }
.section--content { padding-block: var(--space-l) var(--space-xl); }

.section-head { max-width: 46rem; margin-bottom: var(--space-l); }
.section-head__title { font-size: var(--step-3); }
.section-head__intro { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); margin: 0; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-m); }
.section-head--row > div:first-child { max-width: 46rem; }

/* ---------- Buttons & Links ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.8rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #e7a232; color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-head); font-weight: 500; text-decoration: none; min-height: 44px; }
.text-link .icon { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link--light { color: #fff; }
.text-link--light:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(246, 248, 247, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 8px -6px rgba(15, 53, 50, 0.12); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 2vw, 2.5rem); min-height: var(--header-h); transition: min-height 220ms var(--ease-out); }
.site-header.is-scrolled .site-header__inner { min-height: 68px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand__svg { width: 212px; height: 48px; display: block; }
.brand__img { max-height: 56px; width: auto; }
.site-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { min-height: 48px; padding: 0.6rem 1.25rem; font-size: 1rem; white-space: nowrap; }
@media (max-width: 1150px) { .header-cta { display: none; } }

.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(0.25rem, 1.2vw, 1.25rem); }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a {
  display: inline-flex; align-items: center; gap: 0.25rem;
  min-height: 48px; padding: 0.5rem 0.6rem;
  font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; color: var(--ink);
  text-decoration: none; white-space: nowrap; border-radius: var(--radius-sm);
}
.main-nav__list > li > a:hover,
.main-nav__list > .current-menu-item > a,
.main-nav__list > .current-menu-ancestor > a,
.main-nav__list > .current-page-ancestor > a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
.icon--caret { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }

.burger { display: none; align-items: center; gap: 0.4rem; min-height: 48px; min-width: 48px; padding: 0.4rem 0.8rem; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-family: var(--font-head); font-weight: 500; }
.burger .icon { width: 26px; height: 26px; }

@media (min-width: 900.02px) {
  .main-nav .sub-menu {
    position: absolute; top: calc(100% + 6px); left: -0.5rem; min-width: 290px;
    list-style: none; margin: 0; padding: 0.5rem;
    background: var(--surface); border-radius: var(--radius); box-shadow: 0 2px 4px rgba(15, 53, 50, 0.06), 0 12px 16px -8px rgba(15, 53, 50, 0.18);
    visibility: hidden; transform: translateY(6px); opacity: 0; pointer-events: none;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .main-nav .sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu { visibility: visible; transform: none; opacity: 1; pointer-events: auto; transition-delay: 0s; }
  .main-nav li:hover > a .icon--caret, .main-nav li:focus-within > a .icon--caret { transform: rotate(180deg); }
  .main-nav .sub-menu a { display: flex; min-height: 46px; align-items: center; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
  .main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { background: var(--brand-tint); color: var(--brand); }
}

/* ---------- Mobiler Drawer (Geschwister des Headers) ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(15, 30, 28, 0.5); opacity: 0; visibility: hidden; transition: opacity 240ms var(--ease-out), visibility 0s linear 240ms; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(88vw, 400px); padding: 1rem 1.25rem 2rem;
  background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); visibility: hidden;
  transition: transform 280ms var(--ease-out), visibility 0s linear 280ms;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; min-height: 64px; margin-bottom: 0.5rem; border-bottom: 1px solid var(--line); }
.drawer__title { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }
.drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.drawer__close .icon { width: 26px; height: 26px; }
.drawer__list, .drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__list a { display: flex; align-items: center; min-height: 56px; padding: 0.5rem 0.25rem; font-family: var(--font-head); font-weight: 500; font-size: 1.15rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer__list .sub-menu a { padding-left: 1.25rem; font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; min-height: 50px; color: var(--ink-soft); }
.drawer__list .current-menu-item > a { color: var(--brand); }
.drawer__list .icon--caret { display: none; }
.drawer__cta { margin-top: 1.5rem; }
.drawer__cta .btn { width: 100%; }

@media (max-width: 900px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  :root { --header-h: 72px; }
  .brand__svg { width: 184px; height: 42px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--space-l); }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero__kicker { display: inline-flex; font-family: var(--font-head); font-weight: 500; color: var(--brand); margin-bottom: 1rem; font-size: 1.05rem; }
.hero__title { font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 0.45em; }
.hero__lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 36rem; margin-bottom: 1.75rem; }
.hero__note { display: flex; align-items: center; gap: 0.6rem; margin: 1.5rem 0 0; color: var(--ink-soft); }
.hero__note .icon { width: 22px; height: 22px; color: var(--brand); }
.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--radius); }
.hero__badge {
  position: absolute; left: clamp(-2.5rem, -3vw, -1rem); bottom: clamp(-2rem, -2vw, -1rem);
  display: grid; gap: 0.1rem; max-width: 270px; padding: 1.1rem 1.25rem;
  background: var(--brand); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft);
}
.hero__badge-label { font-size: 0.98rem; color: #d9e7e4; }
.hero__badge-value { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: var(--accent); line-height: 1.15; }
.hero__badge-link { justify-self: start; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; min-height: 40px; color: #fff; font-weight: 700; }
.hero__badge-link:hover { color: var(--accent); }
.hero__badge-link .icon { width: 18px; height: 18px; }

@keyframes hz-rise { from { transform: translateY(18px); } to { transform: none; } }
.hero__text > *, .hero__media { animation: hz-rise 700ms var(--ease-out) both; }
.hero__text > :nth-child(2) { animation-delay: 60ms; }
.hero__text > :nth-child(3) { animation-delay: 120ms; }
.hero__text > :nth-child(4) { animation-delay: 180ms; }
.hero__text > :nth-child(5) { animation-delay: 240ms; }
.hero__media { animation-delay: 140ms; }

/* ---------- Kennzahlen ---------- */
.stats { padding-block: var(--space-m) 0; }
.stats__list { list-style: none; margin: 0; padding: var(--space-m) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stats__item { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.5rem clamp(1rem, 2.5vw, 2.25rem); }
.stats__item + .stats__item { border-left: 1px solid var(--line); }
.stats__num { font-family: var(--font-head); font-weight: 600; font-size: var(--step-3); color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.stats__label { color: var(--ink-soft); line-height: 1.4; }

/* ---------- Leistungen (Zeilen) ---------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem) clamp(1.5rem, 3vw, 3rem); }
.service-row__link { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: center; padding: 0.75rem; margin: -0.75rem; border-radius: var(--radius); color: inherit; text-decoration: none; transition: background-color 220ms var(--ease-out); }
.service-row__link:hover { background: var(--surface); color: inherit; }
.service-row__media { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.service-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 500ms var(--ease-out); }
.service-row__link:hover .service-row__media img { transform: scale(1.035); }
.service-row__title { font-size: var(--step-1); margin-bottom: 0.35rem; }
.service-row__text { color: var(--ink-soft); margin-bottom: 0.5rem; line-height: 1.55; }
.service-row__more { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-head); font-weight: 500; color: var(--brand); }
.service-row__more .icon { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
.service-row__link:hover .service-row__more .icon { transform: translateX(3px); }

/* ---------- Rechner-Band (Startseite) ---------- */
.rechner-band { background: var(--brand); color: #fff; padding-block: var(--space-xl); }
.rechner-band__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.rechner-band__title { color: #fff; font-size: var(--step-3); }
.rechner-band__intro { font-size: var(--step-1); line-height: 1.55; color: #e3eeeb; }
.rechner-band .btn { margin-top: 0.5rem; }
.check-list { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; line-height: 1.5; }
.check-list .icon { width: 22px; height: 22px; margin-top: 0.15em; color: var(--brand); }
.check-list--light .icon { color: var(--accent); }

/* ---------- Plugin: Pflegegrad-Leistungsrechner (größer, senioren-lesbar) ---------- */
.wpscp-pgr.wpscp-pgr { max-width: 640px; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.wpscp-pgr .wpscp-pgr__title { font-size: var(--step-2); margin-bottom: 0.4rem; color: var(--ink); }
.wpscp-pgr .wpscp-pgr__hint { font-size: 1.05rem; opacity: 1; color: var(--ink-soft); line-height: 1.5; }
.wpscp-pgr .wpscp-pgr__tabs { gap: 0.5rem; }
.wpscp-pgr .wpscp-pgr__tab { min-height: 48px; padding: 0.6rem 1.1rem; font-family: var(--font-head); font-size: 1rem; font-weight: 500; border-width: 2px; transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 160ms var(--ease-out); }
.wpscp-pgr .wpscp-pgr__tab:hover { background: var(--brand-tint); }
.wpscp-pgr .wpscp-pgr__tab.is-active { background: var(--brand); color: #fff; }
.wpscp-pgr .wpscp-pgr__tab:active { transform: scale(0.97); }
.wpscp-pgr .wpscp-pgr__row { padding: 1rem 0; font-size: 1.125rem; border-bottom-color: var(--line); line-height: 1.4; }
.wpscp-pgr .wpscp-pgr__row strong { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; color: var(--brand); }
.wpscp-pgr .wpscp-pgr__note { font-size: 1.05rem; opacity: 1; color: var(--ink-soft); }
.wpscp-pgr .wpscp-pgr__cta { font-family: var(--font-head); font-weight: 500; color: var(--ink); }

/* ---------- Slider ---------- */
.slider-controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.slider-controls__count { min-width: 3.5rem; text-align: center; font-family: var(--font-head); font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); transition: border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 160ms var(--ease-out); }
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn .icon--play { display: none; }
.icon-btn[aria-pressed="true"] .icon--play { display: block; }
.icon-btn[aria-pressed="true"] .icon--pause { display: none; }
.slider__track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; border-radius: var(--radius); }
.slider__track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; }
.slide__figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.slide__figure img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.slide__caption { position: absolute; left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); max-width: 30rem; padding: 1.1rem 1.35rem; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
.slide__title { font-size: var(--step-1); margin-bottom: 0.3rem; }
.slide__text { margin: 0; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Ablauf ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: none; }
.steps__item { position: relative; padding-top: 1rem; border-top: 2px solid var(--brand); }
.steps__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.steps__title { font-size: var(--step-1); margin-bottom: 0.4rem; }
.steps__text { color: var(--ink-soft); margin: 0; }

/* ---------- Über uns ---------- */
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__media { margin: 0; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about__text p { color: var(--ink-soft); max-width: 62ch; }

/* ---------- Abschluss-CTA ---------- */
.cta-band { padding-block: 0 var(--space-xl); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding: clamp(1.75rem, 4vw, 3.25rem); background: var(--brand-deep); color: #fff; border-radius: var(--radius); }
.cta-band__title { color: #fff; font-size: var(--step-3); margin-bottom: 0.35em; }
.cta-band__text { margin: 0; color: #dbe7e4; max-width: 44rem; font-size: var(--step-1); line-height: 1.5; }

/* ---------- Unterseiten-Kopf ---------- */
.page-hero { padding-block: clamp(2rem, 1rem + 4vw, 4rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--brand-tint); }
.page-hero__inner { display: grid; gap: var(--space-l); align-items: center; }
.page-hero--media .page-hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.page-hero__crumb { display: inline-flex; align-items: center; gap: 0.25rem; min-height: 44px; margin-bottom: 0.5rem; font-family: var(--font-head); font-weight: 500; text-decoration: none; }
.page-hero__crumb .icon { width: 18px; height: 18px; }
.page-hero__title { font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 0.4em; }
.page-hero__lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 40rem; margin: 0; }
.page-hero__media { margin: 0; }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.page-hero__text > *, .page-hero__media { animation: hz-rise 650ms var(--ease-out) both; }
.page-hero__media { animation-delay: 120ms; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #dbe7e4; padding-top: var(--space-l); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand__svg path { stroke: #fff; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--space-l); padding-bottom: var(--space-l); }
.site-footer__brand p { max-width: 34ch; }
.site-footer__heading { font-size: 1.1rem; color: #fff; margin-bottom: 1rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.site-footer__links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; }
.contact-line { display: flex; align-items: flex-start; gap: 0.6rem; line-height: 1.45; }
.contact-line .icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0.1em; color: var(--accent); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 1rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer__legal a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer__study { color: #c3d4d0; }
#wpx-footer-branding { background: var(--brand-deep); color: #c3d4d0; opacity: 1 !important; }

/* ---------- Scroll-Reveal (nur transform, nie opacity:0 als Startzustand) ---------- */
.js .reveal { transform: translateY(22px); transition: transform 650ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.is-in { transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service-row__link { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero__inner, .rechner-band__inner, .about__inner, .page-hero--media .page-hero__inner { grid-template-columns: 1fr; }
  .hero__media { margin-bottom: 2rem; }
  .hero__badge { left: 1rem; bottom: -1.5rem; }
  .stats__list { grid-template-columns: 1fr; padding-block: 0.5rem; }
  .stats__item { padding: 0.9rem 0; }
  .stats__item + .stats__item { border-left: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
  .slide__figure img { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 2rem, 1200px); }
  .service-list { grid-template-columns: 1fr; }
  .hero__badge { position: relative; left: auto; bottom: auto; max-width: none; margin: -2.5rem 1rem 0; }
  .hero__media { margin-bottom: 0; }
  .btn-row .btn { width: 100%; }
  .slide__caption { position: static; max-width: none; border-radius: 0; box-shadow: none; padding: 1rem 0.25rem 0; background: transparent; }
  .slide__figure { border-radius: 0; }
  .slide__figure img { border-radius: var(--radius); }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .slider-controls { width: 100%; justify-content: space-between; }
}

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