/* ==========================================================================
   König-Bau · Trierweiler-Sirzenich
   Stylesheet der Startseite
   Corporate Design abgeleitet von Briefpapier, Visitenkarte und Fahrzeug:
   Grün RAL 6032 (Signalgrün) als Hauptfarbe, RAL 6024 (Verkehrsgrün) als
   dunkle Tiefe, Zinkgelb als sparsamer Akzent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Schriften (lokal eingebunden, keine Verbindung zu Google)
   Barlow und Barlow Condensed, SIL Open Font License, siehe fonts/OFL-Barlow.txt
   -------------------------------------------------------------------------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* --------------------------------------------------------------------------
   1. Design-Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Hausfarben – nach dem Telefonat vom 31.08. einen Tick heller gezogen */
  --gruen:        #2a8b5c;   /* RAL 6032 Signalgrün, aufgehellt – Hauptfarbe */
  --gruen-text:   #1f6b46;   /* dunklere Variante für grüne Schrift auf Weiß */
  --gruen-tief:   #22764e;   /* Hover und dezente Tiefe (Richtung RAL 6024) */
  --gruen-dunkel: #17553b;   /* dunkle Flächen, Footer */
  --gruen-hell:   #eef6f1;   /* zarter Grünschleier für Flächen */
  --gelb:         #f0de2e;   /* Zinkgelb – Akzent, sehr sparsam */

  /* Neutrale Töne */
  --schwarz:  #1a1d1b;
  --text:     #2c322f;
  --text-mid: #5c655f;
  --linie:    #dcdfda;
  --sand:     #f5f4f0;
  --weiss:    #ffffff;

  /* Typografie */
  --font-head: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Maße */
  --breite:   1220px;
  --breite-s: 860px;
  --radius:   4px;
  --header-h: 84px;

  --schatten:    0 2px 8px rgba(16, 64, 44, .06);
  --schatten-xl: 0 18px 48px rgba(16, 64, 44, .14);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Basis
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* clip statt hidden: verhindert seitliches Scrollen durch das ausgeblendete
   Mobil-Menü, ohne position:sticky im Header zu zerstören. */
html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.005em;
  color: var(--schwarz);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.2; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gruen); color: #fff; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gruen); color: #fff; padding: .8rem 1.4rem; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout-Helfer
   -------------------------------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--breite)); margin-inline: auto; }
.wrap-s { width: min(100% - 2.5rem, var(--breite-s)); margin-inline: auto; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--sand { background: var(--sand); }
.section--gruen { background: var(--gruen-dunkel); color: #e6ece8; }
.section--gruen h2, .section--gruen h3 { color: #fff; }

/* Kicker + Überschrift mit gelbem Strich (Wiedererkennung Briefpapier) */
.kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gruen-text);
  margin: 0 0 1rem;
}
.kicker::before {
  content: ""; width: 34px; height: 4px; background: var(--gelb); flex: none;
}
.section--gruen .kicker { color: var(--gelb); }
.section--gruen .kicker::before { background: var(--gelb); }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-mid);
}
.section--gruen .lead { color: #c9d6ce; }

.head-block { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.head-block--center { margin-inline: auto; text-align: center; }
.head-block--center .kicker { justify-content: center; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--gruen);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.9rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head);
  font-size: 1.1rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--btn-bg); border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease),
              color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--gruen-tief); border-color: var(--gruen-tief); transform: translateY(-2px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--gruen-dunkel); }

.btn--line { --btn-bg: transparent; --btn-fg: var(--gruen-text); border-color: var(--gruen); }
.btn--line:hover { background: var(--gruen); color: #fff; }

.btn--gelb { --btn-bg: var(--gelb); --btn-fg: var(--schwarz); }
.btn--gelb:hover { background: #e2d016; border-color: #e2d016; color: var(--schwarz); }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

.textlink {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gruen-text); text-decoration: none;
  border-bottom: 2px solid var(--gelb); padding-bottom: 2px;
  transition: gap .25s var(--ease), color .25s var(--ease);
}
.textlink:hover { gap: .9rem; color: var(--gruen-tief); }

/* --------------------------------------------------------------------------
   5. Kopfbereich
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--gruen-dunkel);
  color: #cfdcd4;
  font-size: .93rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 44px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gelb); }
.topbar__list { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; }
.topbar__item svg { width: 15px; height: 15px; color: var(--gelb); flex: none; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linie);
  transition: box-shadow .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 6px 24px rgba(16,64,44,.10); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.logo img { width: 46px; height: 46px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.75rem; letter-spacing: .01em; color: var(--gruen-text);
  text-transform: uppercase;
}
.logo__claim {
  font-size: .68rem; letter-spacing: .19em; text-transform: uppercase;
  color: var(--text-mid); font-weight: 600; margin-top: .28rem;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--schwarz); text-decoration: none; padding: .4rem 0;
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px; background: var(--gelb);
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--gruen-text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { padding: .75rem 1.4rem; font-size: 1rem; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 1px solid var(--linie); border-radius: var(--radius);
  cursor: pointer; align-items: center; justify-content: center;
}
.burger span {
  display: block; position: relative; width: 22px; height: 2px; background: var(--schwarz);
  transition: background .2s var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--schwarz);
  transition: transform .28s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -7px; }
.burger span::after  { top:  7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--gruen-dunkel); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13,50,35,.90) 0%, rgba(13,50,35,.68) 46%, rgba(13,50,35,.14) 100%),
    linear-gradient(to top, rgba(10,32,22,.68), transparent 52%);
}
.hero__inner {
  position: relative; z-index: 2;
  padding: clamp(5rem, 12vw, 9.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  max-width: 46rem;
}
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gelb); }
.hero__kicker { color: var(--gelb); }
.hero__kicker::before { background: var(--gelb); }
.hero__text { font-size: clamp(1.1rem, 1.7vw, 1.32rem); color: #d5e0d9; max-width: 36rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }

/* Faktenleiste unter dem Hero */
.facts { position: relative; z-index: 2; background: var(--gruen); }
.facts__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  color: #fff;
}
.fact { padding: 1.9rem 1.5rem; border-left: 1px solid rgba(255,255,255,.18); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact__num {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.5rem); line-height: 1.05;
  color: #fff; display: block;
}
.fact__num span { color: var(--gelb); }
.fact__label { font-size: .95rem; color: #d9e8e0; margin-top: .35rem; display: block; }

/* --------------------------------------------------------------------------
   7. Einleitung / Text-Bild
   -------------------------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
}
.split--flip .split__media { order: -1; }

.split__media { position: relative; aspect-ratio: 5 / 6; min-height: 380px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Grüner Rahmenversatz – ruhiges, handwerkliches Detail */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: -18px -18px 18px 18px;
  border: 3px solid var(--gruen); border-radius: var(--radius); z-index: 0;
}
.framed img { position: relative; z-index: 1; }
/* Auf der gespiegelten Seite läuft der Rahmen nach links aus. */
.split--flip .framed::before { inset: -18px 18px 18px -18px; }

.badge-jahr {
  position: absolute; z-index: 2; right: -14px; bottom: -14px;
  background: var(--gelb); color: var(--schwarz);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase;
  padding: 1rem 1.4rem; border-radius: var(--radius); line-height: 1.05;
  box-shadow: var(--schatten-xl);
}
.badge-jahr strong { display: block; font-size: 2.1rem; letter-spacing: .01em; }
.badge-jahr span { display: block; font-size: .78rem; letter-spacing: .1em; }

.checkliste { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .85rem; }
.checkliste li { display: flex; gap: .8rem; align-items: flex-start; }
.checkliste li svg { width: 22px; height: 22px; flex: none; color: var(--gruen); margin-top: .2rem; }

/* --------------------------------------------------------------------------
   8. Leistungen
   -------------------------------------------------------------------------- */
.leistungen {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}
.leistung {
  position: relative; display: flex; flex-direction: column;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.leistung:hover { transform: translateY(-6px); box-shadow: var(--schatten-xl); border-color: var(--gruen); }

.leistung__media { position: relative; aspect-ratio: 4 / 3; background: var(--gruen-hell); overflow: hidden; }
.leistung__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.leistung:hover .leistung__media img { transform: scale(1.05); }

.leistung__body { padding: 1.6rem 1.5rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.leistung__body h3 { margin-bottom: .45rem; }
.leistung__body p { color: var(--text-mid); font-size: 1rem; }
.leistung__mehr {
  margin-top: auto; padding-top: 1.1rem;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: .95rem; color: var(--gruen-text);
  display: inline-flex; align-items: center; gap: .45rem;
  transition: gap .25s var(--ease);
}
.leistung:hover .leistung__mehr { gap: .85rem; }

.leistungen-hinweis {
  margin-top: 2.6rem; padding: 1.6rem 1.8rem;
  background: var(--gruen-hell); border-left: 5px solid var(--gelb);
  border-radius: var(--radius);
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  justify-content: space-between;
}
.leistungen-hinweis p { max-width: 46rem; }

/* --------------------------------------------------------------------------
   9. Vorteile
   -------------------------------------------------------------------------- */
.vorteile { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.vorteil {
  padding: 2rem 1.6rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.vorteil:hover { background: rgba(255,255,255,.09); border-color: var(--gelb); }
.vorteil__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 2px solid var(--gelb); border-radius: var(--radius); margin-bottom: 1.2rem;
}
.vorteil__icon svg { width: 24px; height: 24px; color: var(--gelb); }
.vorteil h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.vorteil p { color: #b9c8c0; font-size: 1rem; }

/* --------------------------------------------------------------------------
   10. Referenzen / Galerie
   -------------------------------------------------------------------------- */
.galerie {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 1.1rem;
}
.galerie__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--gruen-hell); display: block; text-decoration: none;
}
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.galerie__item:hover img { transform: scale(1.06); }
.galerie__item--gross { grid-column: span 2; grid-row: span 2; }
.galerie__item--breit { grid-column: span 2; }

.galerie__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem .95rem;
  background: linear-gradient(to top, rgba(10,32,22,.88), transparent);
  color: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  letter-spacing: .03em;
  transform: translateY(6px); opacity: .95;
  transition: transform .3s var(--ease);
}
.galerie__item:hover .galerie__cap { transform: translateY(0); }
.galerie__cap small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .85rem; letter-spacing: 0; color: var(--gelb);
}

.galerie-fuss { margin-top: 2.6rem; text-align: center; }

/* --------------------------------------------------------------------------
   11. Einsatzgebiet
   -------------------------------------------------------------------------- */
.gebiet { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.radar {
  position: relative; aspect-ratio: 1; width: min(100%, 400px);
  margin: 2rem auto; display: grid; place-items: center;
}
.radar__ring {
  position: absolute; border: 1px dashed rgba(35,127,82,.35); border-radius: 50%;
}
.radar__ring--1 { inset: 0; }
.radar__ring--2 { inset: 16%; border-style: solid; border-color: rgba(35,127,82,.22); }
.radar__ring--3 { inset: 32%; border-style: dashed; }
.radar__fill {
  position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(35,127,82,.16) 0%, rgba(35,127,82,.04) 65%, transparent 70%);
}
.radar__center {
  position: relative; z-index: 2; text-align: center;
  background: var(--gruen); color: #fff; border-radius: 50%;
  width: 158px; height: 158px; display: grid; place-content: center; align-content: center;
  padding: 0 .9rem; box-shadow: var(--schatten-xl);
}
.radar__center strong { font-family: var(--font-head); font-size: 1.45rem; line-height: 1.1; display: block; }
.radar__center span {
  display: block; margin-top: .2rem;
  font-size: .74rem; letter-spacing: .06em; line-height: 1.35;
  text-transform: uppercase; color: var(--gelb);
}

/* --------------------------------------------------------------------------
   12. Kontakt
   -------------------------------------------------------------------------- */
.kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }

.kontakt-karte {
  background: #fff; color: var(--text);
  border-radius: var(--radius); padding: clamp(1.8rem, 3vw, 2.6rem);
  box-shadow: var(--schatten-xl);
}
.kontakt-karte h3 { margin-bottom: 1.4rem; }

.kontakt-zeile {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-top: 1px solid var(--linie);
}
.kontakt-zeile:first-of-type { border-top: 0; padding-top: 0; }
.kontakt-zeile__icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: var(--gruen-hell); border-radius: var(--radius);
}
.kontakt-zeile__icon svg { width: 20px; height: 20px; color: var(--gruen); }
.kontakt-zeile dt {
  font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--text-mid); font-weight: 600; margin-bottom: .15rem;
}
.kontakt-zeile dd { margin: 0; font-size: 1.12rem; font-weight: 600; color: var(--schwarz); }
.kontakt-zeile dd a { text-decoration: none; }
.kontakt-zeile dd a:hover { color: var(--gruen-text); }
.kontakt-zeile dd small { display: block; font-weight: 400; font-size: .92rem; color: var(--text-mid); }

.termin-hinweis {
  margin-top: 1.6rem; padding: 1.1rem 1.3rem;
  background: var(--gruen-hell); border-left: 5px solid var(--gelb);
  border-radius: var(--radius); font-size: 1rem; color: var(--text);
}
.termin-hinweis strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--gruen-dunkel); }

.kontakt-aktionen { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--gruen-dunkel); color: #a9bcb2; padding: clamp(3.5rem, 6vw, 5rem) 0 0; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer h4,
.footer__titel {
  font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: #fff;
  text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.footer a { color: #a9bcb2; text-decoration: none; transition: color .2s var(--ease); }
/* Klickflächen mindestens 24 px hoch */
.footer ul a { display: inline-block; padding: .2rem 0; min-height: 24px; }
.footer a:hover { color: var(--gelb); }
.footer .logo__name { color: #fff; }
.footer .logo__claim { color: #8fa79b; }
.footer__intro { margin-top: 1.2rem; font-size: .98rem; max-width: 26rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.4rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .9rem;
}
.footer__bottom ul { display: flex; gap: 1.4rem; }

/* Mobile Anruf-Leiste */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; background: var(--gruen); box-shadow: 0 -4px 18px rgba(0,0,0,.18);
}
.callbar a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem .5rem; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
}
.callbar a + a { border-left: 1px solid rgba(255,255,255,.25); }
.callbar svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   14. Bild-Platzhalter (bis echte Fotos vorliegen)
   -------------------------------------------------------------------------- */
.ph {
  width: 100%; height: 100%;
  display: grid; place-content: center; place-items: center; gap: .4rem;
  background:
    repeating-linear-gradient(45deg, rgba(35,127,82,.05) 0 12px, rgba(35,127,82,.10) 12px 24px);
  color: var(--gruen-text); text-align: center; padding: 1rem;
  font-family: var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  border: 1px dashed rgba(35,127,82,.4);
}
.ph span { font-size: .95rem; font-weight: 600; }
.ph small { font-family: var(--font-body); letter-spacing: 0; text-transform: none; font-size: .8rem; opacity: .7; }
/* Im Hero bleibt der Platzhalter stumm – der Text darüber muss lesbar bleiben. */
.hero .ph { background: rgba(255,255,255,.04); border: 0; }
.hero .ph span, .hero .ph small { display: none; }

/* --------------------------------------------------------------------------
   15. Einblend-Animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .leistungen { grid-template-columns: repeat(2, 1fr); }
  .vorteile   { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .galerie { grid-auto-rows: 170px; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw);
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: calc(var(--header-h) + 1.5rem) 1.8rem 2rem;
    box-shadow: -12px 0 40px rgba(0,0,0,.16);
    transform: translateX(105%); transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--linie); }
  .nav__link { display: block; padding: 1rem 0; font-size: 1.25rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.6rem; justify-content: center; }
  .burger { display: inline-flex; }

  .nav-overlay {
    position: fixed; inset: 0; background: rgba(10,32,22,.5); z-index: 99;
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
  }
  .nav-overlay.is-visible { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  /* backdrop-filter macht den Header zum Bezugsrahmen für das fixierte Menü
     und schneidet es auf Kopfhöhe ab. Mobil daher deckend ohne Filter. */
  .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  /* Burger bleibt über dem geöffneten Menü erreichbar */
  .burger { position: relative; z-index: 2; background: #fff; }
  .split__media { min-height: 0; }

  .split, .gebiet, .kontakt { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__media { order: 0; }
  .framed::before,
  .split--flip .framed::before { inset: -10px -10px 10px 10px; }

  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.18); }

  .galerie { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .galerie__item--gross { grid-column: span 2; grid-row: span 2; }

  .callbar { display: flex; }
  .footer { padding-bottom: 56px; }
  body { padding-bottom: 0; }
}

@media (max-width: 620px) {
  .wrap, .wrap-s { width: calc(100% - 2rem); }
  .topbar__inner { justify-content: center; min-height: 40px; padding: .4rem 0; }
  .topbar__list { gap: 1rem; justify-content: center; }
  .topbar__hinweis { display: none; }

  .leistungen { grid-template-columns: 1fr; }
  .vorteile   { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .galerie { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .galerie__item--gross, .galerie__item--breit { grid-column: span 1; grid-row: span 1; }

  .hero__actions .btn { width: 100%; justify-content: center; }
  .badge-jahr { right: 0; bottom: -10px; padding: .8rem 1rem; }
  .leistungen-hinweis { flex-direction: column; align-items: flex-start; }
}

/* Sehr schmale Geräte (z. B. 320 px): Kopfzeile und Faktenleiste verdichten */
@media (max-width: 380px) {
  .header__inner { gap: .75rem; }
  .logo { gap: .6rem; }
  .logo__name { font-size: 1.5rem; }
  .logo__claim { letter-spacing: .08em; font-size: .62rem; }
  .fact { padding-right: .5rem; }
  .fact__num { font-size: 1.35rem; }
}

/* --------------------------------------------------------------------------
   17. Druck
   -------------------------------------------------------------------------- */
@media print {
  .header, .topbar, .callbar, .hero__media, .btn { display: none !important; }
  body { color: #000; }
  .section { padding: 1.5rem 0; }
}

/* ==========================================================================
   18. Unterseiten
   ========================================================================== */

/* --- Seitenkopf ---------------------------------------------------------- */
.pagehead {
  position: relative; overflow: hidden;
  background: var(--gruen-dunkel); color: #d5e0d9;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem);
}
.pagehead::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,222,46,.10), transparent 68%);
  pointer-events: none;
}
.pagehead__inner { position: relative; z-index: 1; max-width: 48rem; }
.pagehead h1 { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.9rem); margin-bottom: .3em; }
.pagehead .lead { color: #c9d6ce; }
.pagehead .kicker { color: var(--gelb); }

.krumen {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: center;
  list-style: none; margin: 0 0 1.4rem; padding: 0;
  font-size: .9rem; color: #9fb3a8;
}
.krumen a { color: #cfdcd4; text-decoration: none; }
.krumen a:hover { color: var(--gelb); }
.krumen li::after { content: "›"; margin-left: .45rem; opacity: .6; }
.krumen li:last-child::after { content: ""; }
.krumen li[aria-current] { color: #fff; }

/* --- Ankerleiste (Leistungen) -------------------------------------------- */
.ankerleiste {
  position: sticky; top: var(--header-h); z-index: 60;
  background: var(--sand); border-bottom: 1px solid var(--linie);
}
.ankerleiste__inner {
  display: flex; gap: .5rem; overflow-x: auto; padding: .85rem 0;
  scrollbar-width: thin;
}
.ankerleiste a {
  flex: none; padding: .5rem 1.05rem; border-radius: 100px;
  border: 1px solid var(--linie); background: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--text); text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.ankerleiste a:hover, .ankerleiste a.is-active {
  background: var(--gruen); border-color: var(--gruen); color: #fff;
}

/* --- Leistung im Detail --------------------------------------------------- */
.detail {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--linie);
  scroll-margin-top: calc(var(--header-h) + 70px);
}
.detail:first-of-type { border-top: 0; }
.detail--flip .detail__media { order: -1; }

.detail__media { position: relative; aspect-ratio: 4 / 3; }
.detail__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

.detail__nr {
  position: absolute; z-index: 2; left: -12px; top: -12px;
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--gelb); color: var(--schwarz); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; font-size: 1.6rem;
  box-shadow: var(--schatten-xl);
}

.detail h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.detail__liste { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.detail__liste li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1rem; }
.detail__liste li::before {
  content: ""; flex: none; width: 9px; height: 9px; margin-top: .55rem;
  background: var(--gelb); border-radius: 2px;
}

/* --- Hinweiskasten -------------------------------------------------------- */
.hinweis {
  margin-top: 1.6rem; padding: 1.15rem 1.4rem;
  background: var(--gruen-hell); border-left: 5px solid var(--gelb);
  border-radius: var(--radius); font-size: 1rem;
}
/* nur die erste Auszeichnung ist die Überschrift; fett gesetzte Wörter im Text bleiben im Fluss */
.hinweis > strong:first-child { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--gruen-dunkel); }
.hinweis--warn { background: #fdf6e3; }

/* --- Ablauf in Schritten -------------------------------------------------- */
.schritte { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: schritt; }
.schritt { position: relative; padding-top: 2.6rem; }
.schritt::before {
  counter-increment: schritt; content: counter(schritt);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1;
  color: var(--gelb);
}
.schritt::after {
  content: ""; position: absolute; top: 1.15rem; left: 2.4rem; right: -1rem;
  height: 2px; background: var(--linie);
}
.schritt:last-child::after { display: none; }
.schritt h3 { font-size: 1.25rem; margin-bottom: .35rem; }
.schritt p { font-size: 1rem; color: var(--text-mid); }
.section--gruen .schritt p { color: #b9c8c0; }
.section--gruen .schritt::after { background: rgba(255,255,255,.2); }

/* --- Zahlenband ----------------------------------------------------------- */
.band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.band__item { padding: 1.8rem; background: var(--gruen-hell); border-radius: var(--radius); }
.band__item strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 2.2rem; line-height: 1.05; color: var(--gruen-dunkel);
}
.band__item span { font-size: 1rem; color: var(--text-mid); }

/* --- Referenzgalerie ------------------------------------------------------ */
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter button {
  padding: .55rem 1.15rem; border-radius: 100px;
  border: 1px solid var(--linie); background: #fff; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.filter button:hover { border-color: var(--gruen); color: var(--gruen-text); }
.filter button.is-active { background: var(--gruen); border-color: var(--gruen); color: #fff; }

.raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.raster__item {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--gruen-hell);
}
.raster__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.raster__item:hover img { transform: scale(1.06); }
.raster__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: left;
  padding: 1.7rem 1.1rem .9rem;
  background: linear-gradient(to top, rgba(10,32,22,.9), transparent);
  color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
}
.raster__item figcaption small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .85rem; color: var(--gelb);
}
.raster__item[hidden] { display: none; }

/* --- Lightbox ------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 4vmin;
  background: rgba(8,26,18,.93);
  opacity: 0; pointer-events: none; transition: opacity .28s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: var(--radius); }
.lightbox__cap {
  margin-top: 1rem; color: #fff; text-align: center;
  font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .03em;
}
.lightbox__cap small { display: block; font-family: var(--font-body); color: var(--gelb); font-size: .9rem; }
.lightbox__btn {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); color: #fff; cursor: pointer;
}
.lightbox__btn:hover { background: rgba(255,255,255,.24); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); color: #fff; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }
.lightbox svg { width: 22px; height: 22px; }

/* --- Fließtext für Impressum und Datenschutz ------------------------------ */
.prose { max-width: 46rem; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--linie);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4rem; }
.prose a { color: var(--gruen-text); text-underline-offset: 3px; }
.prose address { font-style: normal; }
.prose .stand { font-size: .95rem; color: var(--text-mid); margin-top: 2.5rem; }

.inhalt-nav {
  background: var(--gruen-hell); border-radius: var(--radius);
  padding: 1.4rem 1.6rem; margin-bottom: 2.5rem;
}
.inhalt-nav h2 {
  font-size: 1.1rem !important; margin: 0 0 .7rem !important;
  border: 0 !important; padding: 0 !important;
  letter-spacing: .1em; text-transform: uppercase;
}
.inhalt-nav ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.inhalt-nav li { margin-bottom: .3rem; }
.inhalt-nav a { color: var(--gruen-text); }

/* --- Kontaktseite --------------------------------------------------------- */
.kontakt-gross { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.kontakt-gross .kontakt-karte { box-shadow: var(--schatten-xl); border: 1px solid var(--linie); }

.telefon-kachel {
  display: block; text-decoration: none;
  background: var(--gruen); color: #fff; border-radius: var(--radius);
  padding: 2rem 2.2rem; margin-bottom: 1.4rem;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.telefon-kachel:hover { background: var(--gruen-tief); transform: translateY(-2px); }
.telefon-kachel span {
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gelb);
}
.telefon-kachel strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; margin-top: .2rem;
}

/* --- 404 ------------------------------------------------------------------ */
.fehler { text-align: center; padding: clamp(4rem, 12vw, 9rem) 0; }
.fehler__code {
  font-family: var(--font-head); font-weight: 700; line-height: 1;
  font-size: clamp(5rem, 18vw, 11rem); color: var(--gruen-hell);
  letter-spacing: -.02em;
}
.fehler h1 { margin-top: -.35em; }
.fehler .btn { margin-top: 1.4rem; }

/* --- Responsive für die Unterseiten -------------------------------------- */
@media (max-width: 1040px) {
  .schritte { grid-template-columns: repeat(2, 1fr); }
  .schritt:nth-child(2)::after { display: none; }
  .raster { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ankerleiste { top: 0; }
  .detail, .kontakt-gross { grid-template-columns: 1fr; }
  .detail--flip .detail__media { order: 0; }
  .detail__nr { left: 0; top: -14px; }
  .inhalt-nav ol { columns: 1; }
}

@media (max-width: 620px) {
  .schritte { grid-template-columns: 1fr; }
  .schritt::after { display: none; }
  .raster { grid-template-columns: 1fr; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: .4rem; }
  .lightbox__nav--next { right: .4rem; }
}

/* ==========================================================================
   19. Bildreihen, Bildstreifen und weitere Projektbilder (Kundenfotos 10/2026)
   ========================================================================== */

/* --- Bildreihen auf „Über uns“ -------------------------------------------- */
.bildreihe { display: grid; gap: 1.2rem; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.bildreihe--3 { grid-template-columns: repeat(3, 1fr); }
.bildreihe--4 { grid-template-columns: repeat(4, 1fr); }
.bildreihe figure { margin: 0; }
.bildreihe img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--gruen-hell);
}
.bildreihe figcaption {
  margin-top: .65rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .02em; color: var(--gruen-dunkel);
}
.bildreihe figcaption small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .92rem; letter-spacing: 0; color: var(--text-mid);
}

/* --- Bildstreifen unter jeder Leistung ------------------------------------ */
.detail__bilder { display: grid; gap: .9rem; }
.detail--flip .detail__bilder { order: -1; }
.streifen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.streifen a {
  display: block; overflow: hidden; aspect-ratio: 4 / 3;
  border-radius: var(--radius); background: var(--gruen-hell);
}
.streifen img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.streifen a:hover img, .streifen a:focus-visible img { transform: scale(1.06); }
.streifen__mehr { margin: .15rem 0 0; font-size: .98rem; }

/* --- Referenzen: weitere Bilder nachladen -------------------------------- */
/* figure bringt vom Browser 40px Seitenrand mit; die Kacheln sollen die Spalte füllen */
.raster__item { margin: 0; }
.raster-mehr { margin-top: 2.4rem; text-align: center; }
.raster-mehr[hidden] { display: none; }

@media (max-width: 1040px) {
  .bildreihe--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .detail--flip .detail__bilder { order: 0; }
}
@media (max-width: 620px) {
  .bildreihe--3 { grid-template-columns: 1fr; }
  .bildreihe--4 { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .bildreihe--4 figcaption { font-size: 1rem; }
  .bildreihe--4 figcaption small { font-size: .82rem; }
  .streifen { gap: .6rem; }
}

/* --- Credit-Zeile im Footer ----------------------------------------------- */
.footer__credit {
  margin: 0; padding: 0 0 1.5rem;
  text-align: center; font-size: .82rem; letter-spacing: .02em; color: #8fa89b;
}
.footer__credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.18); }
.footer__credit a:hover { color: var(--gelb); border-bottom-color: var(--gelb); }
.footer__credit .herz { color: #ff4f5a; font-size: 1.05em; }
