/* ============================================================
   Gemeindewasser – gemeinsames Stylesheet
   ------------------------------------------------------------
   Gestaltung nach der Gemeindewasser-Broschüre (2026):
   eine Markenfarbe (Prozessblau C87 M58 Y0 K0 = #1C6BBA, wie im PDF-Viewer), Roboto Mono für
   Headlines und Auszeichnungen, Roboto Light/Regular für Fließtext,
   Outline-Pills, Plus-Icons, Wasser-Splash-Fotografie.
   ============================================================ */

/* Schriften werden lokal ausgeliefert (kein Google-Fonts-CDN, DSGVO).
   Dateien: /fonts (@fontsource, Latin-Subset). */
@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/roboto-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/roboto-latin-500-normal.woff2') format('woff2');
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Marke */
  --blue: #1C6BBA;
  --blue-deep: #0F4E8C;
  --navy: #0B2A4F;
  --blue-tint: #EAF1F9;
  --blue-line: #C6D8EC;

  /* Neutrale */
  --ink: #1C2530;
  --text: #3B4653;
  --muted: #6A7581;
  --line: #DCE3EA;
  --paper: #FFFFFF;
  --paper-2: #F5F8FB;

  --mono: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

a {
  color: var(--blue);
}

strong {
  font-weight: 500;
  color: var(--ink);
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Typografie ─────────────────────────────────────────── */
.display {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  color: var(--blue);
}

.subhead {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.4;
  color: var(--blue);
}

.lead {
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 20px);
  line-height: 1.6;
  color: var(--text);
}

.mono-note {
  font-family: var(--mono);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.55;
  color: var(--blue);
}

/* ── Pills / Tags ───────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 14px;
  max-width: 100%;
}

.tag--light {
  color: #FFFFFF;
}

/* URL-Pill mit Tropfen – wie auf dem Broschüren-Cover */
.url-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-weight: 300;
  font-size: 19px;
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
  border: 1.5px solid #FFFFFF;
  border-radius: 999px;
  padding: 16px 36px 16px 26px;
}

.url-pill svg {
  position: absolute;
  right: -10px;
  top: -12px;
  width: 26px;
  height: 32px;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s;
}

.btn--primary {
  background: var(--blue);
  color: #FFFFFF;
}

.btn--primary:hover {
  background: var(--blue-deep);
}

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue-tint);
}

.btn--white {
  background: #FFFFFF;
  color: var(--blue);
}

.btn--white:hover {
  background: var(--blue-tint);
}

.btn--ghost-white {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, .7);
}

.btn--ghost-white:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #FFFFFF;
}

/* ── Plus-Icon (Broschüre: ⊕) ───────────────────────────── */
.plus-icon {
  width: 34px;
  height: 34px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ── Listen mit Punkt ───────────────────────────────────── */
.dot-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.dot-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px);
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  display: block;
  flex-shrink: 0;
}

.site-logo img {
  width: 206px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.site-header .btn {
  gap: 0;
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  .site-header .btn {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 64px;
  }

  .site-logo img {
    width: 150px;
  }

  .site-header .btn {
    padding: 0 16px;
    font-size: 12px;
  }

  .hide-sm {
    display: none;
  }
}

/* ── Unterseiten-Hero ───────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #FFFFFF;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}

.page-hero-splash {
  position: absolute;
  right: -40px;
  top: -60px;
  width: min(520px, 60vw);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.page-hero .back-link {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  text-decoration: none;
  margin-bottom: 36px;
}

.page-hero .back-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-hero .tag {
  margin-bottom: 22px;
}

.page-hero h1 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.page-hero p {
  max-width: 720px;
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, .88);
}

.page-hero p strong {
  color: #FFFFFF;
}

/* ── Rechtstexte / Inhaltsseiten ────────────────────────── */
.content-wrap {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.legal-main .section+.section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.legal-main h2 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 27px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--blue);
  margin-bottom: 16px;
}

.legal-main h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin: 26px 0 10px;
}

.legal-main h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.legal-main p,
.legal-main li {
  font-size: 16px;
  line-height: 1.75;
}

.legal-main p+p {
  margin-top: 14px;
}

.legal-main ul {
  margin: 14px 0 0 20px;
}

.legal-main li {
  margin-bottom: 8px;
}

.legal-main li::marker {
  color: var(--blue);
}

.legal-side {
  display: grid;
  gap: 0;
  border-top: 3px solid var(--blue);
}

.legal-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.legal-item-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.legal-item p {
  font-size: 15px;
  line-height: 1.65;
}

@media (max-width: 920px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

/* ── CTA-Band ───────────────────────────────────────────── */
.cta-band {
  background: var(--blue);
  color: #FFFFFF;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 44px;
  padding-bottom: 44px;
  flex-wrap: wrap;
}

.cta-band p {
  font-family: var(--mono);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .86);
  padding: 64px 0 28px;
  font-size: 16px;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: 40px 48px;
  align-items: start;
}

.footer-logo {
  width: 72px;
  height: auto;
}

.footer-claim {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
  margin-top: 22px;
  max-width: 28ch;
}

.footer-title {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 16px;
}

.footer-contact {
  line-height: 1.7;
}

.footer-contact p+p {
  margin-top: 18px;
}

.footer-contact a,
.footer-nav a,
.footer-nav button {
  color: #FFFFFF;
  text-decoration: none;
}

.footer-contact a:hover,
.footer-nav a:hover,
.footer-nav button:hover {
  text-decoration: underline;
}

.footer-nav {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.footer-nav button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.footer-bottom a {
  color: inherit;
}

@media (max-width: 860px) {
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
