/* ==========================================================
   Wassertest & Beratung – Stylesheet
   Farben unten in :root zentral anpassbar.
   Keine externen Schriften / keine Tracker -> schnell & DSGVO-freundlich
   ========================================================== */

:root {
  --blue-900: #0b2a4a;
  --blue-700: #0f4c81;
  --blue-500: #1a7bc4;
  --blue-100: #e6f2fb;
  --blue-50:  #f3f9fd;
  --aqua:     #22b3c8;
  --text:     #1f2a37;
  --muted:    #5b6878;
  --line:     #d9e4ee;
  --white:    #ffffff;
  --ok:       #1d8a5a;
  --radius:   14px;
  --shadow:   0 8px 28px rgba(11, 42, 74, .10);
  --max:      1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-500); }

h1, h2, h3 { line-height: 1.2; color: var(--blue-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--blue-50); }
.section--dark { background: var(--blue-900); color: #dce9f5; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section__head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section__head p { color: var(--muted); }
.section--dark .section__head p { color: #b9cde0; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-500);
  margin-bottom: .6rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue-900);
  color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--blue-700); color: #fff; box-shadow: 0 6px 18px rgba(15,76,129,.28); }
.btn--primary:hover { background: var(--blue-500); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn--ghost:hover { background: var(--blue-100); }
.btn--light { background: #fff; color: var(--blue-900); }
.btn--light:hover { background: var(--blue-100); color: var(--blue-900); }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--aqua); outline-offset: 2px;
}
.cta-note { font-size: .9rem; color: var(--muted); margin-top: .7rem; }

/* ---------- 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(6px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--blue-900); font-weight: 800; }
.logo__mark {
  width: 36px; height: 36px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--aqua), var(--blue-700)); flex: none;
}
.logo__text { line-height: 1.1; }
.logo__text small { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.nav a:hover { color: var(--blue-500); }
.nav .btn { padding: .65rem 1.2rem; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  font: inherit; color: var(--blue-900);
}
.nav-toggle__bar { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(34,179,200,.18), transparent 60%),
    linear-gradient(180deg, var(--blue-50), #fff);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__lead { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .5rem; }
.checks li { position: relative; padding-left: 1.9rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f4c81' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.section--dark .checks li::before { background-color: rgba(255,255,255,.12); }

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

/* ---------- Bild-Platzhalter ---------- */
.img-ph {
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
  min-height: 320px; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--blue-100), var(--blue-100) 12px, #eef6fc 12px, #eef6fc 24px);
  border: 2px dashed #9cc3e2; color: var(--blue-700); font-weight: 600;
}
.img-ph--round { aspect-ratio: 1; min-height: 0; border-radius: 50%; max-width: 320px; margin-inline: auto; }
.photo { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Karten / Raster ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: 0 2px 10px rgba(11,42,74,.04);
}
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-700); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }

.question-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 1rem; }
.question-list li {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--aqua);
  border-radius: 10px; padding: 1rem 1.25rem;
}

/* ---------- Ablauf ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--blue-700); color: #fff; font-weight: 800; margin-bottom: 1rem;
}

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.signature { font-weight: 700; color: var(--blue-900); margin-top: 1rem; }

/* ---------- Hinweis-Box ---------- */
.notice {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; font-size: .95rem; color: var(--muted); max-width: 820px; margin: 2.5rem auto 0;
}
.notice strong { color: var(--text); }

/* ---------- Kundenstimmen ---------- */
.quote { font-style: italic; }
.quote footer { font-style: normal; font-weight: 600; color: var(--blue-900); margin-top: .8rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: .8rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.25rem; font-weight: 600;
  position: relative; color: var(--blue-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue-500); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.25rem 1.1rem; color: var(--muted); }

/* ---------- CTA-Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: #dce9f5; border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin-inline: auto; }
.cta-band .cta-note { color: #b9cde0; }

/* ---------- Formular ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow); color: var(--text);
}
.form h2, .form h3 { margin-bottom: .3rem; }
.form__intro { color: var(--muted); font-size: .95rem; margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--text); background: var(--blue-50);
}
.field input:focus, .field textarea:focus { border-color: var(--blue-500); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(26,123,196,.15); }
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 1.2rem 0; }
.consent input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--blue-700); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form__small { font-size: .82rem; color: var(--muted); margin-top: .9rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #b9cde0; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #dce9f5; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem;
}
.disclosure { font-size: .85rem; color: #9fb7cc; max-width: 70ch; }

/* ---------- Landingpage-spezifisch ---------- */
.lp-header .container { justify-content: center; }
@media (min-width: 600px) { .lp-header .container { justify-content: space-between; } }
.lp-header__phone { display: none; text-decoration: none; font-weight: 600; }
@media (min-width: 600px) { .lp-header__phone { display: inline; } }
.lp-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.lp-hero .form-wrap { align-items: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.5rem; font-size: .92rem; color: var(--muted); }
.trust-row span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .7rem 1rem;
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line); display: none;
}
@media (max-width: 760px) {
  .sticky-cta { display: block; }
  .has-sticky-cta { padding-bottom: 76px; }
}

/* ---------- Rechtstexte ---------- */
.legal { max-width: 820px; }
.legal h1 { margin-top: .5rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal-warning {
  background: #fff7e6; border: 1px solid #f2c46d; border-radius: 12px; padding: 1rem 1.25rem;
  color: #6b4a00; margin-bottom: 2rem; font-size: .95rem;
}

/* ---------- Messwerte als Chips ---------- */
.chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 760px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.1rem; font-weight: 600; color: var(--blue-900); }
.small-note { text-align: center; font-size: .92rem; color: var(--muted); max-width: 640px; margin: 1.5rem auto 0; }

/* ---------- Header-Telefon ---------- */
.header-phone { font-weight: 700; text-decoration: none; color: var(--blue-700); white-space: nowrap; }
@media (max-width: 1080px) { .header-phone { display: none; } }

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Fotos ---------- */
.hero-photo { width: 100%; height: auto; aspect-ratio: 626 / 418; object-fit: cover; object-position: 45% 30%; }
.portrait { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-inline: auto; box-shadow: var(--shadow); border: 6px solid #fff; }

/* ---------- Hero mit Vollbild-Foto ---------- */
.hero-full {
  position: relative; color: #fff; text-align: center;
  min-height: min(88vh, 760px); display: grid; align-items: center;
  padding: 5rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(6,24,43,.55) 0%, rgba(6,24,43,.65) 60%, rgba(6,24,43,.8) 100%),
    url("../img/hero-wasser.jpg") center / cover no-repeat,
    linear-gradient(135deg, #0f4c81, #06182b);
}
.hero-full__inner { max-width: 820px; }
.hero-full h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.8rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero-full .eyebrow { color: #8fd8e6; }
.hero-full__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: #e3eef8; max-width: 40ch; margin: 0 auto; }
.hero-full .hero__actions { justify-content: center; }
.btn--outline-light { border-color: rgba(255,255,255,.8); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-full__checks { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; font-size: .98rem; color: #e3eef8; }
.hero-full__checks li::before { content: "✓ "; color: #8fd8e6; font-weight: 700; }
.hero-full .btn--primary { background: var(--blue-500); box-shadow: 0 6px 22px rgba(26,123,196,.45); }
.hero-full .btn--primary:hover { background: #2a8fd8; }
@media (max-width: 760px) {
  .hero-full {
    background:
      linear-gradient(180deg, rgba(6,24,43,.6) 0%, rgba(6,24,43,.7) 60%, rgba(6,24,43,.85) 100%),
      url("../img/hero-wasser-mobil.jpg") center / cover no-repeat,
      linear-gradient(135deg, #0f4c81, #06182b);
  }
}
.hero__lead a { color: var(--blue-700); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Kennzahlen / Quellen ---------- */
.stat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; text-align:center; }
.stat__label { display:block; font-size:.85rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color: var(--blue-500); }
.stat__value { display:block; font-size: clamp(2rem, 4vw, 2.6rem); font-weight:800; color: var(--blue-900); margin:.3rem 0; }
.stat__sub { display:block; color: var(--muted); font-size:.95rem; }
sup a { text-decoration:none; font-size:.75em; color: var(--blue-500); margin-left:1px; }
.mini-steps { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.mini-steps li { margin-bottom: .5rem; }
.sources { max-width: 820px; font-size: .85rem; color: var(--muted); }
.sources h2 { font-size: 1rem; color: var(--muted); }
.sources ol { padding-left: 1.2rem; }
.nav a[aria-current="page"] { color: var(--blue-500); }

/* ---------- Bildband Dresden ---------- */
.photo-band { min-height: clamp(320px, 45vw, 520px); background-size: cover; background-position: center 30%; display: grid; align-items: end; color: #fff; }
.photo-band__inner { padding: 2.5rem 0 3rem; }
.photo-band h2 { color: #fff; max-width: 18ch; text-shadow: 0 2px 16px rgba(0,0,0,.4); margin: 0; }
.photo-band__eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #ffd9a8; margin-bottom: .5rem; }

/* ---------- Fragebogen ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field select { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); background: var(--blue-50); }
.choice { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.choice legend { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; padding: 0; width: 100%; }
.choice label { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--blue-50); font-size: .92rem; font-weight: 500; cursor: pointer; margin: 0; }
.choice label:has(input:checked) { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-900); }
.choice input { accent-color: var(--blue-700); margin: 0; }
.field.choice input { width: auto; padding: 0; border: 0; background: none; box-shadow: none; }
.field.choice label { white-space: nowrap; }

.nav a { white-space: nowrap; }
