/* ==========================================================================
   GeborgenWachsen · Version 2.1
   ruhig, präzise, hochwertig: EB Garamond (Überschriften, Wortmarke, Hervorhebungen)
   + Figtree (Text, Navigation, Buttons). Klares 12-Spalten-Raster ab 64em, eine
   einheitliche Listenform, wenige Ornamente: der Bogen als Bildmaske, das Motiv
   „Vier Linien“ (Braun, Lila, Petrol, Frühlingsgrün) an genau drei Stellen –
   Hero, Leitsatz, oberer Abschluss des Footers – und die Wurzel aus dem Logo als
   zartes Wasserzeichen (Footer, I.B.T., Ablauf).
   Ein Stylesheet für alle Seiten, mobile-first, keine externen Ressourcen.
   Schriften: assets/fonts/fonts.css.

   Am Rechner passt jeder Block (Hero samt Button, Bild/Bild-Text-Gruppe, Preistabelle,
   jeder Ablauf-Schritt, I.B.T.-Block, Kontaktblock) in den sichtbaren Bereich – deshalb
   hängen Bildhöhen, Hero-Überschrift und Abschnittsabstände auch an der Fensterhöhe (vh).

   Zustandsklassen am <html>:
   .js          JavaScript aktiv (Inline-Skript im <head>; sonst main.js)
   .intro       Hero-Einstieg läuft (Inline-Skript, nur wenn die Seite beim ersten
                Frame sichtbar im Fokus ist)
   .motion      Einblenden beim Scrollen ist scharf geschaltet (main.js)
   .menu-open   mobiles Menü offen
   ========================================================================== */

/* ---------- 1 · Tokens ---------- */
:root {
  /* Marke (verbindlich, siehe design-brief.md) */
  --beige-50:  #FBF7F0;
  --beige-100: #F5EDE1;
  --beige-200: #ECE0CD;
  --beige-300: #DCCBB1;
  --braun-900: #33241B;
  --braun-700: #5A3F2E;
  --braun-500: #7A5B46;
  --petrol-800:#154A50;
  --petrol-700:#1D5E66;
  --petrol-500:#2F7F86;
  --petrol-100:#DCEAE8;
  --lila-700:  #5D4479;
  --lila-500:  #7E64A0;
  --lila-100:  #ECE5F2;
  --gruen-700: #4F6E26;
  --gruen-500: #7FA24A;
  --gruen-300: #A9C47A;
  --gruen-100: #E7EFD8;

  /* feine Linien (Tabellen, Fragen, Trenner) */
  --line: rgba(122, 91, 70, .26);

  /* Schrift */
  --ff-serif: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ff-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-body:  clamp(1.0625rem, 1rem + .25vw, 1.1875rem);          /* 17 → 19px */
  --fs-small: clamp(.9rem, .87rem + .15vw, .97rem);
  --fs-label: .78rem;
  --fs-lead:  clamp(1.18rem, 1.08rem + .42vw, 1.4rem);
  --fs-h1:    clamp(2.5rem, min(1.5rem + 3.8vw, 10.5vh), 4.5rem);  /* auch an der Fensterhöhe */
  --fs-h2:    clamp(2.125rem, 1.55rem + 2.1vw, 3.25rem);
  --fs-h3:    clamp(1.45rem, 1.3rem + .55vw, 1.8rem);
  --fs-statement: clamp(1.35rem, 1.2rem + .6vw, 1.625rem);

  /* Raum & Raster */
  --gutter: clamp(1.25rem, .75rem + 2.5vw, 3rem);
  --maxw: 76rem;
  --gap: clamp(1.25rem, .5rem + 1.5vw, 2rem);           /* Spaltenabstand im 12er-Raster */
  --section: clamp(3rem, 8vh, 6.5rem);                  /* Abschnittsabstand */
  --header-h: 3.75rem;                                  /* Kopfzeile oben */
  --header-compact: 3.75rem;                            /* Kopfzeile beim Scrollen */
  --radius: .375rem;

  /* Bewegung */
  --ease: cubic-bezier(.22, .7, .2, 1);

  --focus: var(--lila-700);
}
@media (min-width: 64em) {
  :root { --header-h: 4.5rem; --header-compact: 4rem; }
}
@media (min-width: 100em) {
  :root { --maxw: 82rem; }
}
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
}

/* ---------- 2 · Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-compact) + .5rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background-color: var(--beige-100);
  color: var(--braun-900);
  font-family: var(--ff-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

p, ul, ol, figure, blockquote, address, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }

p {
  max-width: 38em;
  text-wrap: pretty;
  hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
  overflow-wrap: break-word;
}
p + p { margin-top: 1em; }

strong, b { font-weight: 600; }

a {
  color: var(--petrol-700);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
a:hover { color: var(--petrol-800); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--lila-100); color: var(--braun-900); }

h1, h2, h3,
.h1, .h2, .h3 {
  margin: 0;
  font-family: var(--ff-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--braun-700);
  text-wrap: balance;
  hyphens: auto;
  hyphenate-limit-chars: 12 5 5;
  overflow-wrap: break-word;
}
.h1 { font-size: var(--fs-h1); line-height: 1.04; }
.h2 { font-size: var(--fs-h2); line-height: 1.08; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; }

/* ® klein & hochgestellt, ohne den Zeilenabstand zu stören */
.r {
  font-size: .55em;
  line-height: 0;
  vertical-align: .62em;
  margin-left: .03em;
  font-style: normal;
  letter-spacing: 0;
}
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 1rem; top: -5rem;
  z-index: 100;
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  background: var(--petrol-800);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Funktions-Icons aus dem Sprite */
.ic {
  display: inline-block;
  flex: none;
  width: 1.15em; height: 1.15em;
  vertical-align: -0.2em;
  fill: currentColor;
  overflow: visible;
}

/* ---------- 3 · Layout: Container, Abschnitte, 12-Spalten-Raster ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: var(--section);
}
.section--light { background-color: var(--beige-50); }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
@media (min-width: 64em) {
  .grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: clamp(2.5rem, 1.5rem + 2vw, 3.5rem);
  }
  /* Überschrift links (Spalte 1–5), Inhalt rechts (Spalte 7–12) */
  .split__head { grid-column: 1 / span 5; }
  .split__body { grid-column: 7 / -1; }
  .split__head--sticky {
    position: sticky;
    top: calc(var(--header-compact) + 2rem);
    align-self: start;
  }
}

/* ---------- 4 · Textbausteine ---------- */
.kicker {
  margin: 0 0 1.1rem;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gruen-700);
}
.kicker .r { letter-spacing: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--braun-700);
}
.lead + p { margin-top: 1.25em; }

/* Hervorhebung (Petras fett geschriebene Sätze): Garamond, nicht fett, feine Petrol-Linie links */
.statement {
  max-width: 28em;
  padding: .05em 0 .1em 1.15em;
  border-left: 2px solid var(--petrol-500);
  font-family: var(--ff-serif);
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.34;
  color: var(--braun-700);
  hyphens: manual;
  text-wrap: pretty;
}
p + .statement,
.statement:not(:first-child) { margin-top: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }

/* Eine Listenform für alle Aufzählungen: kurzer Petrol-Strich auf Höhe der ersten Zeile */
.list {
  display: grid;
  row-gap: .6em;
}
.list > li {
  position: relative;
  padding-left: 1.55em;
  hyphens: auto;
  text-wrap: pretty;
}
.list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: .75em;
  height: 2px;
  margin-top: -1px;
  background: var(--petrol-500);
}
@supports (top: 1lh) {
  .list > li::before { top: .5lh; }
}
/* Lange Listen ab ca. 900px zweispaltig, fließend wie Zeitungsspalten (kurze Punkte).
   Die rechte Spalte beginnt genau auf Rasterspalte 7. */
@media (min-width: 56.25em) {
  .list--cols {
    display: block;
    column-count: 2;
    column-gap: var(--gap);
  }
  .list--cols > li {
    break-inside: avoid;
    margin-bottom: .6em;
  }
}
.list-intro {
  margin-bottom: .75rem;
  font-family: var(--ff-serif);
  font-size: var(--fs-statement);
  font-weight: 500;
  line-height: 1.3;
  color: var(--braun-700);
}

/* ---------- 5 · Buttons & Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 3rem;
  padding: .75em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn--primary {
  background: var(--petrol-700);
  border-color: var(--petrol-700);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--petrol-800);
  border-color: var(--petrol-800);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  border-color: var(--petrol-700);
  color: var(--petrol-700);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--petrol-700);
  color: #fff;
}
.btn__icon {
  width: 1.1em; height: 1.1em;
  transition: transform .3s var(--ease);
}
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--sm { min-height: 2.75rem; padding: .5em 1em; font-size: .9375rem; }
.btn--lg { min-height: 3.25rem; padding: .85em 1.5em; font-size: 1.0625rem; }
/* unter 360px etwas weniger Innenabstand – „Erstgespräch vereinbaren“ bleibt einzeilig */
@media (max-width: 22.49em) {
  .btn--lg { padding-inline: 1.1em; }
}

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  color: var(--petrol-700);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - .55rem) / 100% 1px;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.link-quiet:hover {
  color: var(--petrol-800);
  background-size: 30% 1px;
}
.link-quiet .ic { transition: transform .3s var(--ease); }
.link-quiet:hover .ic { transform: translateY(2px); }

/* ---------- 6 · Header & Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(245, 237, 225, 0);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled,
.menu-open .site-header {
  background-color: rgba(251, 247, 240, .94);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  backdrop-filter: saturate(1.1) blur(12px);
}
.menu-open .site-header { background-color: var(--beige-50); }

.header__inner {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--header-h);
  transition: min-height .3s var(--ease);
}
.is-scrolled .header__inner { min-height: var(--header-compact); }

/* Logo: Bildzeichen „Bogen mit Wurzel“ (Inline-SVG) + Wortmarke „GeborgenWachsen“ in EB Garamond 500.
   Das Bildzeichen hängt an der Schriftgröße der Wortmarke (--wm): 1,06 × 1,59 em, die Füße der Bögen
   stehen auf der Grundlinie, die Wurzel reicht wie eine Unterlänge darunter (align-items: center genügt). */
.brand {
  --wm: clamp(1.18rem, 1.05rem + .55vw, 1.5rem);
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--wm) * .38);
  min-width: 0;
  min-height: 44px;
  margin-right: auto;
  color: var(--braun-700);
  text-decoration: none;
  border-radius: .25rem;
}
.brand:hover { color: var(--braun-700); }
.brand__emblem {
  width: calc(var(--wm) * 1.06);
  height: calc(var(--wm) * 1.59);
  flex: none;
  overflow: visible;
}
.brand__word {
  font-family: var(--ff-serif);
  font-size: var(--wm);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  color: var(--braun-700);
  white-space: nowrap;
}
/* Farben und Strichstärken (je Pfad, die Wurzel abgestuft) stehen als Attribute im SVG – bitte nicht überschreiben */
.brand__emblem path { fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Kontakt-Button in der Kopfzeile erst ab 375px – schmaler reicht der Platz neben der Wortmarke
   nicht (bei 360px stieße „GeborgenWachsen“ an den Button); dort steht „Kontakt“ im Menü */
.header__cta { order: 2; display: none; flex: none; }
@media (min-width: 23.4375em) {
  .header__cta { display: inline-flex; }
}

/* Menü-Button */
.menu-toggle {
  order: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  flex: none;
  min-height: 44px;
  min-width: 44px;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--braun-700);
  font: 600 .9375rem/1 var(--ff-sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.menu-toggle:hover { border-color: var(--braun-500); }
.menu-toggle__label {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (min-width: 30em) {
  .menu-toggle { padding-inline: .95rem; }
  .menu-toggle__label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
}
.menu-toggle__icon {
  position: relative;
  display: inline-block;
  width: 1.15rem; height: .7rem;
}
.menu-toggle__icon i {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle__icon i:first-child { top: 0; }
.menu-toggle__icon i:last-child { top: calc(100% - 1.5px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i { top: calc(50% - .75px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: rotate(-45deg); }

/* Mobiles Menü: ruhiges Blatt unter der Kopfzeile */
.menu {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: calc(100vh - 100%);
  height: calc(100dvh - 100%);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: .5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--beige-50);
  border-top: 1px solid var(--line);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-.5rem);
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s;
}
.menu__list { display: grid; }
.menu__list li { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: block;
  min-height: 3.5rem;
  padding: .7rem 0;
  font-family: var(--ff-serif);
  font-size: clamp(1.55rem, 1.3rem + 1.4vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--braun-700);
  text-decoration: none;
}
.menu__list a:hover,
.menu__list a[aria-current] { color: var(--petrol-700); }
.menu__contact {
  display: grid;
  gap: .25rem;
  max-width: none;
  margin-top: auto;
  font-size: var(--fs-small);
}
.menu__contact a {
  position: relative;
  display: block;
  min-height: 44px;
  padding: .65rem 0 .65rem 1.9rem;
  line-height: 1.35;
  color: var(--braun-700);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.menu__contact .ic {
  position: absolute;
  left: 0; top: .72rem;
  width: 1.15rem; height: 1.15rem;
  color: var(--petrol-700);
}
.menu-open { overflow: hidden; }

/* Ohne JavaScript: Navigation einfach sichtbar */
html:not(.js) .site-header { position: relative; }
html:not(.js) .header__inner { flex-wrap: wrap; padding-block: .5rem; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .menu {
  position: static;
  order: 5;
  flex-basis: 100%;
  height: auto;
  padding: 0;
  overflow: visible;
  background: none;
  border: 0;
  visibility: visible;
  opacity: 1;
  transform: none;
}
html:not(.js) .menu__list { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
html:not(.js) .menu__list li { border: 0; }
html:not(.js) .menu__list a { min-height: 44px; padding: .65rem 0; font-family: var(--ff-sans); font-size: 1rem; font-weight: 500; }
html:not(.js) .menu__contact { display: none; }

@media (min-width: 64em) {
  .menu-toggle { display: none; }
  .brand { margin-right: 0; }
  .header__inner { gap: 1rem; }
  .menu,
  html:not(.js) .menu {
    position: static;
    order: 2;
    flex-basis: auto;
    display: block;
    height: auto;
    margin-left: auto;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .menu__list,
  html:not(.js) .menu__list { display: flex; gap: clamp(0rem, -.9rem + 1.5vw, .9rem); }
  .menu__list li { border: 0; }
  .menu__list a,
  html:not(.js) .menu__list a {
    position: relative;
    min-height: 44px;
    padding: .7rem .5rem;
    font-family: var(--ff-sans);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .005em;
    color: var(--braun-700);
  }
  .menu__list a::after {
    content: "";
    position: absolute;
    left: .5rem; right: .5rem; bottom: .5rem;
    height: 1.5px;
    background: var(--petrol-700);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--ease);
  }
  .menu__list a:hover { color: var(--braun-900); }
  .menu__list a:hover::after,
  .menu__list a[aria-current]::after { transform: scaleX(1); }
  .menu__list a[aria-current] { color: var(--braun-900); }
  .menu__kontakt,
  .menu__contact,
  html:not(.js) .menu__kontakt { display: none; }
  .header__cta { order: 3; display: inline-flex; margin-left: .75rem; }
}

/* ---------- 7 · Bogen als Bildmaske ---------- */
.arch {
  position: relative;
  margin: 0;
  isolation: isolate;
}
.arch__frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  background: var(--beige-200);
}
.arch__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* höchstens eine dünne Kontur – leicht versetzt, wie im Emblem */
.arch::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--arch-line, rgba(122, 91, 70, .45));
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  transform: translate(.75rem, -.75rem);
  pointer-events: none;
}

/* ---------- 8 · Motiv „Vier Linien“ ---------- */
.lines {
  display: block;
  /* auf schmalen Bildschirmen breiter als der Bildschirm (mittig, Ränder abgeschnitten) –
     so bleibt der Schwung so ruhig wie am Rechner */
  width: max(100%, 60rem);
  max-width: none;
  margin-left: calc((100% - max(100%, 60rem)) / 2);
  overflow: visible;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.lines path {
  fill: none;
  stroke-width: 2.5;   /* Petra: „ein wenig dicker“ (vorher 1,75) */
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.lines__1 { stroke: var(--l1, var(--braun-500)); }
.lines__2 { stroke: var(--l2, var(--lila-500)); }
.lines__3 { stroke: var(--l3, var(--petrol-500)); }
.lines__4 { stroke: var(--l4, var(--gruen-500)); }

/* ---------- 9 · Einblenden beim Scrollen ----------
   Greift nur, wenn main.js die Bewegung scharf schaltet (.motion): Seite sichtbar im Fokus,
   IntersectionObserver vorhanden, keine Bewegungsreduktion. Ohne .motion (kein JS, Hintergrund-Tab,
   reduzierte Bewegung, Druck) ist alles sofort sichtbar. */
@media (prefers-reduced-motion: no-preference) {
  .motion .reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }
  .motion .reveal.is-in:not(.is-done) {
    transition: opacity .7s var(--ease), transform .8s var(--ease);
  }
}
/* Beim Scharfschalten den Ausgangszustand ohne Übergang übernehmen */
.motion-init *,
.motion-init *::before,
.motion-init *::after { transition: none !important; }

/* ---------- 10 · Hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-block: clamp(1.25rem, 4vh, 3.5rem) clamp(.75rem, 2.5vh, 1.75rem);
}
.hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
/* mobil: Bild zwischen Überschrift und Lead – Petra im ersten Blick */
.hero__text { display: contents; }
.hero__kicker  { order: 1; }
.hero__title   { order: 2; }
.hero__media   { order: 3; }
.hero__lead    { order: 4; }
.hero__actions { order: 5; }
.hero__trust   { order: 6; }

.hero__title { max-width: 14em; }
.hero__lead {
  margin-top: 1.25rem;
  max-width: 30em;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--braun-700);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.75rem;
  margin-top: 1.75rem;
}
.hero__trust {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--braun-500);
}
.hero__trust .sep { margin-inline: .5rem; }
/* „Traumaarbeit nach der I.B.T.®-Methode“ groß und in normaler Schreibweise:
   man sieht sofort, was Petra macht (statt kleiner Versal-Zeile) */
.hero__kicker {
  margin-bottom: clamp(.7rem, .45rem + 1vh, 1.2rem);
  font-size: clamp(1.1rem, .98rem + .55vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: .01em;
  text-transform: none;
}
.hero__name { font-weight: 600; color: var(--braun-700); }
/* bis 64em drei kurze Zeilen statt einer umbrechenden Zeile mit hängendem Trennpunkt */
@media (max-width: 63.99em) {
  .hero__trust > span:not(.sep) { display: block; }
  .hero__trust .sep { display: none; }
}

.hero__media {
  align-self: flex-end;
  width: min(60vw, 19rem);
  margin: 1.75rem .75rem 0 0;
}

.lines--hero {
  --lines-h: clamp(4rem, 2.75rem + 4vw, 7rem);
  position: relative;
  z-index: 0;
  height: var(--lines-h);
  margin-top: clamp(.5rem, 2vh, 1.5rem);
}

@media (min-width: 48em) {
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
    align-items: center;
  }
  .hero__text { display: block; }
  .hero__media {
    justify-self: end;
    width: min(100%, calc(min(68vh, 35rem) * .75));
    margin: .75rem .75rem 0 0;
  }
}
@media (min-width: 64em) {
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero__text { grid-column: 1 / span 7; }
  .hero__media { grid-column: 8 / -1; }
  /* rechts laufen die Linien hinter dem Fuß des Bogens durch, links bleiben sie unter dem Text */
  .lines--hero { margin-top: calc(var(--lines-h) * -.4); }
}

/* Hero-Einstieg: startet mit dem ersten Frame, jede Animation ≤ 700 ms, wartet auf nichts.
   Das LCP-Foto startet nie unsichtbar, es wächst nur per clip-path aus dem Bogen. */
@media (prefers-reduced-motion: no-preference) {
  .intro .hero__kicker,
  .intro .hero__title,
  .intro .hero__lead,
  .intro .hero__actions,
  .intro .hero__trust { animation: rise .65s var(--ease) backwards; }
  .intro .hero__title   { animation-delay: .03s; }
  .intro .hero__lead    { animation-delay: .07s; }
  .intro .hero__actions { animation-delay: .1s; }
  .intro .hero__trust   { animation-delay: .13s; }
  .intro .hero .arch__frame { animation: arch-grow .7s var(--ease) backwards; }
  .intro .hero .arch::before { animation: fade .6s var(--ease) .2s backwards; }
  .intro .lines--hero path { animation: wipe 1.4s var(--ease) .15s backwards; }
  .intro .lines--hero .lines__2 { animation-delay: .25s; }
  .intro .lines--hero .lines__3 { animation-delay: .35s; }
  .intro .lines--hero .lines__4 { animation-delay: .45s; }
}
@keyframes rise {
  0%   { opacity: 0; transform: translateY(12px); }
  45%  { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes arch-grow {
  from { clip-path: inset(14% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes wipe {
  from { clip-path: inset(-8px 100% -8px -8px); }
  to   { clip-path: inset(-8px -8px -8px -8px); }
}

/* ---------- 11 · Inhaltsabschnitte ---------- */
/* Frühe Belastungen · Signale: ein Abschnitt, zwei Teile im selben Raster */
.duo__part + .duo__part { margin-top: clamp(3rem, 2rem + 5vh, 5.5rem); }
.split__head .list-intro { margin: clamp(1rem, .75rem + 1vw, 1.5rem) 0 0; }
/* Was ist wichtig?: der Kernsatz steht links unter der Überschrift, darunter zart die Wurzel (nur am Rechner) –
   vorhandene Elemente statt neuer, damit der obere Teil weniger nach Textwand aussieht */
.wichtig__roots { display: none; }
@media (min-width: 64em) {
  .wichtig__roots {
    display: block;
    width: clamp(12rem, 22vw, 19rem);
    height: auto;
    margin-top: 2.25rem;
    color: var(--braun-500);
    opacity: .28;
    pointer-events: none;
  }
}

/* Signale: der Schlusssatz steht mittig unter der Liste (Petras Wunsch) */
.duo__note {
  max-width: 40em;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
@media (min-width: 64em) {
  .span-all { grid-column: 1 / -1; }
  /* Signale: Liste über beide Hälften des Rasters, der Schlusssatz mittig darunter */
  #signale { row-gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
  .duo__note { grid-column: 1 / -1; justify-self: center; }
}

/* Ich biete: Foto unter der Überschrift (am Rechner in der linken Spalte) */
.angebot__media {
  margin-top: clamp(1.25rem, .9rem + 1.2vw, 2rem);
  max-width: 26rem;
}
.angebot__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--beige-200); }

/* Ich biete · Leitsatz */
.leitsatz {
  margin-top: clamp(3.5rem, 10vh, 7.5rem);
  overflow-x: clip;   /* die Linien sind auf schmalen Bildschirmen breiter als der Bildschirm */
  text-align: center;
}
.leitsatz__text {
  display: grid;
  justify-items: center;
  gap: .2em;
  max-width: none;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.leitsatz__pre {
  font-family: var(--ff-serif);
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--braun-700);
}
.leitsatz__brand {
  font-family: var(--ff-serif);
  font-size: clamp(2.3rem, .8rem + 7.2vw, 6.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--braun-700);
}
.leitsatz__brand em {
  margin-left: -.07em;   /* großer Vorbreitenraum des kursiven W */
  font-style: italic;
  font-weight: 500;
  color: var(--gruen-700);
}
.lines--leitsatz {
  height: clamp(4rem, 2.75rem + 4.5vw, 7.5rem);
  margin-top: clamp(1rem, .5rem + 2vw, 2.25rem);
}
@media (prefers-reduced-motion: no-preference) {
  .motion .leitsatz.reveal:not(.is-in) { opacity: 1; transform: none; }
  .motion .leitsatz:not(.is-in) .leitsatz__text > span { opacity: 0; transform: translateY(14px); }
  .motion .leitsatz:not(.is-in) .lines path { clip-path: inset(-8px 100% -8px -8px); }
  .motion .leitsatz.is-in .leitsatz__text > span {
    transition: opacity .8s var(--ease), transform .9s var(--ease);
  }
  .motion .leitsatz.is-in .leitsatz__brand { transition-delay: .15s; }
  .motion .leitsatz.is-in .lines path {
    clip-path: inset(-8px -8px -8px -8px);
    transition: clip-path 1.6s var(--ease) .35s;
  }
  .motion .leitsatz.is-in .lines .lines__2 { transition-delay: .47s; }
  .motion .leitsatz.is-in .lines .lines__3 { transition-delay: .59s; }
  .motion .leitsatz.is-in .lines .lines__4 { transition-delay: .71s; }
}

/* I.B.T.® – dunkles Petrol (bleibt) */
.on-dark { --focus: var(--gruen-300); color: var(--beige-100); }
.on-dark .h2, .on-dark .h3 { color: var(--beige-50); }
.on-dark a { color: var(--beige-50); }
.ibt { background-color: var(--petrol-800); }
/* Wurzel-Ornament unter Überschrift und Unterzeile – nie hinter dem Text (wie im Ablauf), erst am Rechner */
.ibt__roots { display: none; }
@media (min-width: 64em) {
  .ibt__roots {
    display: block;
    width: clamp(12rem, 22vw, 19rem);
    height: auto;
    margin-top: 2.5rem;
    color: var(--gruen-300);
    opacity: .22;
    pointer-events: none;
  }
}
/* niedrige Rechner-Fenster (z. B. 1366×768, sichtbar ca. 650px): etwas weniger Innenabstand,
   damit das Petrol-Band als Ganzes auf den Bildschirm passt */
@media (min-width: 64em) and (max-height: 50em) {
  .ibt { padding-block: clamp(2.5rem, 6vh, 6.5rem); }
}
.ibt__subline {
  margin-top: 1.25rem;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gruen-300);
  hyphens: manual;
}
.ibt__lead {
  font-family: var(--ff-serif);
  font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--beige-50);
  hyphens: manual;
}
.ibt .split__body > p:not(.ibt__lead) { margin-top: 1.25em; color: var(--beige-100); }

/* Ablauf: Zeitleiste, deren Linie beim Scrollen mitwandert */
.ablauf .lead { margin-top: 1.25rem; max-width: 24em; }
/* Foto „Arbeit mit Kinderfüßen“ unter der Einleitung – klebt am Rechner mit dem Kopf neben der Zeitleiste */
.ablauf__media {
  width: min(60vw, 16rem);
  margin-top: 1.75rem;
}
.ablauf__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--beige-200); }
@media (min-width: 64em) {
  .ablauf__media { width: clamp(12rem, 17vw, 16rem); margin-top: 2.25rem; }
}
/* sehr niedrige Fenster: kleiner, damit der mitlaufende Kopf ganz sichtbar bleibt */
@media (min-width: 64em) and (max-height: 40em) {
  .ablauf__media { width: 11rem; margin-top: 1.5rem; }
}
.timeline {
  --node: 2.5rem;
  --line-x: calc(var(--node) / 2);
  --p: 1;
  position: relative;
  display: grid;
  row-gap: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: calc(var(--line-x) - 1px);
  top: var(--line-top, 1.25rem);
  bottom: var(--line-bottom, 1.25rem);
  width: 2px;
  pointer-events: none;
}
.timeline::before {
  background: repeating-linear-gradient(to bottom, var(--beige-300) 0 4px, transparent 4px 9px);
}
.timeline::after {
  background: var(--petrol-700);
  transform-origin: top center;
  transform: scaleY(var(--p));
}
.step {
  position: relative;
  padding-left: calc(var(--node) + 1.25rem);
}
.step__node {
  position: absolute;
  z-index: 1;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: var(--node); height: var(--node);
  border-radius: 50%;
  background: var(--beige-100);
  box-shadow: inset 0 0 0 1.5px var(--beige-300);
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--braun-700);
  transition: background-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease);
}
.step.is-reached .step__node {
  background: var(--petrol-700);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--petrol-700);
}
.step__label {
  display: flex;
  align-items: center;
  min-height: var(--node);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--braun-500);
}
.step__title { margin-top: .15rem; }
.step__meta {
  margin-top: .35rem;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--petrol-700);
}
.step__text { margin-top: .7rem; }
/* Sternchen an der Ressourcenkarte und die Erklärung darunter */
.fn { margin-left: .04em; font-weight: 600; color: var(--petrol-700); }
.step__fn {
  margin-top: .55rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--braun-500);
}
.step__fn .fn { margin: 0 .35em 0 0; }
/* „Gut zu wissen“ unter der Zeitleiste, bündig mit den Texten der Schritte */
.ablauf__hint {
  margin-left: calc(2.5rem + 1.25rem);
  padding: .15rem 0 .15rem 1.1rem;
  border-left: 2px solid var(--gruen-500);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--braun-700);
}
.ablauf__hint strong { color: var(--braun-900); }
@media (min-width: 64em) {
  .timeline { --node: 2.75rem; }
  .step { padding-left: calc(var(--node) + 1.75rem); }
  .ablauf__hint { margin-left: calc(2.75rem + 1.75rem); }
}

/* Preise: schlichte Tabelle mit feinen Linien, nichts hervorgehoben */
.prices {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: lining-nums tabular-nums;
}
.prices th,
.prices td {
  padding: 1.05rem 1rem 1.05rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
  font-weight: 400;
}
.prices thead th {
  padding-top: 0;
  padding-bottom: .8rem;
  border-bottom-color: var(--braun-500);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--braun-500);
}
.prices tbody th { font-weight: 500; color: var(--braun-900); text-wrap: balance; } /* kein einzelnes Wort allein in der letzten Zeile */
.prices__hint { font-weight: 400; color: var(--braun-500); }
.prices td { color: var(--braun-700); white-space: nowrap; }
.prices .prices__amount {
  padding-right: 0;
  text-align: right;
}
.prices td.prices__amount {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--braun-700);
}
.prices__dur { display: none; }
.prices__note {
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  color: var(--braun-500);
}
/* Paketangebot als Hervorhebung links unter „Preise“ (füllt die vorher leere Spalte) – etwas kleiner als
   die übrigen Hervorhebungen, weil der Satz länger ist */
.preise__paket { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); }
/* schmale Bildschirme: Dauer unter die Leistung (eigene Spalte entfällt) */
@media (max-width: 33.99em) {
  .prices .prices__dur-col { display: none; }
  .prices__dur {
    display: block;
    margin-top: .15rem;
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--braun-500);
  }
  .prices tbody th { padding-right: .75rem; }
}

/* Über mich: am Rechner als Ganzes auf einem Bildschirm lesbar (Petras Wunsch) –
   links Überschrift, Name und Foto, rechts die drei Teile in zwei Spalten */
.about__name {
  margin-top: .9rem;
  font-family: var(--ff-serif);
  font-size: clamp(1.45rem, 1.3rem + .6vw, 1.8rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--braun-700);
}
.about__sub {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--braun-700);
}
.about__sub + p { margin-top: .45rem; }
.about__part + .about__part { margin-top: 1.6rem; }
.about__text .statement { margin-top: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
/* Porträt (privat), bereits im Format 8:7 exportiert */
.about__media img {
  width: 100%;
  aspect-ratio: 8 / 7;
  object-fit: cover;
  background: var(--beige-200);
}
@media (min-width: 64em) {
  #ueber-mich .grid { row-gap: 1.4rem; align-items: start; }
  .about__head { grid-column: 1 / span 4; grid-row: 1; }
  .about__media { grid-column: 1 / span 4; grid-row: 2; }
  .about__text {
    grid-column: 5 / -1;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "motivation beruf"
      "haltung    beruf"
      "haltung    statement";
    gap: 1.6rem var(--gap);
    align-items: start;
    padding-left: clamp(0rem, -2rem + 3vw, 1.5rem);
    font-size: clamp(1rem, .93rem + .15vw, 1.0625rem);
    line-height: 1.55;
  }
  .about__part--motivation { grid-area: motivation; }
  .about__part--beruf      { grid-area: beruf; }
  .about__part--haltung    { grid-area: haltung; }
  .about__text .statement  { grid-area: statement; margin-top: 0; }
  .about__part + .about__part { margin-top: 0; }
}
/* kleinere Laptop-Fenster (z. B. 1024–1279 px breit und niedrig, oder nur ca. 600 px hoch):
   etwas engerer Satz, damit „Über mich“ auch dort ohne Scrollen lesbar bleibt – Schrift nicht unter 16 px */
@media (min-width: 64em) and (max-width: 79.99em) and (max-height: 44em),
       (min-width: 64em) and (max-height: 38em) {
  #ueber-mich .grid { row-gap: 1rem; }
  .about__text { gap: 1.05rem var(--gap); font-size: 1rem; line-height: 1.45; }
  .about__sub { font-size: 1.15rem; }
  .about__sub + p { margin-top: .3rem; }
  .about__text p + p { margin-top: .7em; }
  .about__text .statement { font-size: 1.25rem; line-height: 1.3; }
}

/* Häufige Fragen */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 44px;
  padding: 1.1rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--braun-700);
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }
.faq__q { transition: color .25s var(--ease); text-wrap: balance; }
.faq__item summary:hover .faq__q { color: var(--petrol-700); }
.faq__icon {
  position: relative;
  flex: none;
  width: 1.5rem; height: 1.5rem;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: .9rem; height: 1.5px;
  margin: -.75px 0 0 -.45rem;
  background: var(--petrol-700);
  transition: transform .35s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 clamp(0rem, 5vw, 3rem) 1.4rem 0; }
.faq__item[open] .faq__a { animation: faq-in .4s var(--ease) both; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .faq__item::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size .4s var(--ease), content-visibility .4s allow-discrete;
    }
    .faq__item[open]::details-content { block-size: auto; }
  }
}

/* Kontakt */
.kontakt { background-color: var(--beige-200); }
.kontakt .lead {
  margin-top: 1.1rem;
  max-width: 36em;
  font-size: clamp(1.12rem, 1.05rem + .3vw, 1.25rem);
}
.actions {
  display: grid;
  gap: .6rem;
  max-width: 27rem;
  margin-top: 1.6rem;
}
.action {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-height: 3.6rem;
  padding: .6rem 1.1rem;
  border: 1px solid var(--petrol-700);
  border-radius: var(--radius);
  background: transparent;
  color: var(--petrol-800);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.action:hover { background: rgba(251, 247, 240, .6); color: var(--petrol-800); }
.action__icon { width: 1.3rem; height: 1.3rem; }
.action__text { display: grid; min-width: 0; }
.action__text strong { font-size: 1.03rem; font-weight: 600; line-height: 1.25; }
.action__text small {
  font-size: .9rem;
  line-height: 1.35;
  color: var(--braun-700);
  overflow-wrap: anywhere;
}
.action--primary {
  background: var(--petrol-700);
  color: #fff;
}
.action--primary:hover { background: var(--petrol-800); border-color: var(--petrol-800); color: #fff; }
.action--primary .action__text small { color: var(--petrol-100); }
.action__ext { margin-left: auto; width: 1.1rem; height: 1.1rem; color: var(--braun-500); }
/* sehr schmale Bildschirme: Domain der E-Mail-Adresse auf eigener Zeile */
@media (max-width: 22.49em) {
  .action__text .nowrap { display: block; white-space: normal; }
  .action__text small { font-size: .84rem; }
}

/* Anschrift und Praxiszeiten unter den Kontaktwegen, am Rechner nebeneinander */
.kontakt__info {
  display: grid;
  gap: 1rem 2.5rem;
  margin-top: 1.4rem;
  font-size: 1rem;
  line-height: 1.5;
}
@media (min-width: 64em) {
  .kontakt__info { grid-template-columns: auto minmax(0, 1fr); }
}
.kontakt__address {
  font-style: normal;
  color: var(--braun-700);
}
.kontakt__org { display: block; font-weight: 600; color: var(--braun-900); }
.kontakt__name { white-space: nowrap; }
.hours { margin: 0; }
.hours dt { font-weight: 600; color: var(--braun-900); }
.hours dd { margin: 0; color: var(--braun-700); }
.hours dd + dt { margin-top: .5rem; }
@media (max-width: 24.99em) {
  .kontakt__sep { display: none; }
  .kontakt__name { display: block; }
}
.kontakt__note {
  max-width: 34em;
  margin-top: 1.25rem;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--braun-500);
}
.kontakt__media {
  justify-self: end;
  width: min(58vw, 17rem);
  margin-right: .75rem;
  --arch-line: rgba(90, 63, 46, .4);
}
@media (min-width: 48em) and (max-width: 63.99em) {
  .kontakt__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gap); align-items: center; }
  .kontakt__media { width: 100%; max-width: 20rem; margin-top: .75rem; }
}
@media (min-width: 64em) {
  .kontakt__grid { align-items: center; }
  .kontakt__text { grid-column: 1 / span 7; }
  .kontakt__media {
    grid-column: 8 / -1;
    width: min(100%, calc(min(64vh, 33rem) * .75));
    margin: .75rem .75rem 0 0;
  }
}
/* niedrige Rechner-Fenster (z. B. 1366×768, sichtbar ca. 650px): etwas engere Abstände,
   damit der Kontaktblock samt Praxiszeiten als Ganzes auf den Bildschirm passt */
@media (min-width: 64em) and (max-height: 50em) {
  .kontakt .lead { margin-top: .75rem; }
  .actions { margin-top: 1.1rem; }
  .kontakt__info { margin-top: 1rem; }
  .kontakt__note { margin-top: .85rem; }
  /* nach „Kontakt“ / „Erstgespräch vereinbaren“ landet der ganze Block im Bild */
  #kontakt { scroll-margin-top: -1.5rem; }
}
/* breite Bildschirme: die vier Kontaktwege zweispaltig */
@media (min-width: 75em) {
  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    max-width: 44rem;
  }
}

/* ---------- 12 · Footer: dunkel, oben die vier Linien ---------- */
.site-footer {
  position: relative;
  overflow: clip;
  /* unten Platz für den Button „Zurück nach oben“, damit er die letzte Zeile nicht verdeckt */
  padding: 0 0 calc(4.25rem + env(safe-area-inset-bottom));
  background-color: var(--braun-900);
  color: var(--beige-200);
}
.lines--footer {
  --l1: #A8846A;
  --l2: #9A82BC;
  --l3: #4E9EA4;
  --l4: var(--gruen-500);
  height: clamp(3.25rem, 2.25rem + 3vw, 5.5rem);
  margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 3.25rem);
  transform: translateY(-14%);
}
.footer__grid {
  position: relative;
  display: grid;
  gap: 2.25rem 2rem;
}
/* Bildzeichen auf Dunkelbraun: helle Fassung der vier Logofarben (Kontrast 6,8–11,4 : 1).
   Nur am Bildschirm – im Druck (weißer Grund) gelten die normalen Farben aus den SVG-Attributen. */
@media screen {
  .brand--footer .emb-gross-l,
  .brand--footer .emb-wurzel  { stroke: var(--beige-200); }
  .brand--footer .emb-klein-l { stroke: #BBA6D8; }
  .brand--footer .emb-klein-r { stroke: #AFCB7E; }
  .brand--footer .emb-gross-r { stroke: #A9D6D6; }
}
/* im Footer etwas größer; das Bildzeichen wächst über --wm mit */
.brand--footer { --wm: clamp(1.4rem, 1.25rem + .6vw, 1.75rem); }
.brand--footer .brand__word { color: var(--beige-50); }
/* Wurzel-Ornament: hängt zart an den vier Linien (wie in Version 1 „unten bei Impressum“) */
.footer__roots {
  position: absolute;
  top: clamp(.95rem, .7rem + .9vw, 1.65rem);
  left: 50%;
  width: clamp(15rem, 40vw, 30rem);
  height: auto;
  transform: translateX(-50%);
  color: var(--beige-300);
  opacity: .14;
  pointer-events: none;
}
/* schmale Bildschirme: kleiner und rechts, damit sie nicht hinter Bildzeichen und Wortmarke liegt */
@media (max-width: 63.99em) {
  .footer__roots { left: auto; right: var(--gutter); transform: none; width: 7rem; }
}
.footer__claim {
  margin-top: 1rem;
  max-width: 30em;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--beige-200);
}
.footer__br { display: none; }
@media (min-width: 30em) {
  .footer__br { display: inline; }
}
.footer__label {
  margin-bottom: .6rem;
  font-family: var(--ff-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gruen-300);
}
.footer__list { display: grid; gap: .1rem; line-height: 1.5; }
.footer__list li { overflow-wrap: anywhere; }
.footer__list a {
  display: inline-block;
  min-height: 44px;
  padding-block: .6rem;
  color: var(--beige-50);
  text-decoration: none;
  background: linear-gradient(var(--gruen-300), var(--gruen-300)) no-repeat left calc(100% - .55rem) / 0 1px;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.footer__list a:hover,
.footer__list a[aria-current] { color: var(--beige-50); background-size: 100% 1px; }
.footer__list li:not(:has(a)) { padding-top: .5rem; color: var(--beige-200); }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(220, 203, 177, .18);
  font-size: .875rem;
  color: var(--beige-300);
}
.footer__note { max-width: 56ch; }

@media (min-width: 40em) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .footer__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .footer__brand { grid-column: 1 / span 5; }
  .footer__col:nth-of-type(2) { grid-column: 7 / span 4; }
  .footer__col:nth-of-type(3) { grid-column: 11 / -1; }
}

/* Zurück nach oben (von main.js eingefügt): erscheint nach knapp einer Bildschirmhöhe rechts unten */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--petrol-700);
  border-radius: 50%;
  background: rgba(251, 247, 240, .94);
  color: var(--petrol-700);
  box-shadow: 0 2px 12px rgba(51, 36, 27, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.5rem);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s,
              background-color .25s var(--ease), color .25s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s,
              background-color .25s var(--ease), color .25s var(--ease);
}
.to-top:hover,
.to-top:focus-visible { background: var(--petrol-700); color: #fff; }
.to-top svg { width: 1.25rem; height: 1.25rem; }
.menu-open .to-top { opacity: 0; visibility: hidden; }

/* ---------- 13 · Bewegung reduzieren ---------- */
/* Alle Ausgangszustände für Einblendungen stehen in (prefers-reduced-motion: no-preference) –
   hier ist deshalb automatisch alles sichtbar. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 14 · Druck ---------- */
@media print {
  .site-header, .menu-toggle, .lines, .to-top,
  .footer__roots, .ibt__roots, .wichtig__roots { display: none !important; }
  body { background: #fff; }
  .section--light, .kontakt, .ibt, .site-footer { background: #fff; }
  .reveal, .leitsatz__text > span { opacity: 1 !important; transform: none !important; }
  .arch__frame { clip-path: none !important; }
  .on-dark, .on-dark .h2, .on-dark .h3, .on-dark p, .on-dark li, .on-dark a, .on-dark .brand__word { color: #000 !important; }
}

/* ==== Unterseiten: Impressum, Datenschutz, 404 ==== */
/* Rechtstexte: schmale Lesespalte, feine Linien statt Karten. Offene Angaben der Praxis stehen als
   <mark class="todo"> im Text – vor dem Livegang ersetzen oder samt Markierung löschen. */

/* ---------- 15 · Rechtstexte ---------- */
.legal {
  padding-block: clamp(2rem, 1.25rem + 3vw, 4.5rem) var(--section);
}
.legal__sheet {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
}
.legal__inner { max-width: 38em; }
.legal__title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); }
.legal__meta {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: var(--braun-500);
}
.legal__body {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
}
.legal__body > section {
  padding-block: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.legal__body h2 {
  margin-bottom: .75rem;
  font-size: var(--fs-h3);
  line-height: 1.22;
}
.legal__num {
  font-variant-numeric: lining-nums;
  color: var(--petrol-700);
}
.legal__body p { max-width: none; }
.legal__body ul {
  display: grid;
  row-gap: .5em;
  margin-top: 1em;
}
.legal__body ul + p { margin-top: 1em; }
/* gleiche Listenform wie auf der Startseite */
.legal__body li {
  position: relative;
  padding-left: 1.55em;
}
.legal__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: .75em;
  height: 2px;
  margin-top: -1px;
  background: var(--petrol-500);
}
@supports (top: 1lh) {
  .legal__body li::before { top: .5lh; }
}
.legal__body a { overflow-wrap: anywhere; }

/* Anschrift und Hinweise: feine Linie links statt Kasten */
.legal__card {
  padding: .1rem 0 .1rem 1.1rem;
  border-left: 1px solid var(--beige-300);
}
.legal__body .kontakt__note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  max-width: none;
  margin-top: 1em;
  color: var(--braun-700);
}
.legal__body .kontakt__note .ic { margin-top: .2em; color: var(--petrol-700); }

.legal__back { margin-top: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
.link-quiet--back:hover .ic { transform: translateX(-3px); }

/* Platzhalter: lila hinterlegt, gestrichelt umrandet, mit „Bitte prüfen“ davor */
.todo {
  padding: .1em .4em;
  border: 1.5px dashed var(--lila-700);
  border-radius: .3rem;
  background: var(--lila-100);
  color: var(--braun-900);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.todo::before {
  content: "Bitte pr\00FC fen";
  margin-right: .5em;
  padding: .3em .6em .25em;
  border-radius: .25rem;
  background: var(--lila-700);
  color: #fff;
  font-family: var(--ff-sans);
  font-size: .68em;
  font-weight: 700;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: .09em;
  text-transform: uppercase;
  vertical-align: .12em;
  white-space: nowrap;
}
.legal__todo .todo {
  display: block;
  padding: .7rem .95rem .75rem;
}

/* ---------- 16 · 404 ---------- */
.notfound { padding-bottom: clamp(4rem, 12vh, 8rem); }
.notfound .hero__lead { max-width: 34em; }
.notfound .hero__actions > :first-child { flex-basis: 100%; }
.notfound .link-quiet:hover .ic { transform: translateX(3px); }

@media print {
  .legal__back { display: none; }
}
