/* Gemeinsame Gestaltung der Unterseiten (Investitionsplan, Wasserqualität, Wassergebühren, Aktuelles).
   Farben und Schrift wie auf der Startseite. */
:root { --ink: #092f39; --ink-soft: #31525a; --water: #6cd6df; --water-deep: #087f8c; --mist: #eaf7f6; --line: rgba(9,47,57,.15); --gold: #f2cf6b; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f8fcfb; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
a { color: var(--water-deep); }
:focus-visible { outline: 3px solid var(--water-deep); outline-offset: 4px; }
.wrap { width: min(1000px, calc(100% - 40px)); margin-inline: auto; }

/* Kopfzeile */
header { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); }
header .wrap { min-height: 70px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand img { width: 34px; height: 40px; object-fit: contain; }
.unternav { display: flex; gap: 18px; margin-left: auto; }
.unternav a { color: rgba(255,255,255,.84); text-decoration: none; font-size: .92rem; font-weight: 600; }
.unternav a:hover, .unternav a[aria-current="page"] { color: var(--water); }
.nav-cta { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 2px solid #e5484d; border-radius: 999px; background: var(--water); color: var(--ink); font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: white; }

/* Seitenkopf */
.seitenkopf { padding: 64px 0 48px; background: linear-gradient(180deg, var(--ink) 0%, #0d3d49 100%); color: white; }
.brotkrumen { margin: 0 0 18px; font-size: .85rem; color: rgba(255,255,255,.7); }
.brotkrumen a { color: var(--water); text-decoration: none; }
.kicker { margin: 0; color: var(--water); text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 800; }
h1 { margin: 10px 0 0; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; }
.seitenkopf .lead { margin: 22px 0 0; max-width: 760px; font-size: clamp(1.1rem, 2vw, 1.3rem); color: rgba(255,255,255,.88); }
.seitenkopf .lead strong { color: var(--gold); }
.seitenkopf .lead a { color: var(--water); }

/* Inhalt */
main section { padding: 56px 0; border-bottom: 1px solid var(--line); }
main section:last-of-type { border-bottom: 0; }
h2 { margin: 0 0 16px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; }
h3 { margin: 28px 0 8px; font-size: 1.2rem; }
p, li { color: var(--ink-soft); }
p strong, li strong { color: var(--ink); }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin: 28px 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); }
.zahlen li { padding: 22px; background: white; }
.zahlen strong { display: block; color: var(--water-deep); font-size: 2.2rem; line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.zahlen span { display: block; margin-top: 10px; font-size: .92rem; line-height: 1.4; }
.tabelle { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 6px; background: white; }
table { width: 100%; border-collapse: collapse; }
caption { padding: 16px 18px; text-align: left; font-weight: 750; background: var(--mist); }
th, td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--ink); color: white; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 800; color: var(--ink); border-bottom: 0; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.hinweis { margin: 24px 0; padding: 20px 24px; background: var(--mist); border-left: 3px solid var(--water-deep); }
.hinweis p { margin: 0; }
figure { margin: 28px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-soft); }
.quellen { padding-left: 20px; }
.quellen li { margin: 6px 0; }

/* Aufruf */
.aufruf { margin: 0; padding: 48px 0; background: var(--water-deep); color: white; }
.aufruf .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.aufruf h2 { margin: 0; color: white; }
.aufruf p { margin: 8px 0 0; color: rgba(255,255,255,.88); }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 26px; border-radius: 999px; background: var(--water); color: var(--ink); border: 3px solid #e5484d; font-weight: 800; text-decoration: none; }
.button:hover { background: white; }

/* Weitere Seiten */
.weiter { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.weiter a { display: block; height: 100%; padding: 20px 22px; background: white; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 750; }
.weiter a span { display: block; margin-top: 6px; color: var(--ink-soft); font-weight: 400; font-size: .92rem; }
.weiter a:hover { border-color: var(--water-deep); }

/* Aktuelles */
.beitrag { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.beitrag:last-child { border-bottom: 0; }
.beitrag img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: var(--ink); border: 1px solid var(--line); }
.beitrag time { color: var(--water-deep); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.beitrag p { margin: 8px 0 12px; white-space: pre-line; }

footer { padding: 40px 0; background: #06242c; color: rgba(255,255,255,.65); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: white; text-decoration: none; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (max-width: 860px) { .unternav { display: none; } .nav-cta { margin-left: auto; } }
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .brand span { font-size: .95rem; }
  .beitrag { grid-template-columns: 1fr; }
  th, td { padding: 12px 14px; }
}
