/* ==========================================================================
   Boss Baumpflege – Stylesheet
   Farben & Schriften aus der Originalseite (Lila, Mint, Waldgrün · Jost/Roboto)
   ========================================================================== */

:root {
  --purple: #3f2884;
  --purple-deep: #2b1b5f;
  --purple-soft: #e9e4f6;
  --mint: #7cc5ab;
  --mint-soft: #dcefe7;
  --paper: #f6f4ec;
  --ink: #17151d;
  --text: #3a3940;
  --white: #fff;

  --font-display: 'Jost', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 1360px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-sm: 4px 4px 0 var(--ink);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);          /* ruhige Standardkurve für Einblendungen und Hover */
  --header-h: 84px;

  /* Sektions-Theme (wird pro Sektion überschrieben) */
  --bg: var(--paper);
  --fg: var(--text);
  --heading: var(--purple);
  --accent: var(--purple);
 
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
/* Startseite: jede Sektion rastet am oberen Bildrand ein (lange Sektionen bleiben frei scrollbar) */
@media (min-width: 1024px) {
  html.snap { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  html.snap .section { scroll-snap-align: start; }
  /* Mausrad: die Sektion, die gerade verlassen wird, gibt ihren Rastpunkt kurz frei (main.js) – kein Zurückfedern */
  html.snap .section.snap-skip { scroll-snap-align: none; }
  /* jede Sektion füllt mindestens den Bildschirm, Inhalt mittig – so bleibt nie eine halbe Nachbarsektion stehen */
  html.snap .section:not(.hero) { min-height: 100svh; display: grid; align-content: center; padding-bottom: clamp(1.5rem, 4vh, 3rem); }
  /* damit jede Sektion (zugeklappt) auf einen Bildschirm passt; der Rest regelt fitSections() in main.js */
  html.snap .section:not(.hero) .prose { max-width: none; }
  html.snap .philo .lead { font-size: clamp(1.1rem, 2.6vh, 1.6rem); margin-top: 1.4rem; }
  html.snap .detail-num { font-size: clamp(3.4rem, 9vh, 7rem); }
  html.snap .detail h2 { font-size: clamp(2rem, 1rem + 2.4vw, 3.4rem); }
  html.snap .detail .h-md { max-width: 44ch; margin-top: .9rem; }
  html.snap .detail .prose { margin-top: 1.3rem; }
  html.snap .services-sec .services-head { margin-top: 0; }
}
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }

/* ---------- Basis ---------- */
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0875rem);
  line-height: 1.66;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: clip;
}
p, li, address { text-wrap: pretty; }
::selection { background: var(--mint); color: var(--ink); }
strong { font-weight: 700; color: var(--fg-strong, inherit); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.05; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }

/* Fokus: immer gut sichtbar – Lila auf hellen Flächen, Mint auf Lila (--focus-ring je Fläche) */
:where(:focus-visible) { outline: 3px solid var(--focus-ring, var(--purple)); outline-offset: 3px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--white); padding: .75rem 1.1rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; text-decoration: none; transition: top .25s var(--ease);
  --focus-ring: var(--mint);
}
.skip-link:focus { top: 1rem; }

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

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

/* ---------- Sektionen & Themes ---------- */
.section {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(5rem, 12vh, 9rem);
  isolation: isolate;
}

.t-paper  { --bg: var(--paper); --fg: var(--text); --heading: var(--purple); --accent: var(--purple); }
.t-purple { --bg: var(--purple); --fg: rgba(255,255,255,.86); --fg-strong: #fff; --heading: #fff; --accent: var(--mint); --focus-ring: var(--mint); }
.t-mint   { --bg: var(--mint); --fg: var(--ink); --heading: var(--ink); --accent: var(--purple); }
.t-soft   { --bg: var(--mint-soft); --fg: var(--text); --heading: var(--purple); --accent: var(--purple); }
.t-lilac  { --bg: var(--purple-soft); --fg: var(--text); --heading: var(--purple); --accent: var(--purple); }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem; line-height: 1.2;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: currentColor; border-radius: 2px; flex-shrink: 0; }

.h-xl { font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem); line-height: .98; letter-spacing: -.035em; }
.h-lg { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem); line-height: 1; letter-spacing: -.03em; }
.h-md { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.3; letter-spacing: -.01em; font-weight: 600; color: var(--accent); text-wrap: balance; }
.h-md strong { color: inherit; }
.lead { font-family: var(--font-display); font-size: clamp(1.3rem, 1.05rem + 1vw, 1.95rem); line-height: 1.38; font-weight: 500; letter-spacing: -.012em; color: var(--heading); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 62ch; }
.prose a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.prose a:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--white); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.6rem 1rem 1.75rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 2px solid var(--ink); border-radius: 999px;
  --sh: 4px;                                   /* Tiefe des harten Schattens; Hover hebt an, Klick drückt hinein */
  box-shadow: var(--sh) var(--sh) 0 var(--ink);
  text-decoration: none; white-space: nowrap; line-height: 1.2;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .2s;
  --focus-ring: var(--ink);
}
.t-purple .btn, .mobile-menu .btn, .site-header:not(.is-solid) .btn, .site-header.on-dark .btn { --focus-ring: var(--white); }
.btn .arrow { display: inline-grid; place-items: center; flex-shrink: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--white); transition: transform .45s var(--ease-spring); }
@media (hover: hover) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--ink); }
  .btn:hover .arrow { transform: rotate(-45deg); }
}
.btn:active { transform: translate(calc(var(--sh) - 1px), calc(var(--sh) - 1px)); box-shadow: 1px 1px 0 var(--ink); transition-duration: .07s; }
.btn--mint { --btn-bg: var(--mint); }
.btn--big { --sh: 6px; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); padding: 1.15rem 1.6rem 1.15rem 2rem; }
.btn--big .arrow { width: 2.2rem; height: 2.2rem; }
.btn--small { --sh: 3px; padding: .6rem 1.1rem; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--white);
  --focus-ring: var(--mint);
  transition: background-color .4s var(--ease), color .3s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--hbg, #f6f4ec) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 color-mix(in srgb, currentColor 9%, transparent);   /* Haarlinie in der Schriftfarbe: trennt, ohne neue Farbe */
  color: var(--ink);
  --focus-ring: var(--purple);
}
.site-header.is-solid.on-dark { --focus-ring: var(--mint); }
/* über Sektionen mit Ästen im Hintergrund: Header durchsichtig, Laub scheint durch.
   Nur wo die Sektionen einrasten (Desktop) – am Handy läuft Inhalt unter dem Header durch, dort bleibt er deckend */
@media (min-width: 1024px) {
  .site-header.is-solid.on-scene { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; border-radius: 12px; }
.brand img { width: 74px; height: auto; transform-origin: 50% 60%; transition: transform .5s var(--ease-spring); }
@media (hover: hover) { .brand:hover img { transform: rotate(-8deg) scale(1.06); } }
.brand:active img { transform: scale(.96); transition-duration: .1s; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.brand-name span { display: block; font-weight: 400; letter-spacing: .2em; font-size: .72em; margin-top: .3em; opacity: .8; }

.nav-list { display: flex; align-items: center; gap: .3rem; }
.nav-list > li { position: relative; }
.nav-list a {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: .98rem; line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="true"] { background: rgba(255,255,255,.16); }
.nav-list > li > a:active { background: rgba(255,255,255,.24); }
.is-solid .nav-list > li > a:hover, .is-solid .nav-list > li > a[aria-current="true"] { background: rgba(63,40,132,.1); color: var(--purple); }
.is-solid .nav-list > li > a:active { background: rgba(63,40,132,.16); }
/* auf lila Sektionen: lila Header mit heller Schrift */
.site-header.is-solid.on-dark { color: var(--white); }
.is-solid.on-dark .nav-list > li > a:hover, .is-solid.on-dark .nav-list > li > a[aria-current="true"] { background: rgba(255,255,255,.16); color: var(--white); }
.is-solid.on-dark .nav-list > li > a:active { background: rgba(255,255,255,.24); }
.nav-list .caret { width: .7em; height: .7em; transition: transform .35s var(--ease); }
.has-sub:hover .caret, .has-sub:focus-within .caret { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + .5rem); left: 50%; min-width: 240px;
  padding: .45rem; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow-hard-sm);
  --focus-ring: var(--purple);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px) scale(.98); transform-origin: 50% 0;
  transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.sub::before { content: ""; position: absolute; inset: -.7rem 0 auto; height: .7rem; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.sub a { display: flex; width: 100%; padding: .6rem .8rem; border-radius: 10px; }
.sub a:hover, .sub a[aria-current="true"] { background: var(--mint-soft); color: var(--purple); }
.sub a:focus-visible { outline-offset: -2px; }

.header-cta { margin-left: .5rem; }

.burger { display: none; align-items: center; gap: .6rem; min-height: 44px; font-family: var(--font-display); font-weight: 600; padding: .5rem .25rem; border-radius: 10px; }
.burger-lines { position: relative; width: 26px; height: 14px; }
.burger-lines span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger-lines span:nth-child(1) { top: 0; }
.burger-lines span:nth-child(2) { top: 12px; }
.burger[aria-expanded="true"] .burger-lines span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-lines span:nth-child(2) { top: 6px; transform: rotate(-45deg); }

/* Mobile-Menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--purple); color: var(--white);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  --focus-ring: var(--mint);
  clip-path: circle(0% at calc(100% - 3rem) 2.6rem);
  visibility: hidden;
  transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.6rem); visibility: visible; transition: clip-path .8s var(--ease-out), visibility 0s; }
.mobile-menu ul { display: grid; gap: .1rem; }
.mobile-menu nav a { display: block; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.2; padding: .2rem 0; }
.mobile-menu nav .m-sub { margin-block: .2rem .5rem; }
.mobile-menu nav .m-sub a { font-size: 1.15rem; font-weight: 400; line-height: 1.3; padding: .55rem 0 .55rem 1.2rem; opacity: .85; }
.mobile-menu nav a:active { color: var(--mint); }
.mobile-menu li { opacity: 0; transform: translateY(16px); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.mobile-menu.is-open li { opacity: 1; transform: none; }
.mobile-menu.is-open li:nth-child(2) { transition-delay: .05s; }
.mobile-menu.is-open li:nth-child(3) { transition-delay: .1s; }
.mobile-menu.is-open li:nth-child(4) { transition-delay: .15s; }
.mobile-menu.is-open li:nth-child(5) { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(6) { transition-delay: .25s; }
.mobile-menu .btn { margin-top: 2rem; align-self: flex-start; }
.mobile-menu-loggy { width: 130px; margin-top: auto; align-self: flex-end; transform: rotate(6deg); }

body.menu-open { overflow: hidden; }
body.menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Scroll-Fortschritt */

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;   /* Titel steht im Himmel, die Busch-Szene beginnt darunter */
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(5rem, 16vh, 11rem);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: repeat(12, 1fr); align-items: end; gap: 1.5rem; }
.hero-text { grid-column: 1 / -1; position: relative; z-index: 1; }
/* Auftritt: Loggy läuft hinter dem Titel los – Titel liegt solange über dem (fixierten) Guide */
html.loggy-behind .hero { isolation: auto; }
html.loggy-behind .hero-text { z-index: auto; }
/* Titel bleibt die ganze Zeit auf einer Ebene: hinter den ungeschnittenen Busch-Reihen (61–63), vor Loggy (60, früher im DOM) */
html.loggy-behind .hero-title { position: relative; z-index: 60; }
html.loggy-behind .hero-sub,
html.loggy-behind .hero-actions { position: relative; z-index: 64; }
/* Büsche im Hero-Hintergrund (nur nach dem Auftritt sichtbar). Ebenen während des Auftritts:
   Reihen 61 / 62 / 63 über Loggy (Guide 60), nach dem jeweiligen Schnitt unter ihn (59); Schrift 64 */
/* Laub oben im Hero: wie unter zwei Ästen stehend – dunkleres Lila, nur im oberen Viertel, wiegt sich im Wind */
.hero-glass { position: absolute; inset: 0 0 auto 0; height: 25vh; pointer-events: none; z-index: 0; overflow: hidden; animation: leaves-in 2.2s cubic-bezier(.22, 1, .36, 1) .2s both; }
@keyframes leaves-in { from { opacity: 0; transform: translateY(-3vh); } }   /* Laub schwebt beim Laden sanft herein */
.glass-branch { position: absolute; bottom: 0; animation: glass-sway 7s ease-in-out infinite; transform-origin: 50% -60%; }
.glass-l { left: -4vw; width: min(42vw, 640px); aspect-ratio: 686 / 655; }
.glass-r { right: -4vw; width: min(42vw, 620px); aspect-ratio: 672 / 604; animation-duration: 8.6s; animation-delay: -2.4s; }
.glass-m { left: 44%; width: min(24vw, 340px); aspect-ratio: 370 / 413; animation-duration: 6.3s; animation-delay: -4s; bottom: 4vh; }
.glass-fill { position: absolute; inset: 0; background: #2f1d66; opacity: .7;
  -webkit-mask: var(--m) 0 0 / 100% 100% no-repeat; mask: var(--m) 0 0 / 100% 100% no-repeat; }
/* zweite Lage: gespiegelt, versetzt, teils dunkler – wirkt wie mehrere Äste übereinander */
.glass-l2 { left: 16vw; width: min(30vw, 460px); aspect-ratio: 672 / 604; animation-duration: 9.2s; animation-delay: -1s; bottom: 2vh; }
.glass-r2 { right: 15vw; width: min(32vw, 480px); aspect-ratio: 686 / 655; animation-duration: 7.6s; animation-delay: -3.3s; bottom: 1vh; }
.glass-m2 { left: 30%; width: min(20vw, 300px); aspect-ratio: 370 / 413; animation-duration: 5.8s; animation-delay: -1.7s; bottom: 6vh; }
.glass-m3 { left: 62%; width: min(22vw, 320px); aspect-ratio: 370 / 413; animation-duration: 6.9s; animation-delay: -5.1s; bottom: 3vh; }
.glass-l2 .glass-fill { --m: url("../img/glass-r.svg"); }
.glass-r2 .glass-fill { --m: url("../img/glass-l.svg"); }
.glass-m2 .glass-fill, .glass-m3 .glass-fill { --m: url("../img/glass-m.svg"); }
.glass-m3 .glass-fill { scale: -1 1; }   /* gespiegelt über scale – transform bleibt frei für das Blätterspiel */
.glass-branch.is-dark .glass-fill { background: #251556; opacity: .85; }
/* lange Äste quer hinein, je etwa halbe Bildschirmbreite; schwingen um ihren Ansatz am Rand */
.glass-lw { left: -2vw; width: 52vw; aspect-ratio: 1061 / 275; bottom: 3vh; transform-origin: 0% 15%; animation-duration: 9.8s; animation-delay: -3s; }
.glass-rw { right: -2vw; width: 50vw; aspect-ratio: 1095 / 263; bottom: 8vh; transform-origin: 100% 15%; animation-duration: 8.9s; animation-delay: -6s; }
.glass-lw .glass-fill { --m: url("../img/glass-lw.svg"); }
.glass-rw .glass-fill { --m: url("../img/glass-rw.svg"); }
.glass-l .glass-fill { --m: url("../img/glass-l.svg"); }
.glass-r .glass-fill { --m: url("../img/glass-r.svg"); }
.glass-m .glass-fill { --m: url("../img/glass-m.svg"); }
/* Wind: kein gleichmäßiges Pendeln, sondern Böe – Nachschwingen – Ruhe; Ausschlag je Ast über --amp */
@keyframes glass-sway {
  0%, 100% { transform: rotate(calc(var(--amp, 1.6deg) * -1)); }
  24% { transform: rotate(calc(var(--amp, 1.6deg) * .55)); }
  43% { transform: rotate(calc(var(--amp, 1.6deg) * -.25)); }
  66% { transform: rotate(var(--amp, 1.6deg)); }
  84% { transform: rotate(calc(var(--amp, 1.6deg) * .1)); }
}
@media (prefers-reduced-motion: reduce) { .glass-branch { animation: none; } }
.hero-bushes { display: none; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
html.bushes-on .hero-bushes { display: block; }
html.loggy-behind .hero-bushes { z-index: auto; }
.bush-row { position: absolute; overflow: visible; }
.bush-ground { position: absolute; z-index: 58; }
.bush-trees { position: absolute; z-index: 57; overflow: visible; }
.bush-horizon { position: absolute; left: 0; right: 0; z-index: 56; pointer-events: none;
  background: linear-gradient(to top, rgba(98, 70, 178, .55) 0%, rgba(98, 70, 178, .28) 40%, rgba(98, 70, 178, 0) 100%); }   /* nur ein Hauch helleres Lila */   /* Bäume am Horizont, hinter allem */   /* Wiese: unter Loggy (60) und allen Busch-Reihen */
.bush-row * { transform-box: fill-box; }
.bush-back { z-index: 61; }
.bush-front { z-index: 63; }
.bush-mid { z-index: 62; }
html.ent-1 .bush-back, html.ent-2 .bush-mid, html.ent-3 .bush-front { z-index: 59; }
.bit-back { z-index: 61; } .bit-mid { z-index: 62; } .bit-front { z-index: 63; }
html.ent-1 .bit-back, html.ent-2 .bit-mid, html.ent-3 .bit-front { z-index: 59; }
.bush-layer1, .bush-layer2 { z-index: 59; opacity: .9; }
.bush-far { z-index: 57; }   /* vor den Horizont-Bäumen, hinter allem anderen */   /* vordere Schichten, nur am Rand – Loggys Weg bleibt frei */
/* Schnittreste: Laub (Blatt) und kleine Äste in Busch-Lila */
.bush-bit { position: absolute; width: 9px; height: 5px; border-radius: 0 6px; background: #4a3494; pointer-events: none; }
.bush-bit.is-twig { width: 14px; height: 2.5px; border-radius: 2px; background: #241552; }
.hero-title {
  font-size: clamp(2.6rem, 9.2vw, 10rem);
  line-height: .86; letter-spacing: -.045em; font-weight: 800;
  text-transform: uppercase; color: var(--white);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .04em; white-space: nowrap; }
.hero-title .char { display: inline-block; }
.hero-sub {
  margin-top: 1.4rem;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3.2rem); letter-spacing: .02em; line-height: 1.1;
  color: var(--mint);
}
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; }
.scroll-hint { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; padding-inline: .25rem; font-family: var(--font-display); font-weight: 500; color: rgba(255,255,255,.75); text-decoration: none; transition: color .25s var(--ease); }
.scroll-hint:hover { color: var(--white); }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.8s infinite var(--ease-out); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

.hero-visual { grid-column: 9 / span 4; position: relative; align-self: end; }
html.guide-on .hero-visual { display: none; }

/* ---------- Loggy inline (Mobil & ohne JS) ---------- */
.pose-inline { position: relative; max-width: 380px; margin-inline: auto; }
.pose-inline img { width: 100%; filter: drop-shadow(8px 8px 0 rgba(23,21,29,.18)); }
.pose-inline .bubble { position: absolute; left: 0; bottom: 100%; margin-bottom: .6rem; }

/* ---------- Sprechblase ---------- */
/* Sprechblase „Clean Chat“: weiß, weicher Schatten, keine Kontur; statt Spitze eine kleine Ecke zu Loggy hin.
   Antworten als ruhige Pillen: erste Wahl gefüllt (Lila), weitere zart getönt. Fallback-Stil „Markenfarbe“: html[data-bubble="brand"] */
.bubble {
  position: relative;
  width: max-content; max-width: min(330px, 80vw);
  padding: .95rem 1.2rem 1rem;
  background: #fff; color: var(--ink);
  border-radius: 22px 22px 22px 6px;
  box-shadow: 0 14px 32px -14px rgba(23, 21, 29, .42), 0 2px 6px -2px rgba(23, 21, 29, .12);
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.08rem, .98rem + .3vw, 1.2rem); line-height: 1.45;   /* gut lesbar (≥ 17 px) */
}
.bubble.tail-r { border-radius: 22px 22px 6px 22px; }
.bubble b { color: var(--purple); font-weight: 600; }
/* Antwort-Knöpfe: kleine Pillen unter dem Text, bedienbar (Rest des Guides lässt Klicks durch) */
.bubble-asks { display: flex; flex-wrap: wrap; gap: .45rem; }
.bubble-asks:not(:empty) { margin-top: .8rem; }
.ask {
  pointer-events: auto; cursor: pointer;
  font: 500 .92rem/1 var(--font-display); color: var(--purple);
  padding: .6rem .95rem; border-radius: 999px; border: 0;
  background: #efecf8;
  animation: ask-in .35s var(--ease-out, ease-out) both; animation-delay: var(--d, 0s);
  transition: transform .2s var(--ease-out, ease-out), background-color .2s, color .2s;
}
.ask:first-child { background: var(--purple); color: #fff; }
.ask:first-child::after { content: " →"; }
.ask:hover { transform: translateY(-1px); background: #e2ddf3; }
.ask:first-child:hover { background: #4d35a0; }
.ask:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
.ask:active { transform: translateY(0) scale(.97); }
/* Fallback „Markenfarbe“: Blase in Mint auf Lila, in Lila auf hellen Sektionen */
html[data-bubble="brand"] .bubble { background: var(--purple); color: #fff; box-shadow: 0 14px 32px -14px rgba(63, 40, 132, .55); }
html[data-bubble="brand"] .bubble b { color: var(--mint); }
html[data-bubble="brand"] .ask { background: rgba(255, 255, 255, .14); color: #fff; }
html[data-bubble="brand"] .ask:first-child { background: var(--mint); color: var(--ink); }
html[data-bubble="brand"] .guide[data-tone="t-purple"] .bubble { background: var(--mint); color: var(--ink); box-shadow: 0 14px 32px -14px rgba(0, 0, 0, .45); }
html[data-bubble="brand"] .guide[data-tone="t-purple"] .bubble b { color: var(--purple-deep); }
html[data-bubble="brand"] .guide[data-tone="t-purple"] .ask { background: rgba(255, 255, 255, .55); color: var(--ink); }
html[data-bubble="brand"] .guide[data-tone="t-purple"] .ask:first-child { background: var(--ink); color: #fff; }
@keyframes ask-in { from { opacity: 0; transform: translateY(6px); } }
/* Wörter erscheinen weich im Sprechrhythmus (Timing in main.js) */
.bubble .w { display: inline-block; transition: opacity .38s ease, transform .45s cubic-bezier(.22, 1, .36, 1), filter .38s ease; }
.bubble .w.is-pending { opacity: 0; transform: translateY(.3em); filter: blur(2px); }

/* ---------- Der Guide (fixer Loggy, nur Desktop mit JS) ----------
   Position, Laufbewegung, Neigung, Drehen und Hüpfen rechnet main.js
   Bild für Bild mit gedämpften Federn – keine CSS-Keyframes, kein Nachruckeln. */
.guide { display: none; }
html.guide-on .guide {
  --s: 1;
  display: block;
  position: fixed; left: 0; bottom: 0; z-index: 60;
  width: 340px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  will-change: transform;
}
html.guide-on .guide.is-ready { opacity: 1; }
.guide-body { position: relative; }
.guide-flip { transform-origin: 50% 100%; will-change: transform; }
.guide-idle {
  position: relative; aspect-ratio: 760 / 860;
  transform-origin: 50% 100%;
  animation: breathe 4.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.01, .988); } }
.guide-idle img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(10px 10px 0 rgba(23,21,29,.18));
  pointer-events: auto; cursor: pointer;
  user-select: none; -webkit-user-drag: none;
  transform-origin: 50% 100%;
  transition: opacity .38s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.guide-idle img.is-out { opacity: 0; transform: scale(.96) translateY(6px); pointer-events: none; }

.guide .bubble {
  position: absolute; bottom: 0; z-index: 3;   /* immer vor Baum und Loggy */
  opacity: 0;
  translate: var(--bx, 0px) calc(var(--by, 0px) + var(--bys, 0px));   /* folgt dem Kopf; --bx/--bys: weicht Inhalten aus */
  scale: .92;                    /* nur das Ein-/Ausblenden wird animiert */
  transition: opacity .3s ease, scale .45s cubic-bezier(.22, 1, .36, 1);
}
.guide.is-right .bubble { right: 16px; }
.guide.is-left .bubble { left: 16px; }
.guide .bubble { transform-origin: 0 100%; }   /* wächst aus der spitzen Ecke über Loggys Kopf */
.guide .bubble.tail-r { transform-origin: 100% 100%; }
.guide.has-bubble .bubble { opacity: 1; scale: 1; }
/* Halbtotale: Blase links neben dem Kopf, Spitze zeigt zu Loggy */
.guide.bubble-side .bubble { left: auto; right: calc(50% + 96px * var(--sc, 1)); transform-origin: 100% 60%; border-radius: 22px 22px 6px 22px; }   /* Luft zum Kopf, Ecke zu ihm hin */

/* ---------- 3D-Loggy + eigenständiger Baum ---------- */
.guide-canvas { --ext: .1154; position: absolute; inset: -4% -30% -12%; width: 160%; height: 116%; pointer-events: auto; }   /* 12 % Platz unter der Bodenlinie (Rolle, Breakdance, Landungen) */
.guide.is-3d .guide-idle img { display: none; }
html.loggy-behind .guide:not(.is-3d) .guide-idle img { opacity: 0; }
html.loggy-wait .guide { opacity: 0 !important; }   /* Auftritt: Loggy erst, wenn die Büsche stehen (er ist dann schon dahinter) */   /* beim Auftritt keine 2D-Zeichnung aufblitzen lassen, bis 3D da ist */
.guide.is-3d .guide-idle { animation: none; }
.guide-tree {
  display: none;
  position: absolute; bottom: 0; left: calc(50% - 130px); width: 260px; height: auto;
  overflow: visible;
  transform: translate(var(--tx, 0px), var(--th, 0px)) scale(var(--tk, 1));
  transform-origin: 50% 100%;
}
.guide.is-3d .guide-tree { display: block; }
.guide-figure { position: relative; z-index: 1; }

.guide-tree * { transform-box: fill-box; }
.guide-tree path, .guide-tree circle, .guide-tree ellipse { stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
/* Baumfarben „Ton in Ton“: Krone eine Stufe dunkler als der Sektionsgrund, Stamm in Lila – ruhig, aus der Palette */
.guide-tree { --crown: #ddd6f0; --crown-shade: #c7bbe8; --crown-hi: #f3f0fb; --trunk: var(--purple); --bark: #7a64c4; }
.guide[data-tone="t-lilac"] .guide-tree { --crown: #d3c9ee; --crown-shade: #bcaee5; --crown-hi: #f5f2fc; }
.guide[data-tone="t-soft"] .guide-tree { --crown: #bfe1d3; --crown-shade: #a6d4c1; --crown-hi: #eef8f4; }
.guide[data-tone="t-mint"] .guide-tree { --crown: #5fae93; --crown-shade: #4b9a7f; --crown-hi: #9fd9c4; }
.guide[data-tone="t-purple"] .guide-tree { --crown: #5b43a8; --crown-shade: #4a3592; --crown-hi: #7d68c8; --trunk: var(--purple-deep); --bark: #6a55b0; }
.t-stump, .t-trunk { fill: var(--trunk); stroke-width: calc(6px * var(--tsw, 1)); }
.t-bark { fill: none; stroke: var(--bark) !important; stroke-width: calc(4px * var(--tsw, 1)); }
.t-blobs-ink circle { fill: var(--ink); stroke-width: calc(12px * var(--tsw, 1)); }
.t-blobs-fill circle { fill: var(--crown); stroke: none !important; }
.t-blobs-shade circle { fill: var(--crown-shade); stroke: none !important; }
.t-blobs-hi circle { fill: var(--crown-hi); stroke: none !important; }
.t-branch { fill: none; stroke-width: calc(5px * var(--tsw, 1)); }
.t-curl { fill: none; stroke-width: calc(3.5px * var(--tsw, 1)); }
.t-low path { fill: none; stroke-width: calc(8px * var(--tsw, 1)); }
.t-low circle { fill: var(--crown); stroke-width: calc(5px * var(--tsw, 1)); }
.t-dead path { fill: none; stroke: #8f8c99 !important; stroke-width: calc(7px * var(--tsw, 1)); }
.t-rope-ink { fill: none; stroke-width: calc(9px * var(--tsw, 1)); }
.t-rope { fill: none; stroke: #fbfaf5 !important; stroke-width: calc(5.5px * var(--tsw, 1)); }
/* Riffelung des gedrehten Seils; Kletterseil bleibt grün, das Sicherungsseil ist weiß */
.t-rope-twist { fill: none; stroke: var(--ink) !important; stroke-width: calc(5.5px * var(--tsw, 1)); stroke-dasharray: 1.2 3.4; stroke-linecap: butt !important; opacity: 0; }
.t-rope-knot { fill: #fbfaf5; stroke: var(--ink); stroke-width: calc(2.4px * var(--tsw, 1)); opacity: 0; }
.guide[data-tree="kronensicherung"] .t-rope-twist, .guide[data-tree="kronensicherung"] .t-rope-knot { opacity: 1; }
.t-leaves ellipse { fill: var(--mint); stroke-width: calc(2.5px * var(--tsw, 1)); }
.t-scan rect { fill: var(--mint); stroke: var(--ink); stroke-width: calc(2px * var(--tsw, 1)); }
.t-check circle { fill: var(--mint); stroke-width: calc(4px * var(--tsw, 1)); }
.t-check path { fill: none; stroke-width: calc(5px * var(--tsw, 1)); }
.t-bit { transform-box: view-box; transform-origin: 0 0; }
.t-bit-leaf { fill: var(--mint); stroke-width: calc(2px * var(--tsw, 1)); }
.t-bit-twig { fill: none; stroke-width: calc(4px * var(--tsw, 1)); }
.t-pile { fill: none; stroke: #8f8c99 !important; stroke-width: calc(5px * var(--tsw, 1)); }
/* Kronensicherung: ungesicherte Krone wackelt im Wind, bis das Seil sitzt */
.guide-tree.is-wobbly .t-crown-sway { animation: wobble 1.1s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-3.2deg); } 50% { transform: rotate(3.4deg); } }
/* Hologramm-Monitor (Baumkontrolle): dunkler, leicht transparenter Schirm mit mintfarbenen Linien */
.holo {
  position: absolute; bottom: var(--hy, 300px); left: calc(50% + var(--hx, 0px) - 125px); width: 250px; z-index: 4;
  padding: .7rem .8rem .8rem; border-radius: 12px; color: var(--mint);
  background: rgba(23, 21, 29, .82) repeating-linear-gradient(0deg, rgba(124, 197, 171, .07) 0 1px, transparent 1px 4px);
  border: 1.5px solid rgba(124, 197, 171, .75); box-shadow: 0 0 0 4px rgba(124, 197, 171, .12);
  font: 600 .95rem/1.3 var(--font-display);
  animation: holo-in .45s cubic-bezier(.22, 1, .36, 1) both; transform-origin: 50% 100%;
}
.holo.is-out { animation: holo-out .4s ease-in forwards; }
@keyframes holo-in { from { opacity: 0; transform: scale(.6, .1); } }
@keyframes holo-out { to { opacity: 0; transform: scale(.6, .1); } }
.holo-head { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-bottom: .45rem; }
.holo-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: holo-blink 1s steps(2) infinite; }
@keyframes holo-blink { 50% { opacity: .2; } }
.holo-views { position: relative; min-height: 6.4rem; }
.holo-list { list-style: none; margin: 0; padding: 0; transition: opacity .3s; }
.holo-list li { display: flex; align-items: center; gap: .55rem; padding: .3rem .4rem; border-radius: 6px; color: rgba(255, 255, 255, .78); }
.holo-list li::before { content: ""; width: 14px; height: 14px; border: 1.5px solid var(--mint); border-radius: 3px; flex-shrink: 0; }
.holo-list li.cur { background: rgba(124, 197, 171, .16); color: #fff; }
.holo-list li.done::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.5l2.6 2.6L11 4.6' fill='none' stroke='%2317151d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; animation: holo-tick .35s ease-out; }
@keyframes holo-tick { from { transform: scale(.4); } }
.holo-map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s; }
.holo-map path { fill: none; stroke: rgba(124, 197, 171, .5); stroke-width: 2; }
.holo-map circle { fill: none; stroke: var(--mint); stroke-width: 2; }
.holo-map .pin-done { fill: var(--mint); }
.holo-map .pin-next { animation: holo-pulse 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.holo-map .pin-next.sel { fill: var(--mint); animation: none; stroke-width: 3; }
@keyframes holo-pulse { 50% { transform: scale(1.6); opacity: .5; } }
.holo.is-map .holo-list { opacity: 0; }
.holo.is-map .holo-map { opacity: 1; }
.t-bird { opacity: 0; transform-box: view-box; transform-origin: 0 0; }   /* Vogel ist um (0,0) gezeichnet */
.t-bird .bird-body { fill: var(--ink); stroke: none !important; }
.t-bird .bird-wing { fill: var(--mint); stroke-width: calc(2.5px * var(--tsw, 1)); transform-origin: 0% 100%; }
.t-bird .bird-beak { fill: var(--mint); stroke-width: calc(2px * var(--tsw, 1)); }
.t-bird .bird-eye { fill: var(--paper); stroke: none !important; }
.t-bird .bird-legs, .t-bird .bird-note { fill: none; stroke-width: calc(2.5px * var(--tsw, 1)); }
.t-bird .bird-note { opacity: 0; }
.t-sprout { opacity: 0; transform-origin: 50% 100%; }
.t-sprout path { fill: var(--mint); stroke-width: calc(4px * var(--tsw, 1)); }
.t-sprout .t-sprout-stem { fill: none; }
.t-stump { transform-origin: 50% 100%; }
/* beim Laufen verschwindet der Baum, am Ziel wächst er neu (main.js → growTree) */
.guide-tree { transition: opacity .25s ease, scale .3s ease; }
.guide-tree.is-out { opacity: 0; scale: .85; transition-duration: .14s; }

/* Übergänge zwischen den Zuständen: weich, ohne Federn */
.t-all, .t-top, .t-crown, .t-low, .t-dead, .t-leaves, .t-scan, .t-check, .t-rope, .t-rope-ink {
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), opacity .6s ease, stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1);
}
.t-all { transform-origin: 50% 100%; }
.t-top { transform-origin: 50% 100%; }
.t-crown { transform-origin: 50% 100%; }
.t-crown-sway { transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.t-low-l { transform-origin: 100% 50%; }
.t-low-r { transform-origin: 0% 50%; }
.t-dead { transform-origin: 0% 100%; opacity: 0; transform: scale(.4); }
.t-rope, .t-rope-ink { stroke-dasharray: 100; stroke-dashoffset: 100; }
.t-leaves, .t-scan, .t-check { opacity: 0; }
.t-check { transform-origin: 50% 50%; transform: scale(.3); }

/* none: Baum steckt im Boden */
.guide[data-tree="none"] .t-all { transform: scale(0); opacity: 0; }
/* Kronenpflege: Krone wird licht, Blätter segeln */
.guide[data-tree="kronenpflege"] .t-crown { transform: scale(.94); }
.guide[data-tree="kronenpflege"] .t-leaves { opacity: 1; }
.guide[data-tree="kronenpflege"] .t-leaves ellipse { animation: leaf 3.2s linear infinite; transform-origin: 50% 50%; }
.guide[data-tree="kronenpflege"] .t-leaves ellipse:nth-child(2) { animation-delay: -.8s; }
.guide[data-tree="kronenpflege"] .t-leaves ellipse:nth-child(3) { animation-delay: -1.6s; }
.guide[data-tree="kronenpflege"] .t-leaves ellipse:nth-child(4) { animation-delay: -2.4s; }
@keyframes leaf {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(14px, 150px) rotate(220deg); opacity: 0; }
}
/* Kroneneinkürzung: Krone wird kleiner */
.guide[data-tree="kroneneinkuerzung"] .t-crown { transform: translateY(14px) scale(.76); }
/* Lichtraumprofil: untere Äste weg, Krone höher */
.guide[data-tree="lichtraumprofil"] .t-low { transform: scale(0); opacity: 0; }
.guide[data-tree="lichtraumprofil"] .t-top { transform: scaleY(1.1); }
/* Totholz: grauer Ast erscheint und fällt ab */
.guide[data-tree="totholz"] .t-dead { opacity: 1; transform: none; animation: deadfall 1.3s cubic-bezier(.55, 0, .85, .35) 1.6s forwards; }
@keyframes deadfall {
  0% { transform: none; opacity: 1; }
  100% { transform: translate(26px, 150px) rotate(70deg); opacity: 0; }
}
/* Kronensicherung: Seil zeichnet sich ein */
.guide[data-tree="kronensicherung"] .t-rope,
.guide[data-tree="kronensicherung"] .t-rope-ink { stroke-dashoffset: 0; transition: none; }
/* Fällung: Krone und Stamm werden abgetragen, Stumpf bleibt */
.guide[data-tree="faellung"] .t-crown { transform: translateY(-60px) scale(.5); opacity: 0; }
.guide[data-tree="faellung"] .t-top { transform: translateY(-30px); opacity: 0; transition-delay: .35s; }
.guide[data-tree="faellung"] .t-low { transform: scale(0); opacity: 0; }
/* Kontrolle: Scan + Haken */
.guide[data-tree="kontrolle"] .t-scan { opacity: 1; }
.guide[data-tree="kontrolle"] .t-scan rect { animation: scan 2.6s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes scan { 0%, 100% { transform: translateY(20px); } 50% { transform: translateY(320px); } }
.guide[data-tree="kontrolle"] .t-check { opacity: 1; transform: none; transition-delay: .5s; }

html.guide-on .pose-inline[data-guided] { display: none; }

/* ---------- Layout-Raster für Inhalt neben dem Guide ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(1rem, 2.5vw, 2.5rem); align-items: center; }
.split > * { grid-column: 1 / -1; }
.col-text { min-width: 0; }

/* ---------- Marquee ---------- */
.marquee { background: var(--purple); color: var(--white); overflow: hidden; padding-block: 1.1rem; border-block: 1px solid rgba(255,255,255,.12);
  /* Ränder laufen weich aus statt hart abzuschneiden */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); line-height: 1.2; letter-spacing: -.02em; text-transform: uppercase; padding-inline: 1.4rem; white-space: nowrap; }
.marquee-dot { width: .55em; height: .55em; flex-shrink: 0; font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); }

/* ---------- Philosophie ---------- */
.philo .lead { margin-top: 2.2rem; }
.scrub .word { color: var(--scrub-dim, rgba(23,21,29,.16)); transition: color .45s var(--ease); }
.scrub .word.is-on { color: inherit; }
.scrub strong .word.is-on, .scrub .word.is-on strong { color: var(--purple); }
.t-purple .scrub { --scrub-dim: rgba(255,255,255,.2); }

.more { margin-top: 2.2rem; }
.more summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--purple);
  padding: .7rem 1.2rem .7rem 1rem; border: 2px solid var(--purple); border-radius: 999px;
  line-height: 1.2; user-select: none; -webkit-user-select: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.more summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .more summary:hover { background: var(--purple); color: var(--white); } }
.more summary:active { transform: scale(.97); }
.more summary .plus { position: relative; width: 14px; height: 14px; }
.more summary .plus::before, .more summary .plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
.more summary .plus::after { transform: rotate(90deg); }
.more[open] summary .plus::after { transform: rotate(0); }
.more .label-less { display: none; }
.more[open] .label-more { display: none; }
.more[open] .label-less { display: inline; }
.more-body { overflow: hidden; }
.more-body .prose { padding-top: 1.8rem; }

/* ---------- CTA-Band ---------- */
.cta { padding-block: clamp(5rem, 14vh, 9rem); }
.cta-title { font-size: clamp(2.4rem, 1.2rem + 5vw, 5.4rem); line-height: .95; letter-spacing: -.04em; font-weight: 800; }
.cta-text { margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.cta .btn { margin-top: 2.2rem; }

/* ---------- Über mich ---------- */
.about-photo { position: relative; }
.photo-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  background: var(--ink);
  transform: rotate(-2.5deg);
  transition: transform .7s var(--ease);
}
@media (hover: hover) { .photo-card:hover { transform: rotate(-.6deg) scale(1.01); } }
.photo-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transform: scale(1.12) translateY(var(--py, 0px)); }
.photo-card-bar { position: absolute; inset: 0 0 auto; height: 34px; display: flex; gap: 6px; align-items: center; padding-inline: 14px; background: var(--paper); border-bottom: 2px solid var(--ink); z-index: 1; }
.photo-card-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); opacity: .25; }
.photo-tag {
  position: absolute; z-index: 2; right: -1rem; bottom: 2rem;
  background: var(--purple); color: var(--white); border: 2px solid var(--ink); box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-display); font-weight: 700; line-height: 1.2; padding: .6rem 1rem; border-radius: 999px; transform: rotate(4deg);
}
.about .prose p:last-child { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--accent); line-height: 1.35; margin-top: 1.4em; }

/* ---------- Leistungen ---------- */
.services-intro { margin-top: 2rem; }
.services-head { margin-top: clamp(3rem, 7vh, 5rem); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); }
.services { margin-top: 1.6rem; display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  padding: 1.5rem 1.5rem 1.1rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
@media (hover: hover) { .service-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); } }
.service-card h3 { font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem); line-height: 1.15; letter-spacing: -.015em; hyphens: auto; overflow-wrap: break-word; text-wrap: wrap; min-width: 0; color: var(--purple); margin-bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.service-card h3 .badge { flex-shrink: 0; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); font-size: .9rem; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.service-list { display: grid; }
.service-list a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem;
  padding: .85rem 0; border-top: 1px solid rgba(23,21,29,.12);
  text-decoration: none; border-radius: 4px;
}
.service-list li:first-child a { border-top: 0; padding-top: .35rem; }
.service-list strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; font-weight: 600; color: var(--ink); transition: color .25s var(--ease); }
.service-list span { grid-column: 1; color: var(--text); font-size: .95rem; line-height: 1.45; margin-top: .15rem; }
.service-list .go { grid-row: 1 / span 2; grid-column: 2; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); transition: background-color .25s var(--ease), transform .45s var(--ease-spring); }
.service-list a:hover .go, .service-list a:focus-visible .go { background: var(--mint); transform: rotate(-45deg); }
.service-list a:hover strong { color: var(--purple); }
.service-list a:active .go { transform: rotate(-45deg) scale(.92); }

/* ---------- Detail-Sektionen ---------- */
.detail { min-height: 92vh; display: flex; align-items: center; }
.detail .wrap { width: 100%; }
.detail-num {
  font-family: var(--font-display); font-weight: 800; line-height: .8; letter-spacing: -.05em;
  font-size: clamp(5rem, 3rem + 9vw, 12rem);
  color: transparent; -webkit-text-stroke: 2px var(--heading); opacity: .26;
  margin-bottom: .06em; margin-left: -.04em; user-select: none;   /* steht frei über der Überschrift, optisch bündig mit ihr */
  font-variant-numeric: lining-nums;
}
.detail h2 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.4rem); line-height: 1; letter-spacing: -.035em; }
.detail .h-md { margin-top: 1.2rem; max-width: 40ch; }
.detail .prose { margin-top: 1.8rem; }
.detail .pose-inline { margin-top: 2.5rem; max-width: 320px; }

/* ---------- Zertifikate ---------- */
.certs-grid { display: grid; gap: 1.5rem; }
.cert-card {
  display: grid; gap: 1.5rem; align-items: center;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-hard);
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.cert-card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; }
.cert-card .prose { margin-top: 1rem; }
.cert-logo { display: block; width: 150px; border-radius: 50%; transition: transform .6s var(--ease-spring); }
.cert-logo img { border-radius: 50%; }
.cert-card--hava { grid-template-columns: 1fr; }
.cert-card--hava p { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--purple); }
.hava-logo { display: block; width: min(280px, 100%); border-radius: 8px; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .cert-logo:hover { transform: rotate(-6deg) scale(1.04); }
  .hava-logo:hover { transform: scale(1.03); }
}

/* ---------- Footer ---------- */
.footer-cta { padding-bottom: 3rem; }
.footer-cta .cta-title { color: var(--white); }
.footer-cta .cta-text { color: rgba(255,255,255,.78); }
.footer-mail { display: inline-block; margin-top: 2.4rem; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 2.6vw, 3rem); line-height: 1.2; letter-spacing: -.01em; color: var(--white); text-decoration: none; background: linear-gradient(var(--mint), var(--mint)) 0 100% / 100% 2px no-repeat; transition: background-size .5s var(--ease), color .3s var(--ease); padding-bottom: .12em; }
.footer-mail:hover { color: var(--mint); background-size: 0 2px; background-position: 100% 100%; }
.footer-bottom { margin-top: clamp(4rem, 12vh, 8rem); display: grid; gap: 2rem; grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,.14); padding-top: 2.4rem; }
.footer-col h2 { font-size: .82rem; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); font-weight: 600; margin-bottom: .75rem; }
/* Links als ruhige Zeilen mit ausreichend Tippfläche; Unterstrich wächst beim Hover von links */
.footer-col a { display: inline-block; padding-block: .32rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - .28rem) / 0 1px no-repeat; transition: color .25s var(--ease), background-size .4s var(--ease); }
.footer-col a:hover { color: var(--mint); background-size: 100% 1px; }
.footer-col address { font-style: normal; padding-block: .32rem; }
.footer-copy { font-size: .9rem; color: rgba(255,255,255,.62); align-self: end; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--white); transition: color .25s var(--ease); }
.to-top svg { transition: transform .4s var(--ease-spring); }
.to-top:hover { color: var(--mint); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Unterseiten (Rechtliches) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 10vh, 6rem)); padding-bottom: clamp(3rem, 8vh, 5rem); overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.page-hero h1 { font-size: clamp(3rem, 1rem + 8vw, 8rem); line-height: .9; letter-spacing: -.045em; font-weight: 800; text-transform: uppercase; }
.page-hero .crumb { font-family: var(--font-display); font-weight: 500; color: var(--mint); text-decoration: none; display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; margin-bottom: .9rem; transition: color .25s var(--ease); }
.page-hero .crumb svg { transition: transform .4s var(--ease-spring); }
.page-hero .crumb:hover { color: var(--white); }
.page-hero .crumb:hover svg { transform: translateX(-3px); }
.page-hero-loggy { width: clamp(120px, 18vw, 230px); position: relative; }
.page-hero-loggy .bubble { position: absolute; right: 30%; bottom: 100%; margin-bottom: .4rem; font-size: .95rem; }
.page-hero-loggy img { filter: drop-shadow(8px 8px 0 rgba(0,0,0,.25)); }
.legal { padding-block: clamp(3.5rem, 9vh, 6rem); }
.legal .prose { max-width: 75ch; margin-inline: auto; }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.12; margin-top: 2.8rem; margin-bottom: .8rem; text-wrap: balance; }
.legal h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); line-height: 1.2; margin-top: 2.1rem; margin-bottom: .6rem; }
.legal h4 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -.01em; margin-top: 1.6rem; margin-bottom: .4rem; color: var(--purple); }
.legal h2, .legal h3, .legal h4 { hyphens: auto; overflow-wrap: break-word; }
.legal h2:first-child, .legal h3:first-child, .legal p:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-block: .8rem 1.1rem; }
.legal li + li { margin-top: .3rem; }
.legal a { word-break: break-word; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.notfound h1 { font-size: clamp(5rem, 3rem + 14vw, 16rem); line-height: .85; font-weight: 800; letter-spacing: -.06em; }
.notfound img { width: 200px; margin: 0 auto 1rem; }
.notfound p { margin-top: 1rem; font-size: 1.2rem; }
.notfound .btn { margin-top: 2rem; }

/* ---------- Reveal-Animationen ---------- */
/* Kurze Wege, ruhige Kurve, gestaffelt (--d setzt main.js je Gruppe). Der verborgene Zustand gilt nur bis .is-in;
   der Übergang nur bis .is-shown – danach gehören transform/transition wieder dem Element selbst (Hover der Karten/Knöpfe).
   Läuft main.js nicht, nimmt der kleine Timer im <head> die Klasse .js zurück: Inhalte bleiben nie unsichtbar. */
.js [data-reveal]:not(.is-shown) { transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 18px, 0); }
.js [data-reveal="left"]:not(.is-in) { transform: translate3d(-22px, 0, 0); }
.js [data-reveal="right"]:not(.is-in) { transform: translate3d(22px, 0, 0); }
.js [data-reveal="scale"]:not(.is-in) { transform: scale(.97); }
.js [data-reveal="pop"]:not(.is-in) { transform: scale(.9) rotate(-3deg); }
.js [data-reveal="pop"]:not(.is-shown) { transition-timing-function: var(--ease), var(--ease-spring); }

.js [data-split] .wl { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.js [data-split] .wi { display: inline-block; transform: translate3d(0, 108%, 0); transition: transform .95s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 38ms); }
.js [data-split].is-in .wi { transform: none; }

/* Ohne Auftritt (Handy, ohne 3D): Buchstaben wachsen weich aus ihrer Zeile, leicht federnd */
.js .hero-title .char { transform: translateY(105%) rotate(6deg); transform-origin: 50% 100%; transition: transform 1.25s cubic-bezier(.3, 1.3, .55, 1); transition-delay: calc(.3s + var(--i) * 55ms); }
.js .hero.is-ready .hero-title .char { transform: none; }
.js .hero .hero-sub, .js .hero .hero-actions { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease-out) 1.1s, transform 1.1s var(--ease-out) 1.1s; }
.js .hero .hero-actions { transition-delay: 1.35s; }
.js .hero.is-ready .hero-sub, .js .hero.is-ready .hero-actions { opacity: 1; transform: none; }
/* Mit Auftritt (Comic): Wort für Wort klappt nach vorn und landet mit kräftigem Federn – erst „BOSS“, dann „BAUMPFLEGE“.
   Buchstaben eines Worts nur minimal versetzt (wirkt als Block, keine Welle). */
html.sprout .hero-title .line { overflow: visible; perspective: 800px; }
html.sprout .hero:not(.is-sprouted) .hero-title .char { transform: translateY(.3em) rotateX(-100deg) scale(.75); opacity: 0; transition: none; }
html.sprout .hero.is-sprouted .hero-title .char {
  transform: none; opacity: 1; transform-origin: 50% 85%;
  transition: transform .8s cubic-bezier(.34, 1.7, .5, 1), opacity .2s ease;
  transition-delay: calc(var(--w, 0) * .38s + var(--j, 0) * 16ms);
}
html.sprout .hero:not(.is-sprouted) .hero-sub, html.sprout .hero:not(.is-sprouted) .hero-actions { opacity: 0; transform: translateY(18px); transition: none; }
html.sprout .hero.is-sprouted .hero-sub { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) 1.6s, transform 1.1s var(--ease-out) 1.6s; }
html.sprout .hero.is-sprouted .hero-actions { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) 1.85s, transform 1.1s var(--ease-out) 1.85s; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services .service-card:first-child { grid-row: span 2; }
  .cert-card { grid-template-columns: auto 1fr; }
  .cert-card--hava { grid-template-columns: 1fr auto; }
  .footer-bottom { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .split > .col-text { grid-column: 1 / span 7; }
  .split.text-right > .col-text { grid-column: 6 / span 7; }
  .split.text-center > .col-text { grid-column: 3 / span 8; }
  .split > .col-side { grid-column: 9 / span 4; }
  .split.text-right > .col-side { grid-column: 1 / span 4; grid-row: 1; }
  .about .split { align-items: center; }
  .about .about-photo { grid-column: 1 / span 4; grid-row: 1; }
  .about .col-text { grid-column: 5 / span 5; }
  .certs .col-text { grid-column: 1 / span 8; }
  .footer-bottom { grid-template-columns: 1fr 1fr 1fr auto; }
}

@media (max-width: 1023.98px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  :root { --header-h: 72px; }
  .brand img { width: 60px; }
  .hero { align-items: center; }
  .hero-text, .hero-visual { grid-column: 1 / -1; }
  .hero-visual { max-width: 300px; justify-self: end; margin-top: 4rem; }
  .about-photo { max-width: 420px; margin-bottom: 3.5rem; }
  .col-side { margin-top: 3rem; }
  .detail { min-height: 0; }
  /* „Meine Leistungen“ gehört zur Baumpflege-Sektion davor (gleicher Grund): kein doppelter Abstand */
  .services-sec { padding-top: 0; }
  .services-sec .services-head { margin-top: 0; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .hero-title { font-size: 12.4vw; }
  .btn--big { white-space: normal; }
  .photo-tag { right: .5rem; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero-loggy { justify-self: end; margin-top: 3.5rem; }
  /* schmale Spalten: deutsche Komposita dürfen trennen, sonst reißt der Flattersatz aus */
  .prose, .lead, .cta-text { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .wi, .js .hero-title .char, .js .hero .hero-sub, .js .hero .hero-actions { opacity: 1 !important; transform: none !important; }
  .scrub .word { color: inherit !important; }
  /* Hintergrund-Szenen stehen still: kein Wind, keine Tiefenverschiebung */
  .glass-branch, .glass-fill, .scene-far, .bush-row, .bush-trees,
  .section.cta::before, .section.footer-cta::before, .section.t-mint::before, .section.scn::before,
  .section.cta::after, .section.footer-cta::after, .section.t-mint::after, .section.scn::after { animation: none !important; translate: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  .site-header, .guide, .marquee, .mobile-menu { display: none !important; }
  .section { padding-block: 1.5rem; background: #fff !important; color: #000 !important; }
}

/* Platz für Loggy im Footer (Desktop) */
@media (min-width: 1024px) {
  html.guide-on .footer-bottom { padding-right: clamp(220px, 22vw, 360px); grid-template-columns: 1fr 1fr 1.2fr; }
  html.guide-on .footer-bottom .to-top { grid-column: 1; }
}
.cta .col-text > .btn:first-child { margin-top: 0; }

/* Liane beim Seitenwechsel: hängt von oben herab, Loggy schwingt daran hinüber */
.vine { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 101; overflow: visible; }   /* über dem Header: hängt außerhalb des Bildes und schwingt durch ihn hindurch */
.vine-ink { fill: none; stroke: #17151d; stroke-width: 9px; stroke-linecap: round; }
.vine-col { fill: none; stroke: #3f2884; stroke-width: 4.5px; stroke-linecap: round; stroke-dasharray: 14 6; }
.vine-leaf { fill: #7cc5ab; stroke: #17151d; stroke-width: 2.5px; stroke-linejoin: round; }

/* Hecken-Hintergrund (wie im Hero, nur schemenhaft): lila Sektionen + Footer in Lila, grüne Sektionen in Grün.
   Zwei Masken-Ebenen am Sektionsfuß, Farbe je Ton – liegt hinter dem Inhalt */
.section.cta, .section.footer-cta, .section.t-mint, .section.scn { --hedge-back: #382374; --hedge-front: #311f67; }
.section.t-mint { --hedge-back: #70bba1; --hedge-front: #64b296; }
.section.cta::before, .section.footer-cta::before, .section.t-mint::before, .section.scn::before,
.section.cta::after, .section.footer-cta::after, .section.t-mint::after, .section.scn::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  height: var(--hh, 320px); -webkit-mask: var(--hedge-mask) left bottom / 1440px var(--hh, 320px) repeat-x; mask: var(--hedge-mask) left bottom / 1440px var(--hh, 320px) repeat-x;
}
.section.cta::before, .section.footer-cta::before, .section.t-mint::before, .section.scn::before { --hedge-mask: url('../img/hedge-back.svg'); --hh: 400px; background: var(--hedge-back); }
.section.cta::after, .section.footer-cta::after, .section.t-mint::after, .section.scn::after { --hedge-mask: url('../img/hedge-front.svg'); background: var(--hedge-front); -webkit-mask-position: -380px bottom; mask-position: -380px bottom; }

/* Mehr Struktur im Hintergrund (Termin-Banner, Footer, Über mich): Äste von oben wie im Hero – etwas sparsamer –
   und eine Baumreihe in der Ferne hinter den Hecken; Farben je Ton, alles hinter dem Inhalt */
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.scene-far { position: absolute; left: 0; right: 0; bottom: 0; height: 620px; background: var(--hedge-far);
  -webkit-mask: url('../img/hedge-far.svg') -200px bottom / 1440px 620px repeat-x; mask: url('../img/hedge-far.svg') -200px bottom / 1440px 620px repeat-x; }
.scene-canopy { position: absolute; inset: 0 0 auto 0; height: 22vh; }
.scene .glass-fill { background: var(--leaf); opacity: 1; }
.scene .glass-branch.is-dark .glass-fill { background: var(--leaf-dark); opacity: 1; }
.section.cta, .section.footer-cta { --hedge-far: #3a2479; --leaf: #33206f; --leaf-dark: #2a1a5e; }
.section.t-mint { --hedge-far: #75c0a5; --leaf: #69b49a; --leaf-dark: #5ca88d; }

/* Wiese am Sektionsfuß: Loggy läuft darauf, Hecken und Bäume stehen dahinter (wie im Hero: Wiese dunkler als die Büsche, nach vorn tiefer) */
.section.cta, .section.footer-cta, .section.t-mint, .section.scn { --ground: clamp(64px, 11vh, 120px);
  background: linear-gradient(to top, var(--meadow-front) 0, var(--meadow) var(--ground), var(--bg) var(--ground)); }
.section.cta, .section.footer-cta { --meadow: #2b1a5d; --meadow-front: #22134c; }
.section.t-mint { --meadow: #5ba98d; --meadow-front: #4f9c80; }
.section.cta::before, .section.footer-cta::before, .section.t-mint::before, .section.scn::before,
.section.cta::after, .section.footer-cta::after, .section.t-mint::after, .section.scn::after,
.section .scene-far { bottom: calc(var(--ground) - 4px); }

/* Termin-Banner: Knopf und Text sitzen unten über der Wiese – oben bleibt Platz für Loggys Sprechblase */
@media (min-width: 1024px) {
  html .section.cta, html.snap .section.cta { min-height: 100svh; align-content: end; padding-bottom: calc(var(--ground, 0px) + clamp(2.5rem, 7vh, 5rem)); }
}

/* Bodenschatten, solange Loggy in der Luft ist (Sprung, Liane, Klettern): bleibt am Boden, wird mit der Höhe kleiner */
.guide-shadow { position: absolute; left: 50%; bottom: -8px; width: 180px; height: 34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(23, 21, 29, .22), rgba(23, 21, 29, 0)); opacity: 0; pointer-events: none; transform-origin: 50% 50%; }
.guide:not(.is-3d) .guide-shadow { display: none; }
/* Kletterseil (Totholz, Kronensicherung, Fällung): vom Ast zum Gurt */
.climb-rope path, .climb-rope circle { vector-effect: non-scaling-stroke; }
.climb-ink { fill: none; stroke: #17151d; stroke-width: 9px; stroke-linecap: round; }
.climb-col { fill: none; stroke: #7cc5ab; stroke-width: 4px; stroke-linecap: round; }
.climb-knot { fill: #7cc5ab; stroke: #17151d; stroke-width: 3px; }

/* ==========================================================================
   Szenen in Bewegung: Wind und Tiefe
   Die Grafiken bleiben, wie sie sind – jede Ebene bewegt sich nur anders:
   · Wind: Äste schwingen um ihren Ansatz (glass-sway), ihr Laub spielt zusätzlich in eigenem Takt (leaf-flutter),
     Hecken und Baumreihen neigen sich kaum merklich (hedge-sway) – je Ebene eigener Ausschlag, Takt und Versatz.
   · Tiefe: main.js gibt je sichtbarer Sektion --sq / --sin (Lage im Bild) und --mx (Mauszeiger) vor; ferne Ebenen
     folgen wenig, nahe viel. Alles über transform/translate (Compositor), außerhalb des Bildes pausiert (is-live).
   ========================================================================== */
.glass-branch { --amp: 1.5deg; translate: calc(var(--mx, 0) * var(--gx, -23px)) calc(var(--sq, 0) * var(--gy, 26px)); }
.glass-m, .glass-m2, .glass-m3 { --amp: 2.3deg; --gx: -32px; --gy: 34px; }   /* kleine, frei hängende Zweige: leichter, näher */
.glass-lw, .glass-rw { --amp: .9deg; --gx: -16px; --gy: 18px; }               /* lange Äste: schwer, träge */
.glass-l2, .glass-r2 { --amp: 1.2deg; --gx: -18px; --gy: 20px; }
.glass-fill { transform-origin: 50% 0; animation: leaf-flutter var(--ft, 5.3s) ease-in-out var(--fd, -1s) infinite; }
.glass-l  { --ft: 6.1s; --fd: -2.2s; }
.glass-r  { --ft: 7.3s; --fd: -4.1s; }
.glass-m  { --ft: 4.3s; --fd: -.6s; }
.glass-l2 { --ft: 6.7s; --fd: -3.4s; }
.glass-r2 { --ft: 5.9s; --fd: -1.3s; }
.glass-m2 { --ft: 4.9s; --fd: -2.9s; }
.glass-m3 { --ft: 5.3s; --fd: -3.8s; }
.glass-lw { --ft: 7.9s; --fd: -5.2s; }
.glass-rw { --ft: 8.3s; --fd: -1.9s; }
@keyframes leaf-flutter {
  0%, 100% { transform: skewX(-.7deg) scaleY(1); }
  35% { transform: skewX(.5deg) scaleY(1.012); }
  60% { transform: skewX(-.2deg) scaleY(1.004); }
  80% { transform: skewX(.9deg) scaleY(1.016); }
}

/* Hecken und Baumreihe: etwas breiter als die Sektion, damit beim Verschieben nie ein Rand sichtbar wird */
.section.cta, .section.footer-cta, .section.t-mint, .section.scn { overflow-x: clip; }
.section.cta::before, .section.footer-cta::before, .section.t-mint::before, .section.scn::before,
.section.cta::after, .section.footer-cta::after, .section.t-mint::after, .section.scn::after,
.scene-far { left: -90px; right: -90px; transform-origin: 50% 100%; animation: hedge-sway var(--st, 11s) ease-in-out var(--sd, 0s) infinite; }
.section.cta::before, .section.footer-cta::before, .section.t-mint::before, .section.scn::before {
  -webkit-mask-position: 40px bottom; mask-position: 40px bottom;
  --sk: .3deg; --st: 11s; --sd: -3s;
  translate: calc(var(--mx, 0) * -18px) calc(var(--sin, 0) * -22px);
}
.section.cta::after, .section.footer-cta::after, .section.t-mint::after, .section.scn::after {
  -webkit-mask-position: -340px bottom; mask-position: -340px bottom;
  --sk: .2deg; --st: 8.5s; --sd: -5s;
  translate: calc(var(--mx, 0) * -37px) 0;   /* vorderste Hecke bleibt am Boden, weicht nur seitlich */
}
.scene-far {
  -webkit-mask-position: -160px bottom; mask-position: -160px bottom;
  --sk: .42deg; --st: 13.5s; --sd: -7s;
  translate: calc(var(--mx, 0) * -9px) calc(var(--sin, 0) * -34px);   /* kommt langsamer ins Bild als der Vordergrund */
}
@keyframes hedge-sway {
  0%, 100% { transform: skewX(calc(var(--sk, .3deg) * -1)); }
  36% { transform: skewX(calc(var(--sk, .3deg) * .7)); }
  58% { transform: skewX(calc(var(--sk, .3deg) * .15)); }
  80% { transform: skewX(var(--sk, .3deg)); }
}

/* Hero-Büsche (von main.js aufgebaut): gleiche Logik – hinten ruhig, vorn mehr Weg. Nur translate/transform an den
   Reihen selbst; die Schnitt-Animationen im Inneren (rotate/scale der Büsche) bleiben unberührt. */
.bush-trees, .bush-row { transform-origin: 50% 100%; animation: hedge-sway var(--st, 11s) ease-in-out var(--sd, 0s) infinite; }
.bush-trees { --sk: .36deg; --st: 13.5s; --sd: -6s; }
.bush-trees, .bush-horizon { translate: calc(var(--mx, 0) * -9px) 0; }
.bush-far { --sk: .18deg; --st: 12s; --sd: -2s; translate: calc(var(--mx, 0) * -14px) 0; }
.bush-back { --sk: .26deg; --st: 10.5s; --sd: -4s; }
.bush-mid { --sk: .22deg; --st: 9.5s; --sd: -7s; }
.bush-front { --sk: .18deg; --st: 8.5s; --sd: -1s; }
.bush-back, .bit-back { translate: calc(var(--mx, 0) * -21px) 0; }
.bush-mid, .bit-mid { translate: calc(var(--mx, 0) * -30px) 0; }
.bush-front, .bit-front { translate: calc(var(--mx, 0) * -41px) 0; }
.bush-layer1 { --sk: .16deg; --st: 9s; --sd: -3s; translate: calc(var(--mx, 0) * -55px) 0; }
.bush-layer2 { --sk: .14deg; --st: 7.5s; --sd: -5s; translate: calc(var(--mx, 0) * -74px) 0; }

/* außerhalb des Bildes ruht der Wind (spart Compositor-Arbeit); ohne laufendes Skript bleibt er einfach an */
html.js-ready .section:not(.is-live) .glass-branch, html.js-ready .section:not(.is-live) .glass-fill,
html.js-ready .section:not(.is-live) .scene-far, html.js-ready .section:not(.is-live) .bush-row, html.js-ready .section:not(.is-live) .bush-trees,
html.js-ready .section:not(.is-live)::before, html.js-ready .section:not(.is-live)::after { animation-play-state: paused; }

/* ---------- Intro überspringen (steht an Loggys Endplatz) ---------- */
.skip-intro {
  position: absolute; z-index: 70; bottom: clamp(18px, 4vh, 36px); transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .55rem 1.05rem;
  font: 500 .85rem/1 var(--font-display); letter-spacing: .02em; color: var(--white);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .2s ease, border-color .2s ease;
}
.skip-intro.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.skip-intro:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.skip-intro:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.skip-intro svg { transition: transform .2s ease; }
.skip-intro:hover svg { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) { .skip-intro { display: none; } }

/* Sicherungsseil beim Anbringen: im Baum gezeichnet (hinter Loggy), läuft aus seiner Hand */
.sec-rope path { fill: none !important; }
.sec-ink { stroke: var(--ink) !important; stroke-width: calc(9px * var(--tsw, 1)) !important; }
.sec-col { stroke: #fbfaf5 !important; stroke-width: calc(5.5px * var(--tsw, 1)) !important; }
.sec-twist { stroke: var(--ink) !important; stroke-width: calc(5.5px * var(--tsw, 1)) !important; stroke-dasharray: 1.2 3.4; stroke-linecap: butt !important; }
.sec-knot { fill: #fbfaf5; stroke: var(--ink); stroke-width: calc(2.4px * var(--tsw, 1)); }

/* ---------- Helle Sektionen: Hecken, Wiese und Äste Ton in Ton (dezent, aber sichtbar) ----------
   Gleicher Aufbau wie Termin-Banner/Grün (Klasse .scn + .scene im HTML); Farben aus dem jeweiligen Hintergrund gemischt. */
.section.scn.t-paper {
  --hedge-far: color-mix(in srgb, var(--paper) 91%, var(--purple)); --hedge-back: color-mix(in srgb, var(--paper) 87%, var(--purple));
  --hedge-front: color-mix(in srgb, var(--paper) 82%, var(--purple)); --meadow: color-mix(in srgb, var(--paper) 85%, var(--purple));
  --meadow-front: color-mix(in srgb, var(--paper) 79%, var(--purple)); --leaf: color-mix(in srgb, var(--paper) 89%, var(--purple)); --leaf-dark: color-mix(in srgb, var(--paper) 84%, var(--purple));
}
.section.scn.t-lilac {
  --hedge-far: color-mix(in srgb, var(--purple-soft) 90%, var(--purple)); --hedge-back: color-mix(in srgb, var(--purple-soft) 85%, var(--purple));
  --hedge-front: color-mix(in srgb, var(--purple-soft) 79%, var(--purple)); --meadow: color-mix(in srgb, var(--purple-soft) 82%, var(--purple));
  --meadow-front: color-mix(in srgb, var(--purple-soft) 76%, var(--purple)); --leaf: color-mix(in srgb, var(--purple-soft) 88%, var(--purple)); --leaf-dark: color-mix(in srgb, var(--purple-soft) 82%, var(--purple));
}
.section.scn.t-soft {
  --hedge-far: color-mix(in srgb, var(--mint-soft) 78%, var(--mint)); --hedge-back: color-mix(in srgb, var(--mint-soft) 62%, var(--mint));
  --hedge-front: color-mix(in srgb, var(--mint-soft) 46%, var(--mint)); --meadow: color-mix(in srgb, var(--mint-soft) 55%, var(--mint));
  --meadow-front: color-mix(in srgb, var(--mint-soft) 38%, var(--mint)); --leaf: color-mix(in srgb, var(--mint-soft) 72%, var(--mint)); --leaf-dark: color-mix(in srgb, var(--mint-soft) 56%, var(--mint));
}
.section.scn.t-purple { --hedge-far: #3a2479; --hedge-back: #33206f; --hedge-front: #2c1a62; --meadow: #2b1a5d; --meadow-front: #22134c; --leaf: #33206f; --leaf-dark: #2a1a5e; }
/* in Textsektionen flacher als im Banner: Hecken und Wiese bleiben unter dem Inhalt */
.section.scn { --ground: clamp(40px, 7vh, 84px); }
.section.scn::before { --hh: 300px; }
.section.scn::after { --hh: 230px; }
.section.scn .scene-far { height: 460px; -webkit-mask-size: 1440px 460px; mask-size: 1440px 460px; }
.section.scn .scene-canopy { height: 17vh; }

