/* =========================================================================
   KFO am Hochrhein — Stylesheet
   Brand: ruhig · vertrauenswürdig · präzise · zeitlos
   ========================================================================= */

/* ----------------------------- Fonts (self-hosted) --------------------- */
/* Hanken Grotesk — variable, locally hosted (no third-party connection). */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/hanken-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/hanken-grotesk-italic.woff2') format('woff2');
}

/* ----------------------------- Tokens ---------------------------------- */
:root {
  /* Brand colours */
  --green:        #29433A;   /* Primärfarbe — Waldgrün           */
  --green-accent: #3D5B4F;   /* Akzent                           */
  --green-deep:   #1F342D;   /* dunkler für Tiefe                */
  --cream:        #F7F5F0;   /* Sekundärfarbe / helle Schrift    */
  --warm:         #FAF8F4;   /* Hintergrund (fast weiß)          */
  --stone:        #EFE9DF;   /* tieferer Steinton f. Sektionen   */
  --ink:          #222222;   /* Text                             */
  --ink-soft:     #5A5A5A;   /* Sekundärtext                     */
  --hair:         #D8D5CF;   /* feine Linien                     */
  --hair-dark:    rgba(247,245,240,0.16); /* Linien auf Grün     */

  /* Typography */
  --font: 'Untitled Sans', 'Hanken Grotesk', -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-pad: clamp(3.25rem, 6.5vw, 6.5rem);
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --maxw: 1320px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.7s;

  --nav-h: 84px;
}

/* ----------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--warm);
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0875rem);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
em { font-style: italic; }

::selection { background: var(--green); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--green-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  left: 1rem; top: -200%;
  z-index: 10000;
  background: var(--green);
  color: var(--cream);
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ----------------------------- Eyebrow --------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.eyebrow--light { color: rgba(247,245,240,0.85); }

/* ----------------------------- Buttons --------------------------------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.9rem;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid var(--btn-bg);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cream);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.btn:hover { color: var(--green); }
.btn:hover::before { transform: scaleY(1); }
.btn__label { position: relative; }
.btn__arrow {
  width: 1.05rem; height: 1.05rem;
  transition: transform 0.45s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--small { padding: 0.7rem 1.3rem; font-size: 0.86rem; }

/* Light button (on dark green) */
.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--green);
  border-color: var(--cream);
}
.btn--light::before { background: var(--green-deep); }
.btn--light:hover { color: var(--cream); }

/* Text link with animated underline */
.link {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 2px;
  color: var(--ink);
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.link:hover::after { transform: scaleX(1); }
.link--light { color: var(--cream); }

/* ----------------------------- Logo ------------------------------------ */
/* The real KFO wordmark is used as a single-colour CSS mask, so one asset
   can be recoloured per context. The "O" counter (and tooth interior) stay
   transparent — the page background shows through, matching the brand mark. */
.logo {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.4rem;
  --logo-color: var(--green);
}
.logo__img {
  display: block;
  width: clamp(98px, 11vw, 116px);
  aspect-ratio: 616 / 320;
  background-color: var(--logo-color);
  -webkit-mask: url("logo-kfo.png") left center / contain no-repeat;
          mask: url("logo-kfo.png") left center / contain no-repeat;
  transition: background-color 0.5s var(--ease);
}
/* Footer variant — larger */
.logo--footer .logo__img { width: clamp(156px, 24vw, 200px); }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: transform 0.5s var(--ease), background 0.5s var(--ease),
              box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* over-hero state: light logo + light links */
.nav .logo { --logo-color: var(--cream); }
.nav__menu { display: flex; gap: clamp(1.25rem, 2.4vw, 2.6rem); }
.nav__menu a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(247,245,240,0.82);
  padding-block: 0.4rem;
  transition: color 0.4s var(--ease);
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__menu a:hover { color: var(--cream); }
.nav__menu a:hover::after,
.nav__menu a.active::after { transform: scaleX(1); }
.nav__menu a.active { color: var(--cream); }

.nav__cta { --btn-bg: var(--cream); --btn-fg: var(--green); border-color: var(--cream); }
.nav__cta::before { background: var(--green-deep); }
.nav__cta:hover { color: var(--cream); }

/* scrolled state — solid cream nav */
.nav.scrolled {
  background: rgba(250,248,244,0.85);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--hair);
  height: 70px;
}
.nav.scrolled .logo { --logo-color: var(--green); }
.nav.scrolled .nav__menu a { color: var(--ink-soft); }
.nav.scrolled .nav__menu a:hover,
.nav.scrolled .nav__menu a.active { color: var(--green); }
.nav.scrolled .nav__cta { --btn-bg: var(--green); --btn-fg: var(--cream); border-color: var(--green); }
.nav.scrolled .nav__cta::before { background: var(--cream); }
.nav.scrolled .nav__cta:hover { color: var(--green); }

/* hide on scroll-down */
.nav.hidden { transform: translateY(-100%); }

/* when the mobile menu is open, keep the bar transparent + logo light
   (overrides .scrolled so a green logo never lands on the green overlay) */
body.menu-open .nav {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}
body.menu-open .nav .logo { --logo-color: var(--cream); }

/* mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--cream);
  margin-inline: auto;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled .nav__toggle span { background: var(--green); }
body.menu-open .nav__toggle span { background: var(--cream); }
body.menu-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile menu overlay */
.mobilemenu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--green);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: var(--gutter);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.mobilemenu[hidden] { display: flex; } /* keep transitionable */
body.menu-open .mobilemenu { opacity: 1; pointer-events: auto; }
.mobilemenu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.mobilemenu__nav a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
body.menu-open .mobilemenu__nav a { opacity: 1; transform: none; }
body.menu-open .mobilemenu__nav a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobilemenu__nav a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobilemenu__nav a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobilemenu__nav a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobilemenu__nav a:nth-child(5) { transition-delay: 0.32s; }
.mobilemenu__cta { align-self: flex-start; --btn-bg: var(--cream); --btn-fg: var(--green); border-color: var(--cream); }
.mobilemenu__cta::before { background: var(--green-deep); }
.mobilemenu__cta:hover { color: var(--cream); }
.mobilemenu__meta {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.9rem; color: rgba(247,245,240,0.7);
  border-top: 1px solid var(--hair-dark);
  padding-top: 1.5rem;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: auto;
  background: var(--green);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 5vh) var(--gutter) clamp(3.5rem, 7vh, 5.5rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; color: var(--green-accent); }
.hero__motif {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: min(70vw, 760px);
  height: auto;
  opacity: 0.55;
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
}
.hero__eyebrow { color: rgba(247,245,240,0.8); }

.hero__title {
  font-size: clamp(2.5rem, 7vw, 6.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--cream);
  max-width: 16ch;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__title .line__inner { display: inline-block; }

.hl { position: relative; white-space: nowrap; }
.hl__smile {
  position: absolute;
  left: -0.04em; right: -0.04em;
  bottom: 0.01em;
  width: auto;
  height: 0.17em;
  color: var(--cream);
  overflow: visible;
}
.hl__smile path { stroke-dasharray: 320; stroke-dashoffset: 320; }
body.loaded .hl__smile path {
  transition: stroke-dashoffset 1s var(--ease) 1.05s;
  stroke-dashoffset: 0;
}

.hero__sub {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.65;
  color: rgba(247,245,240,0.82);
  margin-bottom: clamp(2.25rem, 5vw, 3rem);
}
.hero__actions { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.5rem, 4vh, 2.75rem);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(247,245,240,0.7);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero__scroll-line { position: relative; width: 60px; height: 1px; background: rgba(247,245,240,0.3); overflow: hidden; }
.hero__scroll-line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--cream);
  transform: translateX(-100%);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* Hero entrance — staggered */
[data-hero] {
  opacity: 0;
  transform: translateY(26px);
}
body.loaded [data-hero] {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
body.loaded [data-hero="1"] { transition-delay: 0.05s; }
body.loaded [data-hero="2"] { transition-delay: 0.18s; }
body.loaded [data-hero="3"] { transition-delay: 0.30s; }
body.loaded [data-hero="4"] { transition-delay: 0.5s; }
body.loaded [data-hero="5"] { transition-delay: 0.62s; }
body.loaded [data-hero="6"] { transition-delay: 0.9s; }
/* line inner uses translateY too — handled by parent overflow */
.hero__title .line__inner[data-hero] { transform: translateY(110%); }
body.loaded .hero__title .line__inner[data-hero] { transform: none; }

/* =========================================================================
   Section head
   ========================================================================= */
.section-head { max-width: 60ch; margin-bottom: clamp(2.75rem, 6vw, 4.5rem); }
.section-head__title {
  font-size: clamp(1.9rem, 1.4rem + 2.6vw, 3.4rem);
  line-height: 1.06;
}
.section-head--split {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  max-width: none;
}
.section-head__note {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 40ch;
}

/* =========================================================================
   PHILOSOPHY
   ========================================================================= */
.philosophy { background: var(--stone); }
.philosophy__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}
.philosophy__lead {
  font-size: clamp(1.55rem, 1.1rem + 2.2vw, 2.85rem);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.philosophy__lead em {
  font-style: italic;
  color: var(--green);
}
.philosophy__body p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}
.philosophy__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  margin-top: 2.25rem;
}
.philosophy__pillars li span {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--hair);
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--green);
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.philosophy__pillars li span:hover {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
  transform: translateY(-2px);
}

/* =========================================================================
   VALUES
   ========================================================================= */
.values { background: var(--cream); }
.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value {
  position: relative;
  padding: clamp(2rem, 3vw, 2.75rem);
  background: var(--warm);
  border: 1px solid var(--hair);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}
.value::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.value:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(31,52,45,0.35);
  border-color: transparent;
}
.value:hover::after { transform: scaleX(1); }
.value__index {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--green-accent);
  margin-bottom: 2.5rem;
}
.value__title {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  margin-bottom: 1rem;
}
.value__text { color: var(--ink-soft); font-size: 1.02rem; }

/* =========================================================================
   MARQUEE
   ========================================================================= */
.marquee {
  background: var(--green);
  color: var(--cream);
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
  border-block: 1px solid var(--green-deep);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-right: clamp(2rem, 5vw, 4rem);
}
.marquee__group span:not(.marquee__dot) {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(247,245,240,0.92);
}
.marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cream); opacity: 0.6; flex: none; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================================
   SERVICES
   ========================================================================= */
.services { background: var(--warm); }
.services__list { margin-top: clamp(1.5rem, 4vw, 3rem); border-top: 1px solid var(--hair); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0.5rem;
  border-bottom: 1px solid var(--hair);
  transition: padding-left 0.5s var(--ease), color 0.5s var(--ease);
  cursor: default;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cream);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.service:hover { padding-left: clamp(1rem, 2vw, 1.75rem); }
.service:hover::before { opacity: 1; }
.service__no {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-accent);
  align-self: start;
  padding-top: 0.55rem;
}
.service__title {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease), color 0.5s var(--ease);
}
.service:hover .service__title { color: var(--green); }
.service__desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 52ch;
  margin-top: 0.6rem;
}
.service__arrow {
  width: 2rem; height: 2rem;
  color: var(--green);
  opacity: 0;
  transform: translateX(-12px) rotate(-30deg);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.service:hover .service__arrow { opacity: 1; transform: none; }

/* =========================================================================
   BEHANDLUNGSWEG — horizontaler Ablauf (Stepper)
   ========================================================================= */
.journey-section { background: var(--stone); }

/* centred section head (differs from the left-aligned Leistungen list) */
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .eyebrow { justify-content: center; }

.journey {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
/* horizontal connector line with scroll-linked fill */
.journey__line {
  position: absolute;
  top: 6px;
  left: 0; right: 0;
  height: 2px;
  background: var(--hair);
  border-radius: 2px;
  overflow: hidden;
  z-index: 0;
}
.journey__fill {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.journey__steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.jstep {
  position: relative;
  text-align: center;
  padding-top: 2.6rem;
}
.jstep__dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--stone);
  border: 1px solid var(--hair);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.jstep.in-view .jstep__dot { background: var(--green); border-color: var(--green); transform: translateX(-50%) scale(1.18); }
.jstep__no {
  display: block;
  font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green);
  opacity: 0.22;
  margin-bottom: 0.9rem;
}
.jstep__title { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem); margin-bottom: 0.5rem; }
.jstep__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 28ch;
  margin-inline: auto;
}

/* tablet: 3 then wrap is messy — go straight to a clean stacked list */
@media (max-width: 820px) {
  .journey__line { display: none; }
  .journey__steps { grid-template-columns: 1fr; gap: clamp(2.25rem, 7vw, 3.25rem); }
  .jstep { padding-top: 0; }
  .jstep__dot { display: none; }
  .jstep__no { margin-bottom: 0.5rem; }
  .jstep__text { max-width: 46ch; }
}

/* =========================================================================
   PRACTICE
   ========================================================================= */
.practice { background: var(--warm); }
.practice__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.practice__title {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem);
  margin-bottom: 1.5rem;
}
.practice__text { color: var(--ink-soft); font-size: 1.1rem; max-width: 56ch; }

.practice__gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--hair);
}
.frame--tall { grid-column: span 4; grid-row: span 2; aspect-ratio: 3 / 5; }
.frame--wide { grid-column: span 8; aspect-ratio: 16 / 9; }
.frame--mid  { grid-column: span 4; aspect-ratio: 4 / 3.4; }
.frame__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  object-fit: cover;
  will-change: transform;
}
.frame__art svg { width: 120%; height: 120%; }
.frame__art--a { background: var(--green);        color: var(--cream); }
.frame__art--b { background: var(--cream);         color: var(--green); }
.frame__art--c { background: var(--green-accent);  color: var(--cream); }
.frame__art--d { background: #EFEBE3;              color: var(--green); }
.frame__cap {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  z-index: 2;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  mix-blend-mode: difference;
  opacity: 0.9;
}
.frame { transition: transform 0.6s var(--ease); }
.frame:hover { transform: translateY(-4px); }
.frame:hover .frame__art { transform: scale(1.04); }

.practice__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hair);
}
.practice__features li {
  padding: 1.75rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  border-right: 1px solid var(--hair);
  position: relative;
}
.practice__features li:first-child { padding-left: 0; }
.practice__features li:last-child { border-right: none; padding-right: 0; }
.practice__features li::before {
  content: "";
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-bottom: 1rem;
}

/* =========================================================================
   ERFAHRUNGEN / VOICES
   ========================================================================= */
.voices { background: var(--warm); }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.voice {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(2rem, 3vw, 2.75rem);
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 6px;
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease), border-color 0.55s var(--ease);
}
.voice:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(31, 52, 45, 0.35);
  border-color: transparent;
}
.voice__mark { width: 2.6rem; height: auto; color: var(--green-accent); }
.voice__quote {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.voice__cap {
  margin-top: auto;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-accent);
}

/* =========================================================================
   CLOSING / CTA
   ========================================================================= */
.closing {
  position: relative;
  background: var(--green);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.closing__bg { position: absolute; inset: 0; color: var(--green-accent); display: grid; place-items: center; }
.closing__motif { width: min(80vw, 640px); opacity: 0.5; }
.closing__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.closing__title {
  font-size: clamp(2.4rem, 1.6rem + 4vw, 5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--cream);
}
.closing__text {
  max-width: 44ch;
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: rgba(247,245,240,0.82);
  margin-bottom: 2.75rem;
}
.closing__actions { margin-bottom: 2.5rem; }
.closing__contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1.05rem;
}
.closing__sep { width: 5px; height: 5px; border-radius: 50%; background: rgba(247,245,240,0.5); }
.closing__phone { color: rgba(247,245,240,0.6); font-weight: 500; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--green-deep);
  color: var(--cream);
  padding-top: clamp(4rem, 8vw, 6.5rem);
  padding-bottom: 2.5rem;
}
.footer .logo { --logo-color: var(--cream); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--hair-dark);
}
.footer__claim {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  color: rgba(247,245,240,0.75);
  max-width: 22ch;
}
.footer__h {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(247,245,240,0.55);
  margin-bottom: 1.25rem;
}
.footer__address { font-style: normal; color: rgba(247,245,240,0.85); line-height: 1.8; }
.footer__col .footer__link {
  display: block;
  color: rgba(247,245,240,0.85);
  margin-bottom: 0.5rem;
  width: fit-content;
  position: relative;
  transition: color 0.4s var(--ease);
}
.footer__link::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.footer__link:hover { color: var(--cream); }
.footer__link:hover::after { transform: scaleX(1); }
.footer__pending { display: block; margin-bottom: 0.5rem; color: rgba(247,245,240,0.85); }
.footer__hours li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: rgba(247,245,240,0.88);
  padding-block: 0.4rem;
  font-size: 0.92rem;
}
.footer__hours li span:first-child {
  color: rgba(247,245,240,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2.25rem;
  font-size: 0.86rem;
  color: rgba(247,245,240,0.6);
}
.footer__legal { display: flex; gap: 1.75rem; }
.footer__legal a { position: relative; transition: color 0.4s var(--ease); }
.footer__legal a:hover { color: var(--cream); }

/* =========================================================================
   LEGAL SUBPAGES (Impressum / Datenschutz)
   ========================================================================= */
.subpage { background: var(--warm); }
.subpage-head {
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--hair);
}
.subpage-head__title {
  font-size: clamp(2.2rem, 1.6rem + 3vw, 3.8rem);
  letter-spacing: -0.025em;
  margin-top: 0.4rem;
}
.subpage-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green);
}
.subpage-back svg { width: 1.1rem; height: 1.1rem; transition: transform 0.4s var(--ease); }
.subpage-back:hover svg { transform: translateX(-4px); }

.legal { padding-block: clamp(3rem, 7vw, 5.5rem); }
.legal__inner { max-width: 74ch; }
.legal__note {
  border-left: 2px solid var(--green-accent);
  background: var(--cream);
  padding: 1.1rem 1.4rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 3rem;
}
.legal h2 {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.legal h2:first-of-type { margin-top: 0; }
.legal h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-top: 1.9rem;
  margin-bottom: 0.5rem;
}
.legal p, .legal li {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.9; }
.legal a:not(.subpage-back) {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal ul { list-style: none; padding-left: 0; margin-bottom: 1.25rem; }
.legal ul li { position: relative; padding-left: 1.4rem; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.legal__divider { height: 1px; background: var(--hair); border: 0; margin: 2.5rem 0; }
.legal__updated { font-size: 0.86rem; color: var(--ink-soft); margin-top: 2.5rem; }

/* Placeholder marker — fields the practice still needs to fill in */
.ph {
  display: inline;
  padding: 0.05em 0.4em;
  border-radius: 3px;
  background: rgba(61, 91, 79, 0.12);
  color: var(--green);
  font-weight: 500;
  font-style: normal;
}

/* =========================================================================
   LEISTUNGS-UNTERSEITEN
   ========================================================================= */
.subpage-head__lead {
  margin-top: 1.25rem;
  max-width: 56ch;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.servicepage { background: var(--warm); }
.servicepage__grid {
  display: grid;
  grid-template-columns: 1.55fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.servicepage__body h2 {
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}
.servicepage__body h2:first-child { margin-top: 0; }
.servicepage__body p {
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 1.1rem;
  max-width: 60ch;
}
.servicepage__body ul { list-style: none; padding: 0; margin: 1.5rem 0 0.5rem; }
.servicepage__body ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 0.55rem;
}
.servicepage__body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.callout {
  position: sticky;
  top: 96px;
  background: var(--stone);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2rem);
}
.callout__title { font-size: 1.1rem; margin-bottom: 1.1rem; }
.callout__list { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.6rem; }
.callout__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.callout__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.callout .btn { width: 100%; justify-content: center; }

.morelinks {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 4vw, 2.5rem);
  border-top: 1px solid var(--hair);
}
.morelinks__title {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.morelinks__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.morelinks__row a {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--hair);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--green);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.morelinks__row a:hover {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
  transform: translateY(-2px);
}
@media (max-width: 860px) {
  .servicepage__grid { grid-template-columns: 1fr; }
  .callout { position: static; }
}

/* clickable service rows on the homepage */
.service__stretch { position: absolute; inset: 0; z-index: 2; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { background: var(--warm); }
.faq__list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--hair); }
.faq__item { border-bottom: 1px solid var(--hair); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 500;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--green);
  transition: transform 0.3s var(--ease);
}
.faq__item[open] summary::after { content: "−"; }
.faq__answer {
  padding: 0 0 clamp(1.2rem, 2.5vw, 1.7rem);
  max-width: 68ch;
  color: var(--ink-soft);
  line-height: 1.75;
}

/* =========================================================================
   REVEAL (scroll) — base
   ========================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.js .reveal.in-view { opacity: 1; transform: none; }
/* stagger via data-delay */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* =========================================================================
   COOKIE-HINWEIS
   ========================================================================= */
.cookie {
  position: fixed;
  left: 50%;
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 1200;
  width: min(680px, calc(100% - 1.75rem));
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 14px;
  box-shadow: 0 26px 60px -26px rgba(31, 52, 45, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.cookie.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.cookie__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1.2rem, 3vw, 1.6rem);
}
.cookie__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.cookie__text a {
  color: var(--green);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.cookie__btn {
  flex: none;
  font: inherit;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--cream);
  background: var(--green);
  border: 1px solid var(--green);
  padding: 0.72rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie__btn:hover { background: var(--green-deep); transform: translateY(-1px); }
@media (max-width: 540px) {
  .cookie__inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie__btn { width: 100%; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .philosophy__grid { grid-template-columns: 1fr; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; }
  .values__grid { grid-template-columns: 1fr; max-width: 520px; }
  .voices__grid { grid-template-columns: 1fr; max-width: 560px; }
  .practice__features { grid-template-columns: 1fr 1fr; }
  .practice__features li:nth-child(2n) { border-right: none; padding-right: 0; }
  .practice__features li:nth-child(odd) { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .practice {
    padding-block: clamp(2.5rem, 10vw, 4rem);
  }
  .practice__head {
    margin-bottom: clamp(1.25rem, 5vw, 2rem);
  }
  .practice__title {
    margin-bottom: 1rem;
  }
  .practice__gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    align-items: start;
    gap: 0.65rem;
  }
  .frame--tall {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 4 / 3;
  }
  .frame--wide { grid-column: span 2; }
  .frame--mid { grid-column: span 1; }
  .practice__features {
    margin-top: clamp(1.5rem, 6vw, 2.25rem);
  }
  .service { grid-template-columns: auto 1fr; }
  .service__arrow { display: none; }
}

@media (max-width: 540px) {
  .practice {
    padding-block: 2.25rem;
  }
  .practice__head {
    margin-bottom: 1.15rem;
  }
  .practice__gallery {
    gap: 0.5rem;
  }
  .practice__features { grid-template-columns: 1fr; }
  .practice__features li { border-right: none; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--hair); }
  .practice__features li:last-child { border-bottom: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .hero__scroll { display: none; }
}

/* =========================================================================
   REDUCED MOTION
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal, [data-hero], .hero__title .line__inner[data-hero] { opacity: 1 !important; transform: none !important; }
  .hl__smile path { stroke-dashoffset: 0 !important; }
  .marquee__track { animation: none !important; }
}
