/*
Theme Name: KleWaTec
Theme URI: https://www.klewatec.de
Author: NK IT Service, Nikolaj Kinas
Author URI: https://www.nk-it.de
Description: Eigenes Theme der KleWaTec GmbH, Rastatt. Bewässerungsanlagen für Gartencenter, Grünanlagen und Gärten sowie Laserzuschnitt technischer Textilien. Enthält Kontaktformular mit SMTP-Versand und Selbstaktualisierung aus dem privaten GitHub-Repository.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietär, Nutzung durch die KleWaTec GmbH
Text Domain: klewatec
*/

/* ==========================================================================
   KleWaTec GmbH, Rastatt - Gestaltung und Programmierung: NK IT Service
   Konzept "Die Wasserlinie": Tropfen und Welle aus dem Logo werden zur
   durchlaufenden gruenen Linie; Inhalte stehen in Sektoren mit klaren Kanten.
   Farben aus dem Kundenlogo gemessen (#1d3a8f, #009fe3, #13a983).
   ========================================================================== */

/* ---------- Schriften, selbst gehostet ---------- */
@font-face {
  font-family: 'Domine';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/domine-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Domine';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/domine-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/onest-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/onest-var-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Farben: Hex-Grundlage, unten in OKLCH ueberschrieben */
  --tief: #10224e;
  --tief-2: #172f63;
  --marke: #1d3a8f;
  --marke-dunkel: #162f76;
  --wasser: #009fe3;
  --wasser-blass: #dcf0fb;
  --smaragd: #13a983;
  --smaragd-hell: #3ecfa6;
  --smaragd-blass: #dff4ee;
  --text: #16233d;
  --text-2: #4a5670;
  --papier: #fbfcfe;
  --flaeche: #eef3f8;
  --flaeche-2: #e3ebf3;
  --linie: #cfdae6;
  --linie-stark: #a9bcd0;
  --auf-dunkel: #e7edf7;
  --auf-dunkel-2: #b3c2da;

  --serif: 'Domine', Georgia, 'Times New Roman', serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --abschnitt: clamp(3.6rem, 7vw, 6rem);
  --kopf-hoehe: 96px;

  /* Rechteckige Formensprache (Vorbild BMW-Corporate: "engineered precision"):
     Knoepfe, Felder und Bilder ohne Rundung, Kreise nur an runden Bedienknoepfen. */
  --r-klein: 0px;

  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

  --z-karte: 1;
  /* Der klebende Kopf bildet einen eigenen Stapelkontext. Die Schublade steckt
     darin, deshalb muss der Schleier UNTER dem Kopf liegen, nicht dazwischen. */
  --z-schleier: 30;
  --z-kopf: 40;
  --z-nav: 60;
  --z-lupe: 90;
}

@supports (color: oklch(50% 0.1 250)) {
  :root {
    --tief: oklch(25.5% 0.083 266);
    --tief-2: oklch(32% 0.098 266);
    --marke: oklch(38.3% 0.145 265.5);
    --marke-dunkel: oklch(33% 0.135 265.5);
    --wasser: oklch(66.7% 0.147 237.8);
    --wasser-blass: oklch(94.5% 0.028 237.8);
    --smaragd: oklch(65.5% 0.128 169);
    --smaragd-hell: oklch(78% 0.126 168);
    --smaragd-blass: oklch(95% 0.026 169);
    --text: oklch(25% 0.05 265);
    --text-2: oklch(45.5% 0.045 268);
    --papier: oklch(99% 0.004 250);
    --flaeche: oklch(96% 0.009 248);
    --flaeche-2: oklch(93.5% 0.013 248);
    --linie: oklch(87% 0.019 248);
    --linie-stark: oklch(78% 0.028 248);
    --auf-dunkel: oklch(93.5% 0.014 265);
    --auf-dunkel-2: oklch(80% 0.032 265);
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* clip statt hidden: die geparkte Navigations-Schublade darf die Seite nicht
     breiter machen, der klebende Kopf muss aber kleben bleiben. */
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  /* Gewichtskontrast nach BMW-Vorbild: Ueberschriften 700, Lauftext leicht */
  font-weight: 350;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--tief);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.014em;
  margin: 0 0 0.7em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.62rem, 1.25rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.06rem + 0.6vw, 1.42rem); line-height: 1.28; }
h4 { font-size: 1.07rem; line-height: 1.35; }

p, ul, ol, dl, figure, table { margin: 0 0 1.15rem; }
p:last-child, ul:last-child, dl:last-child { margin-bottom: 0; }

a { color: var(--marke); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--marke-dunkel); text-decoration-thickness: 2px; }

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

strong, b { font-weight: 650; }

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

.springmarke {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--tief); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--r-klein); z-index: 100;
  transition: top 0.18s var(--ease-out);
}
.springmarke:focus { top: 0.5rem; color: #fff; }

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

.abschnitt {
  padding-block: var(--abschnitt);
  scroll-margin-top: calc(var(--kopf-hoehe) + 1rem);
}
.abschnitt.eng { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.abschnitt.flaeche { background: var(--flaeche); }
.abschnitt.dunkel { background: var(--tief); color: var(--auf-dunkel); }
.abschnitt.dunkel h2, .abschnitt.dunkel h3, .abschnitt.dunkel h4 { color: #fff; }
.abschnitt.dunkel a { color: var(--smaragd-hell); }
.abschnitt.dunkel a:hover { color: #fff; }

.mass { max-width: 68ch; }
.mass-eng { max-width: 58ch; }

.vorspann {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.22rem);
  line-height: 1.56;
  /* erbt die Textfarbe des Abschnitts, sonst steht dunkler Text auf dunklem Grund */
  color: inherit;
}

/* Die Wasserlinie: duenne gruene Kante, Motiv aus dem Logo */
.wasserlinie {
  border: 0;
  height: 3px;
  margin: 0;
  background: linear-gradient(90deg, var(--smaragd) 0%, var(--wasser) 55%, var(--marke) 100%);
}

/* ---------- Kopf ---------- */
.leiste {
  background: var(--tief);
  color: var(--auf-dunkel);
  font-size: 0.86rem;
}
.leiste .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.3rem 1.4rem;
  min-height: 38px;
  padding-block: 0.32rem;
}
.leiste p { margin: 0; }
.leiste-marke { color: #fff; font-weight: 600; letter-spacing: 0.01em; }
.leiste-kontakt { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; align-items: center; }
.leiste a {
  color: var(--smaragd-hell); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.leiste a:hover { color: #fff; text-decoration: underline; }
.leiste svg { width: 15px; height: 15px; flex: none; }
/* Auf schmalen Telefonen bleibt in der Kopfzeile nur das Wichtigste stehen. */
@media (max-width: 620px) {
  .leiste-kontakt span { display: none; }
}

.kopf {
  position: sticky; top: 0; z-index: var(--z-kopf);
  /* Deckend und ohne backdrop-filter: ein Filter am Kopf wuerde zum Bezugsrahmen
     fuer die fixierte Navigations-Schublade und diese in Kopfhoehe einsperren. */
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  min-height: var(--kopf-hoehe);
  padding-block: 0.6rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { width: 208px; height: auto; }
@media (max-width: 560px) { .logo img { width: 168px; } }

.nav-schalter {
  display: none;
  align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 600; color: var(--tief);
  background: transparent; border: 1.5px solid var(--linie-stark);
  border-radius: var(--r-klein); padding: 0.5rem 0.8rem; cursor: pointer;
}
.nav-schalter svg { width: 20px; height: 20px; }
.nav-schalter:hover { border-color: var(--marke); }

.haupt-nav ul {
  list-style: none; display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.1rem 0.25rem; margin: 0; padding: 0;
}
.haupt-nav a {
  display: block; padding: 0.5rem 0.62rem;
  color: var(--text); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  border-radius: var(--r-klein);
  transition: color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}
.haupt-nav a:hover { color: var(--marke); background: var(--flaeche); }
.haupt-nav a[aria-current="page"] {
  color: var(--marke); font-weight: 650;
  box-shadow: inset 0 -3px 0 var(--smaragd);
}
.nav-ruf { display: none; }
.nav-schliessen { display: none; }

@media (max-width: 1080px) {
  .nav-schalter { display: inline-flex; }
  .haupt-nav {
    position: fixed; z-index: var(--z-nav);
    inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--papier);
    border-left: 1px solid var(--linie);
    box-shadow: -20px 0 50px -30px rgba(16, 34, 78, 0.5);
    /* Die Schublade parkt NICHT ausserhalb des Viewports: ein fixiertes Element
       rechts daneben macht die Seite auf dem Telefon seitlich verschiebbar
       (overflow-x am html greift bei position: fixed nicht). Stattdessen bleibt
       sie an Ort und Stelle und wird aus- und eingeblendet. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out),
                visibility 0s linear 0.24s;
    padding: 1.4rem var(--gutter) 2rem;
    overflow-y: auto;
  }
  body.nav-offen .haupt-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out), visibility 0s;
  }
  /* Die Schublade deckt den Kopf ab, deshalb schliesst sie ueber einen eigenen
     Knopf, nicht nur ueber den Schleier. */
  .nav-schliessen {
    display: inline-flex; align-items: center; gap: 0.45rem;
    position: absolute; top: 1rem; right: var(--gutter);
    font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--tief);
    background: transparent; border: 1.5px solid var(--linie-stark);
    border-radius: var(--r-klein); padding: 0.5rem 0.8rem; cursor: pointer;
  }
  .nav-schliessen svg { width: 18px; height: 18px; }
  .nav-schliessen:hover { border-color: var(--marke); }
  .haupt-nav ul { flex-direction: column; align-items: stretch; gap: 0.1rem; margin-top: 4.2rem; }
  .haupt-nav a { padding: 0.8rem 0.4rem; font-size: 1.06rem; border-bottom: 1px solid var(--linie); border-radius: 0; }
  .haupt-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--smaragd); }
  .nav-ruf {
    display: block; margin-top: 1.4rem;
  }
  /* Der Knopf in der Schublade darf nicht von den Listen-Linkregeln
     ueberschrieben werden (Farbe und Anzeigeart). */
  .haupt-nav a.knopf {
    display: inline-flex; width: auto;
    padding: 0.8rem 1.5rem;
    border: 1.5px solid transparent; border-radius: 0;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em;
    background: var(--marke); color: #fff;
    box-shadow: none;
  }
  .haupt-nav a.knopf:hover { background: var(--tief); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .haupt-nav { transition: none; }
}

.nav-schleier {
  position: fixed; inset: 0; z-index: var(--z-schleier);
  background: rgba(16, 34, 78, 0.42);
  border: 0; padding: 0; margin: 0; cursor: pointer;
}

/* Versal-Verweis nach BMW-Vorbild: kleine, weit laufende Grossbuchstaben mit Winkel */
.mehr-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--marke); text-decoration: none;
}
/* Winkel aus Kanten statt aus der Schrift (Sonderzeichen fehlt im Font-Subset) */
.mehr-link::after {
  content: "";
  width: 0.42em; height: 0.42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease-out);
}
.mehr-link:hover { color: var(--marke-dunkel); text-decoration: underline; text-underline-offset: 0.25em; }
.mehr-link:hover::after { transform: translateX(3px) rotate(45deg); }
.dunkel .mehr-link { color: var(--smaragd-hell); }
.dunkel .mehr-link:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .mehr-link:hover::after { transform: rotate(45deg); }
}

/* ---------- Knoepfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.5rem;
  border-radius: 0;
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
              border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.knopf svg { width: 18px; height: 18px; flex: none; }
.knopf:hover { transform: translateY(-1px); }
.knopf-voll { background: var(--marke); color: #fff; }
.knopf-voll:hover { background: var(--tief); color: #fff; }
.knopf-kontur { border-color: var(--marke); color: var(--marke); background: transparent; }
.knopf-kontur:hover { background: var(--marke); color: #fff; }
/* Auf dunklem Grund drehen sich die Farben. Zwei Klassen am Knopf selbst, damit
   die allgemeine Linkfarbe dunkler Abschnitte den Text nicht ueberschreibt. */
.dunkel .knopf.knopf-voll, .held-panel .knopf.knopf-voll {
  background: var(--smaragd-hell); color: var(--tief);
}
.dunkel .knopf.knopf-voll:hover, .held-panel .knopf.knopf-voll:hover {
  background: #fff; color: var(--tief);
}
.dunkel .knopf.knopf-kontur, .held-panel .knopf.knopf-kontur {
  border-color: var(--auf-dunkel-2); color: var(--auf-dunkel); background: transparent;
}
.dunkel .knopf.knopf-kontur:hover, .held-panel .knopf.knopf-kontur:hover {
  border-color: #fff; background: transparent; color: #fff;
}
.held-panel a:not(.knopf) { color: var(--smaragd-hell); }
.held-panel a:not(.knopf):hover { color: #fff; }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }

/* ---------- Aufmacher ---------- */
.held {
  background:
    radial-gradient(46rem 24rem at 12% -10%, var(--wasser-blass) 0%, transparent 62%),
    radial-gradient(40rem 22rem at 96% 4%, var(--smaragd-blass) 0%, transparent 58%),
    var(--flaeche);
  border-bottom: 3px solid var(--smaragd);
}
.held-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.held-bild { margin: 0; position: relative; }
.held-bild img {
  width: 100%; height: clamp(230px, 42vw, 480px); object-fit: cover;
}
.held-panel {
  background: var(--tief); color: var(--auf-dunkel);
  padding: clamp(1.6rem, 4vw, 2.8rem) var(--gutter) clamp(1.8rem, 4vw, 2.8rem);
}
.held-panel h1 { color: #fff; }
.held-panel p { color: var(--auf-dunkel); }
.held-marker {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--smaragd-hell); margin: 0 0 0.9rem;
}
.held-marker svg { width: 16px; height: 16px; }
.held-fuss {
  margin: 1.5rem 0 0; padding-top: 1.1rem;
  border-top: 1px solid rgba(231, 237, 247, 0.22);
  display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem;
  font-size: 0.92rem; color: var(--auf-dunkel-2);
}
.held-fuss span { display: inline-flex; align-items: center; gap: 0.45rem; }
.held-fuss svg { width: 15px; height: 15px; color: var(--smaragd-hell); flex: none; }

@media (min-width: 900px) {
  .held-raster {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    padding-block: clamp(2.4rem, 4vw, 3.6rem);
  }
  .held-panel h1 { font-size: clamp(2rem, 1.1rem + 2vw, 2.9rem); }
  /* Das Bild reicht immer bis zur Panelkante, sonst haengt der gruene Versatz
     des Panels im Leeren. */
  .held-bild { grid-column: 5 / -1; grid-row: 1; align-self: stretch; display: flex; }
  .held-bild img {
    height: 100%; min-height: clamp(360px, 40vw, 520px);
    border-radius: var(--r-klein);
  }
  .held-panel {
    grid-column: 1 / 7; grid-row: 1;
    z-index: var(--z-karte);
    border-radius: var(--r-klein);
    padding: clamp(1.8rem, 3vw, 2.6rem);
    box-shadow: 24px 24px 0 -12px rgba(19, 169, 131, 0.28);
  }
}

/* Kopf einer Unterseite */
.seiten-kopf { background: var(--tief); color: var(--auf-dunkel); }
.seiten-kopf .wrap { padding-block: clamp(2rem, 5vw, 3.4rem); }
.seiten-kopf h1 { color: #fff; margin-bottom: 0.5rem; }
.seiten-kopf p { color: var(--auf-dunkel); max-width: 62ch; margin: 0; }
.brotkrumen {
  margin: 0 0 1rem; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem;
  font-size: 0.86rem; color: var(--auf-dunkel-2);
}
.brotkrumen a { color: var(--smaragd-hell); text-decoration: none; }
.brotkrumen a:hover { color: #fff; text-decoration: underline; }
.brotkrumen li + li::before { content: "/"; margin-right: 0.5rem; color: var(--auf-dunkel-2); }

/* ---------- Wechselreihen (Leistungen) ---------- */
.reihe {
  display: grid; gap: clamp(1.4rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
.reihe + .reihe { margin-top: clamp(2.6rem, 6vw, 4.6rem); }
@media (min-width: 900px) {
  .reihe { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .reihe.gedreht .reihe-text { order: 2; }
  .reihe.gedreht .reihe-bild { order: 1; }
  .reihe.breit-bild { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.reihe-bild { margin: 0; }
.reihe-bild img { width: 100%; border-radius: var(--r-klein); }
.reihe-text h2, .reihe-text h3 { margin-bottom: 0.5rem; }

figcaption {
  margin-top: 0.5rem;
  font-size: 0.86rem; line-height: 1.45;
  font-weight: 400;
  color: var(--text-2);
}

/* ---------- Listen ---------- */
.haken { list-style: none; padding: 0; margin: 0 0 1.15rem; display: grid; gap: 0.55rem; }
.haken li { position: relative; padding-left: 1.85rem; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 1.1rem; height: 0.62rem;
  border-left: 2.5px solid var(--smaragd); border-bottom: 2.5px solid var(--smaragd);
  transform: rotate(-45deg);
}
.dunkel .haken li::before { border-color: var(--smaragd-hell); }

.punkte { list-style: none; padding: 0; margin: 0 0 1.15rem; display: grid; gap: 0.55rem; }
.punkte li { position: relative; padding-left: 1.3rem; }
.punkte li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.62em;
  width: 0.42rem; height: 0.42rem; border-radius: 50%;
  background: var(--wasser);
}

/* Wertliste: technische Angaben ohne Kartenoptik */
.werte { display: grid; gap: 0; margin: 1.4rem 0; }
.werte > div {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem 1.5rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--linie);
}
.werte > div:last-child { border-bottom: 1px solid var(--linie); }
.werte dt { color: var(--text-2); font-size: 0.93rem; }
.werte dd {
  margin: 0; font-weight: 600; color: var(--tief);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 620px) {
  .werte > div { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: baseline; }
}
.dunkel .werte > div { border-color: rgba(231, 237, 247, 0.2); }
.dunkel .werte dt { color: var(--auf-dunkel-2); }
.dunkel .werte dd { color: #fff; }

/* ---------- Zahlenband ---------- */
.zahlen {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0;
}
.zahlen > div { padding-top: 1rem; border-top: 3px solid var(--smaragd-hell); }
.zahlen dt {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem);
  color: #fff; line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.zahlen dd { margin: 0.35rem 0 0; color: var(--auf-dunkel); font-size: 0.96rem; line-height: 1.5; }

/* ---------- Galerie ---------- */
.galerie {
  display: grid; gap: clamp(0.7rem, 2vw, 1.1rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0;
}
.galerie figure { margin: 0; }
.galerie img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-klein);
  background: var(--flaeche-2);
}
.galerie.hoch img { aspect-ratio: 3 / 4; }
.galerie .weit { grid-column: span 2; }
@media (max-width: 620px) { .galerie .weit { grid-column: span 1; } }

.plan-bild { margin: 0; }
.plan-bild img {
  width: 100%; border: 1px solid var(--linie); border-radius: var(--r-klein);
  background: #fff;
}

/* Schema-Grafiken (eigene Zeichnungen) */
.schema {
  margin: 0;
  background: #fff;
  border: 1px solid var(--linie);
  border-radius: var(--r-klein);
  padding: clamp(0.8rem, 2vw, 1.4rem);
}
.schema img { width: 100%; }

/* ---------- Ablauf (Wasserlinie mit Ventilen) ---------- */
.ablauf { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.6rem; }
.ablauf li { position: relative; padding-left: 2.6rem; }
.ablauf li::before {
  content: ""; position: absolute; left: 0.42rem; top: 0.1rem;
  width: 0.82rem; height: 0.82rem; border-radius: 50%;
  background: var(--papier); border: 3px solid var(--smaragd);
}
.ablauf li:not(:last-child)::after {
  content: ""; position: absolute; left: 0.78rem; top: 1.1rem; bottom: -1.6rem;
  width: 2px; background: var(--linie);
}
.ablauf h3 { margin-bottom: 0.25rem; }
.ablauf p { margin: 0; color: var(--text-2); }
.dunkel .ablauf li::before { background: var(--tief); border-color: var(--smaragd-hell); }
.dunkel .ablauf li:not(:last-child)::after { background: rgba(231, 237, 247, 0.25); }
.dunkel .ablauf p { color: var(--auf-dunkel-2); }
@media (min-width: 860px) {
  .ablauf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem clamp(1rem, 2vw, 1.8rem); }
  .ablauf li { padding-left: 0; padding-top: 2.1rem; }
  .ablauf li::before { left: 0; top: 0.5rem; }
  .ablauf li:not(:last-child)::after {
    left: 1.2rem; right: -1.2rem; top: 0.88rem; bottom: auto; width: auto; height: 2px;
  }
}

/* ---------- Zeitstrahl (Historie) ---------- */
.zeitstrahl { list-style: none; margin: 0; padding: 0; }
.zeitstrahl li {
  position: relative;
  padding: 0 0 1.5rem 2.2rem;
  border-left: 2px solid var(--linie);
}
.zeitstrahl li:last-child { border-left-color: transparent; padding-bottom: 0; }
.zeitstrahl li::before {
  content: ""; position: absolute; left: -0.42rem; top: 0.5rem;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--wasser); box-shadow: 0 0 0 3px var(--papier);
}
.zeitstrahl b {
  display: block; font-family: var(--serif); font-weight: 700;
  color: var(--tief); font-variant-numeric: tabular-nums;
  font-size: 1.06rem;
}
.zeitstrahl p { margin: 0.15rem 0 0; }
.flaeche .zeitstrahl li::before { box-shadow: 0 0 0 3px var(--flaeche); }

/* ---------- Team ---------- */
.team {
  display: grid; gap: clamp(1rem, 2.5vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
}
.team figure {
  margin: 0; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--r-klein);
  overflow: hidden;
}
.team img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.team figcaption { margin: 0; padding: 0.9rem 1rem 1.1rem; border-top: 1px solid var(--linie); }
.team b { display: block; font-family: var(--serif); font-size: 1.06rem; color: var(--tief); }
.team span { display: block; font-size: 0.9rem; color: var(--text-2); margin-top: 0.1rem; }
.team a {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem;
  font-size: 0.92rem; font-variant-numeric: tabular-nums; text-decoration: none;
  font-weight: 600;
}
.team a:hover { text-decoration: underline; }
.team a svg { width: 15px; height: 15px; }

/* ---------- Kontaktspalten ---------- */
.kontakt-raster {
  display: grid; gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .kontakt-raster { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.kontakt-block { margin: 0 0 1.4rem; }
.kontakt-block:last-child { margin-bottom: 0; }
.kontakt-block h3 { margin-bottom: 0.35rem; }
.kontakt-zeile {
  display: flex; align-items: flex-start; gap: 0.65rem;
  margin: 0 0 0.6rem;
}
.kontakt-zeile svg { width: 19px; height: 19px; color: var(--marke); flex: none; margin-top: 0.28em; }
.kontakt-zeile a { font-variant-numeric: tabular-nums; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 1rem; margin: 0; }
.feld { display: grid; gap: 0.3rem; }
.feld label { font-size: 0.93rem; font-weight: 600; color: var(--tief); }
.pflicht { color: var(--marke); }
.feld input, .feld textarea, .feld select {
  font: inherit; font-size: 1rem;
  padding: 0.68rem 0.8rem;
  border: 1.5px solid var(--linie-stark);
  border-radius: var(--r-klein);
  background: #fff; color: var(--text);
  width: 100%;
}
.feld textarea { min-height: 8.5rem; resize: vertical; }
.feld input:hover, .feld textarea:hover, .feld select:hover { border-color: var(--marke); }
.feld input::placeholder, .feld textarea::placeholder { color: #6b7891; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fuss { font-size: 0.88rem; color: var(--text-2); margin: 0; }
.formular-hinweis {
  margin: 0; padding: 0.9rem 1rem;
  border: 1.5px solid var(--smaragd);
  border-radius: var(--r-klein);
  background: var(--smaragd-blass); color: var(--text);
  font-size: 0.95rem;
}
.formular-hinweis:focus { outline: none; }

/* ---------- Karte mit Freigabe ---------- */
.karte-gate {
  border: 1px solid var(--linie); border-radius: var(--r-klein);
  background: var(--flaeche); padding: clamp(1.1rem, 3vw, 1.6rem);
}
.karte-gate p { margin: 0 0 0.9rem; font-size: 0.95rem; color: var(--text); }
.karte-rahmen {
  border: 1px solid var(--linie); border-radius: var(--r-klein);
  overflow: hidden; background: var(--flaeche);
}
.karte-rahmen iframe { width: 100%; height: clamp(260px, 40vw, 380px); border: 0; display: block; }

/* ---------- Aufruf ---------- */
.aufruf .wrap {
  display: grid; gap: 1.4rem; align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 860px) {
  .aufruf .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 2.4rem; }
  .aufruf .knopf-reihe { margin: 0; }
}
.aufruf h2 { margin-bottom: 0.4rem; }
.aufruf p { margin: 0; max-width: 56ch; }

/* ---------- Fuss ---------- */
.fuss {
  background: var(--tief); color: var(--auf-dunkel-2);
  padding-block: clamp(2.4rem, 5vw, 3.4rem) 1.6rem;
  font-size: 0.94rem;
}
.fuss-raster {
  display: grid; gap: clamp(1.6rem, 4vw, 2.6rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fuss h2 { font-size: 1.06rem; color: #fff; margin-bottom: 0.6rem; }
.fuss p { margin: 0 0 0.5rem; }
.fuss a { color: var(--smaragd-hell); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.fuss-logo { margin-bottom: 1rem; }
.fuss-logo img { width: 190px; background: #fff; border-radius: var(--r-klein); padding: 0.5rem 0.7rem; }
.fuss-schluss {
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgba(231, 237, 247, 0.18);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: space-between;
  font-size: 0.88rem;
}
.fuss-schluss p { margin: 0; }
.fuss-schluss ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }

/* ---------- Rechtstexte ---------- */
.rechtstext { max-width: 76ch; }
.rechtstext h2 { margin-top: 2.4rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); }
.rechtstext h3 { margin-top: 1.8rem; }
.rechtstext h2:first-child, .rechtstext h3:first-child { margin-top: 0; }
.rechtstext ul { padding-left: 1.2rem; }
.rechtstext li { margin-bottom: 0.4rem; }
.rechtstext .kasten {
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--r-klein); padding: 1.1rem 1.2rem; margin: 0 0 1.6rem;
}
.rechtstext .kasten p:last-child { margin-bottom: 0; }
.rechtstext address { font-style: normal; }

/* ---------- Grossansicht ---------- */
.lupe {
  display: block; width: 100%; padding: 0; border: 0; background: transparent;
  cursor: zoom-in; border-radius: var(--r-klein); overflow: hidden;
}
.lupe img { transition: transform 0.4s var(--ease-out); }
.lupe:hover img { transform: scale(1.03); }
.lupe-schicht {
  position: fixed; inset: 0; z-index: var(--z-lupe);
  background: rgba(9, 18, 42, 0.94);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(0.6rem, 2vw, 1.2rem);
}
body.lupe-offen { overflow: hidden; }
.lupe-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lupe-zaehler { margin: 0; color: var(--auf-dunkel-2); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.lupe-schliessen, .lupe-nav {
  background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.3); border-radius: 50%;
  width: 44px; height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lupe-schliessen svg, .lupe-nav svg { width: 22px; height: 22px; }
.lupe-schliessen:hover, .lupe-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lupe-buehne {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  min-height: 0; padding-block: 0.8rem;
}
.lupe-buehne img {
  max-width: 100%; max-height: 74vh; width: auto; object-fit: contain;
  border-radius: var(--r-klein);
}
.lupe-text { margin: 0; color: var(--auf-dunkel); text-align: center; font-size: 0.94rem; }
@media (max-width: 700px) {
  .lupe-nav { position: absolute; bottom: 4.4rem; }
  .lupe-zurueck { left: 1rem; }
  .lupe-vor { right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lupe:hover img { transform: none; }
}

/* ---------- Bewegung (nur mit JS, additiv) ---------- */
html.js .zeig { opacity: 0; transform: translateY(12px); }
html.js .zeig.da {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease-out-quart), transform 0.5s var(--ease-out-quart);
}
html.js .held .stufe { opacity: 0; transform: translateY(14px); }
html.js .held.bereit .stufe {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease-out-quart), transform 0.6s var(--ease-out-quart);
}
html.js .held.bereit .stufe:nth-child(2) { transition-delay: 0.07s; }
html.js .held.bereit .stufe:nth-child(3) { transition-delay: 0.14s; }
html.js .held.bereit .stufe:nth-child(4) { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  html.js .zeig, html.js .held .stufe {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .knopf:hover { transform: none; }
}

/* ---------- Druck ---------- */
@media print {
  .kopf, .leiste, .aufruf, .nav-schleier, .karte-gate { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .abschnitt.dunkel, .fuss, .seiten-kopf { background: #fff !important; color: #000 !important; }
  .abschnitt.dunkel h2, .fuss h2, .seiten-kopf h1 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}
