/* Markus Garbe, Basis: Reset, Typografie, gemeinsame Bausteine (Vertrag in _bau/AUFTRAG-GEMEINSAM.md). Geschrieben von OBEN-A, benutzt von OBEN-B und BLATT. Klassen-Präfix o-. */

/* Cookie-Hinweis v2 in der Marke (nur Variablen, keine eigenen Regeln; beide Hauptknöpfe teilen eine Regel im Kit). :root wie in der aktiven Fassung
   (Mail-Marke liest :root, panel/src/server/member-mail/brand.ts); die Cookie-Farben von COOKIE-2011 stehen deshalb am Element, direkt unter diesem Block. */
:root {
  --nf-consent-bg: #001524;
  --nf-consent-fg: #FFFFFF;
  --nf-consent-leise: #C9D3DF;
  --nf-consent-rand: #1E3448;
  --nf-consent-knopf-bg: #FFFFFF;
  --nf-consent-knopf-fg: #001524;
  --nf-consent-akzent: #A3B2C5;
  --nf-consent-radius: 16px;
  --nf-consent-knopf-radius: 999px;
  --nf-consent-font: var(--font-text);
  --nf-consent-titel-font: var(--font-headline);
  --nf-consent-titel-gewicht: 700;
}

/* Cookie-Hinweis v2 (COOKIE-2011): helle Fläche der Seite, 1 px Rand, beide Hauptknöpfe in Navy. Mail-Marke liest :root (panel/src/server/member-mail/brand.ts),
   Cookie-Farben deshalb am Element (gleiche Spezifität wie das Kit, landings/mastermind/_kit/nf-funnel.css).
   Dunkle Variante (Stand vor COOKIE-2011, steht als :root oben): bg #001524, fg #FFFFFF, leise #C9D3DF, rand #1E3448, knopf-bg #FFFFFF, knopf-fg #001524, akzent #A3B2C5. */
#nf-consent.nf-cc {
  --nf-consent-bg: var(--flaeche-2);
  --nf-consent-fg: var(--text-2);
  --nf-consent-leise: #4F6073;
  --nf-consent-rand: var(--flaeche-5);
  --nf-consent-knopf-bg: var(--primaer);
  --nf-consent-knopf-fg: var(--text-3);
  --nf-consent-knopf-rand: var(--primaer);
  --nf-consent-akzent: var(--primaer);
  --nf-consent-titel-gewicht: 400; /* Poppins 600 ist bei 360 px 0,8 px zu breit für eine Titelzeile neben "Einstellungen" (Karte sonst 218 px hoch, A7 verlangt 210) */
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, video, canvas { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Typografie */
body {
  background: var(--flaeche-2);
  color: var(--text-1);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-headline); font-weight: 800; text-wrap: balance; color: inherit; }
h1 { font-size: 30px; line-height: 34px; letter-spacing: -0.02em; }
p, li, dd { text-wrap: pretty; }
strong, b { font-weight: 600; }

/* Bausteine */
.o-wrap { width: 100%; max-width: 560px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 960px) { .o-wrap--breit { max-width: 1120px; } }

.o-sek { position: relative; padding-block: 48px; }
@media (min-width: 768px) { .o-sek { padding-block: 56px; } }
.o-sek--navy { background: linear-gradient(180deg, #001524 0%, #051A2E 100%); color: #FFFFFF; --o-neben: #A3B2C5; }
.o-sek--weiss { background: #FFFFFF; color: var(--text-1); --o-neben: #4A5B6C; }
.o-sek--hell { background: #F3F3F3; color: var(--text-1); --o-neben: #4A5B6C; }
.o-sek--blau { background: #E1E8EF; color: var(--text-1); --o-neben: #3E4F61; }

.o-h2 { font-family: var(--font-headline); font-weight: 800; font-size: 26px; line-height: 30px; letter-spacing: -0.02em; text-wrap: balance; }
@media (min-width: 960px) { .o-h2 { font-size: 36px; line-height: 40px; } }
.o-lead { font-size: 17px; line-height: 26px; }
.o-klein { font-size: 14px; line-height: 20px; }
.o-neben { color: var(--o-neben, #4A5B6C); }
.o-eyebrow { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* Das EINE Schlüsselwort je Überschrift */
.o-key { font-family: var(--font-akzent); font-style: italic; font-weight: 400; font-size: 1.2em; line-height: .9; letter-spacing: 0; padding-inline-end: .04em; }

/* Zahlen */
.o-zahl { font-family: var(--font-headline); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Knopf: rote Pille, Pfeil-Kreis rechts */
.o-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 8px 0 24px;
  border: 0; border-radius: var(--o-pille);
  background: var(--button-bg); color: var(--button-text);
  font-family: var(--font-text); font-weight: 600; font-size: 17px; line-height: 22px; letter-spacing: -0.005em;
  text-decoration: none; text-align: left;
  box-shadow: 0 1px 2px rgba(0, 21, 36, .18), 0 8px 20px -6px rgba(168, 18, 16, .45);
  transition: transform 160ms var(--o-ease), background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.o-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .o-cta:hover { background: #C21714; } }
.o-cta__pfeil { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.o-cta__pfeil svg { width: 18px; height: 18px; }
.o-cta--breit { display: flex; width: 100%; justify-content: space-between; }
.o-cta > span:not(.o-cta__pfeil) { white-space: nowrap; }
@media (max-width: 420px) { .o-cta { font-size: 16px; padding-left: 20px; gap: 8px; } .o-cta__pfeil { width: 36px; height: 36px; } }
@media (max-width: 374px) { .o-cta:not(.o-cta--linie) { justify-content: center; padding-right: 20px; } .o-cta__pfeil { display: none; } }

/* Kleine Kontur-Pille für den Kopf */
.o-cta--linie {
  min-height: 44px; padding: 0 16px; gap: 0;
  background: transparent; color: var(--primaer);
  border: 1.5px solid currentColor; box-shadow: none;
  font-size: 14px; line-height: 18px;
}
@media (hover: hover) and (pointer: fine) { .o-cta--linie:hover { background: rgba(0, 21, 36, .06); } }

/* Stempel-Pille */
.o-pille {
  display: inline-flex; align-items: center; min-height: 28px; padding: 3px 12px;
  border: 1.5px solid currentColor; border-radius: var(--o-pille);
  font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0;
}

/* Handgezogener Marker-Kreis (SVG-Ellipse). Endzustand sichtbar ohne JS; oben.js zeichnet ihn über stroke-dashoffset. */
.o-marker { position: absolute; pointer-events: none; overflow: visible; }
.o-marker path, .o-marker ellipse { fill: none; stroke: var(--akzent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Fokus */
:focus { outline: none; }
:focus-visible { outline: 3px solid #001524; outline-offset: 2px; border-radius: 4px; }
.o-sek--navy :focus-visible, .o-dunkel :focus-visible { outline-color: #A3B2C5; }
.o-cta:focus-visible { border-radius: var(--o-pille); }

/* Nur für Vorleser */
.o-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Ruhige Bewegung */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
}
