/* ---------- Design-Tokens ---------- */
:root {
  /* Farben */
  --tiefsee:   #0B2A3B;
  --tiefsee-2: #0E3852;
  --gletscher: #1D6E8C;
  --wasserlicht:#6FB6C9;
  --schaum:    #EAF4F6;
  --weiss:     #FFFFFF;

  --ink:       #16303C;   /* Fließtext */
  --muted:     #566F7A;   /* sekundär – dunkel genug für 4.5:1 auch auf --schaum */
  --line:      #DCE7EC;   /* Trennlinien */
  --bg-soft:   #F4F9FB;   /* zarte Sektionsfläche */

  /* Typografie */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 40px -24px rgba(11,42,59,.45);
  --shadow-sm: 0 6px 18px -12px rgba(11,42,59,.4);

  --header-h: 76px;

  /* Hero-Foto: aktuell ein selbst erzeugtes, lizenzfreies Wasser-SVG.
     Für ein echtes Foto einfach die Datei ersetzen, z. B.:
     --hero-photo: url("../img/hero-wasser.jpg"); */
  --hero-photo: url("../img/hero-wasser.svg");
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--weiss);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* Sicherheitsnetz gegen horizontales Scrollen */
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--gletscher); text-decoration: none; }
/* WCAG 1.4.1: Der Farbunterschied zwischen Linkfarbe und Fließtext liegt unter 3:1.
   Links in Textabsätzen werden daher zusätzlich unterstrichen. Reine Linklisten und
   Kachel-Komponenten brauchen das nicht – dort ist die gesamte Fläche der Link. */
p a, li a, dd a, address a, figcaption a, label a {
  text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: .07em;
}
.doclist a, .gemeinden a, .flow a, .site-footer ul a, .breadcrumb a,
.primary-nav a, .btn, .team a.doc { text-decoration: none; }
.doclist a:hover, .gemeinden a:hover, .flow a:hover, .site-footer ul a:hover { text-decoration: none; }
/* Überlauf-Schutz: lange Wörter & Komposita sauber umbrechen (Mobile) */
html, body { overflow-x: hidden; }
h1, h2, h3, h4, p, li, a { overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--tiefsee); line-height: 1.12; font-weight: 500; overflow-wrap: break-word; hyphens: auto; }
p, li, a, figcaption, dd, dt { overflow-wrap: break-word; }
ul { padding-left: 1.15em; }

/* ---------- Zugänglichkeit: Fokus & Skip-Link ---------- */
:focus-visible { outline: 3px solid var(--gletscher); outline-offset: 2px; border-radius: 3px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--weiss); color: var(--tiefsee); font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-sm); transition: top .18s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }
.visually-hidden {
  position:absolute!important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- Layout-Helfer ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding: clamp(52px, 8vw, 104px) 0; }
.section[id] { scroll-margin-top: 90px; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: none; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gletscher); margin-bottom: 12px; }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 40px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--schaum); color: var(--tiefsee); }
.btn--primary:hover { background: var(--weiss); }
.btn--solid { background: var(--gletscher); color: var(--weiss); }
.btn--solid:hover { background: var(--tiefsee-2); }
.btn--ghost { background: transparent; color: var(--schaum); border-color: rgba(234,244,246,.5); }
.btn--ghost:hover { border-color: var(--schaum); }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Icons ---------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: relative; z-index: 100; background: var(--tiefsee);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--weiss); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand small { display:block; font-family: var(--font-body); font-size:.68rem; letter-spacing:.14em; text-transform:uppercase; color: var(--wasserlicht); font-weight:600; }

.primary-nav ul { list-style: none; display: flex; gap: 26px; padding: 0; margin: 0; }
.primary-nav a { color: var(--schaum); font-weight: 500; font-size: .98rem; padding: 6px 0; position: relative; }
.primary-nav a:hover { color: var(--weiss); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--weiss); }
.primary-nav a[aria-current="page"]::after {
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:2px; background: var(--wasserlicht); border-radius:2px;
}
.nav-toggle { display: none; }

/* Header transparent über dem Hero (nur Startseite) */
body.home .site-header { position: absolute; inset: 0 0 auto 0; background: transparent; }
body.home .site-header::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(4,20,30,.45), transparent); pointer-events:none; z-index:-1; }

/* ---------- HERO (Prototyp A) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  color: var(--schaum); overflow: hidden;
  background:
    radial-gradient(120% 90% at 72% 8%, rgba(111,182,201,.30), transparent 55%),
    linear-gradient(180deg, var(--tiefsee) 0%, var(--tiefsee-2) 45%, #12506e 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__media { position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero__caustics { position:absolute; inset:0; opacity:.5; mix-blend-mode:screen; }
.hero__wave { position:absolute; left:0; right:0; bottom:-1px; }
.hero__inner { position: relative; z-index: 2; margin-top: auto; padding-bottom: clamp(64px, 12vh, 130px); padding-top: calc(var(--header-h) + 24px); }
.hero h1 { color: var(--schaum); font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 500; letter-spacing: -.01em; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--wasserlicht); }
.hero .hero__lede { margin-top: 22px; font-size: clamp(1.05rem, 1.8vw, 1.32rem); max-width: 54ch; color: #D3E9EF; }
.hero .hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Medien-Figuren (Fotos) ---------- */
.media-figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-soft); }
.media-figure img { width: 100%; height: auto; display: block; object-fit: cover; }
.media-figure figcaption { padding: 12px 16px; font-size: .86rem; color: var(--muted); }
.welcome__photo { margin-top: clamp(24px, 4vw, 44px); }

/* ---------- Video (datenschutzfreundliche Facade) ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: linear-gradient(120deg, var(--tiefsee), var(--gletscher)); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Standbild aus dem Film als Hintergrund. Liegt die Datei nicht vor, zeigt die
   Fläche einfach den Farbverlauf von .video – ohne Fehlerbild, ohne JavaScript.
   Anderes Standbild: nur diese eine Zeile ändern. */
.video__facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
  color: var(--schaum); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; text-align: center; padding: 24px;
  background: url("../img/video-klaeranlage.jpg") center / cover no-repeat, transparent;
  text-decoration: none;   /* wirkt auch, wenn die Fläche ein Link statt eines Buttons ist */
}
.video__facade:hover { text-decoration: none; }
.video__facade::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(4,20,30,.28) 0%, rgba(4,20,30,.34) 45%, rgba(4,20,30,.72) 100%); }
.video__facade:hover .video__play, .video__facade:focus-visible .video__play { transform: scale(1.08); }
.video__play { position: relative; z-index: 2; width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.22); border: 2px solid var(--schaum); display: grid; place-items: center; transition: transform .18s ease; backdrop-filter: blur(2px); }
.video__play svg { width: 30px; height: 30px; margin-left: 4px; fill: var(--schaum); stroke: none; }
.video__facade b { position: relative; z-index: 2; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; text-shadow: 0 1px 10px rgba(4,20,30,.55); }
.video__facade small { position: relative; z-index: 2; max-width: 46ch; color: #D3E9EF; font-size: .78rem; opacity: .9; text-shadow: 0 1px 8px rgba(4,20,30,.55); }

/* ---------- Animierte Kennzahlen (zwei Zeilen: 3 + 2) ---------- */
.counters { display: grid; gap: clamp(14px, 2vw, 22px); }
.counters--3 { grid-template-columns: repeat(3, 1fr); }
.counters--2 { grid-template-columns: repeat(2, 1fr); margin-top: clamp(14px, 2vw, 22px); }
.note-edit { margin-top: 18px; font-size: .85rem; color: #8a6d1f; background: #FFF7E6; border: 1px solid #EBD9A6; border-radius: var(--radius-sm); padding: 10px 14px; }

/* ---------- Willkommen ---------- */
.welcome__text { max-width: none; }
.welcome__text p + p { margin-top: 16px; }
.welcome__text p { max-width: none; }
.welcome__text h3 { margin-top: clamp(24px, 3.2vw, 34px); font-size: clamp(1.12rem, 1.9vw, 1.3rem); }
.welcome__text h3:first-child { margin-top: 0; }
.welcome__text h3 + p { margin-top: 8px; }

/* Technische Daten (Kläranlage) */
.techgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

/* Breites Bild mit Bildunterschrift */
.figure-wide { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.figure-wide img { width: 100%; height: auto; display: block; }
.figure-wide figcaption { padding: 12px 16px; font-size: .88rem; color: var(--muted); background: var(--bg-soft); }

/* Video (datenschutzfreundliche Klick-zum-Laden-Lösung) */
.video-facade { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 70% 10%, rgba(111,182,201,.35), transparent 55%), linear-gradient(135deg, var(--tiefsee), var(--gletscher)); }
.video-facade__play { width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; transition: transform .15s ease; }
.video-facade:hover .video-facade__play, .video-facade:focus-visible .video-facade__play { transform: scale(1.06); }
.video-facade__play svg { width: 30px; height: 30px; color: var(--tiefsee); margin-left: 4px; }
.video-facade__label { position: absolute; left: 18px; bottom: 16px; color: #fff; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.video-facade__hint { position: absolute; right: 14px; top: 12px; font-size: .72rem; color: rgba(255,255,255,.9); background: rgba(0,0,0,.25); padding: 4px 10px; border-radius: 20px; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Kennzahlen ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.stat {
  background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-align: left; box-shadow: var(--shadow-sm);
}
.stat .stat__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--schaum); color: var(--gletscher); margin-bottom: 16px; }
.stat .stat__ico .icon { width: 24px; height: 24px; }
.stat .stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.7rem); color: var(--gletscher); line-height: 1; }
.stat .stat__label { margin-top: 6px; color: var(--muted); font-size: .96rem; }

/* ---------- Gemeinden ---------- */
.gemeinden { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gemeinde {
  display: flex; align-items: center; gap: 12px; background: var(--weiss);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.gemeinde:hover { text-decoration: none; border-color: var(--wasserlicht); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.gemeinde .icon { color: var(--gletscher); flex: 0 0 auto; }
.gemeinde b { color: var(--tiefsee); font-family: var(--font-body); }
.gemeinde span { display:block; font-size:.8rem; color: var(--muted); }

/* ---------- CTA-Band ---------- */
.cta-band { background: linear-gradient(120deg, var(--tiefsee), var(--gletscher)); color: var(--schaum); border-radius: var(--radius); padding: clamp(30px, 5vw, 54px); display:flex; flex-wrap:wrap; gap: 24px; align-items:center; justify-content: space-between; }
.cta-band h2 { color: var(--weiss); max-width: 22ch; }
.cta-band p { color:#D3E9EF; margin-top: 8px; max-width: 46ch; }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.page-hero { position: relative; color: var(--schaum); overflow:hidden;
  background: radial-gradient(120% 120% at 80% -10%, rgba(111,182,201,.3), transparent 55%), linear-gradient(160deg, var(--tiefsee), var(--tiefsee-2)); }
.page-hero__inner { padding-block: clamp(40px, 7vw, 78px) clamp(44px, 7vw, 74px); position: relative; z-index:2; }
.page-hero h1 { color: var(--weiss); font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 19ch; }
.page-hero p { color:#D3E9EF; max-width: 60ch; margin-top: 14px; font-size: clamp(1.02rem,1.6vw,1.18rem); }
.page-hero__wave { position:absolute; left:0; right:0; bottom:-1px; z-index:1; }

/* Breadcrumb */
.breadcrumb { font-size: .86rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 16px; color: rgba(234,244,246,.75); }
.breadcrumb a { color: var(--wasserlicht); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: rgba(234,244,246,.5); }
.breadcrumb [aria-current="page"] { color: var(--schaum); }

/* ---------- Weg des Wassers (Übersicht) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.flow__step { background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-align: center; position: relative; }
.flow__step .icon { width: 34px; height: 34px; color: var(--gletscher); margin: 0 auto 10px; }
.flow__step b { display:block; color: var(--tiefsee); font-family: var(--font-body); font-size: .98rem; }
.flow__step small { color: var(--muted); }
.flow__step .num { position:absolute; top:12px; right:14px; font-family: var(--font-display); color: var(--wasserlicht); font-size: 1.1rem; }

/* ---------- Prozess-Timeline (4 Stufen) ---------- */
.stage { display: grid; grid-template-columns: 84px 1fr; gap: clamp(18px, 3vw, 34px); position: relative; padding-bottom: clamp(34px, 5vw, 56px); }
.stage:not(:last-child)::before { content:""; position:absolute; left: 41px; top: 84px; bottom: 0; width: 2px; background: linear-gradient(var(--wasserlicht), var(--line)); }
.stage__badge { width: 84px; height: 84px; border-radius: 50%; background: var(--tiefsee); color: var(--schaum); display: grid; place-items: center; position: relative; z-index: 1; box-shadow: var(--shadow-sm); }
.stage__badge .icon { width: 38px; height: 38px; }
.stage__badge .step-n { position:absolute; top:-6px; right:-6px; width:28px; height:28px; border-radius:50%; background: var(--wasserlicht); color: var(--tiefsee); font-family: var(--font-display); font-weight:600; display:grid; place-items:center; font-size:.95rem; }
.stage__body h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.stage__body > p { color: var(--ink); margin-top: 8px; max-width: none; }
.parts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.part { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.part .part__head { display:flex; align-items:center; gap:10px; }
.part .icon { color: var(--gletscher); flex:0 0 auto; width:22px; height:22px; }
.part b { color: var(--tiefsee); font-family: var(--font-body); }
.part p { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.stage__figure { margin-top: 20px; background: var(--weiss); border:1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stage__figure svg { width: 100%; height: auto; }
.stage__figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align:center; }
/* Jahres-Badge statt Icon (Verbandsgeschichte) */
.stage__badge .year { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; letter-spacing: .01em; }

/* ---------- Team (Der Verband) ---------- */
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.person {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--weiss); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.person__photo { aspect-ratio: 4 / 3; background: var(--schaum); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__avatar {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--schaum), #D3E9EF);
  color: var(--gletscher); font-family: var(--font-display); font-size: 2.1rem; letter-spacing: .04em;
}
.person__body { padding: 18px 20px 22px; }
.person__role { font-family: var(--font-body); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gletscher); margin-bottom: 6px; }
.person h3 { font-size: 1.22rem; }
.person__contact { display: grid; gap: 8px; margin-top: 12px; font-size: .92rem; }
.person__contact a { display: flex; align-items: center; gap: 8px; }
.person__contact .icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--gletscher); }
.person__note { margin-top: 10px; font-size: .92rem; color: var(--muted); }

/* ---------- Dokument-/Download-Karten ---------- */
.doclist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc {
  display: flex; align-items: flex-start; gap: 14px; height: 100%;
  background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.doc:hover { text-decoration: none; border-color: var(--wasserlicht); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.doc .icon { color: var(--gletscher); flex: 0 0 auto; }
.doc b { display: block; color: var(--tiefsee); font-family: var(--font-body); }
.doc small { display: block; margin-top: 4px; color: var(--muted); font-size: .86rem; }

/* ---------- Leistungs-Karten ---------- */
.service {
  background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(22px, 3.5vw, 36px);
}
.service + .service { margin-top: clamp(18px, 3vw, 28px); }
.service[id] { scroll-margin-top: 90px; }
.stage[id] { scroll-margin-top: 90px; }
.service__head { display: flex; align-items: center; gap: 16px; }
.service__head .eyebrow { margin-bottom: 4px; }
.service__ico { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 14px; background: var(--schaum); color: var(--gletscher); display: grid; place-items: center; }
.service__ico .icon { width: 30px; height: 30px; }
.service h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.service__body { margin-top: 18px; }
.service__body > p { max-width: 72ch; }
.service h4 { margin-top: 26px; font-size: 1.08rem; }

/* Eckdaten-Liste (Zeiten, Kosten, Kontakt) */
.facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 12px 26px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.facts dt .icon { width: 19px; height: 19px; flex: 0 0 auto; color: var(--gletscher); }
.facts dd { margin: 0; }
.facts .muted { color: var(--muted); font-size: .9rem; }
.price { font-family: var(--font-display); font-size: 1.2rem; color: var(--gletscher); }

/* Erste Eckdaten-Liste in einer Karte braucht keine Trennlinie oben */
.facts--erste { margin-top: 0; padding-top: 0; border-top: 0; }
.facts dd address { font-style: normal; }
.facts dd + dt { margin-top: 2px; }

/* Hinweisbox */
.notice { display: flex; align-items: flex-start; gap: 13px; margin-top: 20px; padding: 15px 18px; background: var(--schaum); border-left: 4px solid var(--wasserlicht); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .94rem; }
.notice .icon { width: 21px; height: 21px; flex: 0 0 auto; color: var(--gletscher); margin-top: 2px; }

/* ---------- Tabellen ---------- */
.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--weiss); }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table caption { caption-side: bottom; text-align: left; padding: 10px 16px 14px; color: var(--muted); font-size: .84rem; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: normal; overflow-wrap: break-word; hyphens: auto; }
.table thead th { background: var(--bg-soft); color: var(--tiefsee); font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.table tbody th { font-family: var(--font-body); font-weight: 600; color: var(--tiefsee); }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }

/* Sprungmarken-Kacheln (Leistungsübersicht) */
a.flow__step { transition: border-color .2s ease, transform .15s ease, box-shadow .2s ease; }
a.flow__step:hover, a.flow__step:focus-visible { text-decoration: none; border-color: var(--wasserlicht); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.doclist--mt { margin-top: clamp(24px, 3.5vw, 36px); }

/* ---------- Kontaktkarten ---------- */
.kontaktkarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.kontaktkarte { background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.kontaktkarte__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--schaum); color: var(--gletscher); display: grid; place-items: center; margin-bottom: 16px; }
.kontaktkarte h3 { font-size: 1.2rem; }
.kontaktkarte address { font-style: normal; margin-top: 10px; }
.kontaktkarte > p { margin-top: 12px; font-size: .94rem; color: var(--muted); }
.kontaktkarte__gross { font-family: var(--font-display); font-size: 1.24rem; line-height: 1.35; color: var(--gletscher) !important; }
.kontaktliste { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 9px 18px; margin: 12px 0 0; }
.kontaktliste dt { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.kontaktliste dd { margin: 0; }

/* Hinweisbox, Variante Achtung */
.notice--warn { background: #FFF7E6; border-left-color: #E4B95B; }
.notice--warn .icon { color: #A6801F; }

/* ---------- Formular ---------- */
.formular {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px;
  background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow-sm);
}
.feld--voll { grid-column: 1 / -1; }
.feld > label { display: block; margin-bottom: 6px; font-size: .95rem; font-weight: 600; color: var(--tiefsee); }
.pflicht { color: #A8442F; }
.feld input, .feld textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--weiss);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  transition: border-color .18s ease;
}
.feld input:hover, .feld textarea:hover { border-color: var(--wasserlicht); }
.feld input:user-invalid, .feld textarea:user-invalid { border-color: #C48A8A; }  /* erst nach Eingabe, nicht beim ersten Anblick */
.feld textarea { min-height: 150px; resize: vertical; }
.feld__hilfe { margin-top: 6px; font-size: .85rem; color: var(--muted); }

/* Honigtopf: nur für Bots sichtbar, nie für Menschen */
.honigtopf { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.zustimmung { display: flex; align-items: flex-start; gap: 13px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 15px 17px; }
.zustimmung input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--gletscher); }
.zustimmung label { margin: 0; font-weight: 400; font-size: .95rem; color: var(--ink); }
.zustimmung__text { display: block; margin-top: 7px; font-size: .88rem; color: var(--muted); }
.formular__aktion { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.formular__aktion .feld__hilfe { margin: 0; }

/* ---------- Karte (OpenStreetMap, ohne Cookies) ---------- */
.karte { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.karte iframe { display: block; width: 100%; height: clamp(300px, 46vw, 460px); border: 0; }
.karte figcaption { padding: 12px 16px; font-size: .84rem; color: var(--muted); background: var(--bg-soft); }

/* ---------- FAQ ---------- */
.flow--5 { grid-template-columns: repeat(5, 1fr); }
.faq-gruppe { scroll-margin-top: 90px; }
.faq-gruppe + .faq-gruppe { margin-top: clamp(32px, 5vw, 54px); padding-top: clamp(28px, 4.5vw, 46px); border-top: 1px solid var(--line); }
.faq-gruppe > h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.28rem, 2.4vw, 1.65rem); margin-bottom: 18px; }
.faq-gruppe > h3 .icon { width: 28px; height: 28px; flex: 0 0 auto; color: var(--gletscher); }

.faq { background: var(--weiss); border: 1px solid var(--line); border-radius: var(--radius-sm); scroll-margin-top: 90px; }
.faq + .faq { margin-top: 10px; }
.faq[open] { border-color: var(--wasserlicht); box-shadow: var(--shadow-sm); }
.faq > summary {
  cursor: pointer; list-style: none; display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; font-family: var(--font-body); font-weight: 600; color: var(--tiefsee);
}
.faq > summary::-webkit-details-marker { display: none; }
/* Plus/Minus-Zeichen als reines CSS, ohne zusätzliches Markup */
.faq > summary::before {
  content: ""; flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background:
    linear-gradient(var(--gletscher), var(--gletscher)) center / 11px 2px no-repeat,
    linear-gradient(var(--gletscher), var(--gletscher)) center / 2px 11px no-repeat,
    var(--schaum);
  transition: transform .2s ease;
}
.faq[open] > summary::before { background-size: 11px 2px, 0 0, auto; transform: rotate(180deg); }
.faq > summary:hover { color: var(--gletscher); }
.faq__antwort { padding: 0 20px 20px 58px; }
.faq__antwort > p { max-width: 74ch; color: var(--ink); }
.faq__links { margin-top: 12px !important; font-size: .9rem; }
.faq__links a { font-weight: 600; }

/* ---------- Downloadbereiche ---------- */
.dl-cat { scroll-margin-top: 90px; }
.dl-cat + .dl-cat { margin-top: clamp(34px, 5vw, 56px); padding-top: clamp(30px, 4.5vw, 48px); border-top: 1px solid var(--line); }
.dl-cat h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.dl-cat__intro { color: var(--muted); max-width: 68ch; margin-top: 8px; }
.dl-cat .doclist { margin-top: 18px; }
.dl-year { margin-top: 26px; font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gletscher); }
.dl-year + .doclist { margin-top: 10px; }
.dl-more { margin-top: 26px; border-top: 1px dashed var(--line); padding-top: 18px; }
.dl-more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gletscher); list-style: none; }
.dl-more > summary::-webkit-details-marker { display: none; }
.dl-more > summary::before { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--schaum); font-family: var(--font-display); line-height: 1; }
.dl-more[open] > summary::before { content: "–"; }
.dl-more > summary:hover { text-decoration: underline; }
.dl-more > .dl-year:first-of-type { margin-top: 18px; }

/* Inline-Icon in Fließtext (z. B. externer Link) */
.icon--inline { display: inline-block; width: .95em; height: .95em; vertical-align: -.1em; margin-left: .35em; }

/* Abstand für Kennzahlen-Raster nach Fließtext */
.stats--mt { margin-top: clamp(28px, 4vw, 48px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--tiefsee); color: #C9E2E9; margin-top: 0; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: clamp(46px, 6vw, 72px) 40px; }
.site-footer h3 { color: var(--weiss); font-family: var(--font-body); font-size: .82rem; letter-spacing:.12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--schaum); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .contact p { margin-bottom: 8px; font-size:.96rem; }
.site-footer .foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; display:flex; flex-wrap:wrap; gap: 12px 24px; justify-content: space-between; font-size: .84rem; color: rgba(201,226,233,.75); }
.site-footer .foot-bottom nav { display:flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .counters { grid-template-columns: repeat(2, 1fr) !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .techgrid { grid-template-columns: repeat(2, 1fr); }
  .gemeinden { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .parts { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .doclist { grid-template-columns: 1fr; }
  .flow--5 { grid-template-columns: repeat(3, 1fr); }
  .kontaktkarten { grid-template-columns: 1fr; }
  .formular { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 4px 0; }
  .facts dt { margin-top: 14px; }
  .facts dt:first-of-type { margin-top: 0; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items:center; justify-content:center;
    width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(234,244,246,.35);
    background: transparent; color: var(--schaum); cursor: pointer;
  }
  .nav-toggle .icon { width: 26px; height: 26px; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--tiefsee); border-top: 1px solid rgba(255,255,255,.1);
    max-height: 0; overflow: hidden; transition: max-height .28s ease;
  }
  body.home .primary-nav { background: var(--tiefsee); }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.07); }
  .primary-nav a { display: block; padding: 14px clamp(20px,5vw,40px); }
  .site-header.nav-open .primary-nav { max-height: 70vh; }
  .stage { grid-template-columns: 64px 1fr; }
  .stage__badge { width: 64px; height: 64px; }
  .stage__badge .icon { width: 30px; height: 30px; }
  .stage__badge .year { font-size: .94rem; }
  .table { font-size: .9rem; }
  .table thead th { white-space: normal; }
  .service__head { align-items: flex-start; gap: 13px; }
  .service__ico { width: 46px; height: 46px; border-radius: 12px; }
  .service__ico .icon { width: 25px; height: 25px; }
  .stage:not(:last-child)::before { left: 31px; top: 64px; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
  .techgrid { grid-template-columns: 1fr; }
  .gemeinden { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .flow--5 { grid-template-columns: 1fr; }
  .faq__antwort { padding-left: 20px; }
  .table { font-size: .86rem; }
  .table th, .table td { padding: 10px 11px; }
  .table caption { padding: 9px 11px 12px; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* ---------- Scroll-nach-oben-Knopf ---------- */
    .nach-oben {
      position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px);
      z-index: 150; width: 52px; height: 52px; border: 0; border-radius: 50%;
      background: var(--tiefsee); color: var(--schaum); cursor: pointer;
      display: grid; place-items: center;
      /* Innenkante hell: hebt den dunklen Knopf auch vor dem dunklen Footer ab */
      box-shadow: var(--shadow), inset 0 0 0 1px rgba(234, 244, 246, .24);
      opacity: 0; visibility: hidden; transform: translateY(14px);
      transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
    }
    .nach-oben.sichtbar { opacity: 1; visibility: visible; transform: translateY(0); }
    .nach-oben:hover { background: var(--gletscher); }
    .nach-oben:hover .nach-oben__pfeil { transform: translateY(-2px); }
    .nach-oben__pfeil {
      width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2;
      stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease;
    }
    /* Fortschrittsring: läuft beim Scrollen mit */
    /* Maße in Pixel statt Prozent: bei einem SVG greifen sonst die globalen
       Regeln max-width/height:auto in die Berechnung ein. */
    .nach-oben__ring {
      position: absolute; top: -5px; left: -5px; width: 62px; height: 62px;
      max-width: none; transform: rotate(-90deg); pointer-events: none;
    }
    .nach-oben__ring circle { fill: none; stroke-width: 2.5; }
    .nach-oben__spur { stroke: rgba(111,182,201,.28); }
    .nach-oben__wert {
      stroke: var(--wasserlicht); stroke-linecap: round;
      stroke-dasharray: var(--umfang); stroke-dashoffset: var(--umfang);
    }
    /* Doppelter Fokusrahmen: der Knopf steht je nach Scrollposition auf weißem
       oder auf dunklem Grund. Weiß innen, Tiefsee außen – damit ist immer einer
       der beiden Ringe sichtbar. */
    .nach-oben:focus-visible {
      outline: 3px solid var(--weiss); outline-offset: 2px;
      box-shadow: var(--shadow), inset 0 0 0 1px rgba(234, 244, 246, .24),
                  0 0 0 8px var(--tiefsee);
    }
    @media (max-width: 460px) {
      .nach-oben { width: 46px; height: 46px; }
      .nach-oben__ring { width: 56px; height: 56px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .nach-oben { transition: opacity .01s; transform: none; }
      .nach-oben.sichtbar { transform: none; }
    }
  
/* ----------  Wappen der Mitgliedsgemeinden.  ---------- */

    .gemeinde__wappen {
      flex: 0 0 auto; width: 38px; height: 44px; max-width: none;
      object-fit: contain; object-position: center;
      transition: transform .18s ease;
    }
    .gemeinde:hover .gemeinde__wappen,
    .gemeinde:focus-visible .gemeinde__wappen { transform: scale(1.07); }
	
	
	/* ----------  Formularprüfung ---------- */
    .formular { --fehler: #B3261E; }

    /* rot umrahmtes Pflichtfeld */
    .feld--fehler input,
    .feld--fehler textarea {
      border-color: var(--fehler);
      border-width: 2px;
      box-shadow: 0 0 0 3px rgba(179, 38, 30, .10);
    }
    .feld--fehler input:hover,
    .feld--fehler textarea:hover { border-color: var(--fehler); }
    .feld--fehler > label { color: var(--fehler); }

    /* Zustimmung ist eine Box, nicht ein Eingabefeld */
    .feld--fehler .zustimmung {
      border-color: var(--fehler);
      border-width: 2px;
      box-shadow: 0 0 0 3px rgba(179, 38, 30, .10);
    }

    /* Meldung unter dem Feld */
    .feld__fehler {
      margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--fehler);
      display: flex; align-items: flex-start; gap: 6px;
    }
    .feld__fehler::before { content: "✖"; font-weight: 700; line-height: 1.35; }
    /* display:flex würde sonst das hidden-Attribut überstimmen */
    .feld__fehler[hidden] { display: none; }

    /* :user-invalid würde sonst gegen unsere eigene Markierung arbeiten */
    .feld--fehler input:user-invalid,
    .feld--fehler textarea:user-invalid { border-color: var(--fehler); }
	
	/* Nur für die News-Seite: kann 1:1 nach css/style.css verschoben werden */
 
    /* Jahres-Badge mit Zeitspanne statt einer einzelnen Jahreszahl */
    .stage__badge .year--spanne { font-size: .84rem; line-height: 1.2; text-align: center; }

    /* Zeitraum-Zeile unter der Überschrift */
    .stage__zeitraum {
      display: flex; align-items: flex-start; gap: 8px;
      margin-top: 6px; font-size: .84rem; font-weight: 700; line-height: 1.5;
      letter-spacing: .1em; text-transform: uppercase; color: var(--gletscher);
    }
    .stage__zeitraum .icon { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 3px; }

    /* Bildergalerie innerhalb einer Station */
    .news-galerie {
      list-style: none; padding: 0; margin: 22px 0 0;
      display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    }
    .news-galerie figure {
      margin: 0; background: var(--weiss); border: 1px solid var(--line);
      border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm);
      display: flex; flex-direction: column;
    }
    .news-galerie img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--schaum); }
    .news-galerie figcaption { padding: 10px 13px; font-size: .84rem; color: var(--muted); }

    /* einzelnes Bild in einer Station */
    .news-bild { margin: 22px 0 0; }
    .news-bild img { background: var(--schaum); }

    /* zwei Bilder nebeneinander – gleiche Bildfläche trotz unterschiedlicher Formate */
    .news-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
    .news-paar .figure-wide { margin: 0; display: flex; flex-direction: column; }
    .news-paar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--schaum); }
    /* Hochformat: Bildmitte etwas nach oben, damit die Personen im Bild bleiben */
    .news-paar img.ist-hoch { object-position: center 34%; }
    /* Breitbild kleiner Auflösung: vollständig zeigen statt beschneiden */
    .news-paar img.ist-breit { object-fit: contain; }
    .news-paar figcaption { margin-top: auto; }

    @media (max-width: 760px) {
      .news-galerie { grid-template-columns: 1fr 1fr; }
      /* einspaltig: kein gemeinsames Bildformat nötig, jedes Bild in seinem eigenen */
      .news-paar { grid-template-columns: 1fr; }
      .news-paar img { aspect-ratio: auto; object-fit: contain; }
    }
    @media (max-width: 460px) {
      .news-galerie { grid-template-columns: 1fr; }
    }
 
  
 