/* =====================================================================
   Gartenservice Matern GmbH — Onepager
   Design: „Präzisionshandwerk im Grünen" (Spec: Fable 5)
   Eine Schriftfamilie (Archivo, variabel, lokal). Diszipliniertes Token-System.
   ===================================================================== */

/* ---------- Font (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Marke */
  --color-lime:        #A4CE39;  /* Logo-Grün. NIE als Textfarbe, NIE großflächig */
  --color-lime-dark:   #8AB328;  /* Hover Primär-Button */
  --color-lime-tint:   #F2F8E4;  /* Icon-Chips, kleine Akzentflächen */
  --color-leaf:        #4E7A1D;  /* text-taugliches Grün (Eyebrows, Links) */
  --color-forest:      #22372B;  /* dunkles Tannengrün: Vorteile, Overlays */

  /* Neutrale */
  --color-ink:         #262A28;
  --color-text:        #3A3D3C;
  --color-text-muted:  #6E736F;
  --color-text-invert: #FFFFFF;
  --color-bg:          #FFFFFF;
  --color-bg-alt:      #F5F7F3;
  --color-border:      #E3E7E0;

  /* Formular */
  --color-success:     #3E7A45;
  --color-error:       #B3261E;
  --color-focus-ring:  rgba(164, 206, 57, 0.40);

  /* Typo-Skala (7 Größen) */
  --fs-xs:   0.8125rem;  /* 13 — Eyebrows/Badges/Captions (versal) */
  --fs-sm:   0.9375rem;  /* 15 — Nav, Buttons, Meta, Formular */
  --fs-base: 1.0625rem;  /* 17 — Fließtext */
  --fs-lg:   1.25rem;    /* 20 — Lead */
  --fs-xl:   1.5rem;     /* 24 — H3/Kartentitel */
  --fs-2xl:  clamp(1.75rem, 1.3rem + 2vw, 2.5rem);      /* H2 */
  --fs-3xl:  clamp(2.25rem, 1.6rem + 3.5vw, 3.75rem);   /* H1 (Hero) */

  /* Spacing (8er) */
  --space-1: 0.5rem;  --space-2: 1rem;   --space-3: 1.5rem; --space-4: 2rem;
  --space-5: 3rem;    --space-6: 4rem;   --space-7: 6rem;   --space-8: 8rem;

  /* Radius */
  --radius-sm: 10px;  --radius-md: 16px; --radius-lg: 24px;

  /* Schatten (grünstichig-warm) */
  --shadow-sm: 0 1px 2px rgba(34,55,43,.05), 0 4px 16px rgba(34,55,43,.06);
  --shadow-md: 0 2px 4px rgba(34,55,43,.05), 0 16px 40px rgba(34,55,43,.12);

  /* Layout */
  --container: 1200px;
  --container-pad: clamp(1.25rem, 5vw, 2.5rem);
  --header-h: 76px;

  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: "Archivo", ui-sans-serif, system-ui, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; border-radius: 3px; }

/* Skip-Link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--color-ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typo-Basis ---------- */
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: var(--fs-3xl); line-height: 1.05; }
h2 { font-size: var(--fs-2xl); line-height: 1.15; }
h3 { font-size: var(--fs-xl); font-weight: 600; line-height: 1.3; }
p { max-width: 62ch; }
strong { font-weight: 600; }

/* ---------- Layout-Utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: clamp(3rem, 6vw, 4.75rem); }
/* Anker-Offset, damit der Sticky-Header den Sektionsanfang nicht verdeckt */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.section--alt { background: var(--color-bg-alt); }
.section--forest { background: var(--color-forest); color: rgba(255,255,255,.82); }
.section--forest h2 { color: #fff; }

.section-head { max-width: 60ch; margin-bottom: var(--space-4); }
.section-head .lead { margin-top: var(--space-2); }

/* Eyebrow — nummeriertes Label mit Limetten-Linie (Logo-Echo) */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-xs); font-weight: 600; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-leaf); margin-bottom: var(--space-2);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--color-lime); display: inline-block; }
.section--forest .eyebrow { color: var(--color-lime); }

.lead { font-size: var(--fs-lg); line-height: 1.5; color: var(--color-text-muted); }
.section--forest .lead { color: rgba(255,255,255,.70); }

/* Badge / Pill */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 600; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--color-leaf); background: var(--color-lime-tint);
  padding: .45rem .85rem; border-radius: 999px;
}

/* Blatt-Marker (Logo-Echo) — ersetzt alle Bullets/Checks */
.leaf-list { list-style: none; padding: 0; display: grid; gap: .6rem; }
.leaf-list li { position: relative; padding-left: 1.75rem; font-size: var(--fs-sm); }
.leaf-list li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.05rem; height: 1.05rem; background: var(--color-lime);
  -webkit-mask: var(--leaf-mask) center/contain no-repeat; mask: var(--leaf-mask) center/contain no-repeat;
}
:root {
  --leaf-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C7 6 5 11 6 18c0 0 .3 2 .3 3.5C9 16 13 15 18 12 22 9 20 4 12 2Z M7 20c2-5 5-8 9-10' fill='black'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-size: var(--fs-sm); font-weight: 600; font-stretch: 110%;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: .875rem 1.75rem; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s ease-out, border-color .18s ease-out, transform .28s var(--ease), box-shadow .18s ease-out;
  white-space: nowrap;
}
.btn--primary { background: var(--color-lime); color: var(--color-ink); }
.btn--primary:hover { background: var(--color-lime-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--primary:active { transform: scale(.98); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-ink); }
.btn--ghost:hover { border-color: var(--color-ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
/* auf dunklem Grund */
.on-dark .btn--ghost, .section--forest .btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.on-dark .btn--ghost:hover { border-color: #fff; }

.btn__spinner { width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: none; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logo-Lockup ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--color-ink); }
.logo__img { height: 54px; width: auto; display: block; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__mark .leaf { fill: var(--color-lime); }
.logo__mark .trunk { fill: currentColor; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-size: .95rem; font-weight: 700; font-stretch: 118%; letter-spacing: 0.06em; text-transform: uppercase; }
.logo__sub { font-size: .58rem; font-weight: 600; font-stretch: 118%; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-text-muted); margin-top: .18rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-3); }
.nav { display: none; }
.nav__list { display: flex; align-items: center; gap: var(--space-3); list-style: none; padding: 0; }
.nav__link {
  font-size: var(--fs-sm); font-weight: 500; color: var(--color-text);
  padding: .35rem 0; position: relative;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--color-lime); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--color-ink); font-weight: 600; }
.header__cta { display: none; }

/* Burger */
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { height: 2px; background: var(--color-ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile-Overlay */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; background: #fff; z-index: 99;
  display: flex; flex-direction: column; padding: var(--space-4) var(--container-pad) var(--space-5);
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__list { list-style: none; padding: 0; display: grid; gap: .25rem; margin-top: var(--space-2); }
.mobile-menu__list a { display: block; font-size: var(--fs-xl); font-weight: 600; color: var(--color-ink); padding: .6rem 0; border-bottom: 1px solid var(--color-border); opacity: 0; transform: translateY(12px); }
.mobile-menu.is-open .mobile-menu__list a { animation: menuIn .4s var(--ease) forwards; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(1) a { animation-delay: .05s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(2) a { animation-delay: .11s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(3) a { animation-delay: .17s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(4) a { animation-delay: .23s; }
.mobile-menu.is-open .mobile-menu__list li:nth-child(5) a { animation-delay: .29s; }
.mobile-menu__cta { margin-top: var(--space-4); }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-5) 0; overflow: hidden; }
.hero__inner { display: grid; gap: var(--space-4); }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); order: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero h1 { margin-top: var(--space-2); }
.hero__lead { margin-top: var(--space-3); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-4); }
.hero__facts {
  display: grid; gap: var(--space-2); margin-top: var(--space-5);
  border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-3);
}
.hero__fact { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--fs-sm); color: var(--color-text); }
.hero__fact svg { flex: none; width: 20px; height: 20px; color: var(--color-leaf); margin-top: .1rem; }

/* ---------- Leistungen ---------- */
.services { display: grid; gap: var(--space-3); }
.service-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-4); border: 1px solid var(--color-border); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--color-lime-tint); display: grid; place-items: center; margin-bottom: var(--space-2); }
.service-card__icon svg { width: 24px; height: 24px; color: var(--color-leaf); }
.service-card h3 { margin-bottom: .4rem; }
.service-card__desc { font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.service-card__items { margin-top: var(--space-2); }
.service-card__items summary { font-size: var(--fs-sm); font-weight: 600; color: var(--color-leaf); cursor: pointer; list-style: none; padding: .4rem 0; }
.service-card__items summary::-webkit-details-marker { display: none; }
.service-card__items summary::after { content: "  +"; }
.service-card__items[open] summary::after { content: "  –"; }
.service-card__items .leaf-list { margin-top: .5rem; }

/* ---------- Unternehmen ---------- */
.about__inner { display: grid; gap: var(--space-4); }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); aspect-ratio: 3/4; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }
.about__badge {
  position: absolute; left: var(--space-3); bottom: -1px; transform: translateY(30%);
  background: #fff; box-shadow: var(--shadow-sm); border-radius: var(--radius-sm);
  padding: .7rem 1.1rem; font-size: var(--fs-sm);
}
.about__badge strong { display: block; color: var(--color-ink); }
.about__badge span { color: var(--color-text-muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-stretch: 118%; }
.about__body p + p { margin-top: var(--space-2); }
.values { list-style: none; padding: 0; display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.value { padding-left: 1.75rem; position: relative; }
.value::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; background: var(--color-lime); -webkit-mask: var(--leaf-mask) center/contain no-repeat; mask: var(--leaf-mask) center/contain no-repeat; }
.value strong { display: block; color: var(--color-ink); font-size: var(--fs-base); font-weight: 600; }
.value span { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------- Vorteile (Forest) ---------- */
.benefits { display: grid; gap: 0; margin-top: var(--space-4); }
.benefit { padding: var(--space-3) 0; border-top: 1px solid rgba(255,255,255,.14); }
.benefit:first-child { border-top: 0; }
.benefit__num { font-size: var(--fs-xl); font-weight: 700; color: var(--color-lime); font-stretch: 110%; }
.benefit h3 { color: #fff; margin: .3rem 0; }
.benefit p { color: rgba(255,255,255,.72); font-size: var(--fs-sm); max-width: 34ch; }

/* ---------- Referenzen ---------- */
.gallery { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 4/3; cursor: pointer; background: var(--color-bg-alt); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1rem .9rem;
  background: linear-gradient(transparent, rgba(34,55,43,.78));
  color: #fff; font-size: var(--fs-xs); font-weight: 600; font-stretch: 118%;
  text-transform: uppercase; letter-spacing: .08em;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lightbox::backdrop { background: rgba(38,42,40,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__inner { display: grid; gap: 1rem; justify-items: center; padding: 1.5rem; }
.lightbox__img { max-width: 90vw; max-height: 82vh; border-radius: var(--radius-md); }
.lightbox__cap { color: #fff; font-size: var(--fs-sm); font-stretch: 118%; text-transform: uppercase; letter-spacing: .08em; }
.lightbox__close { position: fixed; top: 1.1rem; right: 1.1rem; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.4rem; cursor: pointer; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__nav--prev { left: 1rem; } .lightbox__nav--next { right: 1rem; }

/* ---------- Kontakt ---------- */
.contact__inner { display: grid; gap: var(--space-5); }
.contact__block { display: grid; gap: var(--space-3); align-content: start; }
.contact__addr { font-style: normal; font-size: var(--fs-base); color: var(--color-text); }
.contact__addr strong { color: var(--color-ink); }
.contact__phone { font-size: var(--fs-xl); font-weight: 600; color: var(--color-ink); display: inline-flex; align-items: center; gap: .6rem; }
.contact__phone:hover { color: var(--color-leaf); }
.contact__mail { color: var(--color-leaf); font-weight: 500; }
.contact__mail:hover { text-decoration: underline; }
.socials { display: flex; gap: .6rem; }
.social-link { width: 42px; height: 42px; border: 1.5px solid var(--color-border); border-radius: 12px; display: grid; place-items: center; color: var(--color-ink); transition: border-color .18s ease, color .18s ease; }
.social-link:hover { border-color: var(--color-lime); color: var(--color-leaf); }
.social-link svg { width: 20px; height: 20px; }

/* 2-Klick Maps */
.map-consent { border-radius: var(--radius-lg); overflow: hidden; background: var(--color-lime-tint); aspect-ratio: 16/10; display: grid; place-items: center; text-align: center; padding: var(--space-3); }
.map-consent__inner { max-width: 34ch; display: grid; gap: .75rem; justify-items: center; }
.map-consent svg { width: 32px; height: 32px; color: var(--color-leaf); }
.map-consent p { font-size: var(--fs-sm); color: var(--color-text-muted); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Formular */
.form-card { background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); padding: var(--space-4); }
.form-row { display: grid; gap: .4rem; margin-bottom: var(--space-3); }
.form-row label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-ink); }
.form-row .opt { color: var(--color-text-muted); font-weight: 400; }
.form-control { width: 100%; background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: 0 1rem; height: 52px; transition: border-color .18s ease, box-shadow .18s ease; }
textarea.form-control { height: auto; padding: .8rem 1rem; resize: vertical; min-height: 130px; line-height: 1.6; }
.form-control:focus { outline: 0; border-color: var(--color-leaf); box-shadow: 0 0 0 3px var(--color-focus-ring); }
.form-control::placeholder { color: var(--color-text-muted); }
.form-row.has-error .form-control { border-color: var(--color-error); }
.form-error { display: none; font-size: var(--fs-sm); color: var(--color-error); }
.form-row.has-error .form-error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; margin-bottom: var(--space-3); }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--color-lime); flex: none; }
.consent label { font-size: var(--fs-sm); color: var(--color-text-muted); font-weight: 400; }
.consent a { color: var(--color-leaf); text-decoration: underline; }

.form-success { display: none; text-align: center; padding: var(--space-4) var(--space-2); }
.form-success.is-visible { display: block; }
.form-success__icon { width: 56px; height: 56px; margin: 0 auto var(--space-2); background: var(--color-lime-tint); border-radius: 50%; display: grid; place-items: center; }
.form-success__icon span { width: 28px; height: 28px; background: var(--color-lime); display: block; -webkit-mask: var(--leaf-mask) center/contain no-repeat; mask: var(--leaf-mask) center/contain no-repeat; }
.form-success h3 { margin-bottom: .5rem; }
.form-success p { max-width: 40ch; margin-inline: auto; color: var(--color-text-muted); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,.7); padding-block: var(--space-6) var(--space-4); }
.site-footer .logo { color: #fff; }
.site-footer .logo__sub { color: rgba(255,255,255,.55); }
.footer__grid { display: grid; gap: var(--space-4); }
.footer__claim { margin-top: var(--space-2); font-size: var(--fs-sm); max-width: 30ch; }
.footer__col h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; font-stretch: 118%; margin-bottom: var(--space-2); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer__col a { font-size: var(--fs-sm); color: rgba(255,255,255,.7); transition: color .18s ease; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); justify-content: space-between; align-items: center; margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-sm); }
.footer__bottom nav { display: flex; gap: var(--space-3); }

/* ---------- Cookie-Banner ---------- */
.cookie {
  position: fixed; left: var(--container-pad); bottom: var(--container-pad); right: var(--container-pad); max-width: 400px; z-index: 200;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--color-border);
  padding: var(--space-3); opacity: 0; transform: translateY(16px); visibility: hidden;
  transition: opacity .35s ease, transform .35s var(--ease), visibility .35s ease;
}
.cookie.is-visible { opacity: 1; transform: none; visibility: visible; }
.cookie p { font-size: var(--fs-sm); color: var(--color-text); margin-bottom: var(--space-2); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie__actions .btn {
  flex: 1 1 130px; padding: .7rem .6rem;
  font-stretch: 100%; letter-spacing: .03em; white-space: normal;
  line-height: 1.15; text-align: center;
}
.cookie__link { display: inline-block; margin-top: .7rem; font-size: var(--fs-xs); color: var(--color-text-muted); text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Rechts-Seiten (Impressum/Datenschutz) ---------- */
.legal { padding-block: var(--space-6); }
.legal h1 { margin-bottom: var(--space-4); }
.legal h2 { font-size: var(--fs-xl); margin-top: var(--space-4); margin-bottom: var(--space-2); }
.legal p, .legal ul { max-width: 72ch; font-size: var(--fs-base); margin-bottom: var(--space-2); }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .35rem; }
.legal a { color: var(--color-leaf); text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: var(--space-4); font-size: var(--fs-sm); color: var(--color-leaf); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (min-width: 640px) {
  .services { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
  .benefit { padding: var(--space-3); }
  .benefit:nth-child(2) { border-top: 1px solid rgba(255,255,255,.14); }
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }

  .hero { padding-block: var(--space-6) 0; }
  .hero__inner { grid-template-columns: 5fr 7fr; align-items: center; gap: var(--space-6); }
  .hero__media { order: 0; aspect-ratio: 4/3; }
  .hero__content { max-width: 34rem; }
  .hero__facts { grid-column: 1 / -1; }

  .about__inner { grid-template-columns: 5fr 7fr; align-items: center; gap: var(--space-6); }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .benefit { border-top: 0 !important; border-left: 1px solid rgba(255,255,255,.14); padding: 0 var(--space-3); }
  .benefit:first-child { border-left: 0; padding-left: 0; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

  .contact__inner { grid-template-columns: 5fr 7fr; gap: var(--space-6); align-items: start; }
  .services { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
  .service-card { padding: var(--space-5); }
  /* Leistungslisten auf Desktop offen zeigen */
  .service-card__items { }
  .service-card__items summary { display: none; }
  .service-card__items > .leaf-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-3); }
}

@media (min-width: 1200px) {
  .hero__media { margin-right: calc((1200px - 100vw) / 2); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   v2 — Refinements nach Feedback
   ===================================================================== */

/* Logo als Bild (SVG), größer */
.logo__img { height: clamp(42px, 5.2vw, 56px); width: auto; display: block; }
.site-footer .logo__img { height: 48px; }

/* Eyebrow ruhiger (weniger „anderer Font"-Eindruck) */
.eyebrow { font-stretch: 106%; letter-spacing: .1em; }
.badge { font-stretch: 106%; }

/* Leistungen: einheitliche Kartenhöhe + ausgerichtete Inhalte */
.service-card { display: flex; flex-direction: column; }
.service-card__desc { min-height: 3em; }
@media (min-width: 640px) { .services { grid-auto-rows: 1fr; } }

/* Kontakt kompakter */
.form-control { height: 48px; }
textarea.form-control { min-height: 108px; }
.form-row { margin-bottom: var(--space-2); }
.contact__block { gap: var(--space-2); }
.contact__phone { font-size: var(--fs-lg); }
@media (min-width: 900px) { .contact__inner { gap: var(--space-5); } }

/* Karte: schönerer Placeholder + dezenter Marken-Filter auf der Karte */
.map-consent {
  position: relative; aspect-ratio: 16/9; border: 1.5px dashed rgba(78,122,29,.35);
  background:
    radial-gradient(circle at 1px 1px, rgba(78,122,29,.13) 1px, transparent 0) 0 0/22px 22px,
    linear-gradient(135deg, var(--color-lime-tint), #e9f2d8);
}
.map-consent__pin { width: 54px; height: 54px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--color-leaf); margin: 0 auto; }
.map-consent__pin svg { width: 26px; height: 26px; }
.map-embed { border: 1px solid var(--color-border); }
.map-embed iframe { filter: grayscale(.22) contrast(1.03) saturate(.92); transition: filter .3s ease; }
.map-embed:hover iframe { filter: none; }

/* CTA-Band mit Foto-Hintergrund */
.cta-band { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(34,55,43,.95) 0%, rgba(34,55,43,.86) 42%, rgba(34,55,43,.55) 100%); }
.cta-band__inner { display: grid; gap: var(--space-3); padding-block: clamp(3rem, 7vw, 5rem); align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: var(--space-2); }
.cta-band__phone { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 600; font-size: var(--fs-lg); }
.cta-band__phone:hover { color: var(--color-lime); }
.cta-band__phone svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1.5fr 1fr; gap: var(--space-6); }
  .cta-band__actions { flex-direction: column; align-items: flex-start; }
}

/* Floating Kontakt-Button (FAB) */
.fab {
  position: fixed; z-index: 150; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  display: inline-flex; align-items: center; gap: .55rem; padding: .95rem 1.4rem; border-radius: 999px;
  background: var(--color-lime); color: var(--color-ink); font-weight: 600; font-size: var(--fs-sm);
  text-transform: uppercase; letter-spacing: .06em; box-shadow: var(--shadow-md); border: 0; cursor: pointer;
  opacity: 0; transform: translateY(20px) scale(.96); pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease), background .18s ease;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: var(--color-lime-dark); }
.fab svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 560px) { .fab { padding: .95rem; } .fab__label { position: absolute; left: -9999px; } }
@media (prefers-reduced-motion: reduce) { .fab { transition: opacity .2s ease; } }

/* =====================================================================
   Hero — Cinematic (gewählte Variante V2)
   ===================================================================== */
.hero--cine { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero--cine .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero--cine .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--cine::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20,30,24,.88) 0%, rgba(20,30,24,.5) 45%, rgba(20,30,24,.05) 100%),
              linear-gradient(0deg, rgba(20,30,24,.78) 0%, transparent 42%); }
.hero--cine .container { width: 100%; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero--cine .badge { background: rgba(255,255,255,.15); color: #fff; }
.hero--cine h1 { color: #fff; max-width: 17ch; margin-top: var(--space-2); }
.hero--cine .lead { color: rgba(255,255,255,.85); max-width: 46ch; margin-top: var(--space-3); }
.hero--cine .hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--space-4); }
.hero--cine .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero--cine .btn--ghost:hover { border-color: #fff; }
.hero--cine .hero__facts { border-color: rgba(255,255,255,.2); margin-top: var(--space-5); }
.hero--cine .hero__fact { color: rgba(255,255,255,.9); }
.hero--cine .hero__fact svg { color: var(--color-lime); }

/* Hero Cinematic — Mobile aufgeräumt */
@media (max-width: 639px) {
  .hero--cine { min-height: 100vh; min-height: 100dvh; }
  .hero--cine .hero__facts { display: none; }        /* Trust-Infos stehen in Vorteilen/Kontakt */
  .hero--cine .hero__cta { width: 100%; }
  .hero--cine .hero__cta .btn { flex: 1 1 100%; }
  .hero--cine .lead { max-width: none; }
}

/* =====================================================================
   v3 — Transparenter Header über Hero + Telefon-Button + einheitliche Textgröße
   ===================================================================== */

/* ---- Einheitliche Fließtext-/Beschreibungsgröße (weniger Größen-Wildwuchs) ---- */
.lead { font-size: var(--fs-base); line-height: 1.6; }
.service-card__desc { font-size: var(--fs-base); }
.leaf-list li { font-size: var(--fs-base); }
.value span { font-size: var(--fs-base); }
.benefit p { font-size: var(--fs-base); }

/* ---- Header-Actions + Telefon-Icon-Button ---- */
.header__actions { display: flex; align-items: center; gap: .6rem; }
.header__call {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border); display: grid; place-items: center;
  color: var(--color-ink); flex: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.header__call svg { width: 22px; height: 22px; }
.header__call:hover { border-color: var(--color-lime); color: var(--color-leaf); }

/* ---- Zwei Logo-Fassungen: hell (über Foto) / dunkel (weißer Header) ---- */
.logo__img--light { display: none; }

/* ---- Transparenter Overlay-Header (nur Startseite), wird beim Scrollen weiß ---- */
.site-header { transition: background .25s ease, border-color .2s ease, box-shadow .2s ease; }
.site-header--overlay:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(18,26,21,.55), rgba(18,26,21,0));
}
.site-header--overlay:not(.is-scrolled) .nav__link { color: rgba(255,255,255,.9); }
.site-header--overlay:not(.is-scrolled) .nav__link.is-active { color: #fff; }
.site-header--overlay:not(.is-scrolled) .header__call { border-color: rgba(255,255,255,.4); color: #fff; }
.site-header--overlay:not(.is-scrolled) .header__call:hover { border-color: #fff; }
.site-header--overlay:not(.is-scrolled) .burger span { background: #fff; }
.site-header--overlay:not(.is-scrolled) .logo__img--dark { display: none; }
.site-header--overlay:not(.is-scrolled) .logo__img--light { display: block; }

/* Hero unter den transparenten Header ziehen (Foto beginnt ganz oben) */
.hero--cine { margin-top: calc(-1 * var(--header-h)); }

/* =====================================================================
   v4 — Feinschliff (Mobile, Typo-Kohäsion, UX)
   ===================================================================== */

/* ---- EINE Schrift: font-stretch der Label/Caps auf 100% (kein „anderer Font") ---- */
.eyebrow, .badge, .btn, .logo__name, .logo__sub,
.footer__col h4, .about__badge span, .gallery__cap, .lightbox__cap,
.benefit__num, .cookie__actions .btn, .mobile-menu__list a {
  font-stretch: 100%;
}
.eyebrow { letter-spacing: .09em; }
.footer__col h4 { letter-spacing: .06em; }

/* Lange deutsche Komposita nie über den Rand ---- */
h1, h2, h3, h4 { overflow-wrap: break-word; word-break: normal; }
.legal { hyphens: auto; }
.legal h1 { font-size: var(--fs-2xl); }

/* ---- Doppeltipp-Zoom aus (Pinch-Zoom bleibt für Barrierefreiheit) ---- */
html { touch-action: manipulation; }

/* ---- Textauswahl/Kopieren auf der Seite unterbinden (Formularfelder ausgenommen) ---- */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text; -moz-user-select: text; user-select: text; -webkit-touch-callout: default;
}

/* ---- Header/Logo mobil: Luft + solide Kopfzeile bei offenem Menü ---- */
@media (max-width: 899px) {
  .site-header__inner { gap: var(--space-2); }
  .logo__img { height: 40px; }
}
body.is-menu-open { overflow: hidden; }
body.is-menu-open .site-header--overlay {
  background: #fff; border-bottom-color: var(--color-border);
}
body.is-menu-open .site-header--overlay .logo__img--dark { display: block; }
body.is-menu-open .site-header--overlay .logo__img--light { display: none; }
body.is-menu-open .site-header--overlay .burger span { background: var(--color-ink); }
body.is-menu-open .site-header--overlay .header__call { border-color: var(--color-border); color: var(--color-ink); }

/* ---- Telefon im Mobile-Menü (klickbar) ---- */
.mobile-menu__phone {
  display: flex; align-items: center; gap: .6rem; margin-top: var(--space-3);
  font-size: var(--fs-lg); font-weight: 600; color: var(--color-ink);
}
.mobile-menu__phone svg { width: 22px; height: 22px; color: var(--color-leaf); flex: none; }

/* ---- Unternehmen: Abstand Überschrift → Text + Platz für Badge-Überhang ---- */
.about__body h2 { margin-bottom: var(--space-2); }
@media (max-width: 899px) { .about__media { margin-bottom: var(--space-3); } }

/* ---- Kleinere H3 auf Mobile (weniger Größensprünge) ---- */
@media (max-width: 639px) { .service-card h3, .benefit h3 { font-size: var(--fs-lg); } }

/* ---- „Nach oben"-Button (unten links, kollidiert nicht mit dem FAB) ---- */
.to-top {
  position: fixed; z-index: 150; left: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--color-border);
  background: #fff; color: var(--color-ink); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease), background .18s ease, border-color .18s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--color-lime); color: var(--color-leaf); }
.to-top svg { width: 22px; height: 22px; }

/* ---- Hero: sanfte „Ken Burns"-Bewegung (Desktop + Mobile) ---- */
.hero--cine .hero-bg { overflow: hidden; }
.hero--cine .hero-bg img { transform-origin: center center; transform: scale(1.06); }
/* Bewegung erst NACH dem Laden starten (bessere LCP / Speed Index auf Mobil) */
body.is-loaded .hero--cine .hero-bg img {
  animation: heroKen 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKen {
  from { transform: scale(1.08) translate(-1.4%, -1%); }
  to   { transform: scale(1.18) translate(1.4%, 1%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero--cine .hero-bg img { animation: none; transform: scale(1.06); }
}

/* Desktop: Kleinschriften etwas größer — Eyebrows/Badges 14px, Nav/Buttons/Labels 16px.
   Mobile bleibt bei 13/15 (kompakter). */
@media (min-width: 900px) {
  :root { --fs-xs: 0.875rem; --fs-sm: 1rem; }
}
