/* Sinnesknüpferei 2026
   Farben aus der bestehenden Seite und dem Logo. Rot ist der "rote Faden":
   Faden-Linien, Buttons, Links. Ocker und Senf nur als Begleitfarben.
   Radien: Bedienelemente als Pille, Flächen 22px, Fotos als Bogen oder Kreis. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-normal-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-normal-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-italic-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fffaf5;
  --peach: #f7cbb4;
  --peach-soft: #fce6d8;
  --apricot: #ffd9b3;
  --ochre: #da9444;
  --mustard: #936206;
  --ink: #352828;
  --ink-soft: #5f4a45;
  --red: #b80003;
  --wine: #6f0507;
  --sage: #dbe7dd;
  --sage-mid: #a8c3ae;
  --sage-deep: #3f5c4a;
  --white: #fffdfb;

  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --head-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
h1 { font-size: clamp(2.5rem, 4.7vw, 4.4rem); font-weight: 750; }
h2 { font-size: clamp(2.1rem, 3.7vw, 3.3rem); }
h3 { font-size: clamp(1.3rem, 1.6vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; font-variation-settings: "opsz" 32; }
::selection { background: var(--apricot); color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 36ch; }
.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); }
.source { font-size: 0.9rem; color: var(--ink-soft); }
.source a { color: var(--red); text-underline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 999px; z-index: 100; }
.skip:focus { left: 0.5rem; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font: 600 1rem/1 var(--body);
  padding: 0.95em 1.45em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--wine); }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.link {
  display: inline-flex; align-items: center; gap: 0.35em;
  color: var(--red); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link:hover { color: var(--wine); }

/* Menü ------------------------------------------------------------------
   Schwebende Glas-Pille nach Referenz (mohamedshehata.net), in Markenfarben:
   Dunkelbraun als Glas, Rot für Indikator und Kontakt-Button. Der Indikator
   gleitet zum Bereich, in dem man gerade ist, und folgt beim Überfahren der Maus. */
.site-head {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; padding-inline: 12px;
  pointer-events: none;
}
.pill-nav {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 12px; max-width: 100%;
  padding: 6px 6px 6px 20px;
  background: rgba(53, 40, 40, 0.88);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 250, 245, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 32px -10px rgba(53, 40, 40, 0.45);
}
.pill-logo { display: block; flex: none; padding: 4px 16px 4px 0; border-right: 1px solid rgba(255, 250, 245, 0.16); }
.pill-logo img { height: 21px; width: auto; }
.pill-track { position: relative; display: flex; }
.pill-links { position: relative; z-index: 2; display: flex; list-style: none; margin: 0; padding: 0; }
.pill-links a {
  display: block; padding: 9px 15px; border-radius: 999px;
  font: 550 0.88rem/1.1 var(--body); color: rgba(255, 250, 245, 0.68);
  text-decoration: none; white-space: nowrap; transition: color 0.25s;
}
.pill-links a:hover, .pill-links a.is-active, .pill-links a[aria-current="page"] { color: var(--white); }
.pill-links a:focus-visible { outline-color: var(--peach); outline-offset: 1px; border-radius: 999px; }
.pill-indicator {
  position: absolute; z-index: 1; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px; background: var(--red); opacity: 0; pointer-events: none;
  transition: left 0.45s var(--ease), width 0.45s var(--ease), opacity 0.25s;
}
.pill-indicator.is-on { opacity: 1; }
.pill-info {
  display: inline-flex; align-items: center; gap: 0.4em; flex: none;
  border: 0; border-radius: 999px; padding: 9px 13px; cursor: pointer;
  background: rgba(255, 250, 245, 0.1); color: var(--peach);
  font: 600 0.82rem/1 var(--body);
  transition: background-color 0.2s, color 0.2s;
}
.pill-info:hover { background: var(--peach); color: var(--wine); }
.pill-info:focus-visible, .pill-cta:focus-visible, .menu-btn:focus-visible { outline-color: var(--peach); }
.pill-cta {
  flex: none; padding: 12px 19px; border-radius: 999px;
  background: var(--red); color: var(--white); text-decoration: none;
  font: 700 0.74rem/1 var(--body); letter-spacing: 0.1em; text-transform: uppercase;
  transition: background-color 0.25s, translate 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.pill-cta:hover { background: var(--wine); translate: 0 -1px; }
.pill-cta.is-active { box-shadow: 0 0 0 3px var(--peach); }
.menu-btn {
  display: none; place-items: center; flex: none; width: 40px; height: 40px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 250, 245, 0.1); color: var(--white);
  transition: background-color 0.2s;
}
.menu-btn:hover { background: rgba(255, 250, 245, 0.2); }
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.menu-panel {
  display: none; pointer-events: auto;
  position: absolute; top: calc(100% + 10px); left: 12px; right: 12px;
  max-width: 420px; margin-inline: auto; padding: 10px; gap: 2px;
  background: rgba(53, 40, 40, 0.95);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 250, 245, 0.12); border-radius: 28px;
  box-shadow: 0 24px 48px -16px rgba(53, 40, 40, 0.55);
  opacity: 0; visibility: hidden; translate: 0 -10px; scale: 0.97; transform-origin: 50% 0;
  transition: opacity 0.25s, translate 0.35s var(--ease), scale 0.35s var(--ease), visibility 0s 0.35s;
}
.menu-panel.is-open { opacity: 1; visibility: visible; translate: 0 0; scale: 1; transition: opacity 0.25s, translate 0.35s var(--ease), scale 0.35s var(--ease); }
.menu-panel a {
  display: block; padding: 14px 18px; border-radius: 20px;
  color: var(--peach-soft); text-decoration: none;
  font: 650 1.2rem/1.2 var(--display); letter-spacing: -0.01em;
  transition: background-color 0.2s, color 0.2s;
}
.menu-panel a:hover, .menu-panel a.is-active, .menu-panel a[aria-current="page"] { background: var(--red); color: var(--white); }
main { padding-top: var(--head-h); }

@media (max-width: 1000px) {
  .pill-track { display: none; }
  .menu-btn { display: grid; }
  .menu-panel { display: grid; }
  .pill-nav { gap: 8px; padding-left: 16px; }
}
@media (max-width: 480px) {
  .site-head { top: 10px; }
  .pill-logo { padding-right: 10px; }
  .pill-logo img { height: 17px; }
  .pill-info span { display: none; }
  .pill-info { padding: 9px; }
  .pill-info .icon { width: 1.3em; height: 1.3em; }
  .pill-cta { padding: 11px 14px; font-size: 0.7rem; }
}

/* Roter Faden ----------------------------------------------------------- */
.thread path {
  fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.thread.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease); }

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(1.5rem, 4vw, 3.5rem) 0 var(--section); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 1.4rem; max-width: 13ch; }
.hero .lead { margin-bottom: 2.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 640px; justify-self: end; width: 100%; }
.hero-art .tree { position: absolute; left: 9%; top: 0; width: 82%; z-index: 1; }
.hero-art .thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; }
.hero-art .thread path { stroke-width: 3.5; }
.hero-art .thread.is-drawn path { transition-duration: 2.6s; }
.ph { position: absolute; z-index: 3; margin: 0; border: 7px solid var(--bg); overflow: hidden; background: var(--peach); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--a { width: 36%; aspect-ratio: 1; border-radius: 50%; left: -2%; bottom: 2%; }
.ph--b { width: 29%; aspect-ratio: 3 / 4; border-radius: 999px 999px 26px 26px; right: -1%; top: 6%; }
.ph--c { width: 21%; aspect-ratio: 1; border-radius: 50%; right: 8%; bottom: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 520px; order: -1; }
  .hero h1 { max-width: 14ch; }
}

/* Namen ----------------------------------------------------------------- */
.name { padding: var(--section) 0; background: var(--peach-soft); position: relative; overflow-x: clip; }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.name h2 { margin-bottom: 1.5rem; max-width: 14ch; }
.knots { display: grid; gap: clamp(1.4rem, 3vw, 2.4rem); }
.knot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.4rem; }
.knot .thread { width: 100%; height: 56px; overflow: visible; }
.knot .thread path { stroke-width: 3; }
.knot:nth-child(2) .thread.is-drawn path { transition-delay: 0.3s; }
.knot:nth-child(3) .thread.is-drawn path { transition-delay: 0.6s; }
.sense {
  font: 700 clamp(1.15rem, 1.7vw, 1.45rem)/1 var(--display);
  padding: 0.75em 1.15em; border-radius: 999px; background: var(--white);
  box-shadow: 0 1px 0 rgba(53, 40, 40, 0.06), 0 12px 24px -16px rgba(147, 98, 6, 0.45);
  white-space: nowrap;
}
.sense--ochre { background: var(--ochre); color: var(--ink); }
.sense--sage { background: var(--sage-mid); color: var(--ink); }
.sense--apricot { background: var(--apricot); }
.knot-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; }
@media (max-width: 900px) { .name-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .sense { padding: 0.7em 0.9em; } }

/* Das sind wir ---------------------------------------------------------- */
.team { padding: var(--section) 0; overflow-x: clip; }
.team-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.team-photo { position: relative; margin: 0; }
.team-photo img { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.team-photo::after {
  content: ""; position: absolute; z-index: -1; inset: auto -7% -5% auto; width: 62%; aspect-ratio: 1; border-radius: 50%; background: var(--apricot);
}
.team h2 { margin-bottom: 1.4rem; }
.team .prose { margin-bottom: 2.6rem; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.person {
  display: grid; grid-template-columns: 96px 1fr; gap: 1.1rem; align-items: center;
  padding: 1.1rem; border-radius: var(--radius); background: var(--white);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(53, 40, 40, 0.06), 0 18px 34px -26px rgba(111, 5, 7, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.person:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: 0 1px 0 rgba(53, 40, 40, 0.06), 0 26px 40px -26px rgba(111, 5, 7, 0.55); }
.person img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 22%; border-radius: 50%; border: 4px solid var(--peach); }
.person--logo img { border-color: var(--sage-mid); }
.person h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.person .role { display: block; color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.45rem; }
.person .link { font-size: 0.95rem; }
@media (max-width: 1000px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { max-width: 420px; }
}

/* Ergotherapie ---------------------------------------------------------- */
.quote { background: var(--peach); padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; overflow: clip; }
.quote blockquote { margin: 0; max-width: min(62%, 860px); }
.quote p {
  font: 700 clamp(1.9rem, 4.3vw, 3.7rem)/1.12 var(--display);
  letter-spacing: -0.02em; font-variation-settings: "opsz" 96; text-wrap: balance; max-width: 20ch;
}
.quote footer { margin-top: 1.4rem; font-weight: 600; color: var(--wine); }
.quote-photo {
  position: absolute; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%; translate: 0 -50%;
  width: clamp(220px, 27vw, 360px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0;
  border: 8px solid var(--peach-soft);
}
.quote-photo img { width: 100%; height: 100%; object-fit: cover; }
.quote-head { display: block; font: 700 1.05rem/1 var(--body); letter-spacing: 0; color: var(--wine); margin-bottom: 1.4rem; }
@media (max-width: 860px) {
  .quote blockquote { max-width: none; }
  .quote-photo { position: relative; right: auto; top: auto; translate: none; margin: 2.5rem 0 0 auto; width: 58%; }
  .quote blockquote { max-width: none; }
}

.ergo { padding: var(--section) 0; }
.ergo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.ergo h2 { margin-bottom: 1.4rem; }
.ergo-photo { margin: 2.2rem 0 0; border-radius: var(--radius) var(--radius) var(--radius) 999px; overflow: hidden; max-width: 520px; }
.ergo-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ergo-focus {
  background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem);
  box-shadow: 0 1px 0 rgba(53, 40, 40, 0.06), 0 22px 40px -30px rgba(111, 5, 7, 0.45);
  align-self: start;
}
.ergo-focus h3 { margin-bottom: 0.8rem; }
.ergo-focus p { color: var(--ink-soft); }
.pause {
  display: flex; gap: 0.8rem; align-items: flex-start;
  margin-top: 1.4rem; padding: 1rem 1.1rem; border-radius: 16px; background: var(--peach-soft); color: var(--wine); font-size: 0.97rem;
}
.pause .icon { margin-top: 0.15em; }
.pause button { font: inherit; font-weight: 700; color: var(--red); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 860px) { .ergo-grid { grid-template-columns: 1fr; } }

.reasons { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.reasons h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 1.8rem; max-width: 24ch; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.85rem 0.8rem; }
.tags li {
  --r: -1.2deg;
  background: var(--white); border: 2px solid var(--peach); border-radius: 14px; padding: 0.75rem 1.05rem; font-weight: 550; line-height: 1.35;
  rotate: var(--r);
  transition: rotate 0.35s var(--ease), background-color 0.25s;
}
.tags li:nth-child(3n) { --r: 1.4deg; }
.tags li:nth-child(4n+1) { --r: -0.6deg; }
.tags li:nth-child(5n) { --r: 2deg; }
.tags li:hover { rotate: 0deg; background: var(--peach); }

/* Logopädie ------------------------------------------------------------- */
.logo-sec { background: var(--sage); padding: var(--section) 0; }
.logo-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.logo-sec h2 { margin-bottom: 1.4rem; }
.logo-sec .prose p { color: #34463b; }
.logo-sec .source a { color: var(--sage-deep); }
.logo-here {
  margin-top: 2rem; padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); background: var(--white);
  border-left: 6px solid var(--sage-deep);
}
.logo-here h3 { margin-bottom: 0.7rem; }
.logo-here p { color: var(--ink-soft); }
.logo-photos { position: relative; aspect-ratio: 4 / 5; }
.logo-photos figure { margin: 0; position: absolute; overflow: hidden; }
.logo-photos img { width: 100%; height: 100%; object-fit: cover; }
.logo-photos .p1 { inset: 0 12% 22% 0; border-radius: 999px 999px var(--radius) var(--radius); }
.logo-photos .p2 { width: 48%; aspect-ratio: 1; right: 0; bottom: 0; border-radius: 50%; border: 8px solid var(--sage); }
@media (max-width: 900px) {
  .logo-grid { grid-template-columns: 1fr; }
  .logo-photos { max-width: 460px; }
}

/* Weg zum Therapieplatz ------------------------------------------------- */
.path { padding: var(--section) 0; overflow-x: clip; }
.path-head { max-width: 40ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.path-head h2 { margin-bottom: 1rem; }
.steps { position: relative; margin: 0 auto; max-width: 980px; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.steps > .thread { position: absolute; left: 50%; top: 0; width: 220px; height: 100%; translate: -50% 0; overflow: visible; pointer-events: none; }
.steps > .thread path { stroke-width: 3; }
.step { position: relative; width: calc(50% - 70px); counter-increment: step; margin-bottom: -1.4rem; }
.step:last-of-type { margin-bottom: 0; }
.step:nth-of-type(even) { margin-left: auto; }
.step-card {
  background: var(--white); border-radius: var(--radius); padding: 1.35rem 1.5rem 1.4rem 4.6rem; position: relative;
  box-shadow: 0 1px 0 rgba(53, 40, 40, 0.06), 0 18px 36px -28px rgba(111, 5, 7, 0.5);
  font-weight: 550; font-size: 1.08rem; line-height: 1.4;
}
.step-card::before {
  content: counter(step);
  position: absolute; left: 1.15rem; top: 50%; translate: 0 -50%;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.15rem/1 var(--display); background: var(--apricot); color: var(--wine);
}
.step:last-of-type .step-card::before { background: var(--red); color: var(--white); }
.step small { display: block; font-weight: 450; font-size: 0.93rem; color: var(--ink-soft); margin-top: 0.3rem; }
.path-foot { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; color: var(--ink-soft); font-size: 0.95rem; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps > .thread.scroll-draw path {
      animation: draw linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 70%;
      transition: none;
    }
  }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@media (max-width: 760px) {
  .steps { padding-left: 1.6rem; }
  .steps > .thread { left: 0; width: 24px; translate: 0 0; }
  .step { width: 100%; margin-bottom: 1rem; }
  .step-card { padding-left: 4.4rem; }
}

/* Kosten ---------------------------------------------------------------- */
.cost { padding: 0 0 var(--section); }
.cost-card {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center;
  background: var(--apricot); border-radius: calc(var(--radius) * 1.6); padding: clamp(2rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.cost-card h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 1.4rem; }
.price { position: relative; display: grid; place-items: center; text-align: center; width: clamp(200px, 22vw, 270px); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: var(--white); }
.price strong { display: block; font: 800 clamp(3.2rem, 5.5vw, 4.6rem)/1 var(--display); letter-spacing: -0.03em; }
.price span { display: block; font-weight: 600; margin-top: 0.35rem; }
.cost-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.cost-list li { padding-left: 1.6rem; position: relative; color: #4b3633; }
.cost-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: var(--wine); }
.cost-list strong { color: var(--ink); }
@media (max-width: 820px) {
  .cost-card { grid-template-columns: 1fr; }
  .price { width: 190px; }
}

/* Galerie-Streifen ------------------------------------------------------ */
.strip { padding: 0 0 var(--section); overflow-x: clip; }
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.strip-track {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.2rem; margin: 0;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--peach) transparent;
}
.strip-track figure { margin: 0; flex: none; scroll-snap-align: start; overflow: hidden; height: clamp(260px, 32vw, 400px); }
.strip-track img { height: 100%; width: auto; object-fit: cover; }
.strip-track figure:nth-child(3n+1) { border-radius: 999px 999px var(--radius) var(--radius); }
.strip-track figure:nth-child(3n+2) { border-radius: var(--radius); }
.strip-track figure:nth-child(3n) { border-radius: var(--radius) var(--radius) 999px 999px; }
.strip-track .round { border-radius: 50% !important; aspect-ratio: 1; }
.strip-track .round img { width: 100%; }

/* Kontakt --------------------------------------------------------------- */
.contact { background: var(--wine); color: var(--peach-soft); padding: var(--section) 0; overflow-x: clip; }
.contact h2 { color: var(--white); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5.5rem); }
.where h3, .contact h3 { color: var(--white); margin-bottom: 0.7rem; }
.where > p { font-size: 1.15rem; max-width: 38ch; }
.where a { color: var(--white); text-underline-offset: 4px; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; margin-top: 2.4rem; }
.way .icon { width: 2rem; height: 2rem; color: var(--apricot); margin-bottom: 0.6rem; }
.way ul { margin: 0 0 0.9em; padding-left: 1.1rem; }
.way p, .way li { font-size: 0.98rem; }
.where .ksp { display: inline-flex; align-items: center; gap: 1.1rem; margin-top: 2.4rem; background: var(--white); color: var(--ink); padding: 0.9rem 1.4rem 0.9rem 1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.98rem; line-height: 1.3; }
.where .ksp .icon { color: var(--red); }
.ksp img { height: 84px; width: auto; }
.where .ksp:hover { background: var(--peach-soft); }
.cards { display: grid; gap: 1.2rem; align-content: start; }
.c-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); }
.c-card h3 { color: var(--ink); font-size: 1.45rem; margin-bottom: 0.1rem; }
.c-card .who { color: var(--ink-soft); margin-bottom: 1.1rem; }
.c-card .tag-line { display: inline-block; font-weight: 700; font-size: 0.85rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--peach); color: var(--wine); margin-bottom: 0.9rem; }
.c-card--logo .tag-line { background: var(--sage-mid); color: #233529; }
.c-card a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; padding: 0.35rem 0; overflow-wrap: anywhere; }
.c-card a:hover { color: var(--red); }
.c-card a .icon { color: var(--red); }
.c-card address { font-style: normal; color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.8rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ways { grid-template-columns: 1fr; } }

/* Footer ---------------------------------------------------------------- */
.site-foot { background: var(--bg); padding: clamp(2.5rem, 5vw, 3.5rem) 0; font-size: 0.95rem; color: var(--ink-soft); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.foot-in img { height: 64px; width: auto; }
.foot-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-links a { text-underline-offset: 4px; }

/* Hinweis-Dialog -------------------------------------------------------- */
.notice {
  border: 0; padding: 0; border-radius: 28px; width: min(560px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(111, 5, 7, 0.55);
}
.notice::backdrop { background: rgba(53, 40, 40, 0.45); backdrop-filter: blur(3px); }
.notice[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.notice-top { background: var(--peach); padding: 1.6rem 1.8rem 1.4rem; position: relative; }
.notice-top h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); padding-right: 2.5rem; }
.notice-close { position: absolute; right: 1rem; top: 1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.notice-close:hover { background: var(--peach-soft); }
.notice-body { padding: 1.6rem 1.8rem 1.8rem; display: grid; gap: 1.3rem; justify-items: start; }
.notice-block { justify-self: stretch; }
.notice-block { border-radius: 16px; padding: 1.1rem 1.2rem; }
.notice-block h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.notice-block--logo { background: var(--sage); }
.notice-block--ergo { background: var(--peach-soft); }
.notice-block ul { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.notice-block li { line-height: 1.45; }
.notice-block li strong { display: block; }
.notice-block a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.notice-thanks { font-weight: 600; color: var(--wine); }

/* Unterseiten ----------------------------------------------------------- */
.sub-hero { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); }
.back { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 600; color: var(--ink-soft); margin-bottom: 2rem; }
.back:hover { color: var(--red); }
.profile { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.profile-pic { width: clamp(170px, 20vw, 240px); aspect-ratio: 3 / 4; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; border: 8px solid var(--peach); margin: 0; }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.profile--logo .profile-pic { border-color: var(--sage-mid); }
.profile .role { display: inline-block; font-weight: 700; padding: 0.35rem 0.9rem; border-radius: 999px; background: var(--peach); color: var(--wine); margin-bottom: 1rem; }
.profile--logo .role { background: var(--sage-mid); color: #233529; }
.profile h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: none; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; } }

.sub-body { padding: 0 0 var(--section); }
.sub-cols { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.sub-cols h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 1.2rem; }
.sub-cols .prose p { font-size: 1.08rem; }
@media (max-width: 900px) { .sub-cols { grid-template-columns: 1fr; } }

.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0 0 0 1.6rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0.35rem; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; background: var(--red); }
.timeline > li { position: relative; margin-bottom: 1.6rem; }
.timeline > li::before { content: ""; position: absolute; left: -1.6rem; top: 0.35rem; width: 0.95rem; height: 0.95rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--red); }
.timeline .year { font: 700 1.35rem/1 var(--display); display: block; margin-bottom: 0.5rem; }
.timeline ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; color: var(--ink-soft); }
.side-card { background: var(--peach-soft); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem); position: sticky; top: calc(var(--head-h) + 1.5rem); }
.side-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.side-card .c-links a { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 600; padding: 0.3rem 0; overflow-wrap: anywhere; }
.side-card .c-links a:hover { color: var(--red); }
.side-card .c-links .icon { color: var(--red); }
.side-card--logo { background: var(--sage); }
.side-card .pause { background: var(--white); }
.side-photo { margin: 1.5rem 0 0; border-radius: var(--radius); overflow: hidden; }
.side-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Galerie-Seite --------------------------------------------------------- */
.gallery { columns: 3 280px; column-gap: 1.1rem; padding-bottom: var(--section); }
.gallery button { display: block; width: 100%; margin: 0 0 1.1rem; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; transition: transform 0.6s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92dvh; overflow: visible; }
.lightbox::backdrop { background: rgba(53, 40, 40, 0.88); }
.lightbox img { max-width: min(1400px, 94vw); max-height: 86dvh; width: auto; border-radius: 16px; }
.lightbox .notice-close { position: fixed; right: 1.2rem; top: 1.2rem; }
.lb-nav { position: fixed; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lb-nav .icon { width: 24px; height: 24px; }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-next .icon { rotate: 180deg; }

/* Datenschutz ----------------------------------------------------------- */
.legal { padding-bottom: var(--section); }
.legal h1 { font-size: clamp(2.3rem, 4.5vw, 3.6rem); margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.35rem, 2vw, 1.7rem); margin: 2.4rem 0 0.8rem; }
.legal .prose p, .legal .prose li { color: var(--ink-soft); }
.legal address { font-style: normal; color: var(--ink-soft); margin-bottom: 1em; }
.todo { background: #fff1c2; color: #5a4000; padding: 0.1em 0.4em; border-radius: 6px; font-weight: 600; }

/* Bewegung beim Scrollen ------------------------------------------------
   main.js setzt .js auf <html> und .is-in auf [data-reveal], sobald ein Bereich
   ins Bild kommt. Jede Bewegung hat einen Grund: der Baum wächst, die Sinne
   werden verknüpft, Zettel landen auf der Pinnwand, der Preis wird gestempelt,
   Bus und Auto fahren an. Ohne JS oder mit "Bewegung reduzieren" ist alles
   sofort sichtbar. Animationen laufen mit fill "backwards", damit danach wieder
   die normalen Hover-Zustände greifen. */
:root { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); }
.price { rotate: -5deg; }

@keyframes up { from { opacity: 0; translate: 0 32px; } }
@keyframes right { from { opacity: 0; translate: 56px 0; } }
@keyframes pop { from { opacity: 0; scale: 0.4; } }
@keyframes grow { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.4deg; } }
@keyframes curtain { from { clip-path: inset(100% 0 0 0); scale: 1.15; } to { clip-path: inset(0 0 0 0); } }
@keyframes drop { from { opacity: 0; translate: 0 -56px; rotate: calc(var(--r) * 7); } }
@keyframes rise { from { opacity: 0; translate: 0 80px; rotate: 4deg; } }
@keyframes stamp { 0% { opacity: 0; scale: 2.2; rotate: -28deg; } 60% { opacity: 1; scale: 0.94; } }
@keyframes drive { from { opacity: 0; translate: -110px 0; } 70% { opacity: 1; translate: 6px 0; } }
@keyframes from-left { from { opacity: 0; translate: -56px 0; } }
@keyframes from-right { from { opacity: 0; translate: 56px 0; } }
@keyframes knot-l { from { translate: -90px 0; rotate: -8deg; } }
@keyframes knot-r { from { translate: 90px 0; rotate: 8deg; } }
@keyframes word { from { opacity: 0.14; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -9deg; scale: 1.08; } 40% { rotate: 7deg; } 60% { rotate: -5deg; } 80% { rotate: 3deg; } }
@keyframes par-1 { from { translate: 0 40px; } to { translate: 0 -40px; } }
@keyframes par-2 { from { translate: 0 110px; } to { translate: 0 -70px; } }
@keyframes line-grow { from { scale: 1 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* Vor dem Einblenden verborgen */
  .js [data-reveal]:not([data-stagger]):not(.is-in):not([data-reveal="hero"]):not([data-reveal="curtain"]):not([data-reveal="drive"]):not([data-reveal="knots"]):not([data-reveal="words"]),
  .js [data-reveal][data-stagger]:not(.is-in) > * { opacity: 0; }
  .js [data-reveal="curtain"]:not(.is-in) img { clip-path: inset(100% 0 0 0); }
  .js [data-reveal="drive"]:not(.is-in) .icon { opacity: 0; }
  .js .hero-art:not(.is-in) .tree { clip-path: inset(100% 0 0 0); }
  .js .hero-art:not(.is-in) .ph { opacity: 0; }

  /* Einblenden */
  [data-reveal="up"].is-in:not([data-stagger]),
  [data-reveal="up"][data-stagger].is-in > * { animation: up 0.9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 110ms); }
  [data-reveal="right"].is-in > * { animation: right 0.9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 130ms); }
  [data-reveal="pop"].is-in { animation: pop 0.9s var(--spring) backwards 0.1s; }
  [data-reveal="curtain"].is-in img { animation: curtain 1.3s var(--ease) backwards; }
  [data-reveal="drop"].is-in > * { animation: drop 0.85s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 55ms); }
  [data-reveal="rise"].is-in > * { animation: rise 1s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
  [data-reveal="stamp"].is-in { animation: stamp 0.8s var(--ease) backwards 0.15s; }
  [data-reveal="drive"].is-in .way:nth-child(1) .icon { animation: drive 1.1s var(--ease) backwards 0.1s; }
  [data-reveal="drive"].is-in .way:nth-child(2) .icon { animation: drive 1.1s var(--ease) backwards 0.45s; }
  .step[data-reveal].is-in { animation: from-left 0.8s var(--ease) backwards; }
  .step[data-reveal]:nth-of-type(even).is-in { animation-name: from-right; }
  .step[data-reveal].is-in .step-card::before { animation: pop 0.7s var(--spring) backwards 0.35s; }
  .js .step[data-reveal]:not(.is-in) { opacity: 0; }

  /* Hero: Baum wächst aus den Wurzeln, Fotos ploppen auf, dann zieht sich der Faden */
  .hero-art.is-in .tree { transform-origin: 50% 100%; animation: grow 1.6s var(--ease) 0.1s backwards, sway 8s ease-in-out 2.2s infinite; }
  .hero-art.is-in .ph { animation: pop 0.9s var(--spring) backwards; }
  .hero-art.is-in .ph--a { animation-delay: 0.75s; }
  .hero-art.is-in .ph--b { animation-delay: 0.9s; }
  .hero-art.is-in .ph--c { animation-delay: 1.05s; }
  .hero-art .thread.is-drawn path { transition-delay: 1.3s; }

  .note-btn.is-wiggle { animation: wiggle 0.8s var(--ease); }

  /* Fallback ohne scroll-gesteuerte Animationen: einmalig beim Einblenden */
  @supports not (animation-timeline: view()) {
    [data-reveal="knots"].is-in .knot > .sense:first-child { animation: knot-l 1s var(--spring) backwards; }
    [data-reveal="knots"].is-in .knot > .sense:last-child { animation: knot-r 1s var(--spring) backwards; }
    [data-reveal="words"].is-in .w { animation: word 0.6s ease backwards; animation-delay: calc(var(--i, 0) * 70ms); }
  }

  /* Scroll-gesteuert: die Bewegung folgt dem Daumen bzw. dem Mausrad */
  @supports (animation-timeline: view()) {
    .knot { view-timeline-name: --knot; }
    .knot > .sense:first-child { animation: knot-l linear both; animation-timeline: --knot; animation-range: entry 0% cover 45%; }
    .knot > .sense:last-child { animation: knot-r linear both; animation-timeline: --knot; animation-range: entry 0% cover 45%; }
    .knot .thread.scroll-draw path { animation: draw linear both; animation-timeline: --knot; animation-range: entry 0% cover 45%; transition: none; }

    .quote blockquote { view-timeline-name: --quote; }
    .quote .w { animation: word linear both; animation-timeline: --quote; animation-range: cover calc(8% + var(--i) * 1.5%) cover calc(20% + var(--i) * 1.5%); }

    .logo-photos { view-timeline-name: --lp; }
    .logo-photos .p1 { animation: par-1 linear both; animation-timeline: --lp; animation-range: cover; }
    .logo-photos .p2 { animation: par-2 linear both; animation-timeline: --lp; animation-range: cover; }

    .timeline { view-timeline-name: --tl; }
    .timeline::before { transform-origin: 50% 0; animation: line-grow linear both; animation-timeline: --tl; animation-range: entry 10% cover 55%; }
  }
}

/* Bewegung reduzieren --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .thread path { stroke-dashoffset: 0; }
}

/* WordPress ----------------------------------------------------------------
   Inhalte aus dem Seiteneditor (Profilseiten, Datenschutz, Impressum) und
   Anpassungen an die Admin-Leiste. */
.admin-bar .site-head { top: calc(32px + 18px); }
@media (max-width: 782px) { .admin-bar .site-head { top: calc(46px + 12px); } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.entry > * + h2 { margin-top: 3.5rem; }
.entry h2 { margin-bottom: 1.2rem; }
.entry p, .entry li { color: var(--ink-soft); }
.entry a { color: var(--red); text-underline-offset: 3px; }
.entry a:hover { color: var(--wine); }
.entry ul, .entry ol { padding-left: 1.2em; margin: 0 0 1em; }
.entry li + li { margin-top: 0.3em; }
.entry strong { color: var(--ink); }
.entry img { border-radius: var(--radius); }
.entry figure { margin: 1.5rem 0; }
.entry figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.entry mark, .entry .todo { background: #fff1c2; color: #5a4000; padding: 0.1em 0.4em; border-radius: 6px; font-weight: 600; }
.entry hr { border: 0; height: 2px; background: var(--peach); margin: 2.5rem 0; }
.legal.sub-hero { padding-bottom: var(--section); }
.legal .entry h1 { margin-bottom: 2rem; }

/* Fortbildungen: Überschrift Ebene 3 = Jahr, die Liste darunter = Kurse.
   Der rote Faden läuft als durchgehende Linie über Jahre und Listen. */
.entry--profil h3,
.entry--profil h3 + ul {
  position: relative;
  padding-left: 1.6rem;
  margin: 0;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0.35rem 0 / 3px 100%;
}
.entry--profil h3 {
  font: 700 1.35rem/1 var(--display);
  padding-top: 1.6rem;
  padding-bottom: 0.5rem;
}
.entry--profil h3::before {
  content: ""; position: absolute; left: 0; top: calc(1.6rem + 0.05rem);
  width: 0.95rem; height: 0.95rem; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--red);
}
.entry--profil * + h3 { margin-top: 0; }
.entry--profil p + h3, .entry--profil h2 + h3 { margin-top: 0.5rem; background-position: 0.35rem 1.9rem; background-size: 3px calc(100% - 1.9rem); }
.entry--profil h3 + ul { list-style: none; display: grid; gap: 0.45rem; padding-bottom: 0.1rem; }
.entry--profil h3 + ul li { margin: 0; }
/* Der Faden endet am letzten Jahr, wie im Entwurf. */
.entry--profil h3 + ul:not(:has(+ h3)) { background: none; }
.entry--profil h3:has(+ ul:not(:has(+ h3))) { background-size: 3px 1.9rem; }
.entry--profil h2 + p + h3:has(+ ul:not(:has(+ h3))),
.entry--profil p + h3:has(+ ul:not(:has(+ h3))) { background: none; }
