/* ==========================================================================
   BFSG-Kit — Stylesheet
   Bewusst barrierearm gebaut (WCAG 2.1 AA): hohe Kontraste, sichtbarer Fokus,
   skalierbare rem-Größen, semantische Struktur, reduzierte Bewegung respektiert.
   Das Produkt verkauft Barrierefreiheit — also lebt die Seite sie vor.
   ========================================================================== */

:root {
  /* Farben — Kontraste gegen #ffffff bzw. #ffffff-Text geprüft auf >= 4.5:1 */
  --bg:           #ffffff;
  --surface:      #f4f6f9;
  --surface-2:    #e9eef4;
  --border:       #cdd5df;
  --text:         #11151c;   /* ~16:1 auf weiß */
  --text-muted:   #44505f;   /* ~7.4:1 auf weiß */
  --primary:      #1747d4;   /* Füll-Akzent (Button-BG, Rahmen, Balken) */
  --primary-strong:#0f2f93;  /* Hover/auf hellen Flächen */
  --primary-ink:  #ffffff;   /* Text auf --primary (weiß auf #1747d4 ~ 7.3:1) */
  --brand-text:   #1747d4;   /* Akzent-TEXT (Links, Marker) – im Dark Mode aufgehellt */
  --brand-text-strong:#0f2f93;
  --accent:       #0a7c54;   /* "enthalten"/Häkchen, ~4.8:1 auf weiß */
  --urgent:       #b3261e;   /* Dringlichkeit/Bußgeld, ~6.0:1 auf weiß */
  --urgent-bg:    #fdecea;
  --focus:        #b35400;   /* Fokus-Outline, hoch sichtbar */

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);

  --step-fluid: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
  --space: 1rem;
}

/* ---- Reset / Base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-fluid);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }
img, svg { max-width: 100%; height: auto; }

a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-text-strong); }

/* ---- Fokus: immer deutlich sichtbar ------------------------------------ */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Skip-Link ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: 8px; top: -48px;
  background: var(--primary); color: var(--primary-ink); padding: 10px 16px;
  border-radius: 8px; z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 8px; color: var(--primary-ink); }

/* ---- Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
section { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--alt { background: var(--surface); }
.lead { font-size: 1.15em; color: var(--text-muted); max-width: 60ch; }
.center { text-align: center; }
.measure { max-width: 65ch; }

/* ---- Header / Nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.brand { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); display: inline-flex; gap: .5ch; align-items: center; }
.brand .dot { color: var(--brand-text); }
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav .nav-link { text-decoration: none; color: var(--text); font-weight: 600; }
.nav .nav-link:hover { color: var(--brand-text-strong); text-decoration: underline; }
@media (max-width: 720px){ .nav .nav-link { display:none; } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5ch;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: var(--primary-ink); }
.btn--primary:hover { background: var(--primary-strong); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand-text-strong); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); color: var(--brand-text-strong); }
.btn--lg { font-size: 1.05rem; padding: .95em 1.8em; }
.btn--block { width: 100%; }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.hero .eyebrow {
  display: inline-block; font-weight: 700; color: var(--urgent);
  background: var(--urgent-bg); padding: .35em .8em; border-radius: 999px;
  font-size: .85rem; margin-bottom: 1rem;
}
.hero p.lead { margin-block: 1.25rem 2rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--text-muted); font-size: .9rem; margin-top: 1rem; }

/* ---- Karten / Grids ----------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

/* ---- Feature-Liste mit Häkchen ----------------------------------------- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 800;
}

/* ---- Preis-Tabellen ----------------------------------------------------- */
.pricing { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.price-card .tier { font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }
.price-card .amount { font-size: 2.6rem; font-weight: 800; margin: .2em 0; }
.price-card .amount small { font-size: .9rem; font-weight: 600; color: var(--text-muted); }
.price-card .badge {
  align-self: flex-start; background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; margin-bottom: .6rem;
}
.price-card form { margin-top: auto; }

/* ---- FAQ (details/summary) --------------------------------------------- */
.faq details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .75rem; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 800; color: var(--brand-text); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1.1rem; color: var(--text-muted); }

/* ---- Hinweis / Disclaimer Box ------------------------------------------ */
.notice { border-left: 4px solid var(--primary); background: var(--surface); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.notice--urgent { border-color: var(--urgent); background: var(--urgent-bg); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: #0e1116; color: #cdd5df; padding-block: 2.5rem; }
.site-footer a { color: #9ec1ff; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer small { color: #8893a2; }

/* ---- Visually-hidden (für Screenreader-Labels) ------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Betroffenheits-Check Widget --------------------------------------- */
.checker { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.checker fieldset { border: 0; margin: 0 0 1rem; padding: 0; }
.checker legend { font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }
.checker .options { display: grid; gap: .6rem; }
.checker label.opt {
  display: flex; gap: .6rem; align-items: flex-start;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem 1rem; cursor: pointer; background: var(--bg);
}
.checker label.opt:hover { border-color: var(--primary); }
.checker input[type="radio"] { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.checker .result { margin-top: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; }
.checker .result.affected { background: var(--urgent-bg); border: 1px solid var(--urgent); }
.checker .result.maybe    { background: #fff7e6; border: 1px solid #b3791e; }
.checker .result.exempt   { background: #e9f7f0; border: 1px solid var(--accent); }

/* ---- Dark Mode (respektiert Systemeinstellung, bleibt WCAG-AA) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0e1116;
    --surface:      #161b22;
    --surface-2:    #1f262f;
    --border:       #2c343f;
    --text:         #f2f5f9;   /* ~16:1 auf --bg */
    --text-muted:   #b3bdc9;   /* ~9:1 auf --bg */
    --primary:      #2f5fe0;   /* Button-Füllung; weißer Text ~5.5:1 */
    --primary-strong:#5a82ee;
    --primary-ink:  #ffffff;
    --brand-text:   #8ab4ff;   /* Akzent-Text auf dunkel ~8.8:1 */
    --brand-text-strong:#b3ccff;
    --accent:       #4cc79a;
    --urgent:       #ff9a90;
    --urgent-bg:    #3a1f1d;
    --focus:        #ffb86b;
    --shadow: 0 1px 2px rgba(0,0,0,.45), 0 10px 28px rgba(0,0,0,.55);
  }
  .site-header { background: rgba(14,17,22,.9); }
  .card, .price-card { background: var(--surface); }
  .checker label.opt { background: var(--surface-2); }
  .checker .result.affected { background: #3a1f1d; border-color: var(--urgent); }
  .checker .result.maybe    { background: #2e2715; border-color: #d8a64a; }
  .checker .result.exempt   { background: #14271f; border-color: var(--accent); }
  img, .card { border-color: var(--border); }
}

