/* ==========================================================================
   Ergotherapie-Praxis — Design System
   Calm, warm, minimal. Built for a mental-health occupational therapy practice.
   ========================================================================== */

/* ---- Self-hosted Fließtext-Schrift: Avenir Light ---- */
@font-face {
  font-family: "Avenir";
  src: url("../fonts/Avenir-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ---- Self-hosted Überschriften-Schrift: Libre Baskerville (variabel) ----
   Lokal gehostet → keine Verbindung zu Google, keine IP-Übermittlung (DSGVO). */
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/LibreBaskerville.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/LibreBaskerville-Italic.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

/* ---- Design tokens ---- */
:root {
  /* Palette — warm neutrals + muted sage, soft terracotta accent */
  --bg:          #faf8f4;   /* warm off-white page background */
  --bg-alt:      #f1ede5;   /* alternating section band */
  --surface:     #ffffff;   /* cards */
  --ink:         #2e2a26;   /* primary text (warm near-black) */
  --ink-soft:    #5d564e;   /* secondary text */
  --ink-faint:   #8a8076;   /* meta / captions */
  --sage:        #7d9082;   /* primary brand (muted eucalyptus) */
  --sage-deep:   #5e6f63;   /* hover / headings accent */
  --sage-pale:   #e7ede8;   /* tints, chips */
  --accent:      #d14200;   /* brand orange — name, eyebrows, accents */
  --accent-soft: #f4e2d6;   /* tint of brand orange (callouts) */
  --panel:       #eee4dd;   /* warm beige — tinted half-panels behind images */
  --line:        #e4ddd2;   /* hairlines / borders */
  --shadow:      0 1px 2px rgba(46,42,38,.04), 0 8px 24px rgba(46,42,38,.06);
  --shadow-lift: 0 4px 12px rgba(46,42,38,.07), 0 18px 40px rgba(46,42,38,.10);

  /* Type */
  --font-head: "Libre Baskerville", Georgia, "Times New Roman", serif;
  /* Avenir Light (selbst gehostet) für Fließtext; System-Sans als Fallback */
  --font-body: "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1120px;
  --maxw-text: 720px;
  --header-h: 100px;        /* approx sticky-header height, for sticky offsets */
  --radius: 14px;
  --radius-sm: 9px;
  --img-radius: 12px;       /* unified rounding for all photos */
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
ul, ol { padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  font-family: var(--font-body);
  font-weight: 300;            /* Avenir Light ist eine 300er-Schnitt */
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;            /* kill stray horizontal scroll from reveal offsets */
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
}
/* Libre Baskerville runs large & wide → smaller sizes than a Garamond */
h1 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
h3 { font-size: clamp(1.05rem, 1.7vw, 1.18rem); font-weight: 700; }
p  { color: var(--ink-soft); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-soft); line-height: 1.55; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.measure { max-width: var(--maxw-text); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn--primary { background: var(--sage); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--sage-deep); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage-deep); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
  /* Kopfbereich füllt den oberen Sicherheitsbereich (Notch / schwebende URL-Leiste),
     damit darüber keine Seiteninhalte durchscheinen. */
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 2px 16px rgba(46,42,38,.05); }
/* header shares the same width as the body sections */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(1.1rem, 2.2vw, 1.7rem); }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head); font-weight: 400; color: var(--accent);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.015em; line-height: 1;
}
/* header brand: tighter letter-spacing (header only) */
.site-header .brand__name { font-size: clamp(1.85rem, 3vw, 2.4rem); letter-spacing: -0.045em; }
.brand__tag  { font-size: clamp(.78rem, 1.4vw, .9rem); letter-spacing: .01em; color: var(--ink-soft); margin-top: .4rem; }

.nav__links { display: flex; align-items: center; gap: clamp(1.4rem, 2.4vw, 2.4rem); list-style: none; }
.nav__links a {
  font-size: 1rem; color: var(--ink-soft); position: relative; padding-block: .3rem;
  transition: color .18s ease; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .22s ease;
}
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--accent); }

.nav__toggle {
  display: none; background: none; border: 0; padding: .4rem; color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  /* WICHTIG: backdrop-filter macht den Header zum Bezugsrahmen für fixed-Kinder
     → das Drawer-Menü wäre nur kopfzeilenhoch. Auf Mobile daher solider Header. */
  .site-header { z-index: 100; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav__toggle { display: inline-flex; position: relative; z-index: 110; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px); height: 100vh; z-index: 105;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); padding: 5.5rem 2rem 2rem; overflow-y: auto;
    box-shadow: -12px 0 40px rgba(46,42,38,.18);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; font-size: 1.1rem; width: 100%; padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child a { border-bottom: 0; }
  .nav__links a::after { display: none; }
  body.nav-open { overflow: hidden; }
  /* abgedunkelter Hintergrund hinter dem offenen Menü (Tippen schließt – via JS) */
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; z-index: 95;
    background: rgba(46,42,38,.38);
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 6.5rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__eyebrow { color: var(--accent); }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero__media {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--panel); box-shadow: var(--shadow-lift);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__blob {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--sage-pale), transparent 70%);
  top: -120px; right: -120px; z-index: -1; opacity: .8;
}
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 4 / 3; order: -1; }
}

/* Dev-Platzhalter (Icon + Dateiname) – ausgeblendet, da alle echten Bilder vorhanden sind;
   verhindert das kurze Aufblitzen beim Laden. Fällt ein Bild aus, zeigt sich die Panel-Farbe. */
.img-placeholder {
  display: none;
  width: 100%; height: 100%; place-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--panel), #e5d9cd);
  color: #ab9078; text-align: center; padding: 1rem;
}
.img-placeholder span { font-size: .85rem; letter-spacing: .04em; opacity: .8; }
.img-placeholder svg { width: 40px; height: 40px; opacity: .5; }

/* ==========================================================================
   Announcement banner (group program / Aktuelles)
   ========================================================================== */
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  background: var(--sage-deep); color: #fff;
  border-radius: var(--radius); padding: 1.4rem 1.7rem;
  box-shadow: var(--shadow);
}
.notice__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255,255,255,.16); padding: .35rem .7rem; border-radius: 100px; white-space: nowrap;
}
.notice p { color: rgba(255,255,255,.92); margin: 0; flex: 1 1 280px; }
.notice strong { color: #fff; }
.notice a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; font-weight: 500; }

/* ==========================================================================
   Floating group banner (Warteliste-CTA, schwebt über der Seite)
   ========================================================================== */
.group-float {
  position: fixed; left: 50%;
  /* über der iOS-Safari-URL-Leiste / Home-Indicator halten */
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 80; width: min(900px, calc(100vw - 1.5rem));
  background: var(--sage-deep); color: #fff;
  border-radius: 16px; box-shadow: 0 12px 44px rgba(46,42,38,.24);
  display: flex; align-items: center; gap: .6rem 1.4rem; flex-wrap: wrap;
  padding: 1rem 3rem 1rem 1.3rem;
  animation: floatIn .5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateX(-50%) translateY(22px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.group-float[hidden] { display: none; }
.group-float__text { flex: 1 1 260px; min-width: 0; }
.group-float__text strong { color: #fff; font-weight: 600; font-size: 1.14rem; line-height: 1.3; letter-spacing: .005em; }
.group-float__links { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-left: auto; }
.group-float a.gf-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .58rem 1.25rem; border-radius: 100px;
  font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
/* gefüllter Hauptbutton — einladend, hebt sich vom Salbei-Grün ab */
.group-float a.gf-link--primary { background: #fff; color: var(--sage-deep); }
.group-float a.gf-link--primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
/* schlanker Geister-Button für die sekundäre Aktion */
.group-float a.gf-link--ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.group-float a.gf-link--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-1px); }
.group-float__close {
  position: absolute; top: .55rem; right: .6rem;
  background: none; border: 0; color: rgba(255,255,255,.75);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.group-float__close:hover { background: rgba(255,255,255,.16); color: #fff; }
.group-float__close svg { width: 17px; height: 17px; }
@media (max-width: 560px) {
  /* Auf Mobil sauber stapeln: Titel oben, darunter beide Buttons nebeneinander */
  .group-float {
    flex-direction: column; align-items: stretch; gap: .8rem;
    padding: 1rem 2.5rem 1rem 1.15rem;
  }
  /* sonst wächst der Titel im Spalten-Layout vertikal und reißt die Box auf */
  .group-float__text { flex: 0 0 auto; }
  .group-float__text strong { font-size: .98rem; line-height: 1.35; }
  .group-float__links { width: 100%; margin-left: 0; gap: .6rem; }
  .group-float a.gf-link { flex: 1; justify-content: center; padding-inline: .8rem; }
}

/* ==========================================================================
   Generic content blocks
   ========================================================================== */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--sage-pale); box-shadow: var(--shadow);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: -1; }
  .split__media { aspect-ratio: 16 / 11; }
}

/* ---- Full-bleed alternating feature rows (image edge-to-edge / text column) ---- */
/* Each section fills the viewport so the next one isn't visible until you scroll. */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 82vh; min-height: 82svh; }
.feature__media { position: relative; min-height: clamp(380px, 64vh, 680px); background: #F0B9A04D; overflow: hidden; }
.feature__media .img-placeholder { position: absolute; inset: 0; z-index: 0; }
/* Parallax image: taller than its window, translated on scroll (JS) */
.feature__media .parallax {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%;
  object-fit: cover; z-index: 1; will-change: transform;
}
/* "Fixed image, moving frame" — the photo is locked to the viewport (zoomed to
   cover) while the section scrolls over it like a window. */
.feature__media--fixed {
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 860px) {
  /* mobile browsers handle fixed backgrounds badly → fall back to normal.
     Inline-/JS-gesetzte Desktop-Crops (115% / 26vw) überschreiben, damit das
     Bild die Fläche auf Mobil komplett ausfüllt. */
  .feature__media--fixed {
    background-attachment: scroll;
    background-size: cover !important;
    background-position: center !important;
  }
}

/* Inset variant: a small, centered image card on the tinted panel (kein Vollbild) */
.feature__media--inset {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.inset-frame {
  position: relative; width: min(360px, 82%); aspect-ratio: 3 / 4;
  border-radius: var(--img-radius); overflow: hidden; box-shadow: var(--shadow-lift); background: #e9ddd2;
}
.inset-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.inset-frame .img-placeholder { position: absolute; inset: 0; z-index: 0; }

.feature__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.75rem, 5.5vw, 5.5rem) clamp(2.5rem, 9vw, 9rem);
}
.feature__body > .inner { width: 100%; max-width: 37rem; }
/* extra-luftige Variante (Meine Haltung): mehr Atem oben/unten */
.feature__body--airy { padding-top: clamp(5.75rem, 13vw, 11rem); padding-bottom: clamp(5.75rem, 13vw, 11rem); }
/* erste Startseiten-Sektion etwas länger, damit auf 14"-Screens keine
   schmale Randzeile der nächsten Sektion durchblitzt */
.feature--tall { min-height: 85vh; min-height: 85svh; }
/* normal: image left, text right → hug left of the text column */
.feature__body > .inner { margin-right: auto; }
/* reversed: text left, image right */
.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__body > .inner { margin-left: auto; margin-right: 0; }
/* Startseiten-Abschnittstitel auf dieselbe Größe wie die Seitentitel (h1) der Unterseiten */
.feature__body h2 { font-size: clamp(1.8rem, 3.8vw, 2.5rem); margin-bottom: 1.2rem; }
/* Sekundäre Abschnittstitel (Meine Haltung, Was versteht man …) kleiner */
.feature__body h2.feature-sub { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.feature__body .stack > * + * { margin-top: 1rem; }
/* "Book / poetry" prose — airy leading, original line breaks preserved */
.poetry { max-width: 37rem; }
.poetry p { line-height: 1.72; }
.poetry strong { color: var(--ink); }
@media (max-width: 520px) { .poetry p br { display: none; } } /* let it reflow on small phones */
.feature__body .btn { margin-top: 1.8rem; }

/* Sticky-image feature (Meine Haltung): image pins & stays while the text
   column scrolls past it — section height is driven by the text, not the image. */
.feature--sticky { align-items: start; min-height: 0; }
.feature--sticky .feature__media {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 0;
}
.feature--sticky .feature__body { padding-block: clamp(3rem, 9vh, 6rem); }
/* extra overshoot so the pinned image can drift without exposing an edge */
.feature--sticky .feature__media img { top: -11%; height: 122%; will-change: transform; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; min-height: auto; }
  .feature__media { min-height: 56vh; order: -1; }
  .feature--reverse .feature__media { order: -1; }
  .feature__body { padding-block: clamp(2rem, 8vw, 3rem); }
  .feature--sticky .feature__media { position: static; height: auto; min-height: 56vh; }
  /* erstes Bild (Porträt-Karte) auf Mobil kleiner halten */
  .feature__media--inset { min-height: 0; padding: clamp(1.5rem, 7vw, 2.5rem); }
  .feature__media--inset .inset-frame { width: min(230px, 60%); }
}

/* ---- Split with sticky image on a tinted panel (Über-mich-Seite) ---- */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.about__left { background: #F0B9A04D; position: relative; }
.about__sticky {
  position: sticky; top: var(--header-h);
  height: 100vh; height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 4vw, 4rem);
  display: flex; align-items: center; justify-content: center;
}
/* text variant (Ablauf-Seite): stacked, left-aligned intro on the panel */
.about__sticky--text {
  flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 1.3rem; text-align: left;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(3rem, 7vw, 7rem);
}
.about__sticky--text > * { max-width: 30rem; }
.about__sticky--text h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.about__sticky--text p { color: var(--ink); }
.about__img {
  position: relative;
  width: min(330px, 80%); aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--img-radius);
  background: #e9ddd2; box-shadow: var(--shadow-lift);
}
.about__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.about__img .img-placeholder { position: absolute; inset: 0; z-index: 0; }
.about__right { padding: clamp(2.5rem, 5vw, 5.5rem) clamp(2.5rem, 6.5vw, 7rem); }
.about__right > * + * { margin-top: 1.1rem; }
.about__right h1 { margin-bottom: .2rem; }
.about__kicker { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink); letter-spacing: .01em; }
.about__intro { color: var(--ink); font-weight: 500; }
.about__label { color: var(--ink); font-weight: 700; margin-top: 1.8rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__left { order: -1; }
  .about__sticky { position: static; height: auto; padding: clamp(1.5rem, 6vw, 2.5rem); }
  .about__img { aspect-ratio: 4 / 3; max-width: 460px; }
}

/* ---- Schmaler Vollbreiten-Banner (Ziele-Seite) ---- */
.banner { position: relative; }
.banner__media { position: relative; height: clamp(96px, 12vw, 160px); background: var(--panel); overflow: hidden; }
.banner__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; z-index: 1; }
.banner__media .img-placeholder { position: absolute; inset: 0; z-index: 0; }

/* Seitentitel im Seitenfluss (wie Über mich / Ablauf) */
/* mehr Luft unter dem Banner (Titel sitzt tiefer), wenig Abstand zum 1. Abschnitt */
.page-head { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(0.4rem, 1vw, 0.75rem); }
.page-head h1 { color: var(--ink); }

/* erster Ziele-Abschnitt rückt näher an den Seitentitel heran */
.goals-band--lead { padding-top: clamp(1.25rem, 2.5vw, 1.75rem); }

/* Variante v2: Seitentitel als Auftakt im ersten Abschnitt (statt eigener Block) */
.goals__title {
  font-family: var(--font-head); color: var(--accent);
  font-size: clamp(1.8rem, 3.8vw, 2.5rem); line-height: 1.15;
  margin: 0 0 clamp(1.6rem, 3.2vw, 2.6rem); max-width: 24ch;
}
/* zentrierte Titel-Variante (als „Hero" unter dem Banner) */
.goals__title--center {
  text-align: center; max-width: 30ch;
  margin-inline: auto; margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

/* ---- Thin orange divider rule (Legacy – auf der Ziele-Seite durch Bänder ersetzt) ---- */
.rule-orange { border: 0; height: 1px; background: var(--accent); opacity: .55; margin: 0; }

/* ---- Ziele: sanfte, abwechselnde Bänder statt harter Trennlinien ---- */
.goals-band { padding-block: clamp(3rem, 6.5vw, 5.5rem); }
.goals-band--alt { background: var(--bg-alt); }

/* ---- Contained alternating image/list rows (Ziele-Seite) ---- */
.goals__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.2rem, 5vw, 4.75rem);
  align-items: center;
}
.goals__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); border-radius: var(--img-radius); box-shadow: var(--shadow); }
.goals__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.goals__media .img-placeholder { position: absolute; inset: 0; z-index: 0; }
.goals__row--reverse .goals__media { order: 2; }
/* großer Serifen-Index — greift das 01/02/03-Motiv der Angebote (Startseite) auf */
.goals__index {
  display: block; font-family: var(--font-head); color: var(--ink);
  font-size: clamp(2.3rem, 4.5vw, 3.2rem); line-height: 1; margin-bottom: 1.15rem;
}
.goals__body h2 { margin-bottom: 1.4rem; }
.goals__body .feature-list { gap: .6rem; }
.goals__body .feature-list li { line-height: 1.55; padding-left: 1.7rem; }
.goals__body .feature-list li::before { top: .62em; width: 12px; }
@media (max-width: 760px) {
  .goals__row { grid-template-columns: 1fr; gap: 1.6rem; }
  .goals__row--reverse .goals__media { order: -1; }
  .goals__media { aspect-ratio: 16 / 10; }
  .goals__index { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: .8rem; }
  /* mehr Luft links/rechts auf der Ziele-Seite (Mobile) */
  .goals-band .wrap { padding-inline: clamp(2.4rem, 9vw, 3.4rem); }
}

/* ---- Cards (services) ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--sage-pale); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--sage-pale); color: var(--sage-deep); margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: 1rem; }

/* ---- Feature list (goals/methods) ---- */
.feature-list { list-style: none; display: grid; gap: .9rem; }
.feature-list li { position: relative; padding-left: 2rem; color: var(--ink-soft); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 15px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
/* wichtige Begriffe (ÖGK, Kassentherapeutin, Kosten …) dezent hervorheben:
   dunkler als der Fließtext + etwas kräftiger – kein farbiges Highlight */
.about__right .feature-list strong { color: var(--ink); font-weight: 600; }

/* ---- Angebote: refined divided list with serif index ---- */
.offer-eyebrow {
  margin-top: 1.9rem; font-family: var(--font-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
/* flush-left, evenly divided rows with serif index — share the section's left edge */
.offer-list { list-style: none; margin-top: .9rem; display: grid; }
.offer-list li {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding: .95rem 0; border-top: 1px solid var(--line);
  color: var(--ink); font-weight: 500; line-height: 1.5;
}
.offer-list li:last-child { border-bottom: 1px solid var(--line); }
.offer-num {
  flex: 0 0 auto; min-width: 1.7rem;
  font-family: var(--font-head); font-size: 1.05rem; color: var(--accent); line-height: 1;
}

/* ---- Pricing / facts table ---- */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts__row { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 1.5rem; }
.facts__row + .facts__row { border-top: 1px solid var(--line); }
.facts__row dt { color: var(--ink); font-weight: 500; }
.facts__row dd { color: var(--sage-deep); font-weight: 600; font-family: var(--font-head); font-size: 1.3rem; white-space: nowrap; }

/* ---- Numbered steps ---- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.6rem; }
.steps li { position: relative; padding-left: 3.6rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sage-pale); color: var(--sage-deep);
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 600;
}
.steps h3 { margin-bottom: .25rem; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem 1rem; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-pale);
}
.field textarea { resize: vertical; min-height: 140px; }
.form__note { font-size: .85rem; color: var(--ink-faint); }
.form__status { font-size: .95rem; padding: .2rem 0; min-height: 1.4rem; }
.form__status.is-ok { color: var(--sage-deep); }
.form__status.is-err { color: #b4543a; }

/* ---- Contact info list ---- */
.contact-list { list-style: none; display: grid; gap: 1.3rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ci-icon {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sage-pale); color: var(--sage-deep);
}
.contact-list .ci-icon svg { width: 22px; height: 22px; }
.contact-list .ci-label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.contact-list .ci-value { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #414141; color: #d9d2c8; padding-block: clamp(2.5rem, 4vw, 3.5rem) 1.4rem; }
.site-footer a { color: #d9d2c8; }
.site-footer a:hover { color: #fff; }
/* zwei Spalten: links Kontakt, rechts das Nachrichtenformular */
.footer__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.8rem, 3vw, 2.6rem) clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
.footer__info { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.footer__info .brand__name { color: #fff; font-size: clamp(1.7rem, 2.4vw, 2.05rem); }
.footer__contact { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer__contact li, .footer__contact a { font-size: 1rem; color: #d9d2c8; }

/* footer message form (Web3Forms) — airy underline style à la Wix */
.footer__formtitle {
  font-family: var(--font-head); font-weight: 400; text-transform: none; letter-spacing: 0;
  font-size: clamp(1.5rem, 2vw, 1.9rem); color: #fff; margin-bottom: 1.5rem;
}
/* Nachricht-Feld + Senden stehen nebeneinander (Button direkt neben den Feldern) */
.footer-form { display: grid; grid-template-columns: 1fr auto; gap: 1.6rem 1.6rem; align-items: end; max-width: none; }
.footer-form__row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.footer-form textarea { grid-column: 1; }
.footer-form__status { grid-column: 1 / -1; }
.footer-form input, .footer-form textarea {
  font: inherit; font-size: 1rem; color: #fff; background: transparent;
  border: 0; border-bottom: 1px solid rgba(255,255,255,.32); border-radius: 0;
  padding: .5rem 0; transition: border-color .2s ease;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #a79e92; }
.footer-form input:focus, .footer-form textarea:focus { outline: none; border-bottom-color: var(--accent); }
.footer-form textarea { resize: vertical; min-height: 64px; }
.footer-form .btn--primary {
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 100px; justify-content: center; grid-column: 2; justify-self: end; align-self: end;
  padding: .72rem 1.9rem; box-shadow: none; white-space: nowrap; font-weight: 500; letter-spacing: .01em;
}
.footer-form .btn--primary:hover { background: #fff; border-color: #fff; color: #3a3531; transform: none; box-shadow: none; }
.footer-form__note { font-size: .74rem; color: #8c8478; line-height: 1.4; }
.footer-form__note a { text-decoration: underline; text-underline-offset: 2px; }
.footer-form__status { font-size: .85rem; min-height: 1.2rem; color: #cfc7bb; }
.footer-form__status.is-ok { color: #9fd0a8; }
.footer-form__status.is-err { color: #e8a18c; }

.footer__bottom {
  margin-top: clamp(1rem, 2vw, 1.5rem); padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; align-items: center;
  font-size: .82rem; color: #8c8478;
}
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { color: #8c8478; }
@media (max-width: 760px) {
  /* alles untereinander: Kontakt, Formular */
  .footer__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .footer__info, .footer__form-wrap { grid-column: 1; grid-row: auto; min-width: 0; }
  /* Formular einspaltig: Name + E-Mail untereinander, Button unter dem Feld */
  .footer-form { grid-template-columns: 1fr; max-width: none; min-width: 0; }
  .footer-form__row { grid-template-columns: 1fr; }
  .footer-form textarea, .footer-form .btn--primary { grid-column: 1; }
  .footer-form .btn--primary { justify-self: start; }
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-bottom: 1rem; }
.page-hero p { max-width: 60ch; }

/* ==========================================================================
   Timeline (Werdegang)
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 0; margin-left: .4rem; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: .4rem; bottom: .4rem; width: 2px;
  background: var(--line);
}
/* orange fill that grows down the line as you scroll (JS sets --fill) */
.timeline::after {
  content: ""; position: absolute; left: 9px; top: .4rem; width: 2px;
  height: var(--fill, 0px); max-height: calc(100% - .8rem);
  background: var(--accent); transition: height .12s linear;
}
.timeline li { position: relative; padding: 0 0 2rem 2.6rem; list-style: none; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: .35rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--sage);
  box-shadow: 0 0 0 4px var(--bg);
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
/* dot lights up once the orange progress line reaches it */
.timeline li.is-reached::before { background: var(--accent); border-color: var(--accent); }
.timeline .t-year {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--sage-deep);
  display: block; margin-bottom: .15rem; transition: color .3s ease;
}
/* year lights up too once the progress line reaches its dot */
.timeline li.is-reached .t-year { color: var(--accent); }
.timeline .t-role { color: var(--ink); font-weight: 500; }
.timeline .t-place { color: var(--ink-faint); font-size: .95rem; }

/* ==========================================================================
   Theme blocks (goals/methods groups)
   ========================================================================== */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.theme {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; box-shadow: var(--shadow);
}
.theme h3 { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; }
.theme h3 .theme__icon {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center;
  background: var(--sage-pale); color: var(--sage-deep);
}
.theme h3 .theme__icon svg { width: 20px; height: 20px; }

/* ==========================================================================
   Callout / info box
   ========================================================================== */
.callout {
  border-left: 3px solid var(--sage); background: var(--sage-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.2rem 1.5rem; color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

/* prose blocks for legal/long text */
.prose { max-width: var(--maxw-text); }
.prose__title { font-size: clamp(1.9rem, 3.4vw, 2.4rem); margin: .25rem 0 .4rem; }
.prose__meta { color: var(--ink-faint); margin-bottom: 1.4rem; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin: 2.2rem 0 .8rem; }
.prose h2:first-of-type { margin-top: 1.6rem; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--sage-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-34px); }
.reveal--right { transform: translateX(34px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
