/* ==========================================================================
   Wassergenossenschaft Neumarkt am Wallersee
   CI aus den Druckdaten (Briefpapier & „WasserSpiegel“):
   Wasser-Band oben, Blau #005b7f / #529dba, graue Panels #eaebec, blaue Infokästen.
   Hausschrift ist Gilroy (kommerziell) – im Web ersetzt durch die freie, sehr ähnliche Outfit.
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  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: "Outfit";
  src: url("../fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben aus den Druckdaten */
  --c-primary: #005b7f;     /* Überschriften */
  --c-primary-hover: #004a68;
  --c-deep: #00445f;        /* Footer, abgedunkeltes Primärblau */
  --c-accent: #529dba;      /* Schriftzug „Wasser“, Infokästen im Druck */
  --c-box: #337c9b;         /* Infokästen im Web: #529dba abgedunkelt, damit weiße Schrift lesbar bleibt (WCAG AA) */
  --c-drop: #9acce3;        /* Tropfen im Logo */
  --c-light: #d4e8f1;
  --c-tint: #eaebec;        /* graue Panels im WasserSpiegel */
  --c-tint-2: #f4f5f5;
  --c-gray: #6d6e71;        /* „GENOSSENSCHAFT“ */
  --c-text: #231f20;
  --c-muted: #58595b;
  --c-line: #dcdddf;
  --c-white: #fff;
  --c-alert: #da2027;
  --c-todo-bg: #fff4c2;
  --c-todo-line: #e0b400;

  --font: "Outfit", "Gilroy", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 68, 95, .06), 0 8px 24px rgba(0, 68, 95, .08);
  --shadow-lg: 0 2px 4px rgba(0, 68, 95, .06), 0 18px 40px rgba(0, 68, 95, .14);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-primary-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }
strong, b { font-weight: 700; }
[id] { scroll-margin-top: 120px; }

h1, h2, h3, h4 { color: var(--c-primary); line-height: 1.2; font-weight: 700; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
.h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .3em; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--c-primary); color: #fff; padding: .6em 1em; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.claim {
  font-size: clamp(.85rem, 1.2vw, 1rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: 500;
  margin: 0 0 .75rem;
}
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-gray);
  font-weight: 700;
  margin-bottom: .6em;
}
.lead { font-size: 1.2rem; color: var(--c-muted); max-width: 62ch; }
.muted { color: var(--c-muted); }
.small { font-size: .9rem; }

/* Platzhalter für Inhalte, die von der Genossenschaft noch zu liefern sind */
.todo {
  background: var(--c-todo-bg);
  border-left: 4px solid var(--c-todo-line);
  padding: .1em .45em;
  border-radius: 4px;
  font-size: .92em;
  color: #5b4700;
}
div.todo, p.todo { display: block; padding: .8em 1em; margin: 0 0 1.2em; }
.todo::before { content: "Zu ergänzen: "; font-weight: 700; }
.todo--check::before { content: "Bitte prüfen: "; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em;
  border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; }
.btn--ghost { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--ghost:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { background: var(--c-tint); color: var(--c-primary); }
.infobox .btn--light, .section--blue .btn--light, .cta-band .btn--light { color: var(--c-primary); }
.infobox .btn--primary { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; text-decoration: none; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--c-deep); color: #d7e6f1; font-size: .9rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.topbar__alert { display: flex; align-items: center; gap: .5em; margin: 0; }
.topbar__alert .icon { color: #ffd166; }
.topbar__links { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.topbar__links li { margin: 0; }
.topbar__links a { display: inline-flex; align-items: center; gap: .45em; }
.show-sm { display: none; }

/* ---------- Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 100px; }
.brand { display: block; flex: none; }
.brand img { height: 84px; width: auto; }

.main-nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; margin: 0; display: flex; align-items: center; }
.main-nav__item > a {
  display: block; padding: .7em .9em;
  color: var(--c-text); font-weight: 700; text-decoration: none; font-size: 1.02rem;
  border-radius: var(--radius-sm);
}
.main-nav__item > a:hover, .main-nav__item.is-active > a { color: var(--c-primary); }
.main-nav__item.is-active > a { box-shadow: inset 0 -3px 0 var(--c-accent); border-radius: 0; }
.main-nav__item:last-child > a {
  background: var(--c-primary); color: #fff; border-radius: 999px; padding: .6em 1.2em; margin-left: .5rem; box-shadow: none;
}
.main-nav__item:last-child > a:hover { background: var(--c-primary-hover); color: #fff; }
.sub-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-left: -.55rem;
  background: none; border: 0; color: var(--c-muted); cursor: pointer; border-radius: 6px;
}
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-nav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  list-style: none; margin: 0; padding: .5rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--c-line);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-nav::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.sub-nav li { margin: 0; }
.sub-nav a { display: block; padding: .6em .9em; border-radius: var(--radius-sm); color: var(--c-text); text-decoration: none; font-weight: 600; }
.sub-nav a:hover, .sub-nav a[aria-current="page"] { background: var(--c-tint); color: var(--c-primary); }
@media (hover: hover) and (min-width: 1081px) {
  .has-sub:hover > .sub-nav { opacity: 1; visibility: visible; transform: none; }
}
.has-sub:focus-within > .sub-nav, .has-sub.is-open > .sub-nav { opacity: 1; visibility: visible; transform: none; }

.nav-toggle {
  display: none; align-items: center; gap: .6em;
  background: var(--c-tint); border: 0; border-radius: 999px; padding: .65em 1.1em;
  font: inherit; font-weight: 700; color: var(--c-primary); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background-color .2s;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Seitenkopf (Unterseiten) ---------- */
.pagehead { background: linear-gradient(180deg, #fff 0%, var(--c-tint-2) 100%); border-bottom: 1px solid var(--c-line); }
.pagehead__band {
  height: clamp(90px, 13vw, 150px);
  background: url("../img/wasser-band.jpg") center 60% / cover no-repeat;
}
.pagehead__inner { padding-block: 1.75rem clamp(2rem, 4vw, 3rem); }
.pagehead h1 { margin-bottom: .3em; }
.pagehead__lead { font-size: 1.2rem; color: var(--c-muted); max-width: 64ch; margin: 0; }
.breadcrumb { font-size: .9rem; color: var(--c-muted); margin-bottom: .75rem; }
.breadcrumb a { color: var(--c-muted); }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--c-tint); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--blue { background: var(--c-box); color: #fff; }
.section--blue h2, .section--blue h3 { color: #fff; }
.section--blue a { color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head--center { text-align: center; margin-inline: auto; }
.section__head p:last-child { margin-bottom: 0; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split--center { align-items: center; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child { margin-top: 0; }

/* ---------- Startseite: Hero ---------- */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero__band {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  height: clamp(150px, 22vw, 300px);
}
.hero__band span { background-size: cover; background-position: center bottom; }
.hero__band span:nth-child(1) { background-image: url("../img/welle-1.jpg"); }
.hero__band span:nth-child(2) { background-image: url("../img/welle-2.jpg"); }
.hero__band span:nth-child(3) { background-image: url("../img/welle-3.jpg"); }
.hero__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 4vw, 3.25rem) var(--section-y); align-items: start; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 16ch; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }

/* Blauer Kasten im WasserSpiegel-Stil */
.infobox {
  background: var(--c-box); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative; overflow: hidden;
}
.infobox:not(.infobox--soft) { padding-bottom: clamp(4.5rem, 9vw, 6rem); }
.infobox:not(.infobox--soft)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1400 / 268; max-height: 45%;
  background: url("../img/box-splash.jpg") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 75%);
  mask-image: linear-gradient(to bottom, transparent, #000 75%);
  pointer-events: none;
}
.infobox > * { position: relative; z-index: 1; }
.infobox h2, .infobox h3 { color: #fff; }
.infobox a { color: #fff; }
.infobox__head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.infobox__head h2, .infobox__head h3 { margin: 0; }
.icon-circle {
  display: inline-grid; place-items: center; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--c-primary); color: #fff;
}
.icon-circle .icon { width: 26px; height: 26px; }
.infobox .icon-circle { background: #fff; color: var(--c-primary); }
.icon-circle--light { background: var(--c-tint); color: var(--c-primary); }
.infobox ul { padding-left: 1.1em; }
.infobox li::marker { color: #d4e8f1; }
.infobox--soft { background: var(--c-tint); color: var(--c-text); }
.infobox--soft h2, .infobox--soft h3 { color: var(--c-primary); }
.infobox--soft a { color: var(--c-primary); }
.infobox--soft .icon-circle { background: var(--c-primary); color: #fff; }

/* Kennzahlen */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1.5rem; margin: 0; }
.stats div { margin: 0; }
.stats dt { font-size: .88rem; opacity: .9; order: 2; }
.stats dd { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.1; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats--dark dd { color: var(--c-primary); }
.stats--dark dt { color: var(--c-muted); opacity: 1; }
.source-note { font-size: .82rem; opacity: .85; margin: 1.25rem 0 0; }

/* Schnellzugriff */
.quicklinks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: calc(-1 * var(--section-y) - 2.5rem); position: relative; }
.quicklink {
  display: flex; flex-direction: column; gap: .6rem;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.35rem;
  text-decoration: none; color: var(--c-text); box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quicklink:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c-accent); color: var(--c-text); text-decoration: none; }
.quicklink strong { color: var(--c-primary); font-size: 1.08rem; }
.quicklink > span:not(.icon-circle) { font-size: .95rem; color: var(--c-muted); }
.quicklink--alert .icon-circle { background: var(--c-alert); }

/* ---------- Karten ---------- */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--c-tint); }
.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card__body > :last-child { margin-bottom: 0; }
.card__meta { font-size: .85rem; color: var(--c-gray); font-weight: 700; letter-spacing: .04em; margin-bottom: .35rem; }
.card h3 { margin-bottom: .4em; }
.card__more { margin-top: auto; padding-top: .5rem; }
.card--plain { box-shadow: none; }
.card--pad { padding: 1.5rem; }
.card--pad h3 { display: flex; align-items: center; gap: .6rem; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature h3 { margin-bottom: .25em; }
.feature p { margin: 0; color: var(--c-muted); }

/* Bilder mit Bildunterschrift */
.figure { margin: 0; }
.figure img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.figure figcaption { font-size: .88rem; color: var(--c-muted); margin-top: .55rem; font-style: italic; }
.figure--tall img { aspect-ratio: 4 / 5; }
.figure--wide img { aspect-ratio: 16 / 9; }
.img-stack { display: grid; gap: 1rem; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--c-line); background: #fff; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 640px; }
.table caption { text-align: left; padding: 1rem 1.2rem .25rem; font-weight: 700; color: var(--c-primary); }
.table th, .table td { padding: .75rem 1.1rem; text-align: right; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.table th:first-child, .table td:first-child { text-align: left; }
.table thead th { background: var(--c-primary); color: #fff; font-weight: 700; vertical-align: bottom; line-height: 1.25; white-space: normal; }
.table tbody tr:nth-child(even) { background: var(--c-tint-2); }
.table tbody th { font-weight: 600; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td.limit { color: var(--c-muted); font-size: .9rem; }
.table--prices { min-width: 0; }
.table--prices td, .table--prices th { white-space: normal; }
.table--prices td:last-child { font-weight: 700; color: var(--c-primary); font-size: 1.1rem; white-space: nowrap; }

/* Härteskala */
.hardness { margin: 1.5rem 0 .5rem; }
.hardness__bar {
  position: relative; height: 18px; border-radius: 999px;
  background: linear-gradient(90deg, #d4e8f1 0%, #529dba 40%, #337c9b 70%, #005b7f 100%);
}
.hardness__zones { display: grid; grid-template-columns: 8.4fr 5.6fr 11fr; font-size: .85rem; color: var(--c-muted); margin-top: .5rem; }
.hardness__zones span { border-left: 1px solid var(--c-line); padding-left: .4rem; }
.hardness__marker {
  position: absolute; top: -34px; transform: translateX(-50%);
  font-size: .78rem; font-weight: 700; color: var(--c-primary); white-space: nowrap; text-align: center;
}
.hardness__marker::after {
  content: ""; display: block; width: 3px; height: 30px; margin: 2px auto 0; background: var(--c-primary); border-radius: 2px;
}
.hardness__range {
  position: absolute; top: -6px; bottom: -6px; border: 3px solid var(--c-deep); border-radius: 999px; background: rgba(255,255,255,.18);
}

/* ---------- Ablauf / Schritte ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li {
  counter-increment: step; position: relative; margin: 0;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.2rem 4.4rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.2rem; top: 1.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-primary); color: #fff; font-weight: 700;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .25em; }
.steps p { margin: 0; color: var(--c-muted); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--c-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005b7f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.infobox .checklist li::before { background-color: #fff; }

/* ---------- Zeitleiste ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7.2rem; top: .5rem; bottom: .5rem; width: 3px; background: var(--c-light); border-radius: 3px; }
.timeline > li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 2.2rem; margin: 0 0 2rem; position: relative; }
.timeline > li::before {
  content: ""; position: absolute; left: calc(7.2rem - 7px); top: .45rem; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 4px solid var(--c-accent);
}
.timeline__year { font-weight: 700; font-size: 1.35rem; color: var(--c-primary); text-align: right; line-height: 1.4; }
.timeline__body h3 { margin-bottom: .3em; }
.timeline__body p { color: var(--c-muted); }
.timeline__body .figure { max-width: 420px; margin-top: .75rem; }

/* ---------- Team ---------- */
.person { text-align: left; }
.person__img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.person__role { color: var(--c-gray); font-weight: 700; font-size: .92rem; margin-bottom: .5rem; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.board li { margin: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.board strong { display: block; color: var(--c-primary); }
.board span { color: var(--c-muted); font-size: .92rem; }
.names { columns: 3; column-gap: 2rem; list-style: none; padding: 0; }
.names li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--c-line); margin: 0; }

/* ---------- Downloads / Formulare ---------- */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.downloads li { margin: 0; }
.download {
  display: flex; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1rem 1.2rem;
  text-decoration: none; color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
}
a.download:hover { border-color: var(--c-accent); box-shadow: var(--shadow); color: var(--c-text); text-decoration: none; }
.download__text { flex: 1; min-width: 0; }
.download__text strong { display: block; color: var(--c-primary); }
.download__text span { font-size: .9rem; color: var(--c-muted); }
.download__action { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--c-primary); font-size: .92rem; white-space: nowrap; }
.download--pending { background: var(--c-tint-2); border-style: dashed; }
.download--pending .download__action { color: var(--c-gray); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: .15em .6em; border-radius: 999px; background: var(--c-tint); color: var(--c-primary); vertical-align: .1em; }

/* ---------- Akkordeon / FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq details { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font-weight: 700; color: var(--c-primary); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--c-tint); display: grid; place-items: center; font-size: 1.2rem; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.3rem 1.2rem; }
.faq details > div > :last-child { margin-bottom: 0; }

/* ---------- Budget-Balken ---------- */
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.bars li { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; align-items: center; }
.bars__label { font-weight: 600; font-size: .96rem; }
.bars__track { grid-column: 1 / -1; grid-row: 2; height: 12px; background: var(--c-tint); border-radius: 999px; overflow: hidden; }
.bars__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), var(--c-primary)); border-radius: 999px; }
.bars__value { grid-row: 1; grid-column: 2; text-align: right; font-weight: 700; color: var(--c-primary); font-variant-numeric: tabular-nums; }

/* ---------- Gebührenrechner ---------- */
.calc { display: grid; gap: 1.25rem; }
.calc label { font-weight: 700; display: block; margin-bottom: .4rem; }
.calc__input { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.calc input[type="range"] { flex: 1; min-width: 180px; accent-color: #fff; }
.calc input[type="number"] {
  width: 7.5rem; font: inherit; font-weight: 700; padding: .5em .7em; border-radius: var(--radius-sm); border: 0; color: var(--c-primary);
}
.calc__result { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; margin: 0; background: rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
.calc__result dt { margin: 0; }
.calc__result dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__result .total { font-size: 1.25rem; border-top: 1px solid rgba(255,255,255,.35); padding-top: .5rem; margin-top: .25rem; }

/* ---------- Versorgungsschema ---------- */
.scheme { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 2rem); }
.scheme svg { width: 100%; height: auto; display: block; }
.scheme text { font-family: var(--font); }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin: 0; }
.contact-list strong { display: block; color: var(--c-primary); }
.contact-list a { font-weight: 700; }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--c-tint); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 2rem; border: 1px solid var(--c-line); }
.map-card__pin { color: var(--c-primary); }
.map-card__pin .icon { width: 48px; height: 48px; }

/* ---------- Social / CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--c-primary), var(--c-box));
  color: #fff; border-radius: calc(var(--radius) * 1.4); padding: clamp(1.75rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3eef6; }
.cta-band .btn-row { margin-top: 0; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-deep); color: #c9dbe8; font-size: .96rem; margin-top: 0; position: relative; }
.site-footer__wave {
  height: 64px; background: url("../img/wasser-band.jpg") center 70% / cover no-repeat; opacity: .9;
  border-bottom: 4px solid var(--c-accent);
}
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer__name { color: #fff; font-weight: 700; font-size: 1.15rem; line-height: 1.35; margin-top: .25rem; letter-spacing: .02em; }
.site-footer__title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.social { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.social li { margin: 0; }
.social a {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em .95em; border-radius: 999px;
  background: rgba(255,255,255,.1); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.social a:hover { background: rgba(255,255,255,.2); color: #fff; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center;
  border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.25rem 1.75rem; font-size: .88rem; color: #9fb8ca;
}
.site-footer__bottom p { margin: 0; }
.legal-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.legal-links li { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 92px); overflow-y: auto;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav__list { flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: 0; }
  .main-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
  .main-nav__item:last-child { border-bottom: 0; padding-top: 1rem; }
  .main-nav__item > a { flex: 1; padding: .95em .25em; font-size: 1.1rem; }
  .main-nav__item.is-active > a { box-shadow: none; color: var(--c-primary); }
  .main-nav__item:last-child > a { flex: none; margin: 0; text-align: center; width: 100%; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; background: var(--c-tint); }
  .sub-nav {
    position: static; box-shadow: none; border: 0; width: 100%; padding: 0 0 .75rem .75rem;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .has-sub.is-open > .sub-nav { display: block; }
  .has-sub:focus-within > .sub-nav { opacity: 1; }
  .hero__body { grid-template-columns: 1fr; }
  .quicklinks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .stats--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-3, .split, .split--even { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .names { columns: 2; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
  .topbar__inner { min-height: 38px; font-size: .84rem; }
  .site-header__inner { min-height: 72px; }
  .brand img { height: 58px; }
  .main-nav { max-height: calc(100vh - 72px); }
  .grid-2, .grid-4, .quicklinks { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .names { columns: 1; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__band { grid-template-columns: 1fr 1fr; gap: 6px; }
  .hero__band span:nth-child(3) { display: none; }
  .timeline::before { left: 7px; }
  .timeline > li { grid-template-columns: 1fr; gap: .25rem; padding-left: 2rem; }
  .timeline > li::before { left: 0; }
  .timeline__year { text-align: left; }
  .steps li { padding: 1.1rem 1.1rem 1.1rem 3.8rem; }
  .steps li::before { left: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .topbar, .site-header, .site-footer__wave, .nav-toggle, .pagehead__band, .hero__band { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
