/* Feldrain Gartenbau – Demo-Website eines fiktiven Unternehmens
   Schriften selbst gehostet (SIL Open Font License), keine Anfragen an fremde Server. */

@font-face {
  font-family: "Alegreya";
  src: url("/demos/gartenbau/fonts/alegreya-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/demos/gartenbau/fonts/figtree-wght.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* Markenfarben */
  --tanne: #293927;
  --limette: #B9D37C;
  --salbei: #EBF0DE;
  /* Ergänzungen für Text und Flächen */
  --tanne-tief: #1F2C1E;
  --moos: #4A6A2C;        /* Akzent als Text auf Hell, Kontrast ca. 6:1 */
  --papier: #F7F8F4;
  --text: #263224;
  --text-leise: #55604F;
  --linie: #D5DBC8;
  --stein: #C9CDBF;

  --serif: "Alegreya", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Auf flachen Bildschirmen (z. B. 1280 × 720) richtet sich der Abstand nach der Höhe, damit Sektionen auf einen Bildschirm passen */
  --space-section: clamp(64px, min(9vw, 11vh), 120px);
  --radius: 6px;
  --header-h: 88px;       /* Höhe der Kopfleiste ungescrollt, mobil 72 px */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--moos); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--moos); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); color: var(--tanne); margin: 0; line-height: 1.12; font-weight: 600; text-wrap: balance; }
/* Alegreya hat Mediävalziffern (die Web-Datei kennt kein lnum); Ziffern daher in Figtree */
.aside-phone, .contact-phone, .steps li::before { font-family: var(--sans) !important; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -0.012em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); letter-spacing: -0.008em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--tanne); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  border-radius: 4px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary { background: var(--tanne); color: #fff; }
.btn-primary:hover { background: var(--moos); }
.btn-ghost { background: transparent; color: var(--tanne); border-color: var(--tanne); }
.btn-ghost:hover { background: var(--salbei); }
.btn-light { background: var(--limette); color: var(--tanne); }
.btn-light:hover { background: #fff; }
.btn-small { min-height: 42px; padding: 0.5em 1.1em; font-size: 0.95rem; }

/* ---------- Kennzeichnung von Beispielinhalten ---------- */
.demo-label {
  display: inline-block; padding: 0.15em 0.7em; border: 1.5px solid var(--moos); border-radius: 4px;
  font: 700 0.8rem/1.5 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--moos); background: #fff;
}

/* ---------- Header ---------- */
/* Liegt fest über der Seite, damit der Hero bis ganz nach oben reicht. Farben über Variablen,
   damit der durchsichtige Zustand über dem Hero nur die Variablen tauschen muss. */
.site-header {
  --ink: var(--tanne); --ink-soft: var(--text-leise); --ink-hover: var(--moos); --hover-bg: var(--salbei); --rule: var(--linie);
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--rule);
  transition: background-color .25s, border-color .25s, box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 8px 20px -16px rgba(31,44,30,.55); }

/* Über dem Hero durchsichtig mit heller Schrift; sobald gescrollt wird oder das Menü offen ist, wieder weiß.
   Nur mit JS (Klasse .js am html), sonst bliebe die Leiste beim Scrollen über dem Inhalt durchsichtig. */
.js .site-header:not(.is-scrolled, :has(.main-nav.is-open)) {
  --ink: #fff; --ink-soft: rgba(255,255,255,.85); --ink-hover: #fff; --hover-bg: rgba(255,255,255,.14); --rule: rgba(255,255,255,.22);
  background: transparent;
}
.js .site-header:not(.is-scrolled, :has(.main-nav.is-open)) .btn-primary { background: var(--limette); color: var(--tanne); }
.js .site-header:not(.is-scrolled, :has(.main-nav.is-open)) .btn-primary:hover { background: #fff; }
.js .site-header:not(.is-scrolled, :has(.main-nav.is-open)) :focus-visible { outline-color: #fff; }

.header-row { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); transition: min-height .2s; }
.is-scrolled .header-row { min-height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin-right: auto; flex: none; white-space: nowrap; }
.brand-logo { width: 56px; height: 56px; color: var(--tanne); flex: none; transition: width .2s, height .2s; }
.is-scrolled .brand-logo { width: 44px; height: 44px; }
.brand-name { font: 700 1.7rem/1 var(--serif); display: flex; flex-direction: column; gap: 6px; }
.brand-sub { font: 500 0.82rem/1 var(--sans); color: var(--ink-soft); letter-spacing: 0.01em; }

.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 4px; white-space: nowrap; }
.main-nav a:hover { color: var(--ink-hover); background: var(--hover-bg); }

.header-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.header-actions .btn-small { white-space: nowrap; }
/* Die Nummer steht nur, wenn neben Menü und Button genug Platz ist; im Hero steht sie ohnehin */
.header-phone { display: none; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; }
@media (min-width: 1400px) { .header-phone { display: inline-flex; } }
.nav-toggle { display: none; }

/* Sechs Menüpunkte plus Button brauchen etwa 1180 px, darunter das Burger-Menü */
@media (max-width: 1180px) {
  .header-phone { display: inline-flex; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 48px; height: 48px;
    background: none; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s;
  }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--linie); padding: 8px var(--gutter) 20px;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
}
@media (max-width: 560px) {
  :root { --header-h: 72px; }
  .header-phone { display: none; }
  .header-row { gap: 12px; }
  .is-scrolled .header-row { min-height: 64px; }
  .header-actions .btn-small { display: none; }
  .brand-name { font-size: 1.3rem; gap: 5px; }
  .brand-sub { font-size: 0.74rem; }
  .brand-logo, .is-scrolled .brand-logo { width: 42px; height: 42px; }
}

/* ---------- Hero ---------- */
/* Gartenfoto über die ganze Breite. Der Text steht unten links, abgedunkelt wird oben (Kopfleiste), unten und links.
   Füllt den ganzen ersten Bildschirm, die durchsichtige Kopfleiste liegt darüber. Keine Effekte, das Foto trägt. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; background: var(--tanne-tief); color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* Drei Verläufe: oben für die Kopfleiste, unten und links für den Text */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(25,36,24,.6) 0, rgba(25,36,24,.25) calc(var(--header-h) + 40px), rgba(25,36,24,0) calc(var(--header-h) + 120px)),
    linear-gradient(0deg, rgba(25,36,24,.92) 0%, rgba(25,36,24,.72) 32%, rgba(25,36,24,.18) 62%, rgba(25,36,24,0) 78%),
    linear-gradient(90deg, rgba(25,36,24,.6) 0%, rgba(25,36,24,.25) 45%, rgba(25,36,24,0) 65%);
}
.hero-inner { position: relative; flex: 1; display: flex; align-items: flex-end; width: 100%; padding-block: calc(var(--header-h) + clamp(48px, 14vh, 180px)) clamp(48px, 9vh, 96px); }
.hero-text { max-width: 740px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 3.8vw, 3.25rem); }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 36em; margin-top: 1.1em; color: var(--text); }
.hero .lead { color: #E6EDD8; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Moosgrün ist auf dem dunklen Foto kaum zu sehen */
.hero :focus-visible { outline-color: var(--limette); }

/* Der eine orchestrierte Moment beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: text-in .8s cubic-bezier(.2,.7,.1,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(n+3) { animation-delay: .24s; }
}
@keyframes text-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .hero-inner { padding-block: calc(var(--header-h) + 64px) 64px; }
  .hero-bg { object-position: 35% 50%; }
  /* Auf schmalen Bildschirmen liegt der Text über dem ganzen Bild, daher gleichmäßig abdunkeln */
  .hero::before { background: linear-gradient(180deg, rgba(25,36,24,.65) 0%, rgba(25,36,24,.55) 30%, rgba(25,36,24,.82) 60%, rgba(25,36,24,.94) 100%); }
}
/* Sehr kleine Handys (320 × 568): weniger Luft über dem Text, sonst ragt der Hero über den Bildschirm */
@media (max-height: 600px) and (max-width: 860px) {
  .hero-inner { padding-block: calc(var(--header-h) + 16px) 64px; }
  .hero h1 { font-size: 1.95rem; }
  .hero-actions { margin-top: 1.4em; }
}

/* ---------- Abschnitte allgemein ---------- */
.section { padding-block: var(--space-section); }
.section-tint { background: var(--salbei); }
.section-title { margin-bottom: 0.55em; max-width: 22ch; }
.section-intro { max-width: 40em; color: var(--text-leise); margin-bottom: 2em; }

.icon { width: 44px; height: 44px; color: var(--tanne); flex: none; }

.tick-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 0.45em; }
.tick-list li { position: relative; padding-left: 1.7em; }
.tick-list li::before {
  content: ""; position: absolute; left: 0.1em; top: 0.38em; width: 0.9em; height: 0.5em;
  border-left: 2.5px solid var(--moos); border-bottom: 2.5px solid var(--moos); transform: rotate(-45deg);
}

/* ---------- Leistungen ---------- */
/* Passt ab etwa 1280 × 720 auf einen Bildschirm: knappe Abstände nach Bildschirmhöhe, Hauptleistung als Querkarte,
   die übrigen vier Leistungen als Spalten ohne eigene Kästen */
.services-section { padding-block: clamp(32px, 6.5vh, 80px); }
.services-section .section-title { max-width: none; margin-bottom: 0.5em; }
.service-main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; }
/* height 0 + min-height 100 %: Das Bild trägt nichts zur Zeilenhöhe bei und füllt die Höhe, die der Text vorgibt */
.service-main-img { width: 100%; height: 0; min-height: 100%; object-fit: cover; }
.service-main-body { align-self: center; padding: clamp(22px, 3.5vh, 36px) clamp(24px, 3.5vw, 44px); }
.service-main h3, .service-cols h3 { display: flex; align-items: center; gap: 12px; }
.service-main h3 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); margin-bottom: 0.4em; }
.service-main-body > p { margin: 0 0 1.2em; max-width: 38em; }

.service-cols { list-style: none; margin: clamp(20px, 3.5vh, 36px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.service-cols li { display: flex; flex-direction: column; padding-top: 16px; border-top: 2px solid var(--tanne); }
.service-cols h3 { font-size: 1.2rem; margin-bottom: 0.45em; }
.service-cols .icon { width: 32px; height: 32px; }
.service-cols p { margin: 0 0 0.8em; color: var(--text-leise); font-size: 0.95rem; }
.row-link { margin-top: auto; align-self: flex-start; font-weight: 600; }

@media (max-width: 1080px) { .service-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .service-main { grid-template-columns: 1fr; }
  .service-main-img { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) { .service-cols { grid-template-columns: 1fr; } }

/* ---------- Schichtaufbau ---------- */
/* Eigene Sektion auf Salbei direkt unter den Leistungen */
.layers-sticky { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
/* Überschrift und Einleitung stehen über dem festgehaltenen Bereich, damit Liste und Grafik auch auf flachen Bildschirmen ganz sichtbar bleiben */
.layers-head .section-title { max-width: none; }
.layers-head p { color: var(--text-leise); max-width: 40em; margin: 0 0 clamp(16px, 3vh, 32px); }
.layer-list { list-style: none; counter-reset: layer; margin: 0 0 1em; padding: 0; display: grid; gap: 4px; }
.layer-list li { counter-increment: layer; display: grid; grid-template-columns: 2.2em 1fr; column-gap: 8px; padding: 10px 12px; border-radius: var(--radius); color: var(--text-leise); transition: background-color .2s, color .2s; }
.layer-list li::before { content: counter(layer); grid-row: span 2; font: 700 1rem/1.6 var(--sans); color: var(--moos); }
.layer-list strong { color: var(--tanne); font: 600 1.15rem/1.35 var(--serif); }
.layer-list li.is-active { background: #fff; color: var(--text); }
.layers-note { font-size: 0.9rem; color: var(--text-leise); }
.layers-figure { margin: 0; }
.layers-figure svg { width: 100%; height: auto; overflow: visible; }
.layers-figure figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--text-leise); text-align: right; }
/* Geöffnet: jede Schicht rückt um ihren Index nach unten, oben bleibt der Belag */
.layer { transform: translateY(calc(var(--i) * 34px * var(--p))); }
.layer .front, .layer .top, .layer .side { transition: filter .2s; }
.layers.is-scrubbing .layer:not(.is-active) { filter: saturate(.55) brightness(1.04); }

/* Scroll-Strecke nur, wenn der Effekt läuft (Desktop, keine reduzierte Bewegung) */
.layers.is-scrubbing .layers-track { height: 190vh; }
.layers.is-scrubbing .layers-sticky { position: sticky; top: max(100px, calc(50vh - 260px)); }
@media (max-width: 900px) { .layers-sticky { grid-template-columns: 1fr; } }

/* ---------- Gartenjahr (Signatur-Element) ---------- */
.gartenjahr { position: relative; background: var(--tanne); color: #E6EDD8; padding-block: calc(var(--space-section) + 8px) var(--space-section); }
.gartenjahr h2 { color: #fff; }
.paving-edge {
  /* Rautenpflaster aus dem Logo als Kante des Bandes */
  position: absolute; inset: 0 0 auto 0; height: 22px;
  background:
    linear-gradient(135deg, var(--papier) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(225deg, var(--papier) 25%, transparent 25%) -11px 0 / 22px 22px;
}
.gj-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: center; margin-bottom: 56px; }
.gj-intro p { margin: 0; max-width: 34em; color: #CFDABD; }
/* Das neue Bild blendet über dem alten ein, das solange als Hintergrund der Figur stehen bleibt */
.gj-visual { margin: 0; }
.gj-frame { border-radius: var(--radius); overflow: hidden; background: #4A644D center / cover no-repeat; aspect-ratio: 16 / 9; }
.gj-image { width: 100%; height: 100%; object-fit: cover; }
.gj-visual figcaption { margin-top: 8px; font-size: 0.85rem; color: #AFC09A; }
@media (prefers-reduced-motion: no-preference) {
  .gj-image.is-changing { animation: gj-fade .45s ease both; }
}
@keyframes gj-fade { from { opacity: 0; } }

.gj-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid rgba(185,211,124,.35); }
.gj-month {
  position: relative; background: none; border: 0; color: #CFDABD; cursor: pointer;
  padding: 18px 4px 14px; font: 600 1rem/1 var(--sans); text-align: left;
  border-right: 1px solid rgba(185,211,124,.18);
}
.gj-month:last-child { border-right: 0; }
.gj-month::before {
  /* Saisonbalken: Höhe zeigt, wie viel im Garten zu tun ist */
  content: ""; position: absolute; left: 4px; right: 8px; bottom: calc(100% + 1px); height: var(--load, 4px);
  background: rgba(185,211,124,.35); transition: background-color .2s;
}
.gj-month:hover { color: #fff; }
.gj-month[aria-selected="true"] { color: var(--tanne); background: var(--limette); }
.gj-month[aria-selected="true"]::before { background: var(--limette); }
.gj-now { display: block; margin-top: 6px; font-size: 0.72rem; font-weight: 500; opacity: .85; }
.gj-month:focus-visible { outline-color: var(--limette); outline-offset: -3px; }

.gj-legend { margin: 10px 0 0; font-size: 0.85rem; color: #AFC09A; }
.gj-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 32px clamp(32px, 6vw, 96px); padding-top: 48px; }
.gj-panel:focus-visible { outline-color: var(--limette); }
.gj-panel h3 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); }
.gj-panel .gj-tagline { font: 500 1.35rem/1.3 var(--serif); color: var(--limette); margin: 0.2em 0 1.2em; }
.gj-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8em; }
.gj-panel li { position: relative; padding-left: 1.6em; }
.gj-panel li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6em; height: 0.6em; background: var(--limette); transform: rotate(45deg); }
.gj-offer { border-left: 2px solid var(--limette); padding-left: clamp(20px, 3vw, 36px); align-self: end; }
.gj-offer-title { font: 600 1.25rem/1.3 var(--serif); color: #fff; margin-bottom: 0.5em; }
.gj-law { margin-top: 1.4em; padding: 14px 16px; background: rgba(0,0,0,.18); border-radius: var(--radius); font-size: 0.95rem; }
.gj-law strong { color: var(--limette); }
.gj-offer .btn { margin-top: 0.6em; }

@media (prefers-reduced-motion: no-preference) {
  .gj-panel.is-changing > * { animation: text-in .35s ease both; }
}

@media (max-width: 900px) {
  .gj-head, .gj-panel { grid-template-columns: 1fr; }
  .gj-months { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  /* In zwei Reihen würden die Balken die obere Reihe überdecken */
  .gj-month::before, .gj-legend { display: none; }
  .gj-month:nth-child(6) { border-right: 0; }
  .gj-month:nth-child(n+7) { border-top: 1px solid rgba(185,211,124,.18); }
}

/* ---------- Projekte ---------- */
.projects { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); }
.project-feature { margin: 0; }
.project-feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; border-radius: var(--radius); }
.project-feature figcaption, .project-tile figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--text-leise); }
.project-side { display: grid; gap: clamp(24px, 3vw, 36px); align-content: start; }
.project-tile { margin: 0; }
.project-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.project-tile strong, .project-feature strong { display: block; color: var(--tanne); font: 600 1.2rem/1.3 var(--serif); }

.gallery { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--text-leise); }
.gallery-source { margin: 20px 0 0; font-size: 0.85rem; color: var(--text-leise); }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 860px) {
  .projects { grid-template-columns: 1fr; }
}

/* ---------- Ablauf ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2em 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 72px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; width: 52px; height: 52px; display: grid; place-items: center;
  border: 2px solid var(--tanne); border-radius: 50%; background: #fff;
  font: 700 1.5rem/1 var(--serif); color: var(--tanne);
}
.steps li:not(:last-child)::after {
  /* gepunktete Linie wie im Rollrasen-Post */
  content: ""; position: absolute; top: 26px; left: 64px; right: -20px;
  border-top: 2px dotted var(--moos);
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--text-leise); margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding: 0 0 0 72px; min-height: 52px; }
}

/* ---------- Anfrage-Assistent ---------- */
.request-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.request-aside { margin-top: 32px; padding: 24px; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
.aside-title { font: 600 1.2rem/1.3 var(--serif); color: var(--tanne); margin-bottom: 0.3em; }
.aside-phone { font: 700 1.7rem/1.2 var(--serif); color: var(--tanne); text-decoration: none; display: inline-block; margin-bottom: 0.3em; }
.aside-small { font-size: 0.9rem; color: var(--text-leise); margin: 0.8em 0 0; }

.wizard { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: clamp(20px, 3.5vw, 44px); }
.wizard-progress { list-style: none; counter-reset: wp; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; margin: 0 0 32px; }
.wizard-progress li { counter-increment: wp; border-top: 4px solid var(--linie); padding-top: 8px; font-size: 0.85rem; color: var(--text-leise); }
.wizard-progress li span::before { content: counter(wp) ". "; }
.wizard-progress li.is-done { border-color: var(--moos); }
.wizard-progress li.is-current { border-color: var(--tanne); color: var(--tanne); font-weight: 600; }

.wizard-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step > legend { font: 600 1.6rem/1.2 var(--serif); color: var(--tanne); margin-bottom: 20px; padding: 0; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px 12px 48px;
  border: 1.5px solid var(--linie); border-radius: var(--radius); background: var(--papier);
  font-weight: 500; position: relative; transition: border-color .15s, background-color .15s;
}
.choice span::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border: 2px solid var(--text-leise); border-radius: 50%; background: #fff;
}
.choice:hover span { border-color: var(--moos); }
.choice input:checked + span { border-color: var(--tanne); background: var(--salbei); }
.choice input:checked + span::before { border-color: var(--tanne); background: var(--tanne); box-shadow: inset 0 0 0 3px #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--moos); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; flex: 1; }
.field-row { display: flex; gap: 16px; flex-wrap: wrap; }
.field-row .field { min-width: 200px; }
.field-plz { flex: 0 0 160px; min-width: 0 !important; }
.field label, .field-label { font-weight: 600; font-size: 0.95rem; }
.field-label { margin: 8px 0 10px; padding: 0; }
.subgroup { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.optional { font-weight: 400; color: var(--text-leise); }
.field input, .field textarea {
  font: inherit; color: var(--text); padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #7D8873; border-radius: var(--radius); background: #fff; width: 100%; /* 3,7:1 auf Weiß (WCAG 1.4.11) */
}
.field input:focus, .field textarea:focus { border-color: var(--tanne); outline: 3px solid rgba(74,106,44,.25); outline-offset: 0; }
.field input[type="file"] { padding: 10px; }
.field [aria-invalid="true"] { border-color: #A32D1E; }
.plz-demo { margin: -6px 0 6px; font-size: 0.88rem; color: var(--text-leise); }
.plz-hint { min-height: 1.6em; margin: 0 0 12px; font-weight: 500; }
.plz-hint.is-core { color: var(--moos); }
.plz-hint.is-region { color: var(--text); }

.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--tanne); flex: none; }
.field-error { color: #A32D1E; font-weight: 600; margin: 12px 0 0; }

.wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linie); }
.wizard-nav [data-action="next"], .wizard-nav [type="submit"] { margin-left: auto; }
.wizard-done h3 { margin-bottom: 0.5em; }
.wizard-done:focus { outline: none; }
.demo-hint { font-size: 0.9rem; color: var(--text-leise); border-left: 3px solid var(--moos); padding-left: 12px; }

@media (max-width: 860px) {
  .request-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .choice-grid { grid-template-columns: 1fr; }
  .wizard-progress li span { font-size: 0; }
  .wizard-progress li span::before { font-size: 0.85rem; }
}

/* ---------- Geschäftskunden ---------- */
.b2b-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.b2b-figure { margin: 0; }
.b2b-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 900 / 770; object-fit: cover; }
/* Bilder neben Text nie höher als der Bildschirm abzüglich Kopfleiste, Abständen und Bildunterschrift */
@media (min-width: 861px) {
  .b2b-figure img { max-height: calc(100svh - 68px - 2 * var(--space-section) - 40px); }
  .career-figure img { max-height: calc(100svh - 68px - 2 * var(--space-section)); }
}
.b2b-figure figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--text-leise); }
@media (max-width: 860px) { .b2b-grid { grid-template-columns: 1fr; } }

/* ---------- Karriere ---------- */
.career-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.career-lead { font: 500 1.5rem/1.35 var(--serif); color: var(--tanne); }
.career-figure { margin: 0; }
.career-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
@media (max-width: 860px) { .career-grid { grid-template-columns: 1fr; } }

/* ---------- Bewertungen ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { margin: 0; padding: 28px; background: #fff; border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; flex: 1; }
.review p { font: 500 1.25rem/1.45 var(--serif); color: var(--tanne); margin: 0; }
.review figcaption { color: var(--text-leise); font-size: 0.9rem; }
/* Sterne als Maske in Markenfarbe, ohne Icon-Font oder Bilddatei */
.stars {
  display: inline-block; width: 96px; height: 18px; background: var(--moos);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='m10 0 2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L10 14.8 4.1 18l1.3-6.5L.5 6.9l6.6-.8Z'/%3E%3C/svg%3E") 0 0 / 19.2px 18px repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 19'%3E%3Cpath d='m10 0 2.9 6.1 6.6.8-4.9 4.6 1.3 6.5L10 14.8 4.1 18l1.3-6.5L.5 6.9l6.6-.8Z'/%3E%3C/svg%3E") 0 0 / 19.2px 18px repeat-x;
}
#bewertungen .section-title { max-width: none; }
.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -0.2em 0 2em; color: var(--text-leise); }
.review-source { margin: 20px 0 0; max-width: 48em; font-size: 0.88rem; color: var(--text-leise); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); }
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-child { border-top: 1px solid var(--linie); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 600 1.25rem/1.35 var(--serif); color: var(--tanne);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 2.5px solid var(--moos); border-bottom: 2.5px solid var(--moos); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { max-width: 40em; color: var(--text-leise); padding-bottom: 8px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { background: var(--salbei); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); }
.contact-phone { font: 700 clamp(2rem, 4vw, 2.8rem)/1.1 var(--serif); color: var(--tanne); text-decoration: none; display: inline-block; margin-bottom: 0.3em; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid #CDD6B9; }
.locations h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.location-note { margin-top: 0.6em; font-size: 0.95rem; color: var(--text-leise); }
/* Einsatzgebiet ohne Kartendienst: zwei Ringe um eine Raute, daneben die Legende */
.contact-phone { margin: 0; }
.area {
  margin: 0; min-height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--tanne); color: #E6EDD8;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 16px; padding: clamp(24px, 4vw, 48px);
}
.area-rings { width: 100%; height: auto; color: var(--limette); }
.area-title { font: 600 1.35rem/1.3 var(--serif); color: #fff; margin-bottom: 0.6em; }
.area-legend { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.area-legend li { display: flex; align-items: center; gap: 10px; }
.area-key { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--limette); }
.area-key-core { background: rgba(185,211,124,.25); }
.area-key-region { opacity: .7; }
.area :focus-visible { outline-color: var(--limette); }
@media (max-width: 1080px) { .area { grid-template-columns: 1fr; } .area-rings { max-width: 300px; } }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .locations { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--tanne-tief); color: #CFDABD; padding-block: 64px 24px; font-size: 0.95rem; }
.site-footer a { color: #E6EDD8; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 40px; }
.footer-brand .brand-logo { color: var(--tanne); margin-bottom: 16px; }
.footer-small { font-size: 0.85rem; opacity: .9; }
.footer-name { color: #fff; font: 700 1.25rem/1.4 var(--serif); }
.footer-demo { display: inline-block; padding: 0.2em 0.7em; border: 1px solid rgba(185,211,124,.55); border-radius: 4px; color: var(--limette); font-weight: 600; font-size: 0.9rem; }
.footer-credits { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(185,211,124,.2); font-size: 0.82rem; }
.credits-title { font-weight: 700; color: var(--limette); margin-bottom: 0.5em; }
.credits-list { list-style: none; padding: 0; margin: 0; columns: 2 26em; column-gap: 40px; }
.credits-list li { break-inside: avoid; margin-bottom: 4px; }
.footer-demo-note { color: #E6EDD8; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-privacy strong { color: var(--limette); display: block; margin-bottom: 0.3em; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(185,211,124,.2); font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile Aktionsleiste ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(247,248,244,.97); border-top: 1px solid var(--linie);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: 4px; font-weight: 600; text-decoration: none;
    border: 2px solid var(--tanne); color: var(--tanne);
  }
  .mobile-bar a:last-child { background: var(--tanne); color: #fff; }
  .mobile-bar svg { width: 18px; height: 18px; }
  .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-bar, .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}

@media print { .mobile-bar { display: none; } }
