/* ==========================================================================
   mit.gefühl Paarberatung — Design System (Variante „Sand“)
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #F7F2EB;
  --color-surface: #FFFDF9;
  --color-bg-alt: #EFE6DA;
  --color-border: #E6DACB;
  --color-sand: #D9C4A3;
  --color-sand-deep: #9E7C4F; /* 3,6:1 auf Surface – reicht für große Ziffern (>= 24px) */
  --color-placeholder: #E4D5BF;
  --color-text: #2A241F;
  --color-text-muted: #6B5E52;
  --color-accent: #7E5E38;
  --color-dark: #2F2924;
  --color-on-dark: #F3ECE2;
  --color-on-dark-muted: rgba(243, 236, 226, 0.8);

  /* Typography */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --content-max: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius-l: 24px;
  --radius-m: 20px;
  /* Abstands-Skala – alle Abstände laufen über diese Tokens */
  --space-2xs: 0.5rem;   /* Label ↔ Feld, Name ↔ Rolle */
  --space-xs: 0.75rem;   /* innerhalb von Karten */
  --space-s: 1rem;       /* Absätze, Button-Gruppen */
  --space-m: 1.5rem;     /* Überschrift ↔ Text, Stapel in Blöcken */
  --space-l: 2rem;       /* Karten-Padding, Karten-Raster */
  --space-xl: clamp(2.5rem, 1.5rem + 4vw, 5rem);        /* Spalten-Abstand */
  --space-head: clamp(2.5rem, 2rem + 2vw, 3.5rem);      /* Sektionskopf ↔ Inhalt */
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);       /* Sektionen oben/unten */
  --space-hero-top: clamp(3rem, 2rem + 4vw, 5rem);
  --header-h: 81px;      /* Header-Höhe inkl. Rand – für den Sticky-Hero auf dem Handy */

  --shadow-card: 0 18px 40px -20px rgba(42, 36, 31, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-text);
  overflow-wrap: break-word;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.625rem); }

/* ---------- Utilities ---------- */
.container {
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--space-section); }
.section--surface { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.section--alt { background: var(--color-bg-alt); border-top: 2px solid var(--color-sand); }
.section--dark { background: var(--color-dark); color: var(--color-on-dark); border-top: 2px solid var(--color-sand); }
.section--dark h2 { color: var(--color-on-dark); font-weight: 500; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.section--dark .eyebrow { color: var(--color-sand); }

.section-head { display: flex; flex-direction: column; gap: var(--space-m); max-width: 680px; margin-bottom: var(--space-head); }
.section-head--row {
  max-width: none;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-m) var(--space-l);
}
.section-head--row > div { display: flex; flex-direction: column; gap: var(--space-m); max-width: 640px; }
.lede { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--color-text-muted); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-text); color: var(--color-bg);
  padding: 0.75em 1.25em; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.9em;
  border: 2px solid var(--color-text);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-primary { background: var(--color-text); color: var(--color-bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(42, 36, 31, 0.55); }
.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-text); color: var(--color-bg); }
.btn svg { flex-shrink: 0; }

.text-link {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-accent);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 235, 0.92);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.3s var(--ease);
}
/* Weichzeichner auf eigener Ebene: backdrop-filter direkt am Header würde das fixierte
   Mobilmenü im Header "einsperren" (neuer Containing Block) – es wäre nur so hoch wie der Header. */
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: transparent; }
  .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(247, 242, 235, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(42, 36, 31, 0.45); }

/* Startseite: Logo steht zuerst im Hero und wandert beim Scrollen in den Header */
.site-header .brand { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0s; }
/* Bei geöffnetem Mobilmenü das Logo im Header immer zeigen */
.nav-open .site-header .brand { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.js .has-hero-brand .site-header:not(.show-brand) .brand {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-l);
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  text-decoration: none;
}
/* Logo-Datei ist weiß/transparent und wird per Maske in der Markenfarbe eingefärbt */
.brand__logo {
  display: block;
  background-color: var(--color-accent);
  -webkit-mask: var(--logo-url, url("/assets/img/logo-mit-gefuehl.png")) left center / contain no-repeat;
  mask: var(--logo-url, url("/assets/img/logo-mit-gefuehl.png")) left center / contain no-repeat;
}
/* margin-left gleicht den transparenten Rand links in der Logo-Datei aus (39 von 889 px) */
.brand__logo { --logo-w: 160px; width: var(--logo-w); aspect-ratio: 889 / 223; align-self: center; margin-left: calc(var(--logo-w) * -39 / 889); }
.brand { align-items: center; flex-wrap: nowrap; }
@media (max-width: 480px) {
  .site-header .brand__logo { --logo-w: 124px; }
  .brand__claim { font-size: 0.625rem; letter-spacing: 0.14em; }
}
.brand__claim {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.25rem);
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.nav__list a:not(.btn) {
  display: inline-block;
  padding: 0.6rem 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav__list a:not(.btn):hover { color: var(--color-accent); }
.nav__list a[aria-current="page"]:not(.btn) { border-bottom-color: var(--color-sand); }
.nav__list .btn { min-height: 44px; padding: 0.7em 1.5em; font-size: 0.9375rem; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-bg);
    padding: 1.5rem var(--gutter) 2.5rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; font-size: 1.125rem; }
  .nav__list li { border-bottom: 1px solid var(--color-border); }
  .nav__list li:last-child { border-bottom: 0; padding-top: 1.5rem; }
  .nav__list a:not(.btn) { display: block; padding: 1rem 0; border-bottom: 0; }
  .nav__list a[aria-current="page"]:not(.btn) { color: var(--color-accent); box-shadow: inset 3px 0 0 var(--color-sand); padding-left: var(--space-s); }
  .nav__list .btn { width: 100%; min-height: 52px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-hero-top) var(--space-section); }
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: var(--space-m); }
.hero__title { display: flex; flex-direction: column; gap: var(--space-m); font-weight: 500; }
.hero__title .eyebrow { font-weight: 700; }
.hero__tagline {
  display: block;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.hero__tagline em { font-style: italic; color: var(--color-accent); }
.hero__sub { max-width: 540px; }
.check-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); font-weight: 600; }
.check-list li { display: flex; align-items: center; gap: var(--space-xs); }
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A241F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-2xs); }

.hero__media { position: relative; min-height: 0; }
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s) var(--space-m); }
/* komplettes Logo; margin-left gleicht den transparenten Rand links in der Datei aus (39 von 889 px) */
.hero__logo {
  --logo-w: clamp(180px, 8rem + 6vw, 250px);
  flex-shrink: 0;
  width: var(--logo-w);
  aspect-ratio: 889 / 223;
  margin-left: calc(var(--logo-w) * -39 / 889);
  background-color: var(--color-accent);
  -webkit-mask: var(--logo-url, url("/assets/img/logo-mit-gefuehl.png")) left center / contain no-repeat;
  mask: var(--logo-url, url("/assets/img/logo-mit-gefuehl.png")) left center / contain no-repeat;
}
.hero__eyebrow-text { flex: 1 1 12rem; text-wrap: balance; padding-left: var(--space-m); border-left: 1px solid var(--color-sand); }
@media (max-width: 480px) {
  /* untereinander: Trennlinie und Einzug entfallen */
  .hero__eyebrow-text { flex-basis: 100%; padding-left: 0; border-left: 0; }
}
.hero__image {
  width: min(100%, 520px);
  aspect-ratio: 520 / 600;
  margin-left: auto;
  object-fit: cover;
  border-radius: 260px 260px 28px 28px;
  background: var(--color-placeholder);
}
.hero__card {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 260px;
  padding: var(--space-m);
  background: var(--color-surface);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.hero__card:hover { transform: translateY(-3px); }
.hero__card-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent); }
.hero__card-phone { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
.hero__card-hint { font-size: 0.875rem; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__image { width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 4 / 3.4; border-radius: 200px 200px 24px 24px; }
  .hero__card { position: relative; left: auto; bottom: auto; width: auto; max-width: 460px; margin: -2.5rem auto 0; }
}

/* ---------- Mobile Scroll-Effekte (normales Scrollen, nur visuelles Feedback) ---------- */
@media (max-width: 900px) {
  /* "Erkennen Sie sich wieder?": Karten stapeln sich beim Scrollen leicht versetzt übereinander.
     --recede (0–1) setzt das Skript: die untere Karte wird etwas kleiner und dunkler. */
  .signs[data-stack] { grid-template-columns: minmax(0, 1fr); gap: var(--space-m); }
  .signs[data-stack] > .sign {
    position: sticky;
    top: calc(var(--header-h) + var(--space-m) + var(--i, 0) * 10px);
    transform-origin: 50% 0;
    transform: scale(calc(1 - var(--recede, 0) * 0.06));
    filter: brightness(calc(1 - var(--recede, 0) * 0.08));
    box-shadow: var(--shadow-card);
  }
  .signs[data-stack] > .sign:nth-child(2) { --i: 1; }
  .signs[data-stack] > .sign:nth-child(3) { --i: 2; }
  .signs[data-stack] > .sign:nth-child(4) { --i: 3; }
  .signs[data-stack] > .sign:nth-child(5) { --i: 4; }
  .signs[data-stack] > .sign:nth-child(6) { --i: 5; }

  /* "In vier Schritten": senkrechte Linie verbindet die Schritte und füllt sich beim Scrollen.
     --progress (0–1) und --line-bottom setzt das Skript; erreichte Schritte bekommen .is-reached. */
  .steps.is-timeline { position: relative; grid-template-columns: minmax(0, 1fr); gap: var(--space-l); }
  .steps.is-timeline::before,
  .steps.is-timeline::after {
    content: "";
    position: absolute;
    left: 25px;
    top: 26px;
    bottom: var(--line-bottom, 26px);
    width: 2px;
    background: var(--color-sand);
  }
  .steps.is-timeline::after {
    background: var(--color-accent);
    transform-origin: 50% 0;
    transform: scaleY(var(--progress, 0));
  }
  .steps.is-timeline .step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: var(--space-m);
    row-gap: var(--space-2xs);
  }
  .steps.is-timeline .step::before {
    grid-row: 1 / span 2;
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    color: var(--color-text);
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
  }
  .steps.is-timeline .step.is-reached::before { background: var(--color-text); color: var(--color-bg); }
  .steps.is-timeline .step h3 { align-self: end; }
  .steps.is-timeline .step p { grid-column: 2; }
}

/* ---------- Willkommen ---------- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}
.intro__head { display: flex; flex-direction: column; gap: var(--space-m); }
.intro__head h2 span { color: var(--color-accent); }
.intro__body { display: flex; flex-direction: column; gap: var(--space-s); padding-top: calc(var(--space-m) + 0.9rem); }
.intro__body p { color: var(--color-text-muted); }
.intro__body .btn { align-self: flex-start; margin-top: var(--space-2xs); }
@media (max-width: 800px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__body { padding-top: 0; }
}

/* ---------- Wann hilft Paarberatung ---------- */
.signs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
  list-style: none;
  padding: 0;
}
.sign {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-l);
  background: var(--color-surface);
  border-radius: var(--radius-m);
}
.sign__num { font-family: var(--font-display); font-size: 1.875rem; font-style: italic; font-weight: 500; line-height: 1.2; color: var(--color-sand-deep); }
.sign--cta { padding: 0; background: var(--color-text); }
.sign--cta a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-xs);
  height: 100%;
  padding: var(--space-l);
  color: var(--color-bg);
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.sign--cta a:hover { transform: translateY(-3px); }
.sign--cta strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.3; }
.sign--cta span { font-size: 0.9375rem; font-weight: 700; color: var(--color-sand); }
.signs__note { max-width: 760px; margin-top: var(--space-head); color: var(--color-text-muted); }
@media (max-width: 960px) { .signs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .signs { grid-template-columns: minmax(0, 1fr); }
  .sign, .sign--cta a { padding: var(--space-m); }
}

/* ---------- Angebote ---------- */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l); }
.offer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: var(--radius-l);
}
.offer__image { width: 100%; aspect-ratio: 1.5625; object-fit: cover; background: var(--color-placeholder); }
.offer__body { display: flex; flex-direction: column; flex-grow: 1; gap: var(--space-xs); padding: var(--space-l); }
.offer__body p { color: var(--color-text-muted); }
.offer__body .text-link { margin-top: auto; padding-top: var(--space-2xs); }
@media (max-width: 960px) { .offers { grid-template-columns: minmax(0, 1fr); max-width: 560px; } }

/* ---------- Haltung ---------- */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l); }
.value { display: flex; flex-direction: column; gap: var(--space-xs); padding-top: var(--space-m); border-top: 1px solid rgba(243, 236, 226, 0.25); }
.value h3 { font-style: italic; font-weight: 500; font-size: 1.875rem; color: var(--color-sand); }
.value p { color: var(--color-on-dark-muted); }
@media (max-width: 800px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-l);
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.step { display: flex; flex-direction: column; gap: var(--space-xs); counter-increment: step; }
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--color-text);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.step:last-child::before { background: var(--color-text); color: var(--color-bg); }
.step h3 { font-family: var(--font-body); font-size: 1.1875rem; font-weight: 700; }
.step p { color: var(--color-text-muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-l); }
.member { display: flex; flex-direction: column; gap: var(--space-m); }
.member__image {
  width: 100%;
  aspect-ratio: 0.93;
  object-fit: cover;
  border-radius: 200px 200px 24px 24px;
  background: var(--color-placeholder);
}
.member__text { display: flex; flex-direction: column; gap: var(--space-2xs); }
.member__text p:last-child { color: var(--color-text-muted); }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .team { grid-template-columns: minmax(0, 1fr); max-width: 420px; } }

/* ---------- Kontakt CTA ---------- */
.cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-m); text-align: center; }
.cta h2 { max-width: 760px; font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.cta .lede { max-width: 640px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-s); margin-top: var(--space-2xs); }

/* ---------- Footer (Aufbau wie mit-gefuehl.net) ---------- */
.site-footer {
  padding-block: var(--space-head) var(--space-l);
  background: var(--color-dark);
  border-top: 2px solid var(--color-sand);
  color: rgba(243, 236, 226, 0.8);
  font-size: 0.9375rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--color-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-l);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid rgba(243, 236, 226, 0.15);
}
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); font-size: 0.875rem; }
.footer__brand .brand__logo { --logo-w: 160px; align-self: flex-start; background-color: var(--color-sand); }
.footer__col { font-style: normal; }
.footer__list { list-style: none; padding: 0; display: grid; gap: var(--space-2xs); }
.footer__list a { display: inline-block; padding-block: 2px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xs) var(--space-m);
  padding-top: var(--space-m);
  font-size: 0.8125rem;
  color: rgba(243, 236, 226, 0.6);
  text-align: center;
}
@media (max-width: 640px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Unterseiten
   ========================================================================== */

/* ---------- Seiten-Hero ---------- */
.page-hero { padding-block: var(--space-hero-top) var(--space-section); }
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.page-hero__inner--text { grid-template-columns: minmax(0, 1fr); }
.page-hero__inner--text .page-hero__content { max-width: 820px; }
.page-hero__content { display: flex; flex-direction: column; gap: var(--space-m); max-width: 540px; }
.page-hero h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.page-hero h1 em { font-style: italic; color: var(--color-accent); }
.page-hero__claim { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--color-text-muted); }
.page-hero__content > .btn { align-self: flex-start; margin-top: var(--space-2xs); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space-2xs); }
.page-hero__image {
  justify-self: end;
  width: min(100%, 460px);
  aspect-ratio: 460 / 520;
  object-fit: cover;
  border-radius: 240px 240px 28px 28px;
  background: var(--color-placeholder);
}
@media (max-width: 900px) {
  .page-hero__inner { grid-template-columns: minmax(0, 1fr); }
  .page-hero__image { justify-self: start; max-width: 520px; aspect-ratio: 4 / 3.4; border-radius: 200px 200px 24px 24px; }
}

/* ---------- Einleitung unter dem Seiten-Hero (Variante A) ---------- */
.page-lede { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.page-lede p {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--color-text-muted);
}
.page-lede em { font-style: normal; color: var(--color-accent); }

/* ---------- Fließtext ---------- */
.prose { display: flex; flex-direction: column; gap: var(--space-s); max-width: 760px; }
.prose p { color: var(--color-text-muted); }
.prose .btn { align-self: flex-start; margin-top: var(--space-2xs); }
.section--dark .prose p { color: var(--color-on-dark-muted); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 800px; }
.legal h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); font-weight: 500; margin-bottom: var(--space-l); }
.legal h2 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); margin: var(--space-l) 0 var(--space-xs); }
.legal h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; margin: var(--space-m) 0 var(--space-2xs); }
.legal p, .legal li { color: var(--color-text-muted); overflow-wrap: anywhere; }
.legal p + p { margin-top: var(--space-s); }
.legal a { color: var(--color-accent); }
.legal ul { display: flex; flex-direction: column; gap: var(--space-2xs); margin-top: var(--space-s); padding-left: 1.2em; }
.legal ul + p { margin-top: var(--space-s); }
.legal code { font-size: 0.9em; }
.legal__button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Team (ausführlich) ---------- */
.team--full { gap: var(--space-head) var(--space-l); }
.member--full .member__text { gap: var(--space-2xs); }
.member__name { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.625rem); }
.member__role { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); }
.member--full .member__text p:not(.member__role) { color: var(--color-text-muted); }
.member--full .member__text strong { color: var(--color-text); }

/* ---------- Kontakt ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--space-xl);
  align-items: start;
}
.contact-aside { display: flex; flex-direction: column; gap: var(--space-s); }
.contact-aside p { color: var(--color-text-muted); }
.contact-aside a:not(.btn) { color: var(--color-accent); font-weight: 700; }
.contact-form {
  padding: var(--space-l);
  background: var(--color-surface);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s); }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.form-fieldset { margin: 0 0 var(--space-m); padding: 0; border: 0; }
.form-fieldset legend, .form-field label { display: block; padding: 0; margin-bottom: var(--space-2xs); font-size: 0.9375rem; font-weight: 700; }
.form-field { margin-bottom: var(--space-m); }
.form-fieldset .form-field { margin-bottom: 0; }
.form-field .form-sublabel { margin: 0.3rem 0 0; font-size: 0.8125rem; font-weight: 500; color: var(--color-text-muted); }
.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--color-accent); background: var(--color-surface); outline: none; box-shadow: 0 0 0 3px rgba(126, 94, 56, 0.18); }
.form-field textarea { min-height: 160px; resize: vertical; }
/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: var(--space-s);
  width: min(100% - 2 * var(--space-s), 880px);
  opacity: 0;
  transform: translate(-50%, var(--space-m));
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-sand);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}
.cookie-banner.is-visible { opacity: 1; transform: translate(-50%, 0); }
.cookie-banner__inner { display: flex; align-items: center; gap: var(--space-l); padding: var(--space-m); }
.cookie-banner__text { display: flex; flex-direction: column; gap: var(--space-2xs); }
.cookie-banner__title { font-size: 1.25rem; }
.cookie-banner__title:focus { outline: none; }
.cookie-banner__text p { font-size: 0.9375rem; color: var(--color-text-muted); }
.cookie-banner__links a { color: var(--color-accent); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: var(--space-xs); }
@media (max-width: 700px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: var(--space-m); }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
}
.footer__button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.footer__button:hover { color: var(--color-on-dark); text-decoration: underline; text-underline-offset: 3px; }

.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: var(--space-m); padding: var(--space-s); border-radius: 12px; font-weight: 600; }
.form-status--success { background: #E4EDE3; color: #2F5B34; }
.form-status--error { background: #F6E3DA; color: #8C3517; }
.form-note { margin-top: var(--space-s); font-size: 0.8125rem; color: var(--color-text-muted); }
.form-note a { color: var(--color-accent); }
.page-hero--error { min-height: 60vh; display: flex; align-items: center; }
.page-hero--error > .container { width: 100%; }
.contact-form .btn { width: 100%; }
@media (min-width: 521px) { .contact-form .btn { width: auto; } }
