/* BarrierZero — Website.
   Designregeln, die dieses Stylesheet einhält (und vorlebt):
   - Kontrast: alle Text/Hintergrund-Paare ≥ 6,6:1 (AA verlangt 4,5:1)
   - Fokus: durchgängig sichtbarer 3px-Indikator, nie outline:none ohne Ersatz
   - Zielgrößen: interaktive Elemente ≥ 24×24 px (WCAG 2.5.8)
   - Bewegung/Scrollen nur bei prefers-reduced-motion: no-preference
   - Reflow: einspaltig ab schmalen Viewports, kein horizontales Scrollen
   - Links im Fließtext sind unterstrichen (nicht nur farbig) */

:root {
  color-scheme: light;
  --primar: #1a3e5c;
  --primar-dunkel: #14304a;
  --tinte: #16344d;
  --link: #14497a;
  --text: #1c1c1c;
  --gedeckt: #454545;
  --flaeche: #f4f7fa;
  --band: #eef4f9;
  --linie: #dbe3ea;
  --chip-flaeche: #fdf1e0;
  --chip-text: #7a4a12;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  a, .cta-knopf, .cta-neben, .paket, details { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0;
  color: var(--text);
  background: #fff;
  line-height: 1.65;
  font-size: 1.05rem;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Skip-Link & Fokus ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primar);
  color: #fff;
  padding: 0.7rem 1.1rem;
  z-index: 10;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primar);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Kopf ---------- */

header.seite { border-bottom: 1px solid var(--linie); padding: 1.1rem 0; }
.kopfzeile { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; align-items: baseline; justify-content: space-between; }

.marke { font-weight: 750; font-size: 1.2rem; margin: 0; letter-spacing: -0.01em; }
.marke a { color: var(--tinte); text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.2rem 0; }
.marke a:hover, .marke a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.marke svg { flex: none; }

nav.haupt ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.1rem 1.1rem; }
nav.haupt a {
  color: var(--link);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.98rem;
  display: inline-block;
  padding: 0.35rem 0.1rem; /* Zielgröße ≥ 24px */
}
nav.haupt a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */

.band-hero { background: var(--band); border-bottom: 1px solid var(--linie); padding: 3rem 0 2.6rem; }

.chip {
  display: inline-block;
  background: var(--chip-flaeche);
  color: var(--chip-text);
  border: 1px solid #eeddc0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
}

h1 {
  color: var(--tinte);
  font-size: clamp(1.9rem, 4.5vw + 0.8rem, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.9rem 0 0.8rem;
}

.unterzeile { font-size: 1.14rem; color: var(--gedeckt); max-width: 40rem; margin: 0 0 1.4rem; }

.cta-reihe { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.cta-knopf {
  display: inline-block;
  background: var(--primar);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.cta-knopf:hover { background: var(--primar-dunkel); }

.cta-neben {
  display: inline-block;
  background: #e7eef5;
  color: var(--primar-dunkel);
  border: 1px solid var(--linie);
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 650;
}
.cta-neben:hover { background: #dce7f0; }

/* ---------- Inhalt ---------- */

main .wrap > h2, .abschnitt h2 {
  color: var(--tinte);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-top: 3.2rem;
  scroll-margin-top: 1rem;
}
h3 { color: var(--tinte); font-size: 1.12rem; margin-top: 1.75rem; }

main a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
main a:hover { text-decoration-thickness: 2px; }

.hinweis-box {
  background: var(--flaeche);
  border-left: 4px solid var(--primar);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.75rem 0;
}
.hinweis-box p { margin: 0; }

/* ---------- Pakete ---------- */

.pakete { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .pakete { grid-template-columns: 1fr 1fr; } }

.paket {
  position: relative;
  border: 1px solid var(--linie);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.1rem;
  margin: 0;
  background: #fff;
}
.paket:hover { border-color: var(--primar); }
.paket h3 { margin-top: 0; }
.paket .preis { font-size: 1.4rem; font-weight: 750; color: var(--tinte); display: block; margin: 0.35rem 0 0.5rem; letter-spacing: -0.01em; }
.paket .zusatz { color: var(--gedeckt); font-size: 0.95rem; }
.paket p:last-child { margin-bottom: 0; }

.paket-hervor { border: 2px solid var(--primar); }
.paket-hervor .kern-chip {
  position: absolute;
  top: -0.85rem;
  left: 1.2rem;
  background: var(--primar);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Ablauf ---------- */

ol.ablauf { list-style: none; counter-reset: schritt; padding: 0; margin: 1.5rem 0; }
ol.ablauf li {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 1.4rem 3.4rem;
  margin: 0;
}
ol.ablauf li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--primar);
  color: #fff;
  font-weight: 750;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}
ol.ablauf li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.4rem;
  bottom: 0.2rem;
  width: 2px;
  background: var(--linie);
}
ol.ablauf strong { color: var(--tinte); }

/* ---------- Methode ---------- */

.methode-karten { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 640px) { .methode-karten { grid-template-columns: 1fr 1fr; } }
.methode-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.methode-karte h3 { margin-top: 0; }
.methode-karte ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }
.methode-karte li { margin-bottom: 0.35rem; }

/* ---------- FAQ ---------- */

details {
  border: 1px solid var(--linie);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin: 0.65rem 0;
  background: #fff;
}
details:hover { border-color: var(--primar); }
summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--tinte);
  padding: 0.15rem 0; /* Zielgröße */
}
details[open] { background: var(--flaeche); }
details[open] summary { margin-bottom: 0.4rem; }
details p { margin: 0.4rem 0 0.2rem; }

/* ---------- Tabellen (Unterseiten) ---------- */

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { border: 1px solid var(--linie); padding: 0.55rem 0.75rem; text-align: left; }
th { background: var(--flaeche); }

/* ---------- Fuß ---------- */

footer.seite {
  border-top: 1px solid var(--linie);
  background: var(--flaeche);
  margin-top: 3.5rem;
  padding: 1.6rem 0 2rem;
  color: var(--gedeckt);
  font-size: 0.92rem;
}
footer.seite ul { list-style: none; padding: 0; margin: 0 0 0.6rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer.seite a { color: var(--link); display: inline-block; padding: 0.2rem 0; }
footer.seite p { margin: 0.3rem 0; }
