/* ==========================================================
   UKA Garten & Trockenbau – One Pager (Entwurf ProMotiv)
   ========================================================== */

@font-face {
  font-family: "Jakarta";
  src: url("fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/crimson-pro-var.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("fonts/caveat-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --gruen-dunkel: #1f4a27;   /* Buttons, Hero, Ablauf */
  --gruen-tief: #163a1e;
  --gruen: #2f7d32;          /* Logo-Fenster, Überschriften-Akzent */
  --gruen-hell: #5bb33b;     /* leuchtender CTA */
  --salbei: #e6f0dc;         /* „Warum“-Box, Kontaktkarte */
  --salbei-tief: #cfe2bf;
  --anthrazit: #262d29;      /* Topbar, Kontakt-Band */
  --text: #1c231f;
  --grau: #56625b;
  --linie: #e3e8e1;
  --flaeche: #f5f7f2;
  --weiss: #fff;

  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --plan: "Barlow Condensed", "Arial Narrow", sans-serif;   /* Bauplan-Beschriftung */
  --marke: "Crimson Pro", Georgia, serif;                    /* nur Logo-Schriftzug (wie Visitenkarte) */
  --logo: #1d4d33;                                           /* Logo-Grün der Visitenkarte */

  --radius: 14px;
  --radius-s: 8px;
  --schatten: 0 1px 2px rgb(20 40 25 / .06), 0 8px 24px -10px rgb(20 40 25 / .18);

  /* Bewegung: „solide wie Beton“ – keine Überschwinger, eine Kurve, drei Dauern */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --t-schnell: 150ms;
  --t-standard: 250ms;
  --t-langsam: 500ms;
  --breite: 1240px;
  --kopf-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 12px); -webkit-text-size-adjust: 100%; }
/* Seite steht still, solange die Großansicht offen ist; --sb = Breite der Bildlaufleiste (setzt main.js), damit nichts springt */
html:has(.lightbox[open]) { overflow: hidden; padding-right: var(--sb, 0px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }

.wrap { width: min(100% - 32px, var(--breite)); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gruen-dunkel); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gruen-hell); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 .95rem/1.2 var(--plan); text-transform: uppercase; letter-spacing: .12em;
  color: var(--gruen); margin-bottom: .6rem;
}
.eyebrow::after { content: ""; width: 56px; height: 1.5px; background: currentColor; opacity: .45; }
.eyebrow--hell { color: #a9df8c; }
@media (max-width: 479px) { .hero .eyebrow { letter-spacing: .08em; } .hero .eyebrow::after { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 46px; padding: .7em 1.35em;
  border-radius: 8px; border: 2px solid transparent;
  font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .16s var(--ease-out), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn:active { transform: scale(.97); }
.btn--voll { background: var(--gruen-dunkel); color: #fff; }
.btn--hell { background: var(--gruen-hell); color: #fff; border-radius: 999px; }
.btn--linie { border-color: rgb(255 255 255 / .55); color: #fff; border-radius: 999px; }
.btn--rahmen { border-color: var(--gruen-dunkel); color: var(--gruen-dunkel); background: transparent; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) {
  .btn--voll:hover { background: var(--gruen); }
  .btn--hell:hover { background: #4ea32f; box-shadow: 0 6px 18px -6px rgb(91 179 59 / .7); }
  .btn--linie:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
  .btn--rahmen:hover { background: var(--gruen-dunkel); color: #fff; }
  .btn:hover svg:last-child:not(:first-child) { transform: translateX(3px); }
}
.btn svg { transition: transform .2s var(--ease-out); }

/* ---------- Topbar ---------- */
.topbar { background: var(--anthrazit); color: #e9eeea; font-size: .85rem; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__kontakt { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.topbar__kontakt li, .topbar__kontakt a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.topbar__kontakt svg { width: 16px; height: 16px; color: var(--gruen-hell); }
.topbar__kontakt a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.topbar__claim { margin: 0; opacity: .85; }
@media (max-width: 1023px) { .topbar__kontakt li.nur-breit, .topbar__claim { display: none; } }
@media (max-width: 559px) {
  .topbar { font-size: .78rem; }
  .topbar__in { justify-content: center; min-height: 36px; }
  .topbar__kontakt { flex-wrap: nowrap; gap: 0 18px; }
  .topbar__kontakt svg { width: 14px; height: 14px; }
}

/* ---------- Header ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--weiss);   /* deckend, ohne Blur: darunter läuft die Rasen-Animation, ein Backdrop-Filter müsste sonst jeden Frame neu rechnen */
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s, border-color .25s;
}
.kopf.ist-gescrollt { box-shadow: 0 6px 20px -12px rgb(20 40 25 / .35); border-color: var(--linie); }
.kopf__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--kopf-h); }

/* Logo nach der Visitenkarte: Bildmarke + Serifen-Schriftzug in Logo-Grün */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--logo); }
.logo__mark { width: 82px; height: auto; }
.logo__text { display: grid; justify-items: start; font-family: var(--marke); line-height: .9; color: var(--logo); }
.logo__text b { font-size: 2.35rem; font-weight: 700; letter-spacing: .03em; }
.logo__text span { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 400px) { .logo__mark { width: 62px; } .logo__text b { font-size: 1.95rem; } .logo__text span { font-size: .64rem; letter-spacing: .12em; } }

.nav ul { display: flex; gap: 6px; }
.nav ul a {
  position: relative; display: block; padding: .65em .85em;
  font-weight: 600; font-size: .97rem; text-decoration: none; color: var(--text);
  transition: color .2s;
}
.nav ul a::after {
  content: ""; position: absolute; left: .85em; right: .85em; bottom: .25em; height: 2.5px;
  background: var(--gruen); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-out);
}
.nav ul a:hover, .nav ul a.ist-aktiv { color: var(--gruen); }
.nav ul a.ist-aktiv::after, .nav ul a:hover::after { transform: scaleX(1); }

.burger { display: none; }
.nav .nav__kontakt { display: none; }   /* .nav ul (0,1,1) würde sonst gewinnen */
.burger, .nav a { -webkit-tap-highlight-color: transparent; }

@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 28px; flex: 1; justify-content: flex-end; }
  .nav ul { margin-right: auto; margin-left: auto; }
}
@media (max-width: 1023px) {
  .burger {
    display: grid; place-content: center; gap: 5px;
    width: 46px; height: 46px; border: 0; border-radius: 10px;
    background: var(--salbei); cursor: pointer;
  }
  .burger span { width: 22px; height: 2.5px; background: var(--gruen-dunkel); border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--linie);
    box-shadow: 0 18px 30px -18px rgb(20 40 25 / .35);
    padding: 12px 16px 20px;
    display: grid; gap: 14px;
    max-height: calc(100vh - var(--kopf-h) - 24px); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    /* Schließen schneller als Öffnen */
    transition: opacity var(--t-schnell) var(--ease-out), transform var(--t-schnell) var(--ease-out), visibility 0s var(--t-schnell);
  }
  .nav.ist-offen {
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition: opacity var(--t-standard) var(--ease-out), transform var(--t-standard) var(--ease-out), visibility 0s;
  }
  .nav ul { display: grid; gap: 0; }
  .nav ul a { padding: .85em .25em; border-bottom: 1px solid var(--linie); font-size: 1.05rem; }
  .nav ul a::after { display: none; }
  .nav__cta { justify-content: center; }
  .nav .nav__kontakt { display: grid; gap: 2px; }
  .nav .nav__kontakt a { display: flex; align-items: center; gap: 10px; padding: .55em .25em; border-bottom: 0; font-size: .95rem; font-weight: 600; color: var(--grau); }
  .nav .nav__kontakt svg { width: 18px; height: 18px; color: var(--gruen); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--gruen-tief);
  color: #fff;
  padding: clamp(40px, 6vw, 80px) 0 clamp(110px, 10vw, 150px);   /* unten Platz für den Rasen */
  overflow: hidden;
}
.hero__deko {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 12% 20%, rgb(91 179 59 / .28), transparent 70%),
    radial-gradient(50% 60% at 95% 100%, rgb(91 179 59 / .18), transparent 70%),
    linear-gradient(160deg, #24552c 0%, var(--gruen-tief) 60%, #12301a 100%);
}
.hero__deko::after {
  content: ""; position: absolute; left: -60px; bottom: 40px; width: 320px; height: 420px;
  background: currentColor; color: rgb(255 255 255 / .04);
  -webkit-mask: url("img/zweig.svg") no-repeat center / contain; mask: url("img/zweig.svg") no-repeat center / contain;
}
.hero__in { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 1024px) { .hero__in { grid-template-columns: 1fr 1.08fr; } }

.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .4em; text-wrap: balance; }
.hero h1 span { display: block; }
.hero__lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.22rem); font-weight: 600; max-width: 34em; color: #eef5ea; margin-bottom: 1.6em; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
/* Handy: Knöpfe untereinander und gleich breit (Spalte = breitester Knopf) */
@media (max-width: 599px) {
  .hero__aktionen { display: grid; justify-content: start; }
  .hero__aktionen .btn { justify-content: center; }
}

.hero__werte { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; max-width: 560px; }
.hero__werte li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; line-height: 1.25; }
.hero__werte svg { width: 34px; height: 34px; color: #a9df8c; }
@media (min-width: 560px) {
  .hero__werte { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .hero__werte li { flex-direction: column; align-items: flex-start; padding: 0 16px; border-left: 1px solid rgb(255 255 255 / .25); }
  .hero__werte li:first-child { padding-left: 0; border-left: 0; }
}

/* Collage: Diagonale wie im Mockup */
.hero__collage { position: relative; aspect-ratio: 600 / 520; width: 100%; }
.kachel { position: absolute; margin: 0; overflow: hidden; background: #2a4a30; }
.kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.kachel figcaption {
  position: absolute; right: 10px; bottom: 10px;
  background: rgb(255 255 255 / .92); color: var(--gruen-dunkel);
  font-size: .75rem; font-weight: 700; padding: .3em .7em; border-radius: 999px;
}
.kachel--haupt { left: 0; top: 0; width: 63.33%; height: 100%; clip-path: polygon(0 0, 100% 0, 83.7% 100%, 0 100%); border-radius: var(--radius) 0 0 var(--radius); }
.kachel--haupt figcaption { right: auto; left: 12px; }
.kachel--1 { left: 62%;   top: 0;       width: 38%;   height: 32.31%; clip-path: polygon(8.8% 0, 100% 0, 100% 100%, 0 100%); border-top-right-radius: var(--radius); }
.kachel--2 { left: 58.5%; top: 33.85%;  width: 41.5%; height: 32.31%; clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); }
.kachel--3 { left: 55%;   top: 67.69%;  width: 45%;   height: 32.31%; clip-path: polygon(7.4% 0, 100% 0, 100% 100%, 0 100%); border-bottom-right-radius: var(--radius); }
@media (hover: hover) and (pointer: fine) { .kachel:hover img { transform: scale(1.05); } }
@media (max-width: 559px) { .kachel figcaption { font-size: .66rem; right: 6px; bottom: 6px; } .kachel--haupt figcaption { left: 8px; } }

.hero__welle { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(46px, 6vw, 90px); z-index: 2; }

/* Rasen im Wind: hinten dicht hinter den Bildern, vorn locker davor */
.hero__gras { position: absolute; left: 0; bottom: -1px; width: 100%; display: block; pointer-events: none; }
.hero__gras--hinten { z-index: 0; }
.hero__gras--vorn { z-index: 3; }
.hero__in { position: relative; z-index: 1; }

/* Mähzone: unterer Streifen des Hero, Höhe setzt gras.js; senkrecht scrollen bleibt möglich */
.hero__maehzone {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: url("img/maeher.svg") 13 24, crosshair;
}
.hero.maeht { user-select: none; -webkit-user-select: none; }
.hero__hinweis {
  position: absolute; z-index: 5; pointer-events: none; margin: 0;
  left: max(16px, calc((100% - var(--breite)) / 2)); bottom: calc(clamp(46px, 6vw, 90px) + 14px);
  display: inline-flex; align-items: center; gap: 8px;
  padding: .45em .9em .45em .7em; border-radius: 999px;
  background: rgb(255 255 255 / .92); color: var(--gruen-dunkel);
  font: 600 .82rem/1.2 var(--font);
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / .45);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--t-standard) var(--ease-out), transform var(--t-standard) var(--ease-out);
}
.hero__hinweis svg { width: 20px; height: 20px; }
.hero__hinweis.ist-sichtbar { opacity: 1; transform: none; }

/* ---------- Sektionen ---------- */
.sektion { padding: clamp(64px, 8vw, 110px) 0; }
.sektion__kopf { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sektion__kopf p:last-child { color: var(--grau); font-size: 1.05rem; }
.sektion__kopf--hell h2 { color: #fff; }

/* ---------- Leistungen ---------- */
.leistungen { padding-top: clamp(28px, 4vw, 48px); }
.leistungen__in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1180px) { .leistungen__in { grid-template-columns: .95fr 1.55fr .9fr; gap: 32px; align-items: center; } }
@media (min-width: 760px) and (max-width: 1179px) { .leistungen__in { grid-template-columns: 1fr 1fr; } .karten { grid-column: 1 / -1; order: 3; } }
.leistungen__intro p:not(.eyebrow) { color: var(--grau); }

.karten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .karten { grid-template-columns: repeat(3, 1fr); } }
/* Karten sind Sprungmarken: jede führt zur passenden Ebene im Schnitt darunter */
.karte {
  position: relative;
  background: #fff; border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten);
  text-align: center;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.karte a { display: block; height: 100%; padding: 22px 14px 18px; border-radius: inherit; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.karte a > svg:first-child { width: 46px; height: 46px; color: var(--gruen); margin: 0 auto 10px; display: block; transition: transform .3s var(--ease-out); }
.karte h3 { font-size: 1rem; margin-bottom: .3em; }
.karte p { font-size: .84rem; color: var(--grau); margin: 0; line-height: 1.45; }
.karte__pfeil {
  position: absolute; right: 10px; top: 10px; width: 18px; height: 18px; color: var(--gruen);
  opacity: 0; transform: rotate(90deg) translateX(-4px);
  transition: opacity .2s ease, transform .25s var(--ease-out);
}
.karte:active { transform: scale(.98); }
.karte a:focus-visible .karte__pfeil { opacity: 1; transform: rotate(90deg); }
@media (hover: hover) and (pointer: fine) {
  .karte:hover { transform: translateY(-4px); border-color: var(--salbei-tief); box-shadow: 0 2px 4px rgb(20 40 25 / .05), 0 18px 34px -16px rgb(31 74 39 / .35); }
  .karte:hover:active { transform: translateY(-2px) scale(.99); }
  .karte:hover a > svg:first-child { transform: translateY(-2px); }
  .karte:hover .karte__pfeil { opacity: 1; transform: rotate(90deg); }
}

.warum {
  position: relative; overflow: hidden;
  background: var(--salbei); border-radius: 20px; padding: 28px 26px 22px;
}
.warum h3 { font-size: 1.35rem; font-weight: 800; color: var(--gruen-dunkel); max-width: 14em; }
.haken { display: grid; gap: 10px; margin: 16px 0 14px; position: relative; z-index: 1; }
.haken li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.haken li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--gruen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.handschrift { font-family: var(--hand); font-size: 1.85rem; line-height: 1; color: var(--gruen); transform: rotate(-4deg); margin: 4px 0 0 32px; position: relative; z-index: 1; }
.warum__blatt, .kontaktkarte__blatt { position: absolute; right: -14px; top: 18px; width: 110px; color: #fff; opacity: .55; pointer-events: none; }

/* ---------- Detail: Haus im Schnitt (Signatur) ---------- */
.detail { background: var(--flaeche); }
.schnitt { display: grid; gap: 8px; }
@media (min-width: 960px) { .schnitt { grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 5vw, 80px); } }

.schnitt__bild {
  margin: 0; position: sticky; top: var(--kopf-h); z-index: 2; align-self: start;
  background: var(--flaeche); padding: 10px 0 12px;
  border-bottom: 1px solid var(--linie);
}
.schnitt__bild svg { display: block; width: 100%; height: auto; max-height: 30vh; overflow: visible; }
@media (min-width: 960px) {
  .schnitt__bild { top: calc(var(--kopf-h) + 40px); padding: 0; border: 0; }
  .schnitt__bild svg { max-height: none; }
}

/* Ruhezustand = Bauplan (blass), aktive Ebene = in Farbe */
.ebene .f { fill: #eef2ec; transition: fill var(--t-standard) ease; }
.ebene .l { fill: none; stroke: #aebdb2; stroke-width: 1.6; stroke-linejoin: round; transition: stroke var(--t-standard) ease; }
.ebene .f.l { fill: #eef2ec; }
.ebene .l--dick { stroke-width: 3; }
.ebene .l--fein { stroke-width: 1; }
.l--strich { fill: none; stroke: #aebdb2; stroke-width: 1.2; stroke-dasharray: 5 4; }
.schraffur { stroke: #d6dcd4; stroke-width: 1; transition: stroke var(--t-standard) ease; }
.schnitt.erde-aktiv .schraffur { stroke: #b8a684; }
.gelaende { stroke: var(--anthrazit); stroke-width: 2; }
.kote { fill: var(--anthrazit); }
.plan { font: 600 15px var(--plan); letter-spacing: .1em; text-transform: uppercase; fill: #8d9c92; transition: fill var(--t-standard) ease; }
.plan--kote { font-size: 12px; letter-spacing: .04em; text-anchor: middle; fill: var(--anthrazit); }
@media (max-width: 599px) { .plan { font-size: 19px; letter-spacing: .06em; } .plan--kote { font-size: 15px; } }

.ebene.ist-aktiv .f, .ebene.ist-aktiv .f.l { fill: var(--c); }
.ebene.ist-aktiv .l { stroke: var(--gruen-dunkel); }
.ebene.ist-aktiv .plan { fill: var(--gruen-dunkel); }

/* Aufbau beim ersten Sichtkontakt: von unten nach oben, wie gebaut wird */
.js .schnitt .ebene { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) {
  .js .schnitt:not(.ist-gebaut) .ebene { opacity: 0; transform: translateY(14px); }
  .js .schnitt .ebene { transition: opacity var(--t-langsam) var(--ease-out), transform var(--t-langsam) var(--ease-out); }
  .js .schnitt .ebene[data-ebene="fundament"] { transition-delay: 90ms; }
  .js .schnitt .ebene[data-ebene="haus"] { transition-delay: 180ms; }
  .js .schnitt .ebene[data-ebene="trockenbau"] { transition-delay: 260ms; }
  .js .schnitt .ebene[data-ebene="waermepumpe"] { transition-delay: 330ms; }
  .js .schnitt .ebene[data-ebene="garten"] { transition-delay: 400ms; }
}

.schicht {
  position: relative; padding: 28px 0 28px 24px;
  border-left: 3px solid var(--linie);
  transition: border-color var(--t-standard) ease;
}
.schicht + .schicht { margin-top: 8px; }
/* Sprung von den Leistungskarten: Ebene landet unter der fixierten Zeichnung, auf Lesehöhe */
.schicht { scroll-margin-top: calc(30vh + 24px); }
@media (min-width: 960px) { .schicht { padding-block: 44px; min-height: 38vh; display: flex; flex-direction: column; justify-content: center; scroll-margin-top: 28vh; } }
.schicht__ebene { font: 600 .85rem/1 var(--plan); text-transform: uppercase; letter-spacing: .12em; color: #8d9c92; margin-bottom: .7em; transition: color var(--t-standard) ease; }
.schicht h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); font-weight: 800; transition: color var(--t-standard) ease; }
.schicht > p:not(.schicht__ebene) { color: var(--grau); max-width: 34em; }
.schicht .btn { align-self: flex-start; margin-top: 4px; }
.schicht.ist-aktiv { border-color: var(--gruen); }
.schicht.ist-aktiv .schicht__ebene { color: var(--gruen); }
.schicht.ist-aktiv h3 { color: var(--gruen-dunkel); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--salbei-tief); color: var(--gruen-dunkel); font-size: .85rem; font-weight: 600; padding: .35em .85em; border-radius: 999px; }

/* ---------- Ablauf ---------- */
.ablauf { background: var(--gruen-dunkel); color: #fff; position: relative; overflow: hidden; }
.ablauf > .wrap { position: relative; z-index: 1; }
.ablauf__gras { position: absolute; left: 0; bottom: 0; width: 100%; display: block; pointer-events: none; z-index: 0; }
.schritte { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 640px) { .schritte { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .schritte { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.schritte li { position: relative; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius); padding: 24px 22px; }
.schritte span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--gruen-hell); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px;
}
.schritte h3 { margin-bottom: .35em; }
.schritte p { margin: 0; color: #d6e6d2; font-size: .95rem; }
@media (min-width: 1024px) {
  .schritte li:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -18px; width: 18px; height: 2px;
    background: rgb(255 255 255 / .3);
  }
}

/* ---------- Über uns ---------- */
.ueber__in { display: grid; gap: 32px; align-items: center; }
/* Desktop: Text und Werte bilden die linke Spalte, die Kontaktkarte steht daneben */
@media (min-width: 1100px) {
  .ueber__in { grid-template-columns: 1.7fr 1fr; grid-template-areas: "text karte" "werte karte"; gap: 30px clamp(48px, 7vw, 110px); }
  .ueber__text { grid-area: text; }
  .ueber__text p { max-width: 62ch; }
  .ueber__in .werte { grid-area: werte; display: flex; border-top: 1px solid var(--linie); padding-top: 26px; }
  .ueber__in .werte li { flex-direction: row; text-align: left; gap: 12px; padding: 0 28px; }
  .ueber__in .werte li:first-child { padding-left: 0; }
  .ueber__in .werte svg { width: 38px; height: 38px; }
  .kontaktkarte { grid-area: karte; align-self: center; }
}
@media (min-width: 720px) and (max-width: 1099px) { .ueber__in { grid-template-columns: 1fr 1fr; } .ueber__text { grid-column: 1 / -1; } }
.strich { position: relative; padding-bottom: .5em; }
.strich::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gruen-dunkel) 75%, var(--salbei-tief) 75%); width: 86px; }
.ueber__text p { color: var(--grau); }

.werte { display: grid; grid-template-columns: repeat(3, 1fr); }
.werte li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 10px; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.werte li + li { border-left: 1px solid var(--linie); }
.werte svg { width: 46px; height: 46px; color: var(--gruen); }

.kontaktkarte {
  position: relative; overflow: hidden;
  background: var(--salbei); border-radius: 18px; padding: 26px;
  display: grid; justify-items: start; gap: 10px;
}
.kontaktkarte h3 { font-size: 1.3rem; font-weight: 800; color: var(--gruen-dunkel); margin: 0; }
.kontaktkarte p { margin: 0 0 6px; color: var(--grau); }
/* Beide Knöpfe gleich breit: die Spalte richtet sich nach dem breitesten, der andere zieht mit */
.kontaktkarte__knoepfe { display: grid; gap: 10px; justify-content: start; position: relative; z-index: 1; }
.kontaktkarte .btn { border-radius: 999px; min-width: 210px; justify-content: center; }
.kontaktkarte__blatt { top: auto; bottom: -10px; }

/* ---------- Einblicke ---------- */
.einblicke { background: var(--flaeche); }

/* Mosaik: ein Aufmacher über 2×2 Zellen, ein Breitformat, sonst 4:3.
   Die Zeilenhöhe wird aus der Rasterbreite gerechnet (Container-Einheit cqw), damit alle Kacheln bündig abschließen. */
.galerie__huelle { container-type: inline-size; }
.galerie {
  --sp: 2; --luecke: 10px;
  display: grid; gap: var(--luecke); grid-template-columns: repeat(var(--sp), minmax(0, 1fr)); grid-auto-flow: dense;
  list-style: none; margin: 0; padding: 0;
}
.galerie > li { aspect-ratio: 4 / 3; min-width: 0; }
.galerie > .galerie__gross { grid-column: span 2; grid-row: span 2; }
.galerie > .galerie__breit { grid-column: span 2; aspect-ratio: 8 / 3; }
@media (min-width: 720px) {
  .galerie { --sp: 3; --luecke: 12px; }
  .galerie > .galerie__breit { grid-column: auto; aspect-ratio: 4 / 3; }
}
@media (min-width: 1100px) {
  .galerie { --sp: 4; }
  .galerie > .galerie__breit { grid-column: span 2; aspect-ratio: 8 / 3; }
}
@supports (width: 1cqw) {
  .galerie { grid-auto-rows: calc((100cqw - (var(--sp) - 1) * var(--luecke)) / var(--sp) * .75); }
  .galerie > li, .galerie > .galerie__gross, .galerie > .galerie__breit { aspect-ratio: auto; }
}

.galerie__bild {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--salbei);
  font: inherit; color: inherit; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-schnell) var(--ease-out);
}
.galerie__bild:active { transform: scale(.98); }
.galerie__bild:focus-visible { outline: 3px solid var(--gruen-hell); outline-offset: 3px; }
/* feine Innenkante: helle Fotos lösen sich sauber vom hellen Hintergrund */
.galerie__bild::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(20 40 25 / .1); pointer-events: none; }
.galerie img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease-out); }

.galerie__text {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; text-align: left;
  padding: 34px 12px 10px; color: #fff;
  background: linear-gradient(transparent, rgb(10 25 14 / .8));
}
.galerie__tag { display: none; font: 600 .8rem/1 var(--plan); letter-spacing: .12em; text-transform: uppercase; color: #c5ecb0; }
.galerie__titel { font: 700 .88rem/1.25 var(--font); text-wrap: balance; }
.galerie__gross .galerie__tag { display: block; }
.galerie__gross .galerie__titel { font-size: 1.08rem; }
.galerie__gross .galerie__text { padding: 48px 14px 14px; }
@media (min-width: 720px) {
  .galerie__tag { display: block; }
  .galerie__titel { font-size: .95rem; }
  .galerie__text { padding: 40px 14px 13px; }
  .galerie__gross .galerie__titel { font-size: 1.3rem; letter-spacing: -.01em; }
  .galerie__gross .galerie__text { padding: 72px 20px 18px; gap: 6px; }
  .galerie__gross .galerie__tag { font-size: .9rem; }
}

/* Vergrößern-Hinweis: nur mit Maus, erscheint beim Überfahren */
.galerie__lupe {
  display: none; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: rgb(255 255 255 / .94); color: var(--gruen-dunkel);
  opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .galerie__bild:hover img { transform: scale(1.05); }
}
@media (hover: hover) and (pointer: fine) and (min-width: 720px) {
  .galerie__lupe { display: block; }
  .galerie__text { padding-right: 56px; }
  .galerie__bild:hover .galerie__lupe, .galerie__bild:focus-visible .galerie__lupe { opacity: 1; transform: none; }
}

/* Logo-Stempel auf jedem Projektfoto: Bildmarke im weißen Siegel, leicht schräg aufgesetzt */
.stempel {
  position: absolute; top: 8px; right: 8px; width: 36px; height: 36px;
  color: var(--logo); pointer-events: none;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 5px rgb(0 0 0 / .3));
  transition: opacity .3s ease, transform .35s var(--ease-out);
}
.galerie__gross .stempel { width: 50px; height: 50px; top: 12px; right: 12px; }
@media (min-width: 720px) {
  .stempel { width: 44px; height: 44px; top: 10px; right: 10px; }
  .galerie__gross .stempel { width: 68px; height: 68px; top: 16px; right: 16px; }
}
/* Der Stempel wird aufgesetzt, kurz nachdem das Foto eingeblendet ist */
@media (prefers-reduced-motion: no-preference) {
  .js .galerie .reveal:not(.ist-da) .stempel { opacity: 0; transform: rotate(-8deg) scale(1.35); }
  .js .galerie .reveal .stempel { transition-delay: calc(var(--verz, 0ms) + 260ms); }
}

/* Großansicht (native <dialog>): Bühne über die ganze Fläche, nur das Foto wechselt */
.lightbox {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; overflow: hidden;
  background: transparent; color: #fff;
  opacity: 0;
  transition: opacity var(--t-standard) var(--ease-out), overlay var(--t-standard) allow-discrete, display var(--t-standard) allow-discrete;
}
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop {
  background: rgb(8 16 10 / .95); opacity: 0;
  transition: opacity var(--t-standard) ease, overlay var(--t-standard) allow-discrete, display var(--t-standard) allow-discrete;
}
.lightbox[open]::backdrop { opacity: 1; }
@starting-style { .lightbox[open]::backdrop { opacity: 0; } }

.lightbox__figur {
  margin: 0; height: 100%; display: grid; grid-template-rows: auto auto;
  justify-items: center; align-content: center; gap: 14px;   /* Foto und Unterschrift als eine Gruppe mittig */
  padding: 68px 12px 18px;
}
.lightbox__rahmen {
  position: relative; line-height: 0; transform: scale(.97);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), filter 220ms var(--ease-out);
}
.lightbox[open] .lightbox__rahmen { transform: none; }
@starting-style { .lightbox[open] .lightbox__rahmen { transform: scale(.97); } }
/* Blättern: altes Foto weicht in Blätterrichtung, neues kommt von der Gegenseite (--r = 1 vor, -1 zurück) */
.lightbox[open] .lightbox__rahmen.geht { opacity: 0; filter: blur(3px); transform: translateX(calc(var(--r, 1) * -18px)); transition-duration: 120ms; transition-timing-function: ease; }
.lightbox[open] .lightbox__rahmen.wartet { opacity: 0; filter: blur(3px); transform: translateX(calc(var(--r, 1) * 18px)); transition: none; }
.lightbox__bild {
  display: block; width: auto; height: auto;
  max-width: calc(100vw - 24px); max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px);
  border-radius: 12px; background: #16241a;
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .7);
}
.lightbox .stempel { right: auto; left: 12px; top: 12px; width: 52px; height: 52px; }

.lightbox__text { display: grid; gap: 5px; justify-items: center; text-align: center; min-height: 46px; align-content: center; padding-inline: 58px; }
.lightbox__zeile { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; font: 600 .86rem/1 var(--plan); letter-spacing: .12em; text-transform: uppercase; }
.lightbox__tag { color: #a9df8c; }
.lightbox__zahl { color: rgb(255 255 255 / .6); font-variant-numeric: tabular-nums; }
.lightbox__titel { font: 700 1rem/1.25 var(--font); text-wrap: balance; }

.lightbox__knopf {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgb(255 255 255 / .9); background: var(--gruen-dunkel); color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px -6px rgb(0 0 0 / .5); -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-schnell) var(--ease-out), background-color var(--t-standard) ease;
}
.lightbox__knopf svg { width: 22px; height: 22px; }
.lightbox__knopf:active { transform: scale(.94); }
.lightbox__knopf:focus-visible { outline: 3px solid var(--gruen-hell); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lightbox__knopf:hover { background: var(--gruen); } }
.lightbox__zu { right: 12px; top: 12px; }
/* Handy: Pfeile unten neben der Bildunterschrift, das Foto bleibt frei (dort wird gewischt) */
.lightbox__zurueck, .lightbox__weiter { bottom: 18px; }
.lightbox__zurueck { left: 12px; }
.lightbox__weiter { right: 12px; }
@media (min-width: 900px) {
  .lightbox__figur { padding: 28px 100px 22px; }
  .lightbox__bild { max-width: min(calc(100vw - 200px), 1400px); max-height: calc(100vh - 136px); max-height: calc(100dvh - 136px); border-radius: 14px; }
  .lightbox .stempel { width: 64px; height: 64px; left: 16px; top: 16px; }
  .lightbox__text { padding-inline: 0; }
  .lightbox__titel { font-size: 1.08rem; }
  .lightbox__zu { right: 24px; top: 24px; }
  .lightbox__zurueck, .lightbox__weiter { bottom: auto; top: calc(50% - 48px); width: 52px; height: 52px; }
  .lightbox__zurueck { left: 24px; }
  .lightbox__weiter { right: 24px; }
}

/* ---------- Kontakt ---------- */
.kontakt__in { display: grid; gap: 36px; }
@media (min-width: 960px) { .kontakt__in { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.kontakt__text > p:not(.eyebrow) { color: var(--grau); }
.kontakt__liste { display: grid; gap: 16px; margin-top: 24px; }
.kontakt__liste li { display: flex; gap: 14px; align-items: center; font-weight: 600; }
.kontakt__liste svg { width: 22px; height: 22px; color: #fff; background: var(--gruen); padding: 10px; box-sizing: content-box; border-radius: 50%; }
.kontakt__liste a { text-decoration: none; }
.kontakt__liste a:hover { color: var(--gruen); text-decoration: underline; text-underline-offset: 3px; }

.formular {
  display: grid; gap: 16px; grid-template-columns: 1fr;
  background: #fff; border: 1px solid var(--linie); border-radius: 20px; padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--schatten);
}
@media (min-width: 560px) { .formular { grid-template-columns: 1fr 1fr; } .feld--breit { grid-column: 1 / -1; } }
.feld { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.feld label, .feld legend { font-weight: 700; font-size: .9rem; padding: 0; margin-bottom: 6px; }
.feld input:not([type="checkbox"]), .feld textarea {
  width: 100%; font: inherit; color: inherit;
  border: 1.5px solid #cfd8d0; border-radius: 10px; padding: .75em .9em; background: #fbfcfa;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.feld textarea { resize: vertical; min-height: 120px; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--gruen); background: #fff; box-shadow: 0 0 0 4px rgb(47 125 50 / .14); }
.feld .ist-fehler { border-color: #c0392b !important; }

.auswahl { display: flex; flex-wrap: wrap; gap: 8px; }
.auswahl label { position: relative; cursor: pointer; margin: 0; font-weight: 600; }
.auswahl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.auswahl span {
  display: inline-block; padding: .45em 1em; border-radius: 999px; font-size: .88rem;
  border: 1.5px solid #cfd8d0; background: #fbfcfa; transition: background-color .18s, border-color .18s, color .18s, transform .16s var(--ease-out);
}
.auswahl input:checked + span { background: var(--gruen-dunkel); border-color: var(--gruen-dunkel); color: #fff; }
.auswahl input:focus-visible + span { outline: 3px solid var(--gruen-hell); outline-offset: 2px; }
.auswahl label:active span { transform: scale(.96); }

.einwilligung { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--grau); cursor: pointer; }
.einwilligung input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gruen-dunkel); flex-shrink: 0; }
.formular__fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.formular__meldung { margin: 0; font-weight: 600; font-size: .92rem; }
.formular__meldung.ist-ok { color: var(--gruen); }
.formular__meldung.ist-fehler { color: #b03224; }

/* ---------- Kontakt-Band ---------- */
.band { background: var(--anthrazit); color: #e9eeea; padding: 34px 0; position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; left: -40px; bottom: -40px; width: 200px; height: 260px;
  background: rgb(255 255 255 / .04);
  -webkit-mask: url("img/zweig.svg") no-repeat center / contain; mask: url("img/zweig.svg") no-repeat center / contain;
}
.band__in { display: grid; gap: 24px; align-items: center; position: relative; }
@media (min-width: 1024px) { .band__in { grid-template-columns: 1.3fr auto auto; gap: 48px; } .band__daten { padding-left: 48px; border-left: 1px solid rgb(255 255 255 / .2); } }
.band__titel { display: flex; gap: 18px; align-items: center; }
.band__titel > svg { width: 56px; height: 56px; color: #fff; }
.band__h { font-size: 1.25rem; font-weight: 800; color: #fff; margin: 0 0 .2em; }
.band__titel p:not(.band__h) { margin: 0; font-size: .92rem; opacity: .85; max-width: 32em; }
.band__daten { display: grid; gap: 6px; font-size: .95rem; }
.band__daten li { display: flex; align-items: center; gap: 10px; }
.band__daten svg { width: 18px; height: 18px; color: var(--gruen-hell); }
.band__daten a { text-decoration: none; }
.band__daten a:hover { text-decoration: underline; text-underline-offset: 3px; }
.band .btn { justify-self: start; }

/* ---------- Footer ---------- */
.fuss { background: #1a201c; color: #aab5ad; font-size: .88rem; padding: 26px 0 100px; }
@media (min-width: 768px) { .fuss { padding-bottom: 26px; } .fuss__in { padding-right: 230px; } }   /* rechts Platz für den WhatsApp-Knopf */
.fuss__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.fuss p { margin: 0; }
.fuss__marke { color: #fff; }
.fuss__marke b { font-family: var(--marke); font-weight: 700; font-size: 1.15em; letter-spacing: .03em; }
.fuss nav { display: flex; gap: 20px; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fuss__credit a { color: #a9df8c; font-weight: 700; }

/* ---------- Nach oben ---------- */
.nach-oben {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gruen-dunkel); color: #fff;
  border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgb(10 30 15 / .45);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), background-color .2s;
}
.nach-oben svg { width: 22px; height: 22px; }
.nach-oben.ist-sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.nach-oben:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .nach-oben:hover { background: var(--gruen); } }
@media (min-width: 768px) { .nach-oben { right: 24px; bottom: 24px; } }

/* ---------- WhatsApp (schwebend, unten rechts; Nach-oben sitzt darüber) ---------- */
.nach-oben { bottom: 84px; }
@media (min-width: 768px) { .nach-oben { right: 26px; bottom: 92px; } }
.wa-knopf {
  position: fixed; right: 13px; bottom: 16px; z-index: 61;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--gruen-hell); color: #fff; text-decoration: none;
  border: 2px solid #fff;
  box-shadow: 0 10px 24px -8px rgb(10 40 15 / .55);
  transition: transform var(--t-schnell) var(--ease-out), background-color var(--t-standard) ease, box-shadow var(--t-standard) ease;
}
.wa-knopf svg { width: 28px; height: 28px; }
.wa-knopf__text { display: none; font: 500 .95rem/1 var(--font); white-space: nowrap; }
.wa-knopf__text b { font-weight: 800; }
.wa-knopf:active { transform: scale(.96); }
.wa-knopf:focus-visible { outline: 3px solid var(--gruen-dunkel); outline-offset: 3px; }
@media (min-width: 768px) {
  .wa-knopf { right: 24px; bottom: 24px; width: auto; height: 54px; padding: 0 20px 0 15px; }
  .wa-knopf svg { width: 26px; height: 26px; }
  .wa-knopf__text { display: inline; }
}
@media (hover: hover) and (pointer: fine) {
  .wa-knopf:hover { background: #4ea32f; box-shadow: 0 14px 28px -10px rgb(10 40 15 / .6); }
}
/* einmaliger, ruhiger Hinweis-Puls nach dem Laden */
/* Ring folgt der Form (Kreis mobil, Pille Desktop): Schatten-Spreizung statt scale */
.wa-knopf::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgb(91 179 59 / 0);
}
@media (prefers-reduced-motion: no-preference) {
  .wa-knopf::after { animation: wa-puls 1.6s var(--ease-out) 3s 2; }
}
@keyframes wa-puls { 0% { box-shadow: 0 0 0 0 rgb(91 179 59 / .7); } 100% { box-shadow: 0 0 0 14px rgb(91 179 59 / 0); } }

.kontaktkarte__mail {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  margin-top: 2px; font-size: .9rem; font-weight: 600; color: var(--grau); text-decoration: none;
}
.kontaktkarte__mail svg { width: 16px; height: 16px; color: var(--gruen); }
.kontaktkarte__mail:hover { color: var(--gruen-dunkel); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal ---------- */
/* --verz setzt main.js je Element (Staffelung innerhalb der gerade erscheinenden Gruppe).
   Nach dem Einblenden nimmt main.js die Klasse wieder ab, damit Hover-Übergänge (z. B. Karten) nicht die langsame Reveal-Kurve erben. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--t-langsam) var(--ease-out) var(--verz, 0ms), transform var(--t-langsam) var(--ease-out) var(--verz, 0ms); }
.js .reveal.ist-da { opacity: 1; transform: none; }
/* Weniger Bewegung = sanfter, nicht null: Einblenden bleibt, Verschieben entfällt */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { transform: none; transition: opacity var(--t-standard) ease; }
  .kachel img, .galerie img, .karte, .karte svg, .btn svg { transition: none; }
  .lightbox__rahmen, .lightbox[open] .lightbox__rahmen { transform: none; transition: none; }
  @starting-style { .lightbox[open] .lightbox__rahmen { transform: none; } }
}

/* Hero-Einstieg */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rein .7s var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: .06s; }
  .hero__text > :nth-child(3) { animation-delay: .12s; }
  .hero__text > :nth-child(4) { animation-delay: .18s; }
  .hero__text > :nth-child(5) { animation-delay: .24s; }
  .kachel { animation: rein .8s var(--ease-out) both; }
  .kachel--haupt { animation-delay: .1s; }
  .kachel--1 { animation-delay: .22s; }
  .kachel--2 { animation-delay: .3s; }
  .kachel--3 { animation-delay: .38s; }
}
@keyframes rein { from { opacity: 0; transform: translateY(16px); } }

/* ---------- 404-Seite: Hero mit Rasen, Inhalt mittig ---------- */
.hero--404 { min-height: calc(100svh - var(--kopf-h)); display: flex; align-items: center; padding-top: clamp(48px, 7vw, 90px); padding-bottom: clamp(170px, 18vw, 240px); }
.hero--404 .hero__in { display: block; width: min(100% - 32px, 720px); text-align: center; }
.fehler .eyebrow { justify-content: center; }
.fehler .eyebrow::before { content: ""; width: 56px; height: 1.5px; background: currentColor; opacity: .45; }
.fehler__code {
  margin: 0 0 .08em; font: 600 clamp(6.5rem, 24vw, 12rem)/.85 var(--plan); letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 2px #a9df8c;
}
.hero--404 h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.1rem); }
.fehler__text { color: #eef5ea; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); font-weight: 600; max-width: 34em; margin: 0 auto 1.6em; }
.fehler .hero__aktionen { justify-content: center; margin-bottom: 18px; }
.fehler__direkt { color: #d6e6d2; font-size: .95rem; margin: 0; }
.fehler__direkt a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.kopf__start { min-height: 42px; padding: .55em 1.1em; }
@media (max-width: 479px) { .kopf__start span { display: none; } .kopf__start { padding: .55em .8em; } .fehler .eyebrow::before { display: none; } }

/* ---------- Rechtliches (Unterseiten) ---------- */
.recht { padding: clamp(48px, 6vw, 80px) 0; }
.recht .wrap { max-width: 820px; }
.recht h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem); }
.recht h2 { font-size: 1.3rem; margin-top: 1.8em; }
.recht p, .recht li { color: var(--grau); }
.recht ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.platzhalter { background: #fff4c2; color: #6b5200; padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.zurueck { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--gruen); text-decoration: none; margin-bottom: 24px; }
