/* Gemeinsame Bausteine der Prototypen. Ergänzt das Stylesheet der Seite (site/assets/index-*.css), ersetzt es nicht. */
:root {
  --navy: #0F1E3D;
  --blau: #2952E3;
  --blau-dunkel: #1E3FB8;
  --hell1: #5B9BF5;
  --hell2: #8FC2FF;
  --grund: #F4F7FF;
  --text: #0F1E3D;
  --text-leise: #3B4863;      /* 8,6:1 auf #F4F7FF */
  --rand: #C9D3EA;
  --karte: #FFFFFF;
  --gut: #0B6B3A;
  --warn: #8A4B00;
  --ring: 3px solid #2952E3;
  /* Werte der Seite auf die Markenfarben abstimmen (HSL-Tripel, wie im Seiten-CSS) */
  --background: 223.6 100% 97.8%;
  --primary: 226.8 76.9% 52.5%;
  --ring-hsl: 226.8 76.9% 52.5%;
}
html { scroll-padding-top: 84px; }
body { background: var(--grund); color: var(--text); }
:focus-visible { outline: var(--ring); outline-offset: 2px; }
.on-dark :focus-visible, .proto-banner :focus-visible { outline-color: var(--hell2); }

.proto-skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.proto-skip:focus { top: 8px; }

.proto-banner { max-width: none; background: var(--navy); color: #fff; font-size: 14px; line-height: 1.4; padding: 10px 16px; text-align: center; }
.proto-banner strong { color: var(--hell2); font-weight: 600; }

/* Kopf: Zielgrößen und Menü */
header [aria-controls^="menue-"] { min-width: 44px; min-height: 44px; }
header button[aria-label="Menü umschalten"] { min-width: 44px; min-height: 44px; }
.proto-mobilmenue { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rand); box-shadow: 0 12px 24px rgba(15,30,61,.12); max-height: calc(100vh - 64px); overflow: auto; padding: 8px 16px 20px; }
.proto-mobilmenue ul { list-style: none; margin: 0 0 12px; padding: 0; }
.proto-mobilmenue li a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 600; border-bottom: 1px solid #E6ECF8; }
.proto-mobilmenue .ctw-btn { width: 100%; }

/* Fuß: Zielgrößen */
footer a, div.bg-primary.text-sm a { display: inline-flex; align-items: center; min-height: 44px !important; min-width: 44px; }
div.bg-primary.text-sm .container-custom { min-height: 44px; }

/* Bausteine */
.ctw-seite { max-width: 880px; margin: 0 auto; padding: 24px 16px 56px; }
.ctw-seite-breit { max-width: 1080px; }
.ctw-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--blau); margin: 0 0 6px; }
.ctw-seite h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; font-weight: 700; margin: 0 0 12px; color: var(--navy); }
.ctw-seite h2 { font-size: clamp(22px, 5vw, 28px); line-height: 1.2; font-weight: 700; margin: 0 0 12px; color: var(--navy); }
.ctw-seite h3 { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; color: var(--navy); }
.ctw-lead { font-size: 18px; color: var(--text-leise); max-width: 62ch; margin: 0 0 16px; }
.ctw-karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 16px; padding: 20px; }
.ctw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; cursor: pointer; text-align: center; text-decoration: none; }
.ctw-btn-primary { background: var(--blau); color: #fff; }
.ctw-btn-primary:hover { background: var(--blau-dunkel); }
.ctw-btn-sekundaer { background: #fff; color: var(--navy); border-color: var(--navy); }
.ctw-btn-sekundaer:hover { background: #EAF0FF; }
.ctw-link { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.ctw-link:hover { color: var(--blau-dunkel); }
.ctw-seite p a, .ctw-seite li a:not(.ctw-btn) { color: var(--blau); text-decoration: underline; text-underline-offset: 3px; }
.ctw-liste { margin: 0; padding-left: 1.25rem; }
.ctw-liste li { margin: 4px 0; }
.ctw-klein { font-size: 14px; color: var(--text-leise); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Das Seiten-CSS nimmt Listen die Aufzählungszeichen; für Fließtext-Listen wieder einschalten */
.ctw-liste, .nis-hinweise ul, .fakten-partner, .fakten-abnahme ul { list-style: disc; }
.nis-schritte-liste, .mn-pruefen { list-style: decimal; }
.ctw-seite .mn-anker li a, .ctw-seite .fakten-inhalt li a { text-decoration: none; color: var(--navy); }
.ctw-seite .mn-karten li a, .ctw-seite .fakten-leistungen li a { text-decoration: none; color: var(--navy); }
.ctw-seite .mn-karten li a:hover, .ctw-seite .fakten-leistungen li a:hover { color: var(--blau-dunkel); text-decoration: underline; }
/* Kopfzeile deckend, damit Text beim Scrollen nicht durchscheint */
header.sticky { background-color: hsl(var(--background)); backdrop-filter: none; }
