/*
 * nordhort.css – handgeschriebenes Design-System der Nordhort-Website.
 * Kein Tailwind, kein Bootstrap. Alle Markenwerte kommen aus tokens.css
 * (generiert aus brand/nordhort-brand.json). Konvention: BEM-artig.
 *
 * Design-Sprache „Tiefsee & Nordlicht" (siehe CLAUDE.md → Design-Sprache):
 *  - Tiefsee ist der dominante Grund, Nordlicht ist Lichtquelle (Glows).
 *  - Zonen-Dramaturgie: dunkel (Tiefe) → langer Verlauf → hell (Auftauchen).
 *  - Motion-Vokabular: „Aus der Tiefe" / „Lichtstrahl" / „Kurslinie",
 *    eine gemeinsame Easing-Kurve (--ease-tide), sonst Ruhe.
 *
 * Reihenfolge der Einbindung im <head>: tokens.css, fonts.css, nordhort.css.
 */

/* ========================================================================
   1. Reset & Grundlagen
   ======================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ========================================================================
   2. Nicht-Marken-Tokens: Abstände, Radien, Schatten, Typo-Skala, Motion
   ======================================================================== */
:root {
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(18, 44, 52, 0.06), 0 1px 3px rgba(18, 44, 52, 0.08);
  --shadow-md: 0 4px 12px rgba(18, 44, 52, 0.08), 0 2px 4px rgba(18, 44, 52, 0.06);
  --shadow-lg: 0 12px 32px rgba(18, 44, 52, 0.12);

  /* 80ch statt 72ch + größere Lese-Schrift: wirkt auf Laptops großzügiger,
     bleibt aber in gesunder Zeilenlänge. */
  --width-content: 80ch;
  --width-page: 1180px;

  /* Typo-Skala: Spannung aus riesig/winzig, Grotesk/Mono. */
  --text-hero: clamp(3rem, 8vw, 7rem);
  --text-display: clamp(2.4rem, 1.4rem + 4.2vw, 4.2rem);
  --text-h2: clamp(1.8rem, 1.2rem + 2.4vw, 2.75rem);
  --text-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.55rem);
  --leading-display: 1.02;
  --tracking-display: -0.025em;

  /* Motion: EINE gemeinsame Kurve, leicht überdämpft. */
  --ease-tide: cubic-bezier(0.22, 0.9, 0.28, 1);

  /* Feines Rausch-Overlay für die Tiefe (feTurbulence, ≤4 % Opazität). */
  --grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ========================================================================
   3. Typografie
   ======================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-tiefsee);
  margin: 0 0 var(--space-md);
  text-wrap: balance;
  /* Lange deutsche Wörter dürfen die Seite auf schmalen Geräten nicht breiter machen. */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: var(--text-display); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
h2 { font-size: var(--text-h2); letter-spacing: -0.02em; }
h3 { font-size: var(--text-h3); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 var(--space-md); }

a {
  color: var(--color-hortblau);
  text-decoration-color: var(--color-lichtblau);
  text-underline-offset: 0.15em;
}
a:hover { color: var(--color-stahlblau); }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

strong { font-weight: 600; }
small { font-size: 0.85rem; }

code, pre, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  background: var(--color-nebel);
  padding: 0.12em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--color-stahlblau);
}

pre {
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--color-tiefsee);
  color: var(--color-nebel);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
}
pre code { background: none; padding: 0; color: inherit; }

hr {
  border: 0;
  border-top: 1px solid var(--color-line);
  margin: var(--space-xl) 0;
}

/* Mono-Kicker: Struktur-Stimme im Stil einer Kurs-/Positionsangabe. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-stahlblau);
  margin: 0 0 var(--space-sm);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-schiefer);
}

/* Display-Accent: die EINE Claim-/Headline-Behandlung (Nordverlauf als
   background-clip:text). Nur im Dunkel-Kontext einsetzen – die Text-Variante
   des Verlaufs ist dafür kontrastgeprüft. */
.display-accent {
  background: var(--gradient-nord-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========================================================================
   4. Layout: Container, Prose, Sektionen, Zonen
   ======================================================================== */
.container {
  width: 100%;
  max-width: var(--width-page);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.prose { max-width: var(--width-content); font-size: 1.125rem; }
.prose > * + * { margin-top: var(--space-md); }

.section { padding-block: var(--space-3xl); }
.section--tight { padding-block: var(--space-2xl); }

/* --- Zonen: die Tauchgang-Dramaturgie ---------------------------------- */
/* Tiefe: Tiefsee-Grund, Nordlicht als Lichtquelle (radiale Glows), Grain. */
.zone--deep,
.section--dark {
  position: relative;
  background:
    radial-gradient(1100px 700px at 82% -12%, var(--glow-nordlicht-soft), transparent 62%),
    radial-gradient(900px 700px at 8% 52%, var(--glow-nordlicht-faint), transparent 60%),
    var(--color-tiefsee);
  color: var(--ink-on-dark);
}
.zone--deep::after,
.section--dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.03;
  pointer-events: none;
}
.zone--deep > *,
.section--dark > * { position: relative; z-index: 1; }

.zone--deep h1, .zone--deep h2, .zone--deep h3, .zone--deep h4,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--ink-on-dark-strong);
}
.zone--deep .eyebrow,
.section--dark .eyebrow { color: var(--color-nordlicht); }
.zone--deep .lead,
.section--dark .lead { color: var(--ink-on-dark-muted); }
.zone--deep a,
.section--dark a { color: var(--color-nordlicht); text-decoration-color: var(--glow-nordlicht-strong); }
.zone--deep code,
.section--dark code { background: var(--surface-raised-dark); color: var(--ink-on-dark); }

/* Aufstieg: langer, weicher Verlauf aus der Tiefe zur Oberfläche.
   Fließtext nur im oberen (dunklen) Bereich des Verlaufs. */
.zone--rise {
  background: linear-gradient(180deg,
    var(--color-tiefsee) 0%,
    var(--color-stahlblau) 42%,
    var(--color-nebel) 100%);
  padding-block: var(--space-2xl) var(--space-3xl);
}

/* Statement: redaktioneller Zwischenruf (Klartext) – keine Box, kein UI-
   Element, nur Typografie und Raum. Sitzt im dunklen Teil des Aufstiegs.
   Der Block ist zentriert (wie die Grand-Quote: Innehalte-Momente stehen
   mittig), der Text selbst bleibt linksbündig lesbar. */
.statement {
  padding-block: var(--space-2xl) var(--space-3xl);
}
.statement__inner {
  /* rem statt ch: der Wrapper trägt Basis-Schriftgröße, nicht die Display-
     Größe des Statements – 30ch wären hier viel zu schmal. */
  max-width: 46rem;
  margin-inline: auto;
}
.statement .eyebrow { color: var(--color-nordlicht); }
.statement__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.7rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-segel);
  margin: 0;
  text-wrap: balance;
}
.statement__text em { font-style: normal; }

/* Pivot-Zeile: der Übergangssatz vom Problem zur Lösung – deutlich
   prominenter als Fließtext, aber unterhalb der H2-Ebene. */
.pivot {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.2rem, 1rem + 1vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink-on-dark-strong);
  max-width: 44ch;
}

/* Keypoints: drei Spalten mit Nordlicht-Keyline – nutzt die Breite,
   ohne Karten-Baukasten zu sein (Problem-Sektion). */
.keypoints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
@media (max-width: 860px) { .keypoints { grid-template-columns: 1fr; gap: var(--space-lg); } }
.keypoint {
  border-top: 2px solid var(--glow-nordlicht-strong);
  padding-top: var(--space-md);
}
.keypoint h3 { font-size: 1.15rem; margin: 0 0 var(--space-2xs); color: var(--ink-on-dark-strong); }
.keypoint p { margin: 0; color: var(--ink-on-dark-muted); font-size: 1rem; }

/* Oberfläche: das Auftauchen. */
.zone--surface {
  background: linear-gradient(180deg, var(--color-nebel) 0%, var(--color-segel) 26rem);
}

.section--gradient {
  background: var(--gradient-nord);
  color: var(--color-segel);
}
.section--gradient h1, .section--gradient h2, .section--gradient h3 { color: var(--color-segel); }

.grid { display: grid; gap: var(--space-lg); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
/* Oben ausgerichtet – z. B. Kontakt: Infos links bündig mit Formularkarte. */
.split--top { align-items: start; }

/* ========================================================================
   5. Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85em 1.5em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms var(--ease-tide), color 180ms var(--ease-tide),
    border-color 180ms var(--ease-tide), box-shadow 260ms var(--ease-tide),
    transform 180ms var(--ease-tide);
}
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
/* Kein Pressed-Transform auf Stretched-Links: das transform machte den Button
   zum Containing Block, das ::after-Overlay kollabierte beim Mousedown auf die
   Buttonfläche – Chromium verlegt den Click dann auf die Karte statt den Link. */
.btn:active:not(.stretched-link) { transform: translateY(1px); }

.btn--primary {
  background-color: var(--color-hortblau);
  color: var(--color-segel);
}
.btn--primary:hover {
  background-color: var(--color-nordlicht);
  color: var(--color-tiefsee);
  /* Glow-Ring: weiches Nordlicht, kein Layout-Shift. */
  box-shadow: 0 0 0 1px var(--glow-nordlicht-strong), 0 6px 28px var(--glow-nordlicht-soft);
}

/* Auf Tiefsee-Grund ist Hortblau zu nah am Hintergrund – dort wird der
   Primär-Button zur Lichtquelle: Nordlicht-Fläche, Tiefsee-Text. */
.zone--deep .btn--primary,
.section--dark .btn--primary {
  background-color: var(--color-nordlicht);
  color: var(--color-tiefsee);
}
.zone--deep .btn--primary:hover,
.section--dark .btn--primary:hover {
  background-color: var(--color-segel);
  color: var(--color-tiefsee);
  box-shadow: 0 0 0 1px var(--glow-nordlicht-strong), 0 6px 28px var(--glow-nordlicht-soft);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-tiefsee);
  border-color: var(--color-tiefsee);
}
.btn--secondary:hover {
  background-color: var(--color-tiefsee);
  color: var(--color-segel);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-hortblau);
  border-color: transparent;
  padding-inline: 0.6em;
}
.btn--ghost:hover { color: var(--color-stahlblau); }

/* Gradient-Variante: die Lichtquelle als Button – reserviert für den Header.
   Tiefsee-Text (weiß fiele auf dem Nordlicht-Ende mit ~1,9:1 durch). */
.btn--gradient {
  background: var(--gradient-nord-text);
  color: var(--color-tiefsee);
  font-weight: 600;
}
.btn--gradient:hover {
  box-shadow: 0 0 0 1px var(--glow-nordlicht-strong), 0 4px 24px var(--glow-nordlicht-soft);
  color: var(--color-tiefsee);
}

.zone--deep .btn--secondary,
.section--dark .btn--secondary,
.btn--secondary.btn--on-dark {
  color: var(--ink-on-dark-strong);
  border-color: var(--line-on-dark);
}
.zone--deep .btn--secondary:hover,
.section--dark .btn--secondary:hover,
.btn--secondary.btn--on-dark:hover {
  background-color: var(--color-segel);
  border-color: var(--color-segel);
  color: var(--color-tiefsee);
  box-shadow: 0 0 24px var(--glow-nordlicht-faint);
}
.zone--deep .btn--ghost,
.section--dark .btn--ghost { color: var(--color-nordlicht); }

/* ========================================================================
   6. Cards
   ======================================================================== */
.card {
  position: relative; /* Anker für Stretched-Links (ganze Karte klickbar) */
  background: var(--color-segel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 260ms var(--ease-tide), transform 260ms var(--ease-tide);
}

/* Stretched-Link: der (einzige) Link einer Karte deckt die ganze Fläche ab –
   ein echter Anker, a11y-sauber; Hover färbt weiterhin nur den Titel. */
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card--hover:hover {
  box-shadow: var(--shadow-md), 0 14px 40px rgba(18, 44, 52, 0.10);
  transform: translateY(-3px);
}
/* Ganzflächig verlinkte Karten: Hover färbt auch den Titel – macht die
   Klickbarkeit sichtbar (Blog-Karten haben das über den Titel-Link selbst). */
.card--hover:has(.stretched-link):hover .card__title { color: var(--color-hortblau); }
.zone--deep .card--hover:has(.stretched-link):hover .card__title,
.section--dark .card--hover:has(.stretched-link):hover .card__title { color: var(--color-nordlicht); }
.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 var(--space-xs);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--color-nebel);
  color: var(--color-hortblau);
  margin-bottom: var(--space-md);
}
.card__icon svg { width: 1.6rem; height: 1.6rem; }

/* Karten im Dunkel-Kontext: erhabene Fläche statt weißem Fremdkörper. */
.zone--deep .card,
.section--dark .card {
  background: var(--surface-raised-dark);
  border-color: var(--line-on-dark);
  color: var(--ink-on-dark);
}
.zone--deep .card .card__title,
.section--dark .card .card__title { color: var(--ink-on-dark-strong); }
.zone--deep .card__icon,
.section--dark .card__icon { background: var(--tint-nordlicht-dark); color: var(--color-nordlicht); }

/* ========================================================================
   7. Badges / Pills
   ======================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.35em 0.85em;
  border-radius: var(--radius-pill);
  background: var(--color-nebel);
  color: var(--color-stahlblau);
  border: 1px solid var(--color-line);
}
.pill--accent { background: rgba(68, 207, 203, 0.16); color: var(--color-tiefsee); border-color: rgba(68, 207, 203, 0.5); }
/* Solide Nordlicht-Fläche mit Tiefsee-Text (WCAG-AA, ~8.5:1) – wirkt in hellem
   wie dunklem Kontext gleich „Nordlicht". Genutzt für Blog-Kategorie-Badges. */
.pill--nordlicht { background: var(--color-nordlicht); color: var(--color-tiefsee); border-color: transparent; }
.pill--primary { background: var(--color-hortblau); color: var(--color-segel); border-color: transparent; }
.pill--warning { background: rgba(224, 153, 31, 0.15); color: var(--color-amber-text); border-color: rgba(224, 153, 31, 0.5); }

.zone--deep .pill,
.section--dark .pill { background: var(--surface-raised-dark); color: var(--ink-on-dark); border-color: var(--line-on-dark); }
.zone--deep .pill--accent,
.section--dark .pill--accent { background: var(--tint-nordlicht-dark); color: var(--color-nordlicht); border-color: var(--glow-nordlicht-strong); }
/* Solide Variante bleibt auch im Dunkel-Kontext solide Nordlicht (überschreibt
   die generische .section--dark .pill-Regel). */
.zone--deep .pill--nordlicht,
.section--dark .pill--nordlicht { background: var(--color-nordlicht); color: var(--color-tiefsee); border-color: transparent; }

.badge-souveraen {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  color: var(--color-schiefer);
  background: var(--color-nebel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 0.5em 1em;
}
.badge-souveraen svg { width: 1.1rem; height: 1.1rem; color: var(--color-nordlicht); }
.zone--deep .badge-souveraen,
.section--dark .badge-souveraen { background: var(--surface-raised-dark); color: var(--ink-on-dark); border-color: var(--line-on-dark); }

/* Bestätigungs-Icon (Kontakt/Newsletter „danke") – Nordlicht-Kreis mit Haken. */
.danke__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  color: var(--color-tiefsee);
  background: color-mix(in srgb, var(--color-nordlicht) 22%, var(--color-segel));
  box-shadow: 0 0 0 6px var(--glow-nordlicht-faint);
}
.danke__icon svg { width: 1.9rem; height: 1.9rem; }
.danke__angaben {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-xs) var(--space-md);
  margin: 0;
  text-align: left;
}
.danke__angaben dt { font-weight: 600; color: var(--color-text-muted); }
.danke__angaben dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 30rem) {
  .danke__angaben { grid-template-columns: 1fr; }
  .danke__angaben dd { margin-bottom: var(--space-xs); }
}

/* ========================================================================
   8. Tabellen
   ======================================================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.table th,
.table td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-line);
}
.table th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-tiefsee);
  border-bottom-width: 2px;
}
.table tbody tr:hover { background: var(--color-nebel); }

/* Key/value table: row headers on the left, stacked on narrow screens. */
.table--kv th { width: 30%; vertical-align: top; border-bottom-width: 1px; }
.table--kv td { vertical-align: top; }
@media (max-width: 40rem) {
  .table--kv th, .table--kv td { display: block; width: auto; }
  .table--kv th { border-bottom: 0; padding-bottom: 0; }
}

.zone--deep .table th, .section--dark .table th { color: var(--ink-on-dark-strong); border-color: var(--line-on-dark); }
.zone--deep .table td, .section--dark .table td { border-color: var(--line-on-dark); }
.zone--deep .table tbody tr:hover, .section--dark .table tbody tr:hover { background: var(--surface-raised-dark); }

/* ========================================================================
   9. Formulare
   ======================================================================== */
.field { margin-bottom: var(--space-lg); }
.field__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: var(--space-2xs);
  color: var(--color-tiefsee);
}
.field__hint {
  display: block;
  font-size: 0.85rem;
  color: var(--color-schiefer);
  margin-top: var(--space-2xs);
}
.field__error {
  display: block;
  font-size: 0.85rem;
  color: var(--color-amber-text);
  margin-top: var(--space-2xs);
  font-weight: 500;
}
/* Pflichtfeld-Markierung: das „*" plus der einleitende Satz kennzeichnen die
   Pflicht NICHT nur farblich (Symbol + Text). */
.field__legende {
  font-size: 0.85rem;
  color: var(--color-schiefer);
  margin: 0 0 var(--space-md);
}
.field__required {
  color: var(--color-amber-text);
  font-weight: 700;
}

.input,
.textarea,
.select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-segel);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 0.7em 0.9em;
  transition: border-color 180ms var(--ease-tide), box-shadow 180ms var(--ease-tide);
}
.textarea { min-height: 8rem; resize: vertical; }
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--color-nordlicht);
  box-shadow: var(--focus-ring);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: var(--color-schiefer);
}
.checkbox input {
  margin-top: 0.2em;
  width: 1.15em;
  height: 1.15em;
  accent-color: var(--color-hortblau);
  flex-shrink: 0;
}
.zone--deep .checkbox, .section--dark .checkbox { color: var(--ink-on-dark-muted); }
.zone--deep .field__label, .section--dark .field__label { color: var(--ink-on-dark-strong); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========================================================================
   10. Callouts (vier Varianten, hell + dunkel durchdekliniert)
   ======================================================================== */
.callout {
  --callout-accent: var(--color-lichtblau);
  --callout-tint: rgba(78, 165, 217, 0.09);
  position: relative;
  display: flex;
  gap: var(--space-md);
  background: var(--callout-tint);
  border-left: 4px solid var(--callout-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  margin-block: var(--space-lg);
}
.callout__icon {
  flex-shrink: 0;
  color: var(--callout-accent);
  line-height: 1;
}
.callout__icon svg { width: 1.4rem; height: 1.4rem; }
.callout__body { min-width: 0; }
.callout__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 var(--space-2xs);
  color: var(--color-tiefsee);
}
.callout__body > :last-child { margin-bottom: 0; }

.callout--hinweis { --callout-accent: var(--color-lichtblau); --callout-tint: rgba(78, 165, 217, 0.10); }
.callout--tipp { --callout-accent: var(--color-nordlicht); --callout-tint: rgba(68, 207, 203, 0.12); }
.callout--wichtig { --callout-accent: var(--color-amber-web); --callout-tint: rgba(224, 153, 31, 0.12); }
.callout--wichtig .callout__title { color: var(--color-amber-text); }

/* Klartext HELL (Standard, heller Grund): der lauteste der vier Callouts –
   Emphase über Typografie und die kräftige Nordverlauf-Kante („Kurslinie"),
   NICHT über eine dunkle Vollfläche. Im Dunkel-Kontext greift der Lichtkegel
   (s. u., bewusst unverändert). */
.callout--klartext {
  --callout-accent: var(--color-hortblau);
  /* Nordverlauf-Kante (5px) als Hintergrund-Layer über sehr dezenter Tönung –
     behält den Radius, anders als border-image, und ist kräftiger als die
     einfarbigen Kanten von Hinweis/Tipp/Wichtig. */
  background:
    var(--gradient-nord) left / 5px 100% no-repeat,
    var(--surface-klartext);
  border-left: 0;
  box-shadow: 0 0 0 1px var(--color-line), var(--shadow-sm);
}
.callout--klartext .callout__icon { color: var(--color-hortblau); }
/* Titel als Mono-Eyebrow „Klartext". */
.callout--klartext .callout__title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-hortblau);
  margin-bottom: var(--space-xs);
}
/* Die Aussage selbst: Space Grotesk, größer/kräftiger als Fließtext,
   Tiefsee-Text auf hellem Grund (Kontrast ≫ 4.5:1). */
.callout--klartext .callout__body > p:not(.callout__title) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--color-tiefsee);
}

/* Dunkel-Kontext: getönte Tiefsee-Flächen, Titel in Segel. */
.zone--deep .callout--hinweis, .section--dark .callout--hinweis { background: var(--tint-lichtblau-dark); color: var(--ink-on-dark); }
.zone--deep .callout--tipp, .section--dark .callout--tipp { background: var(--tint-nordlicht-dark); color: var(--ink-on-dark); }
.zone--deep .callout--wichtig, .section--dark .callout--wichtig { background: var(--tint-amber-dark); color: var(--ink-on-dark); }
.zone--deep .callout--hinweis .callout__title, .section--dark .callout--hinweis .callout__title,
.zone--deep .callout--tipp .callout__title, .section--dark .callout--tipp .callout__title { color: var(--ink-on-dark-strong); }
.zone--deep .callout--wichtig .callout__title, .section--dark .callout--wichtig .callout__title { color: var(--color-amber-web); }

/* Klartext im DUNKLEN Kontext: invertiert zum Lichtkegel – heller Block,
   der aus der Tiefe heraussticht statt unterzugehen. Bewusst unverändert –
   setzt die Hell-Standard-Behandlung (Nordverlauf-Kante, Mono-Eyebrow,
   Display-Aussage) auf die vorherige Optik zurück. */
.zone--deep .callout--klartext,
.zone--rise .callout--klartext,
.section--dark .callout--klartext {
  background: var(--color-segel);
  color: var(--color-schiefer);
  border-left: 4px solid var(--color-nordlicht);
  box-shadow: 0 0 64px var(--glow-nordlicht-soft), var(--shadow-lg);
}
.zone--deep .callout--klartext .callout__title,
.zone--rise .callout--klartext .callout__title,
.section--dark .callout--klartext .callout__title {
  color: var(--color-tiefsee);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--space-2xs);
}
.zone--deep .callout--klartext .callout__body > p:not(.callout__title),
.zone--rise .callout--klartext .callout__body > p:not(.callout__title),
.section--dark .callout--klartext .callout__body > p:not(.callout__title) {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.zone--deep .callout--klartext .callout__icon,
.zone--rise .callout--klartext .callout__icon,
.section--dark .callout--klartext .callout__icon { color: var(--color-hortblau); }

/* ------------------------------------------------------------------------
   Artikel-CTA (`!!! cta`): gebrandete Handlungs-Box am Artikelende.
   Nordverlauf-Kante („Kurslinie") oben, dezente Marken-Tönung, der Link im
   Text wird zur deutlichen Schaltfläche (.btn--primary aus dem Baukasten).
   ------------------------------------------------------------------------ */
.article-cta {
  background:
    var(--gradient-nord) top / 100% 5px no-repeat,
    var(--surface-klartext);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-block: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.article-cta__body > :first-child { margin-top: 0; }
.article-cta__body > :last-child { margin-bottom: 0; }
.article-cta__body p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--color-tiefsee);
}
.article-cta__body .btn {
  font-size: 1rem;
  margin-top: var(--space-sm);
  vertical-align: middle;
}

/* ------------------------------------------------------------------------
   Artikel-FAQ (`!!! faq`): immer offene Beschreibungsliste. Kein Akkordeon,
   kein JS – semantisch <dl>/<dt>/<dd>, gut lesbar, WCAG-AA-Kontrast.
   ------------------------------------------------------------------------ */
.article-faq { margin-block: var(--space-xl); }
.article-faq__title { margin-bottom: var(--space-md); }
.article-faq__list { margin: 0; }
.article-faq__list dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--color-tiefsee);
  margin-top: var(--space-lg);
}
.article-faq__list dt:first-of-type { margin-top: 0; }
.article-faq__list dd {
  margin: var(--space-2xs) 0 0;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
}
.article-faq__list dd:last-child { border-bottom: 0; padding-bottom: 0; }
.article-faq__list dd > :last-child { margin-bottom: 0; }

/* ========================================================================
   11. Quote / Blockquote
   ======================================================================== */
.quote {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-2xl);
  border-left: 4px solid transparent;
  border-image: var(--gradient-nord) 1;
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: var(--space-sm);
  top: -0.2em;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-nordlicht);
}
.quote__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--color-tiefsee);
  margin: 0;
}
.quote__attribution {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.85rem;
  font-style: normal;
  letter-spacing: 0.06em;
  color: var(--color-schiefer);
}
.quote__attribution::before { content: "— "; }

.zone--deep .quote__text, .section--dark .quote__text { color: var(--ink-on-dark-strong); }
.zone--deep .quote__attribution, .section--dark .quote__attribution { color: var(--ink-on-dark-muted); }

/* Grand-Quote: nur für die Startseite – zentriert, ohne Akzentkante, mit
   großem freistehendem Anführungszeichen. Blog behält das kompakte .quote. */
.quote--grand {
  margin: var(--space-3xl) auto var(--space-lg);
  max-width: 56rem;
  padding: 0 var(--space-lg);
  border-left: 0;
  border-image: none;
  text-align: center;
}
.quote--grand::before {
  position: static;
  display: block;
  font-size: clamp(5rem, 4rem + 4vw, 8rem);
  line-height: 0.4;
  margin-bottom: 0;
}
.quote--grand .quote__text {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.3rem);
  line-height: 1.4;
}
.quote--grand .quote__attribution { margin-top: var(--space-lg); }

/* ========================================================================
   12. Header & Navigation (dauerhaft Tiefsee – die Seite IST dunkel)
   ======================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--color-hortblau);
  color: var(--color-segel);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { left: 0; color: var(--color-segel); }
/* Sprungziel: main ist per Skip-Link fokussierbar (tabindex=-1), soll dabei
   aber keinen Ring um den gesamten Inhalt zeigen. */
#main:focus { outline: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Deckend – die Navigation behält beim Scrollen konstant ihre Farbe. */
  background: var(--color-tiefsee);
  border-bottom: 1px solid var(--line-on-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 4.5rem;
}
.site-header__logo { display: inline-flex; }
.site-header__logo img { height: 2.1rem; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: var(--space-xs); }
.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink-on-dark);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--color-nordlicht);
  background: var(--surface-raised-dark);
}
.nav__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav__cta { margin-left: var(--space-xs); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav-toggle__bar {
  display: block;
  width: 1.4rem;
  height: 2px;
  margin-inline: auto;
  background: var(--ink-on-dark-strong);
  transition: transform 180ms var(--ease-tide), opacity 180ms var(--ease-tide);
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-tiefsee);
    border-bottom: 1px solid var(--line-on-dark);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform 220ms var(--ease-tide);
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav__link { padding: var(--space-md); }
  .nav__cta { margin: var(--space-sm) 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .nav { transition: none; }
}

/* ========================================================================
   13. Nordstern: Hero-Stern & Nav-Kompass (Signature-Element)
   ======================================================================== */
/* Großer Hero-Stern: Glow als Lichtquelle, Nadel wird per JS gedreht. */
.nordstern {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.nordstern__rose { color: var(--line-on-dark); }
.nordstern__needle { transform-origin: 64px 64px; will-change: transform; }
.nordstern__core-outer { fill: var(--color-hortblau); }
.nordstern__core-inner { fill: var(--color-nordlicht); }

.hero__star {
  position: relative;
  isolation: isolate;
}
.hero__star::before {
  /* Der Glow hinter dem Stern – die eigentliche Lichtquelle des Heros. */
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-nordlicht-soft) 0%, transparent 65%);
  animation: glow-pulse 7s ease-in-out infinite alternate;
  z-index: -1;
}
.hero__star.is-locked::before {
  animation: none;
  background: radial-gradient(circle, var(--glow-nordlicht-strong) 0%, transparent 68%);
}
@keyframes glow-pulse {
  from { opacity: 0.7; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}

/* Scroll-Kompass: mitfließendes Element unten rechts (wie ein TOC).
   Erscheint nach dem ersten Scrollen; Klick = „Nadel findet Norden" +
   sanft nach oben. Fortschrittsring = Scroll-Position. */
.stern-dock {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 2rem);
  bottom: clamp(0.9rem, 2.5vw, 2rem);
  z-index: 90;
  display: inline-flex;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.15rem;
  /* Button-Reset (war zuvor ein <a>): kein Default-Rahmen/-Hintergrund. */
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  color: var(--color-nordlicht);
  background: color-mix(in srgb, var(--color-tiefsee) 82%, transparent);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md), 0 0 20px var(--glow-nordlicht-faint);
  transition: opacity 320ms var(--ease-tide), transform 320ms var(--ease-tide);
}
@media (max-width: 820px) {
  .stern-dock { width: 2.1rem; height: 2.1rem; }
}
.stern-dock:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.stern-dock svg { display: block; width: 100%; height: 100%; overflow: visible; }
.stern-dock__ring-bg { fill: none; stroke: var(--line-on-dark); stroke-width: 2.5; }
.stern-dock__ring {
  fill: none;
  stroke: var(--color-nordlicht);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.stern-dock__star { fill: currentColor; transform-origin: 50% 50%; }
/* Versteckt: NICHT nur transparent, sondern visibility:hidden – sonst bliebe
   der Button per Tastatur fokussierbar (Fokus auf unsichtbarem Element). */
.stern-dock[data-docked="false"] { opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.7); pointer-events: none; }
.stern-dock[data-docked="true"] { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

/* „Findet Norden": eine ruhige Umdrehung beim Klick. */
.stern-dock.is-homing .stern-dock__star { animation: dock-home 700ms var(--ease-tide); }
@keyframes dock-home {
  from { transform: rotate(-360deg); }
  to { transform: rotate(0deg); }
}

/* ========================================================================
   14. Hero (Startseite: asymmetrisch, orchestrierter Load-Moment)
   ======================================================================== */
.hero { padding-block: var(--space-3xl); }
/* .hero__inner bekommt bewusst KEINE eigene max-width mehr: volle Container-
   Breite wie die Blog-Artikel-Header (die Subline begrenzt sich selbst). */
.hero h1 { margin-bottom: var(--space-md); }
.hero__subline {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--ink-on-dark-muted);
  margin-bottom: var(--space-xl);
  max-width: 46rem;
}
.hero--home .hero__subline { max-width: 34rem; }
.hero__actions { gap: var(--space-md); }

.hero--home {
  padding-block: clamp(4rem, 10vh, 7rem) clamp(5rem, 12vh, 8rem);
  overflow: hidden;
}
.hero--home .hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-xl);
  align-items: center;
}
.hero__claim {
  font-size: var(--text-hero);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-lg);
}
.hero__claim-line { display: block; }
.hero--home .hero__star {
  justify-self: end;
  width: min(30rem, 92%);
  /* Asymmetrie: der Stern ragt bewusst nach rechts aus dem Raster. */
  margin-right: -8%;
}

/* Orchestrierter Load-Moment – rein per CSS (CSP-sicher), Gesamt ≤ 1.5 s.
   Reihenfolge: Glow → Stern findet Norden → Claim-Zeilen → Subline/CTA. */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes star-in {
  from { opacity: 0; transform: rotate(-42deg) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes glow-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero--home .hero__star::before { animation: glow-in 0.9s var(--ease-tide) both, glow-pulse 7s ease-in-out 1.2s infinite alternate; }
.hero--home .nordstern { animation: star-in 0.9s var(--ease-tide) 0.15s both; }
.hero--home .eyebrow { animation: rise-in 0.6s var(--ease-tide) 0.45s both; }
.hero--home .hero__claim-line:nth-child(1) { animation: rise-in 0.7s var(--ease-tide) 0.55s both; }
.hero--home .hero__claim-line:nth-child(2) { animation: rise-in 0.7s var(--ease-tide) 0.7s both; }
.hero--home .hero__subline { animation: rise-in 0.6s var(--ease-tide) 0.85s both; }
.hero--home .hero__actions { animation: rise-in 0.6s var(--ease-tide) 0.95s both; }

@media (max-width: 900px) {
  .hero--home .hero__grid { grid-template-columns: 1fr; }
  .hero--home .hero__star {
    order: -1;
    justify-self: start;
    width: min(13rem, 46%);
    margin: 0 0 var(--space-md);
  }
}

/* ========================================================================
   15. Kurslinie (Leitmotiv): Route & Timeline mit Wegpunkten
   ======================================================================== */
.kurs { position: relative; }
.kurs__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.55rem;
  width: 100%;
  height: 4px;
  display: block;
  pointer-events: none;
}
.kurs__base { stroke: var(--color-line); stroke-width: 2; }
.zone--deep .kurs__base, .section--dark .kurs__base { stroke: var(--line-on-dark); }
.kurs__draw {
  stroke: var(--color-nordlicht);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px var(--glow-nordlicht-strong));
}

/* Stepper: nummerierte Sequenz (Migration) – Wegpunkte auf der Kurslinie. */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  counter-reset: step;
}
/* Spaltenzahl folgt der Anzahl der Schritte (3, 4, 5 …). */
.stepper--horizontal { grid-auto-flow: column; grid-auto-columns: 1fr; }

.step { position: relative; counter-increment: step; padding-top: 0.35rem; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-segel);
  border: 2px solid var(--color-line);
  color: var(--color-stahlblau);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  transition: background-color 320ms var(--ease-tide), color 320ms var(--ease-tide),
    border-color 320ms var(--ease-tide), box-shadow 480ms var(--ease-tide);
}
.step__num::before { content: "0" counter(step); }
.step.is-lit .step__num {
  background: var(--color-nordlicht);
  border-color: var(--color-nordlicht);
  color: var(--color-tiefsee);
  box-shadow: 0 0 0 5px var(--glow-nordlicht-faint), 0 0 24px var(--glow-nordlicht-soft);
}
.step__title { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 var(--space-2xs); }
.step p { margin: 0; color: var(--color-schiefer); font-size: 0.98rem; }

.zone--deep .step__num, .section--dark .step__num {
  background: var(--color-tiefsee);
  border-color: var(--line-on-dark);
  color: var(--ink-on-dark-muted);
}
.zone--deep .step p, .section--dark .step p { color: var(--ink-on-dark-muted); }
.zone--deep .step__title, .section--dark .step__title { color: var(--ink-on-dark-strong); }

/* Route: unnummerierte Wegpunkte (Lernen · Umsetzen · Betreiben). */
.route {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}
.route__stop { position: relative; padding-top: 0.35rem; }
.route__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-tiefsee);
  border: 2px solid var(--line-on-dark);
  color: var(--ink-on-dark-muted);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
  transition: border-color 320ms var(--ease-tide), color 320ms var(--ease-tide),
    box-shadow 480ms var(--ease-tide);
}
.route__marker svg { width: 1.25rem; height: 1.25rem; }
.route__stop.is-lit .route__marker {
  border-color: var(--color-nordlicht);
  color: var(--color-nordlicht);
  box-shadow: 0 0 0 5px var(--glow-nordlicht-faint), 0 0 24px var(--glow-nordlicht-soft);
}
.route__stop h3 { margin: 0 0 var(--space-2xs); font-size: 1.15rem; }
.route__stop p { margin: 0; font-size: 0.98rem; color: var(--ink-on-dark-muted); }

/* Mobil: vertikale Route statt Scroll-Draw (statisch, ruhig). */
@media (max-width: 860px) {
  .kurs__track { display: none; }
  .stepper--horizontal { grid-auto-flow: row; grid-auto-columns: unset; }
  .route { grid-template-columns: 1fr; }
  .kurs .stepper, .kurs .route {
    border-left: 2px solid var(--color-line);
    padding-left: var(--space-lg);
  }
  .zone--deep .kurs .stepper, .zone--deep .kurs .route,
  .section--dark .kurs .stepper, .section--dark .kurs .route {
    border-left-color: var(--line-on-dark);
  }
}

/* ========================================================================
   16. Stats (Count-up)
   ======================================================================== */
/* Raster richtet sich nach der Anzahl: 2 oder 3 in einer Reihe, 4 als 2×2.
   Gestapelt wird nach der Breite der Box, nicht des Fensters: Im zweispaltigen
   Layout ist sie bei mittleren Fensterbreiten am schmalsten. */
.card:has(> .stats) { container-type: inline-size; }
.stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--space-lg) var(--space-md);
}
.stats:has(> .stat:nth-child(4)) { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container (max-width: 27.5rem) {
  .stats, .stats:has(> .stat:nth-child(4)) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .stats, .stats:has(> .stat:nth-child(4)) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
}
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3rem);
  color: var(--color-hortblau);
  line-height: 1;
}
.zone--deep .stat__value, .section--dark .stat__value { color: var(--color-nordlicht); }
.stat__label { color: var(--color-schiefer); margin-top: var(--space-xs); font-size: 0.95rem; }
/* Nicht am Bindestrich umbrechen; Text bleibt mit normalem Bindestrich such- und vorlesbar. */
.stat__label--am-stueck { white-space: nowrap; }
.zone--deep .stat__label, .section--dark .stat__label { color: var(--ink-on-dark-muted); }

/* ========================================================================
   17. CTA-Block (Leuchtfeuer) & Newsletter
   ======================================================================== */
/* Chanel-Regel angewandt: das Grain-Overlay auf dem CTA-Block wurde wieder
   entfernt (Deko auf Deko) – Verlauf + Glow tragen den Block allein. */
.cta-block {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  background: var(--gradient-nord);
  color: var(--color-segel);
  box-shadow: 0 0 90px var(--glow-nordlicht-soft);
}
.cta-block h2 { color: var(--color-segel); }
.cta-block .lead { color: rgba(255, 255, 255, 0.9); }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: flex-start;
}
.newsletter-form .input { flex: 1 1 16rem; }
.newsletter__consent { margin-top: var(--space-md); }

/* ========================================================================
   18. Flash-Meldungen
   ======================================================================== */
.messages {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
/* Nahe am Formular: kein Außenabstand oben, dafür Abstand zum Formular. */
.messages--inline { margin-top: 0; margin-bottom: var(--space-lg); }
.messages--inline:empty { display: none; }
.section--dark .message, .zone--deep .message { color: var(--ink-on-dark); }
.section--dark .message--error, .zone--deep .message--error { color: var(--color-amber-web); }
.message {
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  border-left: 4px solid var(--color-lichtblau);
  background: rgba(78, 165, 217, 0.10);
  font-size: 0.98rem;
}
.message--success { border-left-color: var(--color-nordlicht); background: rgba(68, 207, 203, 0.12); }
.message--error { border-left-color: var(--color-amber-web); background: rgba(224, 153, 31, 0.12); color: var(--color-amber-text); }
.message--warning { border-left-color: var(--color-amber-web); background: rgba(224, 153, 31, 0.12); }

/* ========================================================================
   19. Footer (Tiefsee, Pattern, letzter Nordstern-Moment)
   ======================================================================== */
.site-footer {
  position: relative;
  background: var(--color-tiefsee);
  color: var(--color-hellgrau);
  padding-block: var(--space-2xl);
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/nordhort-pattern.92605841d83a.svg");
  background-size: 480px;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}
.site-footer a { color: var(--color-nebel); text-decoration: none; }
.site-footer a:hover { color: var(--color-nordlicht); }
.site-footer a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-xl);
}
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__logo img { height: 2rem; width: auto; margin-bottom: var(--space-md); }
.site-footer__claim {
  font-family: var(--font-display);
  color: var(--color-segel);
  max-width: 30ch;
}
.site-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-nordlicht);
  margin: 0 0 var(--space-md);
}
.site-footer__nav { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { margin-bottom: var(--space-xs); }
.site-footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.85rem;
  color: var(--color-hellgrau);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: space-between;
  align-items: center;
}
.site-footer__pos {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-on-dark-muted);
}

/* ========================================================================
   20. Hintergrundmuster (dezent, in der Tiefe kaum sichtbar)
   ======================================================================== */
.pattern-bg { position: relative; isolation: isolate; }
.pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/nordhort-pattern.92605841d83a.svg");
  background-size: 480px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}
.section--dark.pattern-bg::before, .zone--deep .pattern-bg::before { opacity: 0.05; }

/* ========================================================================
   21. Utilities
   ======================================================================== */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--space-md); }
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================================
   22. Motion-Vokabular
   ======================================================================== */
/* „Aus der Tiefe": Sektionseinstieg. Kinder von [data-reveal-group]
   erhalten per JS gestaffelte transition-delays (60–80 ms). */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms var(--ease-tide), transform 560ms var(--ease-tide);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
/* Schnelles Scrollen (reveal.js): ohne Übergang, auch ohne Stagger-Verzug. */
[data-reveal].reveal-sofort { transition: none !important; }

/* „Lichtstrahl": einmaliger Nordlicht-Schimmer durch eine Schlüssel-
   Überschrift (sparsam, max. 2–3 pro Seite). --shimmer-base pro Kontext. */
[data-shimmer] { --shimmer-base: var(--color-tiefsee); }
.zone--deep [data-shimmer], .section--dark [data-shimmer] { --shimmer-base: var(--color-segel); }
[data-shimmer].is-lit {
  background: linear-gradient(100deg,
    var(--shimmer-base) 42%, var(--color-nordlicht) 50%, var(--shimmer-base) 58%);
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 1.3s var(--ease-tide) 0.15s 1 both;
}
@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -60% 0; }
}

/* Disziplin: reduced-motion schaltet ALLES ab, Endzustände sofort.
   Wichtig: `!important` + Delay-Clamp – sonst gewinnen spezifischere
   Animationsregeln (nth-child) und `both`-Fill hält Elemente während des
   Delays unsichtbar. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-shimmer].is-lit { animation: none !important; background: none; color: inherit; }
  .hero--home .hero__star::before,
  .hero--home .nordstern,
  .hero--home .eyebrow,
  .hero--home .hero__claim-line,
  .hero--home .hero__subline,
  .hero--home .hero__actions { animation: none !important; }
  .kurs__draw { stroke-dashoffset: 0 !important; }
  .step .step__num, .route__marker { transition: none; }
  .stern-dock { transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ========================================================================
   23. Blog – Übersicht
   ======================================================================== */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.article-card__cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  background: var(--color-nebel);
}
.article-card__body { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
/* Flex-Spalte streckt Kinder – Pill nur so breit wie ihr Text. */
.article-card__body .pill { align-self: flex-start; }
.article-card__meta { display: flex; gap: var(--space-sm); align-items: center; font-size: 0.85rem; color: var(--color-schiefer); margin-top: auto; font-family: var(--font-mono); }
.article-card__title { font-size: 1.25rem; margin: var(--space-2xs) 0; }
.article-card__title a { color: var(--color-tiefsee); text-decoration: none; }
.article-card__title a:hover { color: var(--color-hortblau); }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; margin-bottom: var(--space-xl); }
.filter-bar__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-schiefer);
}
/* Sanfter Übergang beim Ajax-Filterwechsel. */
[data-blog-list] { transition: opacity 220ms var(--ease-tide); }
[data-blog-list].is-loading { opacity: 0.35; pointer-events: none; }
.filter-bar__link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--color-stahlblau);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 0.4em 0.9em;
}
.filter-bar__link[aria-current="true"] { background: var(--color-hortblau); color: var(--color-segel); border-color: transparent; }
.filter-bar__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.pagination { display: flex; justify-content: center; gap: var(--space-md); align-items: center; margin-top: var(--space-2xl); }
.pagination__status { font-size: 0.9rem; color: var(--color-schiefer); font-family: var(--font-mono); }

/* ========================================================================
   24. Blog – Artikel (heller Lesegrund, dunkler Header-Streifen)
   ======================================================================== */
.article-header { padding-block: var(--space-2xl) var(--space-xl); }
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  color: var(--ink-on-dark-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-top: var(--space-md);
}
.article__cover { width: 100%; max-width: 62rem; border-radius: var(--radius-lg); margin-bottom: var(--space-xl); }

/* Inhalt so breit wie die Über-uns-Seite (80ch-Prose), TOC fließt rechts mit. */
.article-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
@media (min-width: 1000px) {
  .article-layout--with-toc { grid-template-columns: minmax(0, 1fr) 16rem; }
}

.article__content { max-width: var(--width-content); font-size: 1.125rem; }
.article__content > * + * { margin-top: var(--space-md); }
.article__content h2 { margin-top: var(--space-xl); }
.article__content h3 { margin-top: var(--space-lg); }
.article__content ul, .article__content ol { padding-left: 1.4em; }
.article__content li + li { margin-top: var(--space-2xs); }
.article__content img { border-radius: var(--radius-md); }
.article__content picture { display: block; }
.article__content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.article__content th, .article__content td { text-align: left; padding: var(--space-sm) var(--space-md); border-bottom: 1px solid var(--color-line); }
.article__content th { font-family: var(--font-display); border-bottom-width: 2px; }

.article__content blockquote {
  position: relative;
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-2xl);
  border-left: 4px solid transparent;
  border-image: var(--gradient-nord) 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--color-tiefsee);
}
.article__content blockquote::before {
  content: "\201C";
  position: absolute;
  left: var(--space-sm);
  top: -0.15em;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--color-nordlicht);
}
.article__content blockquote p { margin: 0; }

.toc {
  align-self: start;
  position: sticky;
  top: 6rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: 0.92rem;
}
.toc__title { font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-stahlblau); margin: 0 0 var(--space-sm); }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: var(--space-2xs); }
.toc li.toc--sub { padding-left: var(--space-md); }
.toc a { color: var(--color-schiefer); text-decoration: none; transition: color 180ms var(--ease-tide); }
.toc a:hover { color: var(--color-hortblau); }
/* Scrollspy: der gerade gelesene Abschnitt. */
.toc a.is-active { color: var(--color-hortblau); font-weight: 600; }

/* ========================================================================
   25. Funnels – Preiskarten & FAQ
   ======================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  align-items: start;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--color-segel);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.price-card--featured {
  border-color: var(--color-nordlicht);
  border-width: 2px;
  box-shadow: var(--shadow-md), 0 0 42px var(--glow-nordlicht-faint);
}
.price-card__badge { position: absolute; top: -0.8rem; right: var(--space-lg); }
.price-card__name { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.price-card__price { font-family: var(--font-display); font-weight: 600; font-size: 2rem; color: var(--color-hortblau); margin: 0; }
.price-card__period { font-size: 1rem; font-weight: 400; color: var(--color-schiefer); }
.price-card__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.price-card__features li { display: flex; gap: var(--space-xs); align-items: flex-start; }
.price-card__check { width: 1.15rem; height: 1.15rem; color: var(--color-nordlicht); flex-shrink: 0; margin-top: 0.15em; }
.price-card .btn { justify-content: center; }

.faq { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq__item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-segel);
  padding: 0 var(--space-lg);
}
.faq__question {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.08rem;
  color: var(--color-tiefsee);
  cursor: pointer;
  padding: var(--space-md) 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: center;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--color-lichtblau); }
.faq__item[open] .faq__question::after { content: "–"; }
.faq__answer { padding-bottom: var(--space-md); color: var(--color-schiefer); }
.faq__answer p { margin: 0 0 var(--space-sm); }
.faq__answer :last-child { margin-bottom: 0; }
.faq__question:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

/* ========================================================================
   26. Kostenvergleichs-Rechner (Tiefsee-Instrumentenpanel)
   Selbsttragendes Widget: trägt `.section--dark` und bringt damit die
   komplette Dunkel-Kaskade mit – funktioniert in hellem wie dunklem Umfeld.
   ======================================================================== */
/* ------------------------------------------------------------------------
   Theme-Token-System des Rechners (dark · light · blue)
   Wiederverwendbares Set aus --rechner-*-Custom-Properties, aktiviert über
   [data-rechner-theme] am Root. ALLE Werte leiten sich aus den Brand-Tokens
   ab (color-mix) – keine neuen Roh-Hex. Das gesamte Widget inkl. SVG-Chart
   konsumiert ausschließlich diese Tokens, damit das Theme konsistent greift.
   ------------------------------------------------------------------------ */
.rechner {
  /* Default = dark (Fallback bei fehlendem/ungültigem data-rechner-theme). */
  --rechner-bg: var(--color-tiefsee);
  --rechner-bg-image:
    radial-gradient(1100px 700px at 82% -12%, var(--rechner-accent-glow-soft), transparent 62%),
    radial-gradient(900px 700px at 8% 52%, var(--rechner-accent-glow-faint), transparent 60%);
  --rechner-surface: var(--surface-raised-dark);
  --rechner-text: var(--ink-on-dark);
  --rechner-text-strong: var(--ink-on-dark-strong);
  --rechner-muted: var(--ink-on-dark-muted);
  --rechner-border: var(--line-on-dark);
  --rechner-accent: var(--color-nordlicht);
  --rechner-accent-contrast: var(--color-tiefsee);
  --rechner-accent-glow-faint: var(--glow-nordlicht-faint);
  --rechner-accent-glow-soft: var(--glow-nordlicht-soft);
  --rechner-accent-glow-strong: var(--glow-nordlicht-strong);
  /* Ersparnisfläche (Nordhort-Vorteil): farbig zur Nordhort-Kurve, nie grau. */
  --rechner-saving: var(--glow-nordlicht-faint);
  --rechner-track: var(--color-schiefer);
  --rechner-fill-from: var(--color-lichtblau);
  --rechner-fill-to: var(--color-nordlicht);
  --rechner-thumb: var(--color-segel);
  --rechner-m365: var(--color-hellgrau);
  /* Break-even-Markierung (gestrichelte Droplinie): Lichtblau als „Lichtstrahl"
     auf Tiefsee – von Nordlicht-Kurve und grauer M365-Kurve unterscheidbar. */
  --rechner-be-line: var(--color-lichtblau);

  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden; /* clippt Glows der Panel-Fläche */
  padding: var(--space-xl);
  background-color: var(--rechner-bg);
  background-image: var(--rechner-bg-image, none);
  color: var(--rechner-text);
  box-shadow: 0 0 90px var(--rechner-accent-glow-faint), var(--shadow-lg);
}
@media (max-width: 640px) { .rechner { padding: var(--space-lg); } }

/* light: heller Grund, Tiefsee-Text, Hortblau-Akzent, Nebel-Flächen. */
.rechner[data-rechner-theme="light"] {
  --rechner-bg: var(--color-segel);
  --rechner-bg-image: none;
  --rechner-surface: var(--color-nebel);
  --rechner-text: var(--color-tiefsee);
  --rechner-text-strong: var(--color-tiefsee);
  --rechner-muted: var(--color-schiefer);
  --rechner-border: color-mix(in srgb, var(--color-schiefer) 16%, var(--color-nebel));
  --rechner-accent: var(--color-hortblau);
  --rechner-accent-contrast: var(--color-segel);
  --rechner-accent-glow-faint: color-mix(in srgb, var(--color-hortblau) 8%, transparent);
  --rechner-accent-glow-soft: color-mix(in srgb, var(--color-hortblau) 14%, transparent);
  --rechner-accent-glow-strong: color-mix(in srgb, var(--color-hortblau) 24%, transparent);
  --rechner-saving: color-mix(in srgb, var(--color-hortblau) 18%, transparent);
  --rechner-track: color-mix(in srgb, var(--color-schiefer) 22%, var(--color-nebel));
  --rechner-fill-from: var(--color-hortblau);
  --rechner-fill-to: var(--color-lichtblau);
  --rechner-thumb: var(--color-segel);
  --rechner-m365: var(--color-schiefer);
  /* Break-even-Markierung in Lichtblau (heller Grund, wie gewünscht). */
  --rechner-be-line: var(--color-lichtblau);
}

/* blue: heller, kühler Blau-Tint aus Lichtblau auf Segel – weder dunkel noch
   flächig Stahl-/Hortblau; dunkler Tiefsee-Text, Hortblau-Akzent. */
.rechner[data-rechner-theme="blue"] {
  --rechner-bg: color-mix(in srgb, var(--color-lichtblau) 12%, var(--color-segel));
  --rechner-bg-image: none;
  --rechner-surface: color-mix(in srgb, var(--color-lichtblau) 4%, var(--color-segel));
  --rechner-text: var(--color-tiefsee);
  --rechner-text-strong: var(--color-tiefsee);
  --rechner-muted: var(--color-stahlblau);
  --rechner-border: color-mix(in srgb, var(--color-lichtblau) 35%, var(--color-segel));
  --rechner-accent: var(--color-hortblau);
  --rechner-accent-contrast: var(--color-segel);
  --rechner-accent-glow-faint: color-mix(in srgb, var(--color-hortblau) 8%, transparent);
  --rechner-accent-glow-soft: color-mix(in srgb, var(--color-hortblau) 14%, transparent);
  --rechner-accent-glow-strong: color-mix(in srgb, var(--color-hortblau) 24%, transparent);
  --rechner-saving: color-mix(in srgb, var(--color-hortblau) 16%, transparent);
  --rechner-track: color-mix(in srgb, var(--color-lichtblau) 30%, var(--color-segel));
  --rechner-fill-from: var(--color-hortblau);
  --rechner-fill-to: var(--color-lichtblau);
  --rechner-thumb: var(--color-segel);
  --rechner-m365: var(--color-schiefer);
  /* Break-even-Markierung in Stahlblau: Lichtblau würde im lichtblau-getönten
     Grund untergehen – Stahlblau kontrastiert klar und bleibt in der Blau-Familie. */
  --rechner-be-line: var(--color-stahlblau);
}

/* Eyebrow/Kicker + Primär-CTA folgen dem Akzent-Token statt der globalen
   section--dark-Kaskade (die am Root bewusst nicht mehr hängt). */
.rechner .eyebrow { color: var(--rechner-accent); }
.rechner .btn--primary {
  background-color: var(--rechner-accent);
  color: var(--rechner-accent-contrast);
}
.rechner .btn--primary:hover {
  background-color: color-mix(in srgb, var(--rechner-accent) 82%, var(--color-segel));
  color: var(--rechner-accent-contrast);
  box-shadow: 0 0 0 1px var(--rechner-accent-glow-strong), 0 6px 28px var(--rechner-accent-glow-soft);
}
/* No-JS-Sekundär-Button: eigene on-dark-Regel überschreiben, sonst weißer
   Text auf hellem Grund (light/blue). */
.rechner .btn--secondary.btn--on-dark {
  color: var(--rechner-text-strong);
  border-color: var(--rechner-border);
}
.rechner .btn--secondary.btn--on-dark:hover {
  background-color: var(--rechner-accent);
  border-color: var(--rechner-accent);
  color: var(--rechner-accent-contrast);
  box-shadow: 0 0 24px var(--rechner-accent-glow-faint);
}

.rechner__kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
}
.rechner__kopf .eyebrow { margin-bottom: 0; }
.rechner__stand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rechner-muted);
  margin: 0;
}

/* Disclaimer: dauerhaft sichtbar, Amber als ehrliche Status-Stimme. */
.rechner__disclaimer {
  border-left: 3px solid var(--color-amber-web);
  padding-left: var(--space-md);
  font-size: 0.98rem;
  color: var(--rechner-text);
  max-width: 72ch;
  margin: var(--space-md) 0 var(--space-xl);
}

/* --- Eingaben: Regler + Tarif-Auswahl ---------------------------------- */
.rechner__regler {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (max-width: 900px) { .rechner__regler { grid-template-columns: 1fr; gap: var(--space-lg); } }

.rechner-feld__zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}
.rechner-feld__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--rechner-text-strong);
}
.rechner-feld__wert {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--rechner-accent);
}
.rechner-feld__skala {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--rechner-muted);
  margin-top: var(--space-2xs);
}

/* Regler: Track (leerer Rest) hinter der Akzent-Füllung; Thumb mit Akzent-
   Rand + Glow. Farben aus dem Theme-Token-Set (--rechner-fill-from/-to,
   --rechner-track). --fill setzt der Server initial, danach das JS-Modul. */
.rechner-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 1.6rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.rechner-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg,
    var(--rechner-fill-from) 0%,
    var(--rechner-fill-to) var(--fill, 50%),
    var(--rechner-track) var(--fill, 50%));
}
.rechner-slider::-moz-range-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg,
    var(--rechner-fill-from) 0%,
    var(--rechner-fill-to) var(--fill, 50%),
    var(--rechner-track) var(--fill, 50%));
}
.rechner-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: calc((8px - 1.15rem) / 2);
  border-radius: 50%;
  background: var(--rechner-thumb);
  border: 2px solid var(--rechner-accent);
  box-shadow: 0 0 0 4px var(--rechner-accent-glow-faint), 0 0 16px var(--rechner-accent-glow-soft);
  transition: box-shadow 180ms var(--ease-tide);
}
.rechner-slider::-moz-range-thumb {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--rechner-thumb);
  border: 2px solid var(--rechner-accent);
  box-shadow: 0 0 0 4px var(--rechner-accent-glow-faint), 0 0 16px var(--rechner-accent-glow-soft);
}
.rechner-slider:focus-visible { outline: none; }
.rechner-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--focus-ring), 0 0 16px var(--rechner-accent-glow-soft);
}
.rechner-slider:focus-visible::-moz-range-thumb {
  box-shadow: var(--focus-ring), 0 0 16px var(--rechner-accent-glow-soft);
}

/* M365-Ausgangstarif als kompaktes, themetreues Dropdown (native <select>,
   nur die Optik ist eigen). Der Chevron ist ein reiner CSS-Winkel (kein
   Data-URI) – CSP-unbedenklich und folgt der Akzentfarbe des Themes. */
.rechner-select { position: relative; }
.rechner-select::after {
  content: "";
  position: absolute;
  right: 1em;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid var(--rechner-accent);
  border-bottom: 2px solid var(--rechner-accent);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.rechner-select select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.6em 2.4em 0.6em 0.9em;
  border-radius: var(--radius-md);
  border: 1px solid var(--rechner-border);
  background: var(--rechner-surface);
  color: var(--rechner-text-strong);
  cursor: pointer;
  text-overflow: ellipsis;
  transition: border-color 180ms var(--ease-tide), box-shadow 180ms var(--ease-tide);
}
.rechner-select select:hover { border-color: var(--rechner-accent-glow-strong); }
.rechner-select select:focus-visible {
  outline: none;
  border-color: var(--rechner-accent);
  box-shadow: var(--focus-ring);
}
/* Aufgeklappte Optionen folgen dem Theme, soweit der Browser es zulässt. */
.rechner-select option {
  background: var(--rechner-surface);
  color: var(--rechner-text-strong);
}

.rechner__nojs { margin-top: var(--space-lg); }
.rechner__nojs p { max-width: 60ch; color: var(--rechner-muted); margin-bottom: var(--space-sm); }

/* --- Ergebnis + Chart --------------------------------------------------- */
.rechner__body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--space-xl);
  align-items: start;
  margin-top: var(--space-xl);
}
@media (max-width: 900px) { .rechner__body { grid-template-columns: 1fr; } }

.rechner__aussage {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--rechner-text-strong);
  text-wrap: balance;
  margin: 0 0 var(--space-xs);
}
/* Signatur-Akzent (background-clip:text mit Nordverlauf) nur im Dunkel-
   Kontext lesbar; in light/blue auf den soliden Akzent-Ton zurückfallen. */
.rechner[data-rechner-theme="light"] .rechner__aussage .display-accent,
.rechner[data-rechner-theme="blue"] .rechner__aussage .display-accent {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: var(--rechner-accent);
  color: var(--rechner-accent);
}
.rechner__aussage-detail { color: var(--rechner-muted); margin: 0; }

.rechner__zahlen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0 var(--space-md);
}
@media (max-width: 480px) { .rechner__zahlen { grid-template-columns: 1fr; } }
.rechner__zahl dt {
  font-size: 0.82rem;
  color: var(--rechner-muted);
  margin-bottom: var(--space-2xs);
}
.rechner__zahl dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  color: var(--rechner-text-strong);
}
.rechner__zahl dd.rechner__zahl--diff { color: var(--rechner-accent); }

.rechner__annahme {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--rechner-muted);
  margin: 0 0 var(--space-lg);
}
.rechner__abzug {
  font-size: 0.8125rem;
  color: var(--rechner-muted);
  margin: calc(-1 * var(--space-sm)) 0 var(--space-md);
}
.rechner__m365-teil {
  font-size: 0.8125rem;
  color: var(--rechner-muted);
  margin: var(--space-2xs) 0 0;
}
.rechner-backup {
  margin-top: var(--space-md);
}
.rechner-backup__label {
  font-size: 0.875rem;
}
.rechner__nutzen {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-sm);
}
.rechner__nutzen li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--rechner-text);
  padding-left: 1.1em;
  position: relative;
}
.rechner__nutzen li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rechner-accent);
}
.rechner__cta { margin: 0; }
.rechner__fuss {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--rechner-muted);
  margin: var(--space-xl) 0 0;
}

/* Break-even-Chart: M365 gedämpft (--rechner-m365), Nordhort im Akzent. */
.rechner-chart { margin: 0; position: relative; }
.rechner-chart svg { display: block; width: 100%; height: auto; }
.rechner-chart__legende {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--rechner-muted);
  margin-bottom: var(--space-xs);
}
.rechner-chart__legende-punkt {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
}
.rechner-chart__legende-punkt--m365 { background: var(--rechner-m365); }
.rechner-chart__legende-punkt--nordhort {
  background: var(--rechner-accent);
  margin-left: var(--space-sm);
  box-shadow: 0 0 8px var(--rechner-accent-glow-strong);
}
.rechner-chart__grid { stroke: var(--rechner-border); stroke-width: 1; stroke-dasharray: 2 6; }
.rechner-chart__axis { stroke: var(--rechner-border); stroke-width: 1.5; }
.rechner-chart__tick {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--rechner-muted);
}
.rechner-chart__label { font-family: var(--font-mono); font-size: 12px; }
.rechner-chart__label--m365 { fill: var(--rechner-m365); }
.rechner-chart__label--nordhort { fill: var(--rechner-accent); }
.rechner-chart__line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; }
.rechner-chart__line--m365 { stroke: var(--rechner-m365); opacity: 0.75; }
.rechner-chart__line--nordhort {
  stroke: var(--rechner-accent);
  filter: drop-shadow(0 0 6px var(--rechner-accent-glow-strong));
}
/* Ersparnisfläche nach dem Schnittpunkt: farbig zur Nordhort-Kurve
   (Nordlicht im Dunkeln, Hortblau in hell/blau) – bewusst nicht grau, da grau
   die Microsoft-Kurve suggerieren würde. */
.rechner-chart__saving { fill: var(--rechner-saving); }
/* Gestrichelte Droplinie vom Schnittpunkt zur Zeitachse – markiert den
   Break-even-Monat visuell (Farbe je Theme über --rechner-be-line). */
.rechner-chart__be-line {
  stroke: var(--rechner-be-line);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  opacity: 0.9;
}
.rechner-chart__be {
  fill: var(--rechner-accent);
  stroke: var(--rechner-bg);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--rechner-accent-glow-strong));
}
.rechner-chart__guide { stroke: var(--rechner-accent-glow-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.rechner-chart__tip {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  background: var(--rechner-surface);
  color: var(--rechner-text);
  border: 1px solid var(--rechner-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2xs) var(--space-sm);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

/* Screenreader-/No-JS-Fallback: Werte als aufklappbare Tabelle. */
.rechner-tabelle { margin-top: var(--space-sm); }
.rechner-tabelle summary {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--rechner-muted);
  cursor: pointer;
}
.rechner-tabelle summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.rechner-tabelle .table { margin-top: var(--space-xs); font-size: 0.85rem; }
/* Tabelle folgt dem Theme (ohne die globale section--dark-Kaskade). */
.rechner .table th { color: var(--rechner-text-strong); }
.rechner .table th,
.rechner .table td { border-color: var(--rechner-border); }
.rechner .table tbody tr:hover { background: var(--rechner-surface); }

/* Kurven zeichnen sich beim Einblenden („Aus der Tiefe"); reduced-motion
   erledigt der globale Animations-Override – Endzustand sofort. */
@keyframes rechner-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}
[data-rechner].is-visible .rechner-chart__line--m365 {
  animation: rechner-draw 900ms var(--ease-tide) both;
}
[data-rechner].is-visible .rechner-chart__line--nordhort {
  animation: rechner-draw 900ms var(--ease-tide) 150ms both;
}
[data-rechner].is-visible .rechner-chart__saving,
[data-rechner].is-visible .rechner-chart__be-line,
[data-rechner].is-visible .rechner-chart__be {
  animation: glow-in 500ms var(--ease-tide) 900ms both;
}

/* ========================================================================
   27. FAQ-Seite (heller Lesegrund, nutzt die Accordion-Komponente aus 25)
   ======================================================================== */
.faq-page { max-width: 62rem; }

/* Sprungnavigation zu den Kategorien – Mono-Pills wie die Filter-Bar. */
.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: center;
  margin-bottom: var(--space-2xl);
}
.faq-jump__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-schiefer);
}
.faq-jump__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}
.faq-jump__link {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--color-stahlblau);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 0.4em 0.9em;
  transition: color 180ms var(--ease-tide), border-color 180ms var(--ease-tide);
}
.faq-jump__link:hover {
  color: var(--color-hortblau);
  border-color: var(--color-lichtblau);
}
.faq-jump__link:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Kategorie-Block. scroll-margin: die sticky Kopfzeile darf den Anker beim
   Anspringen nicht verdecken. */
.faq-group { margin-bottom: var(--space-2xl); scroll-margin-top: 5.5rem; }
.faq-group:last-of-type { margin-bottom: 0; }

/* Anker je Frage – ebenfalls unter die Kopfzeile scrollen. */
.faq-page .faq__item { scroll-margin-top: 5.5rem; }

/* Deep-Link-Ziel dezent hervorheben (auch ohne JS via :target). */
.faq__item:target {
  border-color: var(--color-nordlicht);
  box-shadow: 0 0 0 1px var(--glow-nordlicht-strong), 0 0 28px var(--glow-nordlicht-faint);
}

/* Permalink am Ende einer Antwort (Mono-Kleinschrift, unaufdringlich). */
.faq__permalink {
  margin: var(--space-md) 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}
.faq__permalink a { color: var(--color-stahlblau); text-decoration: none; }
.faq__permalink a:hover { color: var(--color-hortblau); }

/* reduced-motion: kein weicher :target-Übergang nötig – Komponente ist statisch. */

/* ========================================================================
   28. Transparenzseite (Listen hell, Live-Nachweis als dunkler Lichtkegel)
   ======================================================================== */
.tp-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.tp-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-stahlblau);
  margin: 0 0 var(--space-xs);
}
.tp-avv {
  margin-top: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-schiefer);
}
.tp-empty { color: var(--color-schiefer); font-style: italic; }

/* Stack: je Kategorie eine kleine Tabelle. */
.tp-stack__gruppe + .tp-stack__gruppe { margin-top: var(--space-xl); }
.tp-stack__kat {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stahlblau);
  margin: 0 0 var(--space-sm);
}
.tp-stack__table th[scope="row"] { font-family: var(--font-display); font-weight: 600; }
.tp-stack__table { margin-bottom: 0; }

/* Ab Tablet-Breite: feste Spaltenbreiten, damit alle Kategorie-Tabellen
   miteinander fluchten (sonst richtet jede ihre Spalten am eigenen 1–2-zeiligen
   Inhalt aus). Auf schmalen Viewports greift stattdessen `.table--stack`. */
@media (min-width: 641px) {
  .tp-stack__table { table-layout: fixed; }
  .tp-stack__table th:nth-child(1), .tp-stack__table td:nth-child(1) { width: 24%; }
  .tp-stack__table th:nth-child(2), .tp-stack__table td:nth-child(2) { width: 20%; }
  .tp-stack__table th:nth-child(3), .tp-stack__table td:nth-child(3) { width: 40%; }
  .tp-stack__table th:nth-child(4), .tp-stack__table td:nth-child(4) { width: 16%; }
  .tp-stack__table td { overflow-wrap: anywhere; }
}

/* Lizenz als ruhiger Mono-„Token" – kein Pill (lange Namen wie
   „PostgreSQL License" wirkten als Lozenge unförmig). Zart getönt, damit er
   auf Nebel-Grund UND auf weißen Karten (mobil) sichtbar bleibt. */
.tp-lizenz {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.35;
  padding: 0.15em 0.55em;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-nordlicht) 10%, var(--color-segel));
  border: 1px solid color-mix(in srgb, var(--color-nordlicht) 32%, var(--color-line));
  color: var(--color-stahlblau);
}

/* Auftragsverarbeiter-Tabelle: Zweck als leise Unterzeile im Namensfeld. */
.tp-table-wrap { overflow-x: auto; }
.tp-zweck {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-schiefer);
  margin-top: var(--space-2xs);
}
.tp-inline-pill { margin-left: var(--space-xs); vertical-align: middle; }

/* --- Responsive Tabellen: auf schmalen Viewports zu gestapelten Karten ---
   Statt gequetschter Spalten (oder Horizontal-Scroll, der Inhalt verbirgt)
   wird jede Zeile zu einer Karte; die Spaltenüberschrift erscheint je Zelle
   als Label (data-label). Reused-fähige Klasse `.table--stack`. */
@media (max-width: 640px) {
  .table--stack thead {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .table--stack, .table--stack tbody, .table--stack tr,
  .table--stack th[scope="row"] { display: block; width: auto; }
  .table--stack tr {
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    background: var(--color-segel);
  }
  .table--stack tr:last-child { margin-bottom: 0; }
  .table--stack tbody tr:hover { background: var(--color-segel); }
  /* Kartenkopf: der Name/Dienstleister, abgesetzt von den Detailzeilen. */
  .table--stack th[scope="row"] {
    border: 0;
    border-bottom: 1px solid var(--color-line);
    padding: 0 0 var(--space-xs);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
  }
  /* Detailzeilen: Mono-Label über dem Wert (liest sich für kurze wie lange
     Werte sauber – anders als rechtsbündige Werte bei langem Zweck-Text). */
  .table--stack td {
    display: block;
    border: 0;
    padding: var(--space-sm) 0 0;
  }
  .table--stack td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-schiefer);
    margin-bottom: var(--space-2xs);
  }
}

/* --- Live-Technik-Nachweis: dunkler „Lichtkegel" ---------------------- */
.beweis {
  position: relative;
  padding-block: var(--space-3xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-block: var(--space-xl);
}
.beweis__intro { max-width: 46rem; }
.beweis__intro .lead, .beweis__intro p { color: var(--ink-on-dark-muted); }

.beweis__live { margin-top: var(--space-2xl); }
.beweis__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 40rem;
}
@media (max-width: 560px) { .beweis__grid { grid-template-columns: 1fr; } }
.beweis__metric { text-align: center; }
.beweis__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.5rem, 2.5rem + 6vw, 6rem);
  line-height: 1;
  color: var(--color-nordlicht);
  /* Nordlicht als Lichtquelle: weicher Glow. */
  text-shadow: 0 0 30px var(--glow-nordlicht-soft);
  font-variant-numeric: tabular-nums;
}
.beweis__label {
  margin-top: var(--space-sm);
  color: var(--ink-on-dark-muted);
  font-size: 0.95rem;
}
.beweis__status {
  margin-top: var(--space-xl);
  color: var(--ink-on-dark);
  max-width: 60ch;
}
.beweis__detail { margin-top: var(--space-md); }
.beweis__detail summary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-nordlicht);
  cursor: pointer;
}
.beweis__detail summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.beweis__hint, .beweis__fuss {
  margin-top: var(--space-xl);
  color: var(--ink-on-dark-muted);
  font-size: 0.9rem;
  max-width: 62ch;
}
.beweis__fuss { font-family: var(--font-mono); font-size: 0.78rem; }

/* ========================================================================
   29. Referenzen / Case Studies
   ======================================================================== */
.ref-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  align-items: start;
}
.ref-grid--compact { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }
@media (max-width: 640px) { .ref-grid, .ref-grid--compact { grid-template-columns: 1fr; } }

.ref-card { display: flex; flex-direction: column; gap: var(--space-md); }
.ref-card__head { display: flex; align-items: center; gap: var(--space-md); }
.ref-card__logo { width: auto; height: 2.6rem; border-radius: var(--radius-sm); }
.ref-card__name { font-size: 1.25rem; margin: 0; }
.ref-card__meta {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--color-stahlblau); margin: 0;
}
.ref-card__block { margin: 0; }
.ref-card__label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-stahlblau);
  margin: 0 0 var(--space-2xs);
}
.ref-card__body > :last-child { margin-bottom: 0; }
.ref-card__quote { margin: var(--space-sm) 0 0; }

/* Kennzahlen-Chips: Wert prominent (Hortblau), Label gedämpft – Kontrast ok. */
.ref-metrics {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  list-style: none; margin: 0; padding: 0;
}
.ref-metric {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-nordlicht) 12%, var(--color-segel));
  border: 1px solid color-mix(in srgb, var(--color-nordlicht) 30%, var(--color-line));
}
.ref-metric__v {
  font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  line-height: 1; color: var(--color-hortblau);
}
.ref-metric__l { font-size: 0.78rem; color: var(--color-schiefer); }

/* Kompakte Zitat-Karte (Startseite). */
.ref-quote { display: flex; flex-direction: column; gap: var(--space-md); }
.ref-quote__text {
  font-family: var(--font-display); font-weight: 500; font-size: 1.2rem;
  line-height: 1.45; color: var(--color-tiefsee); margin: 0;
}
.ref-quote__text::before { content: "\201C"; color: var(--color-nordlicht); font-size: 1.4em; line-height: 0; vertical-align: -0.15em; margin-right: 0.1em; }
.ref-quote__cap { display: flex; flex-direction: column; margin-top: auto; }
.ref-quote__name { font-family: var(--font-display); font-weight: 600; }
.ref-quote__meta { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--color-schiefer); }

/* Dunkel-Kontext (z. B. Funnel-Hero-nahe Sektionen): Tinten anpassen. */
.zone--deep .ref-card__meta, .section--dark .ref-card__meta,
.zone--deep .ref-card__label, .section--dark .ref-card__label { color: var(--color-nordlicht); }
.zone--deep .ref-metric, .section--dark .ref-metric {
  background: var(--tint-nordlicht-dark); border-color: var(--glow-nordlicht-strong);
}
.zone--deep .ref-metric__v, .section--dark .ref-metric__v { color: var(--color-nordlicht); }
.zone--deep .ref-metric__l, .section--dark .ref-metric__l,
.zone--deep .ref-quote__text, .section--dark .ref-quote__text { color: var(--ink-on-dark); }

/* ========================================================================
   30. Kleine Viewports (≤ 360 px)
   ======================================================================== */
@media (max-width: 400px) {
  .container { padding-inline: var(--space-md); }
  .hero__claim { letter-spacing: -0.02em; }
  .cta-block { padding: var(--space-xl) var(--space-lg); }
  .card { padding: var(--space-lg); }
}
