/* ============================================================================
   BRUTALIST INVESTIGATIVE JOURNALISM SITE
   Design DNA: Raw, structural, confrontational - like evidence files
   ============================================================================ */

/* ============================================================================
   LOCAL FONTS — Inter (self-hosted, DSGVO-konform)
   ============================================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f3;
  --fg: #0a0a0a;
  --mid: #3a3a3a;
  --dim: #666;
  --red: #dd0000;
  --red-dark: #7f1d1d;
  --pad: clamp(20px, 4vw, 48px);
  --white: #fff;             /* pure white — backgrounds, inverted text */
  --light-dim: #d0d0cc;      /* dimmed text on dark backgrounds */
  --surface: #eeedea;        /* card / info-box background tint */
  --red-tint: #f5eaea;       /* red info-box background */
  --gray-text: #ccc;         /* muted text on dark backgrounds */
  --mid-dark: #555;          /* mid-dark text, between --dim and --gray-600 */

  /* Legacy variable aliases — brutalist overrides (no pastels) */
  --gray-50: #f5f5f3;
  --gray-100: #ebebea;
  --gray-200: #d5d4ce;
  --gray-300: #b0afaa;
  --gray-400: #888;
  --gray-500: #666;
  --gray-600: #444;
  --gray-700: #3a3a3a;
  --gray-800: #1a1a1a;
  --gray-900: #0a0a0a;
  --red-50: transparent;
  --red-100: transparent;
  --red-500: #dd0000;
  --red-600: #dd0000;
  --red-700: #dd0000;
  --red-800: #7f1d1d;
  --amber-50: transparent;
  --amber-100: transparent;
  --amber-500: #0a0a0a;
  --amber-600: #0a0a0a;
  --amber-700: #0a0a0a;
  --blue-50: transparent;
  --blue-100: transparent;
  --blue-600: #0a0a0a;
  --blue-700: #0a0a0a;
  --green-50: transparent;
  --green-100: transparent;
  --green-600: #0a0a0a;
  --green-700: #0a0a0a;
  --primary: #0a0a0a;
  --accent: #dd0000;
  --font: Inter, system-ui, -apple-system, sans-serif;  /* canonical alias */
  --font-sans: Inter, system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, serif;
  --max-w: 100%;
  --max-w-narrow: 72ch;

  /* ── DESIGN TOKENS ── */
  /* Spacing (8px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border hierarchy */
  --border-thin: 2px;
  --border-medium: 3px;
  --border-thick: 4px;
  --border-heavy: 6px;

  /* ── Type Scale ── */
  --text-2xs: 0.625rem;    /* 10px — badges, fakt-labels */
  --text-xs: 0.65rem;      /* 10.4px — blog micro UI */
  --text-sm: 0.7rem;       /* 11.2px — card source-cite, meta */
  --text-base-sm: 0.75rem; /* 12px — source citations */
  --text-caption: 0.8125rem; /* 13px — section labels, overlines */
  --text-meta: 0.875rem;   /* 14px — nav links, card descriptions */
  --text-body-sm: 0.9rem;  /* 14.4px — compact body, subtitles */
  --text-body: 0.95rem;    /* 15.2px — standard body text */
  --text-base: 1rem;       /* 16px — default */
  --text-lg: 1.125rem;     /* 18px — lead paragraphs */
  --text-xl: 1.25rem;      /* 20px — subheadings */
  --text-2xl: 1.5rem;      /* 24px — section titles */
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-base);
}

p {
  line-height: 1.8;
}

strong {
  font-weight: 700;
}

/* Default text colors for light-bg contexts only */
.section p:not(.section-label):not(.overline):not(.source-cite):not(.fact-label):not(.fact-label-claim):not(.fact-label-reality):not(.fact-label-source),
.prose p,
.block-body,
.section-body,
.section-lead,
.card-text,
.info-box-text,
.fact-explanation,
.bewertung-text,
.timeline-content,
.timeline-desc,
.profile-description,
.case-entry-text {
  color: var(--mid);
}

.section strong,
.prose strong,
.block-body strong {
  color: var(--fg);
}

em {
  font-style: italic;
}

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:hover strong,
a:hover em,
a:hover b,
a:hover i {
  color: var(--red);
}

/* ─── Focus-Styles (Accessibility / Tastaturnavigation) ─── */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

/* Buttons und CTA-Links: stärkerer Fokus-Ring */
.btn:focus-visible,
.end-cta:focus-visible,
.blog-filter-btn:focus-visible,
.blog-post-featured:focus-visible,
.blog-post-preview:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

/* Auf dunklen Hintergründen: weißer Fokus-Ring */
.interlude--red :focus-visible,
.interlude--black :focus-visible,
.end :focus-visible,
.cta-section :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--white);
}

/* ─── Link-Kontexte: Helle, rote, schwarze Hintergründe ─── */

/* Heller Hintergrund (Standard) — fg + underline, hover red */
/* Covered by global a styles above */

/* Roter Hintergrund — nur Text-Links (keine Buttons) */
.interlude--red a:not([class*="btn"]):not(.end-cta):not(.interlude-link),
.interlude--red .sub a:not([class*="btn"]):not(.end-cta) {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.interlude--red a:not([class*="btn"]):not(.end-cta):not(.interlude-link):hover,
.interlude--red .sub a:not([class*="btn"]):not(.end-cta):hover {
  color: var(--white);
  opacity: 0.75;
}

/* Schwarzer / dunkler Hintergrund — nur Text-Links (keine Buttons) */
.interlude--black a:not([class*="btn"]):not(.end-cta),
.interlude--black .sub a:not([class*="btn"]):not(.end-cta),
.end a:not([class*="btn"]):not(.end-cta),
.cta-section a:not([class*="btn"]):not(.end-cta),
.page-hero a:not([class*="btn"]):not(.end-cta),
.key-question a:not([class*="btn"]):not(.end-cta) {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.interlude--black a:not([class*="btn"]):not(.end-cta):hover,
.interlude--black .sub a:not([class*="btn"]):not(.end-cta):hover,
.end a:not([class*="btn"]):not(.end-cta):hover,
.cta-section a:not([class*="btn"]):not(.end-cta):hover,
.page-hero a:not([class*="btn"]):not(.end-cta):hover,
.key-question a:not([class*="btn"]):not(.end-cta):hover {
  color: var(--white);
  opacity: 0.75;
}

/* block-body Links — sichtbar auf hellem bg */
.block-body a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.block-body a:hover {
  color: var(--red);
}

/* Weitere dunkle Kontexte — Tabellen, Faktencheck, Blog-Header */
.data-table thead a,
.ka-table thead a,
.vs-col-claim a,
.vs-col-reality a,
.fakt-behauptung a,
.timeline-filter a,
.versus-cell a,
.blog-header a,
.blog-hero-archive a,
.blog-hero-post a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.data-table thead a:hover,
.ka-table thead a:hover,
.vs-col-claim a:hover,
.vs-col-reality a:hover,
.fakt-behauptung a:hover,
.timeline-filter a:hover,
.versus-cell a:hover,
.blog-header a:hover,
.blog-hero-archive a:hover,
.blog-hero-post a:hover {
  color: var(--white);
  opacity: 0.75;
}

.lead {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--mid);
  line-height: 1.6;
  max-width: var(--max-w);
}

.overline {
  display: inline-block;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  padding: 0.35em 0.7em 0.3em;
}

.subtitle {
  font-size: var(--text-lg);
  color: var(--mid);
  font-weight: 400;
}

.sep {
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--fg);
  margin: 1.5rem 0;
}

/* ============================================================================
   SITE STRUCTURE
   ============================================================================ */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  background-color: var(--bg);
  border-bottom: none;
  z-index: 1000;
  padding: 1.25rem var(--pad);
  transition: border-color 0.25s ease, border-width 0.25s ease;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none;
  -webkit-filter: none;
}

/* Schwarze Trennlinie + Fade-out nur auf der Startseite (weißer Hero) */
.page-home .site-header {
  border-bottom: var(--border-thick) solid var(--fg);
}

.page-home .site-header.scrolled {
  border-bottom-color: transparent;
  border-bottom-width: 0;
}

.site-header-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 40px; /* match search-toggle height — keeps header consistent across DE/EN */
}

.site-logo {
  font-size: clamp(1.25rem, 2vw, 1.75rem); /* original size — tablets keep this */
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-logo a {
  text-decoration: none;
  color: inherit;
}

/* Logo auf dunklem Hintergrund — weiß + rot, kein Hover-Effekt */
.blog-header .blog-header-logo,
.blog-header .blog-header-logo:hover,
a.footer-brand,
a.footer-brand:hover {
  text-decoration: none;
  color: var(--white);
  opacity: 1;
}
.blog-header .blog-header-logo .logo-accent,
a.footer-brand .logo-accent {
  color: var(--red);
}

.logo-br {
  display: none;
}

.logo-accent {
  color: var(--red);
}

.nav-toggle {
  display: none;
  background: none;
  border: var(--border-medium) solid var(--fg);
  color: var(--fg);
  padding: var(--space-sm);
  cursor: pointer;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

.nav-main {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  margin-left: auto; /* push nav to the right; actions follows directly */
}

/* Shared styling for all top-level nav items */
.nav-main > a,
.nav-dropdown-trigger {
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-base);
  letter-spacing: 0;
  line-height: 1;
  padding: 0.5rem 0;
  color: var(--fg);
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-main > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--red);
}

.nav-main > a[aria-current="page"] {
  color: var(--red);
}

/* Language switcher */
.nav-lang {
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem !important;
  border: 1.5px solid var(--fg) !important;
  border-radius: 2px;
  margin-left: 0.5rem;
}
.nav-lang:hover {
  background: var(--fg) !important;
  color: var(--bg) !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-trigger .chevron {
  width: 10px;
  height: 6px;
}

.chevron {
  display: inline-block;
  width: 10px;
  height: auto;
  transition: transform 0.2s;
}

.nav-dropdown-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);  /* Slightly overlapping into header */
  left: -1rem;
  background: var(--red);
  display: none;
  flex-direction: column;
  min-width: 240px;
  z-index: 1001;
  padding: 0;
}

/* Bridge the gap between trigger and menu */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  display: none;
}

.nav-dropdown.open::after {
  display: block;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,0.25);
}

.nav-dropdown-menu a:first-child {
  border-top: none;
}

.nav-dropdown-menu a:hover {
  color: var(--white);
  background: rgba(0,0,0,0.2);
}

.nav-dropdown-menu a[aria-current="page"] {
  color: var(--white);
  background: rgba(0,0,0,0.25);
  font-weight: 700;
  pointer-events: none;
}

/* ============================================================================
   BREADCRUMB
   ============================================================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-base-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  padding: 0;
  margin: 0 0 2rem;
  list-style: none;
}

.breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* Override .sep inside breadcrumbs — .sep is normally a decorative line */
.breadcrumb .sep {
  display: inline;
  width: auto;
  height: auto;
  background: none;
  margin: 0;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-base-sm);
}

.breadcrumb li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  color: rgba(255,255,255,0.5);
}

.breadcrumb li:first-child::before {
  content: none;
}

/* ============================================================================
   HERO SECTIONS
   ============================================================================ */

.hero {
  min-height: min(100svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(48px, 8vw, 120px) var(--pad) clamp(24px, 3vw, 40px);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.05em;
  max-width: 14ch;
}

.hero-lead {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--light-dim);
  line-height: 1.6;
  max-width: var(--max-w);
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(255,255,255,0.2);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-value--sm {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  white-space: nowrap;
}

.stat-label {
  font-size: var(--text-meta);
  text-transform: uppercase;
  color: var(--light-dim);
  letter-spacing: 0.05em;
}

.page-hero {
  min-height: 50svh;
  background-color: var(--gray-800);
  color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 5vw, 64px) var(--pad) clamp(40px, 6vw, 72px);
  border-bottom: var(--border-thick) solid var(--fg);
  position: relative;
  z-index: 1;
}

/* Labels on dark backgrounds — white stamp with black text */
.page-hero .overline,
.page-hero .section-label,
.interlude .block-label,
.interlude .section-label,
.interlude .overline,
.end .block-label,
.end .section-label,
.end .overline {
  background: var(--white) !important;
  color: var(--fg) !important;
  font-size: var(--text-caption);
  letter-spacing: 0.2em;
  border-left: none;
  padding: 0.35em 0.7em 0.3em;
  margin-bottom: 1.5rem;
}

/* First section after hero doesn't need double border */
.page-hero + .section,
.page-hero + .timeline-filter + .section {
  border-top: none;
  z-index: auto;
}

/* Remove hero bottom border when filter follows + prevent z-index conflict */
.page-hero:has(+ .timeline-filter) {
  border-bottom: none;
  z-index: auto;
}

.page-hero h1 {
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.page-hero-subtitle,
.page-hero .lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--light-dim);
  max-width: 640px;
  line-height: 1.6;
}

/* Ensure all text inside dark containers inherits color */
.page-hero p,
.page-hero strong,
.cta-section p,
.cta-section strong,
.end p,
.end strong,
.key-question p,
.key-question strong,
.key-question-banner p,
.key-question-banner strong {
  color: inherit;
}

/* ============================================================================
   SECTIONS & BLOCKS
   ============================================================================ */

.section {
  padding: clamp(56px, 7vw, 96px) var(--pad);
  border-top: var(--border-thick) solid var(--fg);
  position: relative;
  z-index: 1;
  max-width: none;
  background-color: var(--bg);
}

/* Alternate section background — use class="section section--alt" instead of inline style */
.section--alt {
  background-color: var(--gray-50);
}

.section-label,
.section .section-label {
  display: inline-block;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.35em 0.7em 0.3em;
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--fg);
  margin-bottom: 1.5rem;
  max-width: none;
}

.section-lead {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--mid);
  line-height: 1.8;
  max-width: var(--max-w);
  margin-bottom: 2rem;
}

.section-body {
  max-width: var(--max-w);
  color: var(--mid);
  line-height: 1.8;
}

.section-body strong {
  color: var(--fg);
}

/* Abstände rund um Übersichtstabellen-Section.
   Betrifft strafverfahren.html und schork-vs-zirngast.html. */
.section:has(+ .section-overview),
.section:has(+ hr + .section-overview) {
  padding-bottom: clamp(60px, 6vw, 96px) !important;
}
.section.section-overview {
  display: block;
  padding-top: clamp(60px, 6vw, 96px);
  border-top: var(--border-thick) solid var(--fg);
}

/* Abstand vor Ländervergleich (faktencheck.html) */
/* Last fakt-section before a non-fakt section: restore standard padding-bottom
   so the border-top divider is symmetric (96px above = 96px below).
   The adjacent non-fakt section already uses standard padding-top (clamp 56-96px),
   so no separate override is needed there. */
.section-before-divider {
  padding-bottom: clamp(56px, 7vw, 96px) !important;
}

.fact-card {
  margin-bottom: var(--space-xl);
}

.fact-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-md);
}

.fact-card p {
  color: var(--mid);
  line-height: 1.8;
  max-width: var(--max-w);
}

.fact-card ul {
  color: var(--mid);
  line-height: 1.8;
  padding-left: 1.25em;
  margin-top: 0.75rem;
  max-width: var(--max-w);
}

.fact-card li {
  margin-bottom: var(--space-sm);
}

/* ============================================================================
   BLOCKQUOTE & TESTIMONIALS
   ============================================================================ */

blockquote,
.blockquote {
  border-left: var(--border-thick) solid var(--red) !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 0 0 0 var(--space-lg) !important;
  margin: var(--space-lg) 0 !important;
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--fg);
  line-height: 1.7;
  background: transparent !important;
}

.blockquote::before {
  content: """;
  font-size: 3rem;
  font-style: normal;
  color: var(--red);
  line-height: 1;
  display: block;
  margin-left: -0.5rem;
  margin-bottom: -0.5rem;
}

.testimonial {
  border: none;
  padding: 0;
  margin: var(--space-2xl) 0;
  background-color: transparent;
}

/* Blockquote inside testimonial already has border-left */
.testimonial blockquote {
  margin: 0 0 var(--space-sm) 0 !important;
}

.testimonial--degewo blockquote {
  border-left-color: var(--dim) !important;
  opacity: 0.75;
}

.testimonial-text {
  font-style: italic;
  color: var(--mid);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.testimonial-attribution {
  font-size: var(--text-meta);
  font-style: normal;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================================
   CARDS & GRIDS
   ============================================================================ */

.card {
  border: var(--border-medium) solid var(--fg);
  padding: var(--space-lg);
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

/* ⚠️  Card-Abstände — NICHT ÄNDERN.
   Alle Abstände werden per margin-top auf den Kindelementen gesetzt,
   NICHT über gap. So ist jeder Abstand individuell kontrollierbar.
   Tag:       kein margin-top (erstes Element)
   H3:        8px nach Tag
   Subtitle:  4px nach H3, mit border-bottom + 12px padding-bottom
   P/Text:    12px nach Subtitle oder H3 */

/* Card inner typography hierarchy */
.card .tag {
  margin-bottom: var(--space-md);
}

.card h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 900;
  color: var(--fg);
  line-height: 1.2;
  margin: 0 0 var(--space-xs) 0;
}

.card .subtitle {
  font-size: var(--text-body-sm);
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--gray-200);
}

/* Card-Paragraphen: Browser-Defaults entfernen, eigene Abstände */
.card p,
.card blockquote {
  margin: 0;
}

.card p + p {
  margin-top: var(--space-sm);
}

/* Wenn kein subtitle: Abstand von h3 direkt zum Text */
.card h3 + p,
.card h3 + blockquote {
  margin-top: var(--space-sm);
}

/* Card source area */
.card .source-cite {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
}

.card-profile-link {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
  font-weight: 700;
  font-size: var(--text-body);
}

a.card {
  text-decoration: none;
  color: inherit;
}

.card {
}

.card-title {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  color: var(--fg);
  margin: 0;
}

.card-text {
  color: var(--mid);
  line-height: 1.8;
  flex: 1;
  margin: 0;
}

.card-tag {
  background: transparent !important;
  color: var(--fg) !important;
  display: inline-block;
  font-size: var(--text-base-sm);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0;
  order: -1;
}

/* Info-boxes/bewertung inside cards: remove own border to avoid frame-in-frame */
.card .info-box,
.card .info-box-red,
.card .info-box-blue,
.card .info-box-amber {
  border: none;
  border-left: none;
  border-top: var(--border-medium) solid var(--red);
  background-color: transparent;
  padding: var(--space-md) 0 0 0;
  margin: var(--space-md) 0 0 0;
}

/* paragraph directly after info-box in a card — matches same spacing as .card p + p (8px) */
.card [class*="info-box"] + p,
.card .prose + p {
  margin-top: var(--space-sm);
}

.card .bewertung-box {
  border: none;
  border-left: none;
  background-color: transparent;
  padding: var(--space-md) 0 0 0;
  margin: var(--space-md) 0 0 0;
  border-top: 1px solid var(--gray-200);
}

/* Card grid containers — CSS Columns for masonry layout */
/* Card grid 1 — single-column stack with consistent spacing */
.card-grid-1 {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}
.card-grid-1 > * {
  width: 100%;
}

.card-grid-2 {
  column-count: 2;
  column-gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.card-grid-3 {
  column-count: 3;
  column-gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

/* Card pair — CSS Grid, cards keep their natural height */
.card-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  align-items: start;
  margin: var(--space-xl) 0;
}

/* Safari fix: inline-block prevents cards splitting across columns */
.card-grid-2 > *,
.card-grid-3 > * {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: var(--space-lg);
}

/* ============================================================================
   TAGS & LABELS
   ============================================================================ */

.tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.4em 0.8em 0.35em;
  font-size: var(--text-2xs);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  border: none;
  background: var(--fg);
  color: var(--bg);
  margin-bottom: 0;
  order: -1;
}

/* Red variant: linked PDFs & Mittäter */
.tag.tag-red,
.card-mittaeter .tag {
  background: var(--red);
  color: var(--white);
}

/* ============================================================================
   INFO BOXES
   ============================================================================ */

/* Warning notes — important content, NOT sources */
.warning-note {
  margin-top: var(--space-md);
  font-size: 0.9rem !important;
  color: var(--fg) !important;
  font-weight: 600;
  background: transparent;
  border-top: var(--border-medium) solid var(--fg);
  border-left: none;
  padding: 0.75rem 0;
  line-height: 1.6;
}

/* Warning notes inside dark hero sections */
.page-hero .warning-note {
  color: var(--light-dim) !important;
  border-top-color: rgba(255, 255, 255, 0.3);
}

.info-box {
  border: none;
  border-left: var(--border-heavy) solid var(--fg);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  background-color: var(--surface);
  overflow-wrap: break-word;
}

/* info-boxes inside column grids: reset margin, let column-gap handle spacing */
.card-grid-2 > .info-box,
.card-grid-3 > .info-box,
.card-grid-2 > .info-box-red,
.card-grid-3 > .info-box-red,
.info-grid-3 > .info-box,
.info-grid-3 > .info-box-red {
  margin: 0;
}

/* Info grid: CSS Grid for fixed 3-column layouts (info-boxes with large headings) */
.info-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: start;
  margin: var(--space-xl) 0;
}

.info-grid-3 h3 {
  font-size: clamp(1rem, 2vw, 1.4rem);
}

.info-box-red {
  border-left-color: var(--red);
  background-color: var(--red-tint);
}

.info-box-red h3,
.info-box-red h4 {
  color: var(--red);
}

.info-box-blue {
  border-left-color: var(--fg);
}

.info-box-amber {
  border-left-color: var(--fg);
}

.info-box-green {
  border-left-color: var(--fg);
}

/* Update notice bar — displayed when a post was modified after initial publication.
   Sits at the bottom of the article, directly above the sources section.
   Triggered by front matter: lastModifiedNote (display text) + dateModified (ISO, for meta/schema) */
.update-notice-bar {
  border-left: var(--border-heavy) solid var(--dim);
  background-color: var(--surface);
  padding: var(--space-sm) var(--space-lg);
  margin-top: var(--space-2xl);
  font-size: var(--text-body-sm);
  color: var(--dim);
  line-height: 1.5;
  max-width: var(--max-w-narrow); /* 72ch — matches article paragraphs */
}
.update-notice-bar strong {
  color: var(--mid);
  font-weight: 600;
}

/* Wrapper for update-notice-bar on full-page layouts (base-de) where the notice
   sits between sections rather than inside an <article> */
.update-notice-wrapper {
  padding: var(--space-lg) var(--pad) 0;
}

/* Spacing: card-grid followed by links/buttons, then info-box */
.card-grid + p,
.card-grid-2 + p,
.card-grid-3 + p {
  margin-top: var(--space-xl);
}

p + .info-box,
p + p + .info-box {
  margin-top: var(--space-2xl);
}

.info-box-title {
  font-weight: 900;
  margin-bottom: var(--space-md);
  color: var(--fg);
}

.info-box h4 {
  margin-bottom: var(--space-md);
}

.info-box-text {
  color: var(--mid);
  line-height: 1.8;
}

/* ============================================================================
   KEY QUESTION BANNER
   ============================================================================ */

.key-question {
  background-color: var(--fg);
  color: var(--bg);
  padding: clamp(2rem, 5vw, 4rem) var(--pad);
  margin: var(--space-xl) calc(var(--pad) * -1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-question h3 {
  color: var(--bg);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 90ch;
  text-align: center;
  font-weight: 700;
  line-height: 1.6;
}

/* ============================================================================
   TABLES
   ============================================================================ */

.data-table {
  width: 100%;
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
  table-layout: fixed;
}

.data-table thead {
  background-color: var(--fg);
  color: var(--bg);
}

.data-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Nur für Tabellen mit Nummern-Spalte */
.data-table--nr th:first-child,
.data-table--nr td:first-child {
  width: 56px;
}

.data-table td {
  padding: 1rem;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  color: var(--mid);
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--bg);
}

.data-table tbody tr:hover {
  background-color: var(--gray-100);
}

/* ============================================================================
   KA ARCHIVE — Parlamentarische Anfragen
   Desktop: table (.ka-table), Mobile: cards (.ka-cards)
   ============================================================================ */

/* Desktop table — visible ≥769px, hidden on mobile */
.ka-table {
  width: 100%;
  margin: var(--space-lg) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ka-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent;
}

.ka-table thead {
  background-color: var(--fg);
  color: var(--bg);
}

.ka-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.ka-table td {
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid var(--gray-200);
  color: var(--mid);
  font-size: var(--text-sm);
  vertical-align: top;
  line-height: 1.5;
}

.ka-table tbody tr:nth-child(even) {
  background-color: var(--bg);
}

.ka-table tbody tr:hover {
  background-color: var(--gray-100);
}

.ka-row.ka-critical td {
  color: var(--fg);
  font-weight: 500;
}

.ka-row.ka-critical td:first-child {
  border-left: 3px solid var(--red);
}

.ka-table a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ka-table a:hover {
  color: var(--red);
}

/* Mobile cards — hidden on desktop, visible ≤768px */
.ka-cards {
  display: none;
}

.ka-card {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--gray-200);
}

.ka-card--critical {
  border-left: 3px solid var(--red);
  padding-left: var(--space-md);
}

.ka-card-date {
  display: inline-block;
  font-size: var(--text-meta);
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.75rem;
}

.ka-card-id {
  display: inline-block;
  font-size: var(--text-meta);
  color: var(--mid);
  font-family: var(--font-mono, monospace);
}

.ka-card-content {
  margin: 0.5rem 0 0;
  font-size: var(--text-sm);
  color: var(--mid);
  line-height: 1.5;
}

.ka-card--critical .ka-card-content {
  color: var(--fg);
}

.ka-card-content a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.ka-card-content a:hover {
  color: var(--red);
}

.ka-card-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-meta);
  color: var(--gray-400);
}

/* Stat cards for KA archive header */
.card-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--fg);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--mid);
  margin-top: 0.5rem;
}

.stat-detail {
  font-size: var(--text-meta);
  color: var(--gray-400);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .ka-table {
    display: none;
  }
  .ka-cards {
    display: block;
  }
}

/* ============================================================================
   VS TABLE (Claim vs Reality)
   ============================================================================ */

/* VS-Table: full-width dark blocks like homepage versus */
.vs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: var(--space-xl) calc(var(--pad) * -1);
  overflow: hidden;
}

.vs-col-claim {
  background-color: var(--fg);
  color: var(--bg);
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
}

.vs-col-claim p,
.vs-col-claim strong {
  color: rgba(255,255,255,0.9) !important;
}

.vs-col-reality {
  background-color: var(--red);
  color: var(--white);
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
}

.vs-col-reality p,
.vs-col-reality strong {
  color: rgba(255,255,255,0.95) !important;
}

.vs-label {
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding: 0.35em 0.7em 0.3em;
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.3);
}

.vs-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  color: inherit;
}

.vs-content {
  font-size: var(--text-base);
  line-height: 1.7;
  color: inherit;
}

.vs-content strong {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 768px) {
  .vs-table {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   FACT-CHECK CARDS
   ============================================================================ */

.fakt {
  border: var(--border-medium) solid var(--fg);
  background: transparent;
  margin-bottom: var(--space-2xl);
  max-width: 920px;
}

.fakt-header {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.fakt-nr {
  font-size: var(--text-base-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 900;
  color: var(--dim);
  margin-bottom: 6px;
}

.fakt-titel {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--fg);
}

/* ── Behauptung: dark block ── */
.fakt-behauptung {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-xl);
}

.fakt-section-label {
  display: inline-block;
  padding: 0.35em 0.7em 0.3em;
  font-size: var(--text-2xs);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}

.fakt-behauptung .fakt-section-label {
  background: var(--bg);
  color: var(--fg);
}

.fakt-behauptung blockquote {
  border-left: var(--border-thick) solid var(--bg) !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 0 0 0 var(--space-lg) !important;
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.1rem) !important;
  line-height: 1.7;
  color: var(--gray-text) !important;
  background: transparent !important;
  max-width: 60ch;
  margin: 0 0 8px 0 !important;
}

.fakt-behauptung blockquote::before {
  content: none !important;
  display: none !important;
}

.fakt-behauptung .source-cite,
.fakt-behauptung p.source-cite {
  font-size: 12px !important;
  color: var(--gray-600) !important;
  background: rgba(255,255,255,0.7) !important;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-md) !important;
  width: fit-content !important;
  margin-top: var(--space-md) !important;
  margin-bottom: var(--space-md) !important;
  border-left: var(--border-thick) solid var(--red) !important;
}

.fakt-behauptung .fact-text {
  color: var(--gray-text) !important;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.fakt-behauptung .fact-text strong {
  color: var(--bg) !important;
}

.fakt-behauptung .fact-text a {
  color: var(--gray-text) !important;
}

/* ── Fakten: light block ── */
.fakt-fakten {
  padding: var(--space-xl);
}

.fakt-fakten .fakt-section-label {
  background: var(--red);
  color: var(--white);
}

.fakt-fakten .fact-text,
.fakt-fakten p {
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.fakt-fakten p strong,
.fakt-fakten .fact-text strong {
  color: var(--fg);
  font-weight: 900;
}

.fakt-fakten blockquote {
  border-left: var(--border-thick) solid var(--red) !important;
  margin: var(--space-lg) 0 !important;
  color: var(--mid) !important;
  background: transparent !important;
}

.fakt-fakten blockquote::before {
  content: none !important;
  display: none !important;
}

.fakt-fakten .source-cite,
.fakt-fakten p.source-cite {
  font-size: 12px !important;
  color: var(--mid-dark) !important;
  background: var(--white) !important;
  padding: var(--space-sm) var(--space-md) var(--space-sm) var(--space-md) !important;
  width: fit-content !important;
  margin-top: var(--space-md) !important;
  margin-bottom: var(--space-md) !important;
  border-left: var(--border-thick) solid var(--red) !important;
}

/* ── Footer: verdict + sources ── */
.fakt-footer {
  background: var(--red);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.fakt-verdict {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fakt-verdict::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--white);
}

.fakt-quellen {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.fakt-quellen a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ── Remove thick section border between fakt cards ── */
.section:has(.fakt) {
  border-top: none;
  padding-top: 0;
  padding-bottom: var(--space-lg); /* gap between consecutive fakt cards — matches .card margin-bottom */
}

/* Zero last-child margin inside fakt blocks so padding-bottom isn't doubled */
.fakt-behauptung > *:last-child,
.fakt-fakten > *:last-child {
  margin-bottom: 0;
}

/* ============================================================================
   RECHT CARDS — Rechtsprechung page
   ============================================================================ */

.recht {
  border: var(--border-medium) solid var(--fg);
  background: transparent;
  max-width: 100%;
}

.recht-header {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.recht-tag {
  display: inline-block;
  padding: 0.35em 0.7em 0.3em;
  font-size: var(--text-2xs);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--fg);
  color: var(--bg);
  margin-bottom: var(--space-sm);
}

.recht-titel {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 4px;
}

.recht-untertitel {
  font-size: var(--text-body-sm);
  color: var(--dim);
  line-height: 1.5;
}

/* Dark block: Kernaussage */
.recht-kern {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-xl);
}

.recht-kern .recht-section-label {
  background: var(--bg);
  color: var(--fg);
}

.recht-kern p {
  color: var(--gray-text) !important;
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--space-sm);
}

.recht-kern p strong {
  color: var(--bg) !important;
}

.recht-kern a {
  color: var(--bg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.recht-kern a:hover {
  color: var(--bg);
  opacity: 0.7;
}

/* Light block: Bedeutung / Inhalt */
.recht-inhalt {
  padding: var(--space-xl);
}

.recht-inhalt .recht-section-label {
  background: var(--red);
  color: var(--white);
}

.recht-inhalt p {
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--space-sm);
  color: var(--mid);
}

.recht-inhalt p strong {
  color: var(--fg);
}

.recht-inhalt a {
  color: var(--fg);
}

.recht-inhalt a:hover {
  color: var(--red);
}

.recht-section-label {
  display: inline-block;
  padding: 0.35em 0.7em 0.3em;
  font-size: var(--text-2xs);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-md);
}


/* Grid layouts for recht cards */
.recht-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.recht-grid-4 {
  column-count: 2;
  column-gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.recht-grid-4 .recht {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  display: inline-block;
  width: 100%;
}

.fact-label {
  display: inline-block;
  font-size: var(--text-sm);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: var(--fg);
  color: var(--bg);
  padding: 0.3em 0.6em 0.25em;
  margin-bottom: 1rem;
}

.fact-label.true { background: var(--fg); color: var(--bg); }
.fact-label.false { background: var(--red); color: var(--white); }
.fact-label.partially { background: var(--dim); color: var(--bg); }

.fact-claim {
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-size: var(--text-lg);
}

.fact-explanation {
  color: var(--mid);
  line-height: 1.8;
}

/* ============================================================================
   BEWERTUNG BOX (Evaluation)
   ============================================================================ */

.bewertung-box {
  border: none;
  border-left: var(--border-heavy) solid var(--red);
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--red-tint);
  margin: var(--space-xl) 0;
}

.bewertung-title {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: var(--space-md);
}

.bewertung-rating {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bewertung-star {
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.bewertung-star.filled {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--bg);
}

.bewertung-text {
  color: var(--mid);
  line-height: 1.8;
}

/* ============================================================================
   TIMELINE
   ============================================================================ */

.timeline {
  position: relative;
  padding: var(--space-3xl) 0;
  padding-left: 80px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: var(--border-thick);
  background-color: var(--fg);
}

.timeline-item {
  margin-left: 0;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.timeline-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Only show ::before circle if no .timeline-dot is present */
.timeline-item::before {
  content: none;
}

.timeline-date {
  font-size: var(--text-caption);
  text-transform: uppercase;
  font-weight: 900;
  color: var(--dim);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
}

.timeline-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: var(--space-md);
  max-width: 60ch;
}

.timeline-content {
  color: var(--mid);
  line-height: 1.8;
  max-width: 65ch;
}

.case-timeline {
  border-left: var(--border-thick) solid var(--fg);
  padding-left: var(--space-xl);
  margin-left: var(--space-md);
}

/* Timeline dots — large, hollow */
.timeline-dot {
  position: absolute;
  left: -60px;
  top: 4px;
  width: 24px;
  height: 24px;
  background: var(--bg);
  border: var(--border-thick) solid var(--fg);
  border-radius: 50%;
  z-index: 2;
}

.timeline-year {
  display: block;
  font-size: var(--text-caption);
  text-transform: uppercase;
  font-weight: 900;
  color: var(--dim);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.timeline-desc {
  color: var(--mid);
  line-height: 1.8;
  max-width: 65ch;
  margin: var(--space-md) 0;
}

/* Critical timeline items */
.timeline-item.critical .timeline-dot {
  background: var(--red);
  border-color: var(--red);
}

.timeline-item.critical .timeline-year {
  color: var(--red);
  font-weight: 900;
}

/* Case tag — labels entries belonging to a specific case thread (blog-tag style) */
.case-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--fg);
  border: none;
  padding: 0.45em 0.9em;
  margin-bottom: var(--space-sm);
}

/* ============================================================================
   TIMELINE FILTER TOGGLE
   ============================================================================ */

.timeline-filter {
  position: sticky;
  top: var(--header-h, 85px);
  z-index: 999;
  background: var(--red);
  color: var(--white);
  padding: 14px var(--pad) 18px;
  margin-top: 0;
  box-sizing: border-box;
}

.timeline-filter::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.timeline-filter-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  font-size: var(--text-body-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.timeline-filter-label {
  color: var(--white);
  transition: opacity 0.2s;
}

.timeline-filter.is-filtered .timeline-filter-label {
  opacity: 0.5;
}

.timeline-filter-label--critical {
  color: var(--white);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.timeline-filter.is-filtered .timeline-filter-label--critical {
  opacity: 1;
}

.timeline-filter-count {
  margin-left: auto;
  font-size: var(--text-base-sm);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Toggle switch */
.timeline-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.timeline-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--white);
  border: none;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
}

.timeline-toggle-thumb {
  display: block;
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background: var(--red);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.timeline-toggle[aria-checked="true"] .timeline-toggle-track {
  background: var(--white);
}

.timeline-toggle[aria-checked="true"] .timeline-toggle-thumb {
  transform: translateX(20px);
}

/* Hidden timeline items */
.timeline-item.timeline-hidden {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.4s ease, padding-bottom 0.4s ease;
}

.timeline-item {
  max-height: 2000px;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-bottom 0.4s ease, padding-bottom 0.4s ease;
}

.case-entry {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--gray-200);
}

.case-entry:last-child {
  border-bottom: none;
}

.case-entry > strong {
  display: block;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 900;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.case-entry > strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-right: var(--space-sm);
  vertical-align: middle;
  flex-shrink: 0;
}

.case-entry-date {
  font-weight: 900;
  color: var(--fg);
  font-size: var(--text-body);
}

.case-entry-text {
  color: var(--mid);
  line-height: 1.8;
  margin-top: var(--space-sm);
}

/* ============================================================================
   STREITPUNKT (Dispute Points)
   ============================================================================ */

.streitpunkt {
  margin-bottom: var(--space-4xl);
  border-top: var(--border-medium) solid var(--fg);
  padding-top: var(--space-xl);
}


.streitpunkt:first-of-type {
  border-top-width: var(--border-thick);
}

.streitpunkt-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--fg);
  color: var(--bg);
  width: 28px;
  height: 28px;
  font-weight: 900;
  font-size: var(--text-caption);
  flex-shrink: 0;
}

.streitpunkt-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 900;
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.streitpunkt-header h2 {
  font-size: inherit;
  margin: 0;
}

.streitpunkt-content {
  color: var(--mid);
  line-height: 1.8;
  max-width: var(--max-w);
}

/* ============================================================================
   PROFILE ROW (Actor Profiles)
   ============================================================================ */

.profile-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-xl) 0;
  border: none;
  border-top: var(--border-medium) solid var(--fg);
  margin: 0;
  background-color: transparent;
}

.actor-image {
  width: 100%;
  height: auto;
  border: none;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-content h4 {
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.profile-role {
  font-size: var(--text-meta);
  text-transform: uppercase;
  color: var(--dim);
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.profile-description {
  color: var(--mid);
  line-height: 1.8;
  font-size: var(--text-body);
}

@media (max-width: 768px) {
  .profile-row {
    grid-template-columns: 1fr;
  }

  .actor-image {
    width: 150px;
  }
}


/* ============================================================================
   IMAGES
   ============================================================================ */

.featured-image,
.photo-gallery,
.section-image,
.document-image {
  max-width: 100%;
  display: block;
  margin: 2rem 0;
}

.document-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border: var(--border-thin) solid var(--fg);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.before-after-item {
  position: relative;
  overflow: hidden;
}

.before-after-item img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
}

.before-after-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: var(--text-base-sm);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .before-after {
    grid-template-columns: 1fr;
  }
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.photo-gallery-item {
  border: none;
}

.photo-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 14px 32px;
  border: var(--border-thin) solid var(--fg);
  background-color: transparent;
  color: var(--fg);
  font-weight: 700;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms;
}

.btn:hover {
  background-color: var(--fg);
  color: var(--bg);
}

.btn-primary {
  background-color: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn-primary:hover {
  background-color: var(--red);
  border-color: var(--red);
}

/* btn-primary on dark backgrounds: always red */
.cta-section .btn-primary,
.end .btn-primary,
.page-hero .btn-primary {
  background-color: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.cta-section .btn-primary:hover,
.end .btn-primary:hover,
.page-hero .btn-primary:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--fg);
}

.btn-outline-light {
  border-color: var(--light-dim);
  color: var(--light-dim);
}

.btn-outline-light:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--fg);
}

/* Auf dunklen Hintergründen: outline-light → weißer Border statt grau */
.end .btn-outline-light,
.cta-section .btn-outline-light,
.page-hero .btn-outline-light,
.interlude--black .btn-outline-light,
.interlude--red .btn-outline-light,
.blog-hero-post .btn-outline-light,
.blog-hero-archive .btn-outline-light {
  border-color: var(--white);
  color: var(--white);
}
/* Hover auf dunklem Hintergrund: schwarz auf weiß — muss nach dem base-override stehen */
.end .btn-outline-light:hover,
.cta-section .btn-outline-light:hover,
.page-hero .btn-outline-light:hover,
.interlude--black .btn-outline-light:hover,
.interlude--red .btn-outline-light:hover,
.blog-hero-post .btn-outline-light:hover,
.blog-hero-archive .btn-outline-light:hover {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--fg);
}

.btn-outline-dark {
  border-color: var(--fg);
  color: var(--fg);
}

.btn-outline-dark:hover {
  background-color: var(--fg);
  color: var(--bg);
}

/* ============================================================================
   FORMS
   ============================================================================ */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--fg);
  font-size: var(--text-body);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-thin) solid var(--fg);
  background-color: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: var(--text-base);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--dim);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: none;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: inherit;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230a0a0a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
  background-color: var(--fg);
  color: var(--bg);
  padding: clamp(60px, 10vw, 120px) var(--pad);
  margin: clamp(80px, 8vw, 120px) calc(var(--pad) * -1) 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: none;
}

.cta-section h2 {
  color: var(--bg);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.cta-section p {
  color: var(--light-dim);
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  background-color: var(--gray-800);
  color: var(--bg);
  padding: clamp(60px, 8vw, 100px) var(--pad);
  border-top: var(--border-thick) solid var(--red);
  margin-top: 0;
}

/* Eliminate gap between main content and footer */
main {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

main > :last-child {
  margin-bottom: 0 !important;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  justify-items: start;
}
.site-footer-inner > .footer-col {
  justify-self: end;
}

.footer-brand {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--bg);
  display: block;
  margin-bottom: 1.75rem;
}

.footer-heading {
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: var(--text-body-sm);
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  font-size: var(--text-body-sm);
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 3rem;
  padding: 2rem var(--pad) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--red);
}

/* ============================================================================
   ACCORDION / EXPANDABLE SECTIONS
   ============================================================================ */

.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 920px;
}

.accordion-item {
  border: var(--border-medium) solid var(--fg);
  margin-bottom: var(--space-sm);
  background-color: transparent;
}

.accordion-header,
.accordion-trigger {
  padding: var(--space-md) var(--space-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  font-weight: 900;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  letter-spacing: -0.01em;
  color: var(--fg);
  background-color: transparent;
  border: none;
  width: 100%;
  font-family: inherit;
  text-align: left;
  user-select: none;
  transition: background-color 0.15s;
}

.accordion-header:hover,
.accordion-trigger:hover {
  background-color: var(--fg);
  color: var(--white);
}

.accordion-trigger .icon {
  display: none;
}

.accordion-header::after,
.accordion-trigger::after {
  content: '+';
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.accordion-item.active .accordion-header::after,
.accordion-item.active .accordion-trigger::after,
.accordion-trigger[aria-expanded="true"]::after {
  content: '−';
}

.accordion-icon {
  display: none;
}

.accordion-content {
  display: none;
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  color: var(--mid);
  line-height: 1.8;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.accordion-item.active .accordion-content,
.accordion-content.open {
  display: block;
}

/* ============================================================================
   PROSE / LONG-FORM CONTENT
   ============================================================================ */

.prose {
  max-width: 90ch;
  color: var(--mid);
  line-height: 1.8;
}

/* Narrow prose variant — use class="prose prose--narrow" instead of style="max-width:800px" */
.prose--narrow {
  max-width: 800px;
}

/* Narrow-sm prose variant — 700px for legal/contact pages */
.prose--narrow-sm {
  max-width: 700px;
}

.prose h2 {
  color: var(--fg);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  color: var(--fg);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose p {
  margin-bottom: 1.5rem;
}

/* Zero the last element inside .prose when .prose is the last child of a
   section/block — prevents the prose's trailing <p> margin-bottom (24px)
   from adding extra visual gap above section dividers, keeping
   spacing above/below borders symmetric on all viewport widths */
/* Zero out margins on first/last direct child of section/block
   so padding alone controls the space above and below every divider —
   symmetric on both sides regardless of which element type is first or last */
.section > *:first-child,
.block > *:first-child {
  margin-top: 0;
}

.section > *:last-child,
.block > *:last-child,
.section > .prose:last-child > *:last-child,
.block > .prose:last-child > *:last-child,
.card .prose p:last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  color: var(--fg);
}

.prose em {
  font-style: italic;
  color: var(--mid);
}

.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--red);
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: -0.25em;
}

.has-active > .nav-dropdown-trigger {
  color: var(--red);
}

/* ============================================================================
   MISSING SUBPAGE CLASSES
   ============================================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--fg);
  color: var(--bg);
  z-index: 9999;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.page-hero-inner {
  max-width: 1200px;
  width: 100%;
}

.section-divider {
  border: none;
  display: none;
}

.doc-icon-court,
.doc-icon-law,
.doc-icon-pdf {
  font-size: var(--text-2xl);
}

/* --- Legacy claim/reality/source labels (kept for schork-vs-zirngast) --- */
.fact-label-claim {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 0.35em 0.7em 0.3em;
  display: inline-block;
  background: var(--dim) !important;
  color: var(--bg) !important;
  margin-bottom: 1.25rem;
}

.fact-label-reality {
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  padding: 0.35em 0.7em 0.3em;
  display: block;
  width: 100%;
  background: var(--red) !important;
  color: var(--white) !important;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

/* .fact-label-source — legacy stamp removed, now using .source-label inline */
.fact-label-source {
  display: none;
}

.fact-text {
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-caption);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.form-hint {
  font-size: var(--text-caption);
  color: var(--dim);
  margin-top: 0.25rem;
}

.key-question-banner {
  background: transparent;
  color: var(--fg);
  padding: var(--space-lg) 0;
  padding-left: var(--space-md);
  margin: var(--space-xl) 0;
  border-left: var(--border-thick) solid var(--red);
}

.key-question-banner p,
.key-question-banner strong {
  color: var(--fg) !important;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.key-question-inner {
  max-width: 90ch;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-name {
  font-weight: 900;
  font-size: var(--text-xl);
  text-transform: uppercase;
}

.profile-info {
  color: var(--mid);
  line-height: 1.8;
}

.vs-col {
  padding: var(--space-lg);
}

.critical {
  color: var(--red);
  font-weight: 700;
}

.tag-degewo {
  background: var(--red) !important;
  color: var(--white) !important;
}

.tag-kanzlei {
  background: var(--mid) !important;
  color: var(--bg) !important;
}

.tag-senat {
  background: var(--fg) !important;
  color: var(--bg) !important;
}

.tag-spd {
  background: var(--red) !important;
  color: var(--white) !important;
}

/* ============================================================================
   HOMEPAGE ONEPAGER CLASSES
   ============================================================================ */

.red { color: var(--red); }
.highlight-red { color: var(--red); font-weight: 700; }

.hero-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--red);
  color: var(--white);
  padding: 0.35em 0.7em 0.3em;
  margin-bottom: var(--space-2xl);
}

.hero-sub {
  margin-top: var(--space-2xl);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--mid);
  line-height: 1.75;
  max-width: 52ch;
}

.hero-sub strong { color: var(--fg); font-weight: 700; }

.scroll-cue {
  margin-top: var(--space-2xl);
  width: 2px;
  height: 64px;
  background: var(--red);
}

/* ═══════════ BLOCK (HOMEPAGE SECTIONS) ═══════════ */
.block {
  padding: clamp(72px, 10vw, 140px) var(--pad);
  border-top: var(--border-thick) solid var(--fg);
  max-width: none;
}

.interlude + .block {
  border-top: none;
}
.interlude + .end {
  margin-top: 0;
}

.block-label {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  background: var(--red);
  color: var(--white);
  padding: 0.35em 0.7em 0.3em;
  margin-bottom: var(--space-2xl);
}

.block-statement {
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-transform: none;
}

.block-statement--small {
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  line-height: 1.25;
  max-width: 36ch;
}

.block-body {
  margin-top: var(--space-2xl);
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--mid);
  max-width: 90ch;
}

.block-body strong { color: var(--fg); font-weight: 700; }

/* ═══════════ BLOCK QUOTE ═══════════ */
.block-quote {
  margin: var(--space-3xl) 0;
  padding: 0 0 0 clamp(20px, 3vw, 40px);
  border-left: var(--border-thick) solid var(--red);
}

.block-quote p {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  font-style: italic;
}

.block-quote cite {
  display: block;
  margin-top: var(--space-md);
  font-size: var(--text-caption);
  font-style: normal;
  color: var(--dim);
}

/* ═══════════ VERSUS ═══════════ */
.versus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: var(--space-3xl) calc(var(--pad) * -1);
}

.versus-cell {
  padding: clamp(32px, 4vw, 56px);
  background: var(--fg);
  color: var(--white);
}

.versus-cell--red {
  background: var(--red);
}

.versus-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(255,255,255,0.9);
  color: var(--fg);
  padding: 0.35em 0.7em 0.3em;
  margin-bottom: var(--space-md);
}

.versus-cell--red .versus-label {
  background: var(--white);
  color: var(--red);
}

.versus-text {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  font-weight: 500;
}

/* ═══════════ BIG STAT ═══════════ */
.bigstat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: var(--space-3xl) calc(var(--pad) * -1);
}

.bigstat-cell {
  padding: clamp(40px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.bigstat-cell--red {
  background: var(--bg);
  color: var(--fg);
  border-top: var(--border-thick) solid var(--red);
}

.bigstat-cell--black {
  background: var(--bg);
  color: var(--fg);
  border-top: var(--border-thick) solid var(--fg);
}

.bigstat-num {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.bigstat-quote {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bigstat-label {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* ═══════════ INTERLUDE (HOMEPAGE) ═══════════ */
.interlude {
  margin: 0 calc(var(--pad) * -1);
  padding: clamp(100px, 15vw, 220px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.interlude--red {
  background: var(--red);
  color: var(--white);
}

.interlude--black {
  background: var(--fg);
  color: var(--white);
}

.interlude p {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: inherit;
}

.interlude .sub {
  margin-top: var(--space-xl);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--white) !important;
  max-width: 48ch;
  line-height: 1.7;
  font-weight: 500;
}

.interlude-link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 700;
}

.interlude-link:hover {
  color: var(--white);
  opacity: 0.8;
}

/* ═══════════ SOURCE CITATION — Variante C ═══════════ */
.src,
.source-cite,
.timeline-source {
  margin-top: var(--space-md);
  margin-bottom: var(--space-lg);
  font-size: var(--text-base-sm);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  background: var(--white) !important;
  color: var(--mid-dark) !important;
  padding: var(--space-sm) var(--space-md);
  letter-spacing: 0.02em;
  line-height: 1.6;
  font-weight: 400;
  border-left: var(--border-thick) solid var(--red);
  display: block;
  width: fit-content;
  max-width: 680px;
}

.source-label {
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-sm);
}

/* Dark backgrounds (blocks, end section) */
.block .source-cite,
.end .source-cite,
.interlude .source-cite {
  border-left-color: var(--red);
}

/* Startseite: mehr Abstand über Quellenangaben */
.page-home .source-cite {
  margin-top: var(--space-2xl);
}

/* Inside cards — smaller */
.card .source-cite {
  font-size: var(--text-sm);
}

/* Inside info-box-red — keep red line visible */
.info-box-red .source-cite {
  border-left-color: var(--fg);
}

.src a,
.source-cite a,
.timeline-source a {
  color: var(--fg) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.src a:hover,
.source-cite a:hover,
.timeline-source a:hover {
  color: var(--red) !important;
}

/* ═══════════ END SECTION ═══════════ */
.end {
  padding: clamp(100px, 15vw, 200px) var(--pad) clamp(80px, 10vw, 120px);
  background: var(--fg);
  color: var(--white);
  max-width: none;
  border-top: none;
  margin-bottom: 0;
}

.end h2 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.end-body {
  margin-top: var(--space-xl);
  font-size: var(--text-body);
  color: rgba(255,255,255,0.55);
  max-width: 48ch;
  line-height: 1.7;
}

.end-cta-group {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.end-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: var(--border-thin) solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.end-cta:hover {
  background: var(--white);
  color: var(--fg);
}

.end-cta--outline {
  background: transparent;
}

.end-cta--red {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.end-cta--red:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--fg);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* ── LARGE SCREEN (1600px+) ── */
@media (min-width: 1200px) {
  .section,
  .block,
  .hero,
  .page-hero,
  .cta-section,
  .interlude,
  .end,
  .site-footer,
  .blog-header,
  .blog-hero-archive,
  .blog-hero-post {
    padding-left: max(var(--pad), 6vw);
    padding-right: max(var(--pad), 6vw);
  }
}

@media (min-width: 1600px) {
  :root {
    --max-w: 90ch;
  }

  .section,
  .block,
  .hero,
  .page-hero,
  .cta-section,
  .interlude,
  .end,
  .site-footer,
  .blog-header,
  .blog-hero-archive,
  .blog-hero-post {
    padding-left: max(var(--pad), calc((100vw - 1400px) / 2));
    padding-right: max(var(--pad), calc((100vw - 1400px) / 2));
  }

  .hero {
    min-height: 80svh;
  }

  /* Content containers: readable width on large screens */
  .timeline,
  .case-timeline,
  .info-box,
  .testimonial,
  .profile-row,
  .streitpunkt {
    max-width: 1000px;
  }

}


@media (max-width: 1024px) {
  .hero {
    min-height: min(60svh, 650px);
  }

  /* ── Hamburger nav: hide full nav, show burger toggle ── */
  .nav-toggle {
    display: flex;
  }

  .nav-main {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fg);
    border-bottom: var(--border-thick) solid var(--red);
    padding: var(--space-lg) clamp(28px, 6vw, 56px);
    gap: 0;
    margin-left: 0; /* reset desktop margin-left: auto */
  }

  /* Push search icon + burger to the right when nav is hidden */
  .site-header-actions {
    margin-left: auto;
  }

  .nav-main.open {
    display: flex;
  }

  .nav-main > a {
    font-size: var(--text-base);
    color: var(--bg);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .nav-main > a:hover { color: var(--red); }
  .nav-main > a[aria-current="page"] { color: var(--red); }

  .nav-lang {
    border-color: var(--bg) !important;
    color: var(--bg) !important;
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .nav-lang:hover {
    background: var(--bg) !important;
    color: var(--fg) !important;
  }

  .nav-dropdown { position: static; }

  .nav-dropdown-trigger {
    color: var(--bg);
    font-size: var(--text-base);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-trigger:hover { color: var(--red); }

  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    min-width: auto;
    background: transparent;
    padding: 0 0 0 var(--space-lg);
    border-left: var(--border-thick) solid var(--red);
    margin-bottom: var(--space-sm);
  }

  .nav-dropdown-menu a {
    color: rgba(255,255,255,0.7);
    font-size: var(--text-meta);
    padding: 0.5rem 0;
    border-top: none;
  }
  .nav-dropdown-menu a:hover { color: var(--white); background: transparent; }
  .nav-dropdown-menu a[aria-current="page"] {
    color: var(--white);
    background: transparent;
    border-left: none;
    font-weight: 700;
  }
  .nav-dropdown-menu a:first-child { border-top: none; }

  .card-grid-3 {
    column-count: 2;
  }

  .card-pair {
    grid-template-columns: 1fr;
  }

  .recht-grid-2 {
    grid-template-columns: 1fr;
  }

  .recht-grid-4 {
    column-count: 1;
  }

  .recht-header,
  .recht-kern,
  .recht-inhalt {
    padding: var(--space-md);
  }

  .vs-table {
    grid-template-columns: 1fr;
  }

  .vs-col-reality {
    border-left: none;
    border-top: var(--border-thin) solid var(--red);
  }

  .section {
    padding: clamp(40px, 6vw, 64px) var(--pad);
  }

  .site-footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .site-footer-inner > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
  }
  .site-footer-inner > .footer-col {
    justify-self: start;
  }
  .site-footer-inner > .footer-col:nth-child(3) {
    justify-self: center;
  }
  .site-footer-inner > .footer-col:last-child {
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 1rem var(--pad);
  }

  .hero {
    min-height: min(65svh, 600px);
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
  }

  .section {
    padding: clamp(44px, 6vw, 64px) var(--pad);
  }

  .section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }

  .card-grid-2 {
    column-count: 1;
  }

  .card-grid-3 {
    column-count: 1;
  }

  .info-grid-3 {
    grid-template-columns: 1fr;
  }

  .interlude {
    padding: clamp(2rem, 6vw, 4rem) var(--pad);
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .site-footer-inner > div:first-child {
    grid-column: auto;
  }
  .site-footer-inner > .footer-col,
  .site-footer-inner > .footer-col:nth-child(3),
  .site-footer-inner > .footer-col:last-child {
    justify-self: start;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  /* ── BUTTONS: alle full-width auf Mobile (≤768px) ── */
  /* Container brauchen width:100% damit die Kinder sich wirklich ausdehnen */
  .cta-buttons,
  .end-cta-group,
  .blog-nav {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn,
  .blog-nav .btn {
    width: 100%;
    justify-content: center;
  }

  .end-cta-group .end-cta {
    width: 100%;
    justify-content: center;
  }

  .timeline {
    padding-left: 60px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-dot {
    left: -48px;
    width: 20px;
    height: 20px;
    border-width: 3px;
  }

  .timeline-item::before {
    content: none;
  }

  /* CTA: the negative side margins (calc(var(--pad)*-1)) used for full-bleed
     exactly cancel the default side padding → 0 net content padding.
     Add var(--pad) offset to restore a visible ~1rem apparent side gap */
  .cta-section {
    padding-left: calc(var(--pad) + 1rem);
    padding-right: calc(var(--pad) + 1rem);
  }
}

@media (max-width: 640px) {
  :root {
    --pad: clamp(16px, 4vw, 24px);
  }

  .site-header {
    padding: 1rem 1rem;
  }

  .site-logo {
    font-size: var(--text-xl);
    line-height: 1.15;
  }

  .logo-br {
    display: block;
    line-height: 0;
    margin-bottom: 0.1em;
  }

  .nav-main > a,
  .nav-dropdown-trigger {
    font-size: var(--text-body-sm);
  }

  h1 {
    font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  }

  h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section {
    padding: clamp(36px, 5vw, 56px) 1rem;
  }

  /* Last case-entry has no border — remove its bottom spacing so the
     section's own padding-bottom equals the padding-top of the next
     section, giving symmetric whitespace around the dividing line */
  .case-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .lead {
    font-size: var(--text-base);
  }

  .streitpunkt-num {
    width: 40px;
    height: 40px;
    font-size: var(--text-xl);
  }

  .breadcrumb {
    font-size: var(--text-base-sm);
  }

  .versus { grid-template-columns: 1fr; }
  .bigstat { grid-template-columns: 1fr; }
  .block { padding: clamp(56px, 8vw, 80px) var(--pad); }
  .interlude { margin: 0 calc(var(--pad) * -1); padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 48px); }
  .end { padding: clamp(60px, 10vw, 120px) clamp(24px, 6vw, 48px) 48px; }

  .timeline-filter-inner {
    font-size: var(--text-sm);
    gap: 8px;
  }

  .timeline-toggle-track {
    width: 36px;
    height: 20px;
  }

  .timeline-toggle-thumb {
    width: 12px;
    height: 12px;
  }

  .timeline-toggle[aria-checked="true"] .timeline-toggle-thumb {
    transform: translateX(16px);
  }

  /* Long labels shrink on mobile to avoid full-width red blocks */
  .section-label,
  .section .section-label {
    font-size: var(--text-2xs);
    letter-spacing: 0.08em;
  }

  /* Reduce label margin-bottom on mobile so the gap between
     label and heading doesn't dwarf the space above the border */
  .section-label,
  .section .section-label,
  .block-label {
    margin-bottom: var(--space-lg); /* 24px instead of 48px */
  }

  /* Remove bottom margin from whatever the last direct child is in any
     section or block — keeps whitespace above/below the border symmetric
     on all pages, regardless of what element ends the section.
     Exclude <article> (e.g. .fakt cards) so they keep their inter-card spacing */
  .section > *:last-child:not(article),
  .block > *:last-child:not(article) {
    margin-bottom: 0;
  }

}

@media (max-width: 480px) {
  :root {
    --pad: 12px;
  }

  .site-header {
    padding: 0.75rem 0.75rem;
  }

  .site-logo {
    font-size: 1.1rem;
  }

  .nav-main > a,
  .nav-dropdown-trigger {
    font-size: var(--text-meta);
  }

  h1 {
    font-size: 1.35rem;
  }

  h2 {
    font-size: var(--text-xl);
  }

  h3 {
    font-size: var(--text-base);
  }

  .hero-stats {
    display: none;
  }

  .lead {
    font-size: var(--text-body);
  }

  .section {
    padding: 2rem 0.75rem;
  }

  /* Align homepage block padding with .section at small mobile so
     the border-top dividers feel as compact as on all other pages */
  .block {
    padding: 2.5rem 0.75rem;
  }

  .case-entry:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
  }

  /* Same rule as ≤640px — exclude <article> to preserve .fakt card spacing */
  .section > *:last-child:not(article),
  .block > *:last-child:not(article) {
    margin-bottom: 0;
  }

  .section-label,
  .section .section-label,
  .block-label {
    margin-bottom: var(--space-lg);
  }

  .card {
    padding: var(--space-md);
  }

  .fakt-header,
  .fakt-behauptung,
  .fakt-fakten {
    padding: var(--space-md);
  }

  .fakt-footer {
    padding: var(--space-md);
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline {
    padding-left: 48px;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-dot {
    left: -40px;
    width: 18px;
    height: 18px;
    border-width: 3px;
  }

  .profile-row {
    padding: var(--space-md);
  }

  .form-input,
  .form-textarea,
  .form-select {
    font-size: var(--text-base);
  }

  .cta-section {
    /* At 400px: calc(12px + 16px)=28px padding, -12px margin → 16px net content gap */
    padding: 2rem calc(var(--pad) + 1rem);
  }

  .site-footer {
    padding: 2rem 1rem; /* match CTA section */
  }
}

/* ============================================================================
   TABLES: HIDE ON MOBILE / TABLET PORTRAIT
   Tables are not readable on small screens — hide entirely ≤ 768px
   ============================================================================ */

@media (max-width: 768px) {
  /* Hide all data tables */
  .data-table,
  table.data-table {
    display: none !important;
  }

  /* Hide the overview section (contains the Übersichtstabelle + title) */
  .section-overview {
    display: none !important;
  }

  /* Section before hidden overview: keep standard padding so both sides of
     the border-top divider are symmetric (clamp above = clamp below) */
  .section:has(+ .section-overview) {
    padding-bottom: clamp(56px, 7vw, 96px) !important;
  }

  /* Section after hidden overview: standard padding already applies;
     no override needed (48px patch removed — was asymmetric) */

  /* When a heading (section-title) is immediately followed by a hidden data-table,
     zero its margin-bottom so the gap above the section's bottom border equals
     the next section's padding-top (32px).
     Applies to fallbeispiele: H3 "Übersicht der drei Fälle" + hidden table */
  .section-title:has(+ .data-table) {
    margin-bottom: 0;
  }

}

/* ============================================================================
   BLOG
   ============================================================================ */

/* Blog archive — brutalist editorial */
.blog-archive {
  border-top: none;
  padding: 0 var(--pad) clamp(80px, 10vw, 140px) !important;
}

/* ---- Blog filter ---- */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: clamp(24px, 3vw, 40px) var(--pad) 0;
}

.blog-filter-btn {
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  background: transparent;
  color: var(--dim);
  border: var(--border-thin) solid var(--dim);
  cursor: pointer;
  transition: all 0.2s;
}

.blog-filter-btn:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.blog-filter-btn.active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* ---- Featured / latest post ---- */
.blog-post-featured {
  display: block;
  padding: clamp(40px, 5vw, 64px) var(--pad) 0;
  text-decoration: none;
  color: var(--fg);
  border-bottom: none;
}
.blog-post-featured::after {
  content: "";
  display: block;
  height: var(--border-thick);
  background: var(--fg);
  margin-top: clamp(32px, 3.5vw, 40px);
}

.blog-post-featured:hover h3 {
  color: var(--red);
}

.blog-post-featured .blog-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  background: var(--white);
  color: var(--fg);
  border: none;
  margin-bottom: clamp(12px, 1.5vw, 20px);
}

.blog-post-featured time {
  display: block;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.75rem;
}

.blog-post-featured h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: clamp(12px, 1.5vw, 20px);
  max-width: 800px;
  text-transform: none;
  transition: color 0.2s;
}

.blog-post-featured p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: var(--mid);
  max-width: 640px;
}

.blog-post-featured .read-more {
  display: inline-block;
  margin-top: clamp(16px, 2vw, 28px);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color 0.2s;
}
.blog-post-featured:hover .read-more {
  color: var(--red);
}

.blog-post-featured .read-more::after {
  content: " →";
}

/* ---- Post grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
  margin-top: 0;
}

.blog-post-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3.5vw, 40px) 0 clamp(32px, 3.5vw, 40px);
  border-bottom: var(--border-thick) solid var(--fg);
  background: var(--bg);
  text-decoration: none;
  color: var(--fg);
}

.blog-post-preview:hover h3 {
  color: var(--red);
}

.blog-post-preview .blog-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  background: var(--white);
  color: var(--fg);
  border: none;
  margin-bottom: clamp(10px, 1.2vw, 16px);
}

.blog-post-preview time {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.6rem;
}

.blog-post-preview h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-transform: none;
}

.blog-post-preview p {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: var(--mid);
  margin-bottom: auto;
  transition: color 0.15s;
}


.blog-post-preview .read-more {
  display: inline-block;
  margin-top: clamp(14px, 1.5vw, 24px);
  font-size: var(--text-base-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  align-self: flex-start;
  transition: color 0.2s;
}
.blog-post-preview:hover .read-more {
  color: var(--red);
}

.blog-post-preview .read-more::after {
  content: " →";
}


/* Legacy cleanup */
.blog-post-preview + hr.section-divider { display: none; }
.blog-post-preview .overline { display: none; }
.blog-post-preview .btn { display: none; }

@media (max-width: 680px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog post single — editorial grid layout */
.blog-article {
  display: grid;
  grid-template-columns: minmax(var(--pad), 1fr) min(52ch, 100% - var(--pad) * 2) minmax(var(--pad), 1fr);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: clamp(104px, 12vw, 152px);
}

.blog-article > * {
  grid-column: 2;
}

/* Full-width breakout elements */
.blog-article h2,
.blog-article .blog-nav,
.blog-article .blog-latest {
  grid-column: 1 / -1;
}

.blog-article h2 {
  position: relative;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 900;
  margin-top: clamp(56px, 7vw, 96px);
  margin-bottom: clamp(24px, 3vw, 40px);
  padding: clamp(28px, 3.5vw, 44px)
           max(var(--pad), calc((100% - 52ch) / 2))
           clamp(16px, 2vw, 24px)
           max(var(--pad), calc((100% - 52ch) / 2));
  border-top: none;
}

.blog-article h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(52ch, calc(100% - var(--pad) * 2));
  height: var(--border-thick);
  background: var(--fg);
}

.blog-article h2:first-child {
  margin-top: clamp(16px, 2vw, 24px);
  padding-top: 0;
}

.blog-article h2:first-child::before {
  display: none;
}

.blog-article p {
  max-width: none;
  margin-bottom: 1.35em;
  color: var(--mid);
}

.blog-article p:last-child {
  margin-bottom: 0;
}

/* Drop cap on first paragraph after first heading */
.blog-article h2:first-child + p::first-letter {
  font-size: 3.4em;
  font-weight: 900;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  margin-top: 0.05em;
  color: var(--fg);
}

/* Short standalone paragraphs — emphasis */
.blog-article p:only-of-type,
.blog-article h2 + p + p:last-of-type {
  /* allow natural flow */
}

/* Blog Quellen — sources list at end of article */
.blog-sources {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 var(--space-xl) 0;
  line-height: 1.7;
}
.blog-sources li {
  padding: 0.25em 0;
  color: var(--mid);
}
.blog-sources a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.blog-sources a:hover {
  color: var(--red);
}

/* Blog nav — end of article, full-width */
.blog-nav {
  display: none;
  gap: 0.75rem;
  align-items: center;
}

.blog-nav p {
  margin-bottom: 0;
  width: 100%;
  font-size: var(--text-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  color: var(--fg);
}

/* Letzte Beiträge — full-width editorial grid */
.blog-latest {
  position: relative;
  margin-top: clamp(24px, 3vw, 40px);
  padding: clamp(16px, 2vw, 24px)
           max(var(--pad), calc((100% - 52ch) / 2))
           clamp(32px, 4vw, 56px)
           max(var(--pad), calc((100% - 52ch) / 2));
  border-top: none;
}

.blog-latest::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(52ch, calc(100% - var(--pad) * 2));
  height: var(--border-thick);
  background: var(--fg);
}

.blog-latest h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
  color: var(--fg);
  margin: 0 0 clamp(12px, 1.5vw, 20px);
  padding: 0;
  border: none;
}

.blog-latest-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.blog-latest-item {
  text-decoration: none;
  color: var(--fg);
  padding-bottom: clamp(8px, 1.5vw, 16px);
  border-bottom: var(--border-thick) solid var(--fg);
}

.blog-latest-item time {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

.blog-latest-item span {
  display: block;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 900;
  line-height: 1.15;
  transition: color 0.2s;
}

.blog-latest-item:hover span {
  color: var(--red);
}

/* Show only the first 3 "Letzte Beiträge" items */
.blog-latest-item:nth-child(n+4) {
  display: none;
}

/* ── Blog Header — compact sticky bar with burger ── */
.blog-header {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 calc(var(--pad) - 11px) 0 var(--pad);
  height: 56px;
  background: var(--fg);
}

.blog-header-logo {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-sans);
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.blog-header-logo .logo-accent { color: var(--red); }
.blog-header-logo:hover { color: inherit; }

.blog-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 0;
}
.blog-burger svg {
  width: 24px;
  height: 24px;
}
.blog-burger:hover { color: var(--red); }

/* Slide-in nav */
.blog-slide-nav {
  position: fixed;
  top: 0;
  right: -300px;
  bottom: 0;
  width: 280px;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: var(--border-thick) solid var(--red);
  display: flex;
  flex-direction: column;
  padding: 2rem 0;
  z-index: 200;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.blog-slide-nav.open { right: 0; }
.blog-slide-nav a {
  padding: 0.8rem 1.5rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: var(--text-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.15s;
  border-left: var(--border-thick) solid transparent;
}
.blog-slide-nav a:hover {
  color: var(--white);
  border-left-color: var(--red);
  background: rgba(255,255,255,0.04);
}
.blog-slide-nav .nav-section-label {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}
.blog-slide-nav a[aria-current="page"] {
  color: var(--red);
  font-weight: 700;
  border-left-color: var(--red);
}

/* Close button inside slide nav */
.slide-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  padding: 0;
  align-self: flex-end;
  margin: 0 1rem 0.5rem 0;
}
.slide-nav-close svg { width: 20px; height: 20px; }
.slide-nav-close:hover { color: var(--red); }

/* ── Blog Hero — Archive ── */
.blog-hero-archive {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(80px, 12vw, 160px) var(--pad) clamp(48px, 6vw, 80px);
}

.blog-hero-archive .hero-label {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--white);
  margin-bottom: clamp(16px, 2vw, 24px);
  padding: 0.45em 0.9em;
  border: none;
}

.blog-hero-archive h1 {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--bg);
  margin-bottom: clamp(16px, 2vw, 28px);
}

.blog-hero-archive .hero-count {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--red);
  margin-bottom: clamp(8px, 1vw, 12px);
}

.blog-hero-archive .hero-sub {
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.6;
}

.blog-hero-archive::after {
  content: '';
  display: block;
  height: 4px;
  background: var(--red);
  margin-top: clamp(40px, 5vw, 64px);
}

/* ── Blog Hero — Post ── */
.blog-hero-post {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(48px, 6vw, 80px) var(--pad) clamp(40px, 5vw, 64px);
}

.blog-hero-post .breadcrumb,
.blog-hero-archive .breadcrumb {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.blog-hero-post .hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(16px, 2vw, 24px);
}

.blog-hero-post .hero-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45em 0.9em;
  background: var(--white);
  color: var(--fg);
  border: none;
}

.blog-hero-post .hero-date {
  font-size: var(--text-base-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.blog-hero-post h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bg);
  max-width: 900px;
  margin-bottom: clamp(16px, 2vw, 28px);
}

.blog-hero-post .hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  line-height: 1.7;
}

.blog-hero-post::after {
  content: '';
  display: block;
  height: 4px;
  background: var(--red);
  margin-top: clamp(40px, 5vw, 64px);
}

.blog-post-meta {
  font-size: var(--text-meta);
  color: var(--dim);
  margin-bottom: var(--space-lg);
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.blog-post-tag {
  font-size: var(--text-base-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--dim);
  color: var(--dim);
}

/* ============================================================================
   UTILITY CLASSES — replacing inline styles
   ============================================================================ */

/* Links inside prose and info-boxes — dark + red hover */
.prose a[href],
.info-box a[href] {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.prose a[href]:hover,
.info-box a[href]:hover {
  color: var(--red);
}

/* Press/media link list */
.press-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
@media (max-width: 768px) {
  .press-list { grid-template-columns: 1fr; }
}

.press-link {
  display: block;
  background: white;
  padding: var(--space-lg) var(--space-lg);
  text-decoration: none;
  color: inherit;
  border-left: var(--border-thick) solid var(--red);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.press-link:hover {
  border-left-color: var(--fg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.press-link .tag {
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}
.press-link-title {
  font-weight: 700;
  color: var(--fg);
  font-size: var(--text-base);
}
.press-link-source {
  color: var(--mid);
  font-size: var(--text-meta);
  margin-top: var(--space-xs);
}

/* Card with centered content (for icon/stat cards) */
.card-center {
  text-align: center;
  padding: var(--space-xl);
}
.card-icon {
  font-size: 40px;
  margin-bottom: var(--space-sm);
}

/* Monospace pre-formatted block (legal templates etc.) */
.mono-block {
  font-family: monospace;
  font-size: var(--text-caption);
  white-space: pre-line;
  margin-top: var(--space-sm);
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  /* ══════════════════════════════════════════════════════════════════
     BASIS: Transitions/Animationen deaktivieren (verhindert dass Chrome
     einen Zwischenzustand einer Animation einfriert und leer druckt)
     ══════════════════════════════════════════════════════════════════ */
  *,
  *::before,
  *::after {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
    animation-duration: 0s !important;
    /* JS-Scroll-Animation (main.js Zeile 239–242) setzt inline opacity:0 +
       transform:translateY(16px) auf .card/.timeline-item außerhalb des Viewports.
       !important überschreibt Inline-Styles und macht alle Elemente sichtbar. */
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }

  /* ── Body/Main: Flex-Layout deaktivieren (min-height:100vh = leere Seiten) ── */
  html, body {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
  }
  body {
    font-size: 11pt;
    font-weight: 400;
    line-height: 1.6;
    max-width: 100%;
  }
  main {
    flex: none !important;
    display: block !important;
    min-height: 0 !important;
  }

  /* ── Verstecken: Navigation, interaktive Elemente, Floating UI ── */
  .site-header,
  .site-footer,
  .nav-main,
  .nav-dropdown,
  .cta-section,
  .cta-section--dark,
  .scroll-cue,
  .breadcrumb,
  .timeline-filter,
  .search-box,
  .btn,
  .end-cta,
  .end-cta-group,
  .page-utilities,
  .hover-reveal-img,
  .toc-sidebar,
  .toc-toggle {
    display: none !important;
  }

  /* ── Hero: nur Titel anzeigen, kein Hintergrund ── */
  .hero,
  .page-hero {
    background: white !important;
    color: black !important;
    min-height: 0 !important;
    padding: 1.5rem 0 1rem !important;
    position: static !important;
  }
  .hero h1,
  .page-hero h1,
  .hero-sub,
  .page-hero .lead {
    color: black !important;
  }
  .hero-eyebrow,
  .page-hero-label {
    color: #555 !important;
    font-size: 8pt;
  }
  .hero .red,
  .page-hero .red { color: black !important; }

  /* ── Interlude-Blöcke: Inhalt behalten, Farbe raus ── */
  .interlude,
  .interlude--red,
  .interlude--black {
    background: white !important;
    color: black !important;
    border-top: 1.5pt solid black !important;
    border-bottom: 1.5pt solid black !important;
    padding: 1rem 0 !important;
    text-align: left !important;
    position: static !important;
  }
  .interlude p,
  .interlude .sub,
  .interlude .red {
    color: black !important;
  }

  /* ── Sektionen: position:relative + z-index entfernen (erzeugt Stacking-Kontexte) ── */
  .section,
  .block {
    padding: 0.75rem 0 !important;
    border-top: 0.5pt solid #ccc !important;
    position: static !important;
    z-index: auto !important;
    background-color: white !important;
    min-height: 0 !important;
  }

  /* ── Typografie: lesbarer, weniger Gewicht ── */
  h1 { font-size: 16pt !important; font-weight: 700 !important; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
  h2 { font-size: 13pt !important; font-weight: 700 !important; margin-bottom: 0.5rem; }
  h3, h4 { font-size: 11pt !important; font-weight: 600 !important; }
  .block-statement { font-size: 13pt !important; font-weight: 700 !important; }
  /* Labels: haben !important red background — explizit mit hellgrau überschreiben */
  .block-label,
  .section-label,
  .section .section-label,
  .section-title,
  .tag {
    background: #eee !important;
    color: black !important;
    font-size: 7pt !important;
    letter-spacing: 0.06em;
    font-weight: 700;
    padding: 0.2em 0.5em !important;
    margin-bottom: 0.4rem !important;
  }
  .section-title { font-size: 13pt !important; background: transparent !important; padding: 0 !important; }
  .section-lead, .lead { font-size: 11pt !important; font-weight: 400 !important; margin-bottom: 0.75rem !important; }
  .hero h1, .page-hero h1 { font-size: 18pt !important; font-weight: 700 !important; }

  /* ── Fakt-Komponente: kein break-inside:avoid (lange Fakts würden ganze
     Seiten überspringen und halbleere Seiten erzeugen) ── */
  .fakt {
    display: block !important;
    border: 0.5pt solid #999 !important;
    padding: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    /* KEIN break-inside: avoid */
  }
  .fakt-header { padding: 0.5rem 0.5rem 0.25rem !important; }
  .fakt-behauptung,
  .fakt-fakten { padding: 0.5rem !important; }
  .bewertung-box { padding: 0.5rem !important; margin-top: 0.5rem !important; }

  /* ── Links: nur externe URLs anzeigen, keine internen/relativen Pfade ── */
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 7pt;
    color: #555 !important;
    font-weight: normal;
    word-break: break-all;
  }
  a[href^="#"]::after,
  a[href^="/"]::after,
  a[href^="./"]::after,
  a[href^="../"]::after,
  a[href^="javascript"]::after,
  a[href^="file://"]::after,
  .btn::after,
  .end-cta::after,
  .nav-link::after { content: none !important; }

  /* ── Karten & Grids ── */
  /* .fakt hier NICHT inkludiert — break-inside:avoid auf langen Fakt-Blöcken
     erzeugt halbleere Seiten. Fakt-Regeln stehen separat unten. */
  .card,
  .card-mittaeter,
  .card-profile {
    display: block !important;
    border: 0.5pt solid #999 !important;
    padding: 0.5rem !important;
    break-inside: avoid;
    margin-bottom: 0.5rem !important;
  }
  .card-grid-2,
  .card-grid-3,
  .card-pair,
  .info-grid-3 {
    column-count: 1 !important;
    display: block !important;
  }
  .card-grid-2 > *,
  .card-grid-3 > *,
  .card-pair > *,
  .info-grid-3 > * {
    display: block !important;
    width: 100% !important;
    /* Kein break-inside:avoid — .card-mittaeter können mehrere Seiten lang sein */
  }
  .tag { border: 0.5pt solid #999 !important; }

  /* ── Versus / Bigstat: Negativ-Margins zurücksetzen ── */
  .versus,
  .bigstat {
    display: block !important;
    margin: 0.5rem 0 !important;
  }
  .versus-cell,
  .bigstat-cell,
  .versus-cell--red,
  .bigstat-cell--red,
  .bigstat-cell--black {
    display: block !important;
    width: 100% !important;
    border: 0.5pt solid #999 !important;
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .versus-label,
  .bigstat-label { font-size: 7pt !important; color: #555 !important; }
  .bigstat-quote { font-size: 10pt !important; font-style: italic; font-weight: 500; }
  .bigstat-num { font-size: 20pt !important; font-weight: 700; }

  /* ── Info-Boxen: margin/padding reduzieren ── */
  .info-box,
  .info-box-red {
    border-left: 1.5pt solid #555 !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0.5rem 0 !important;
    background: white !important;
    break-inside: avoid;
  }
  .info-grid-3 { margin: 0.5rem 0 !important; }
  .mt-md, .mt-lg, .mt-xl, .mt-2xl { margin-top: 0.5rem !important; }

  /* ── Tabellen: kein overflow-scroll in Print ── */
  .data-table { overflow: visible !important; margin: 0.5rem 0 !important; }
  .data-table table { font-size: 8.5pt !important; }
  .data-table th,
  .data-table td { padding: 0.3rem 0.4rem !important; }
  .data-table thead { background: #eee !important; }
  .data-table tbody tr:nth-child(even) { background: #f9f9f9 !important; }

  /* ── Blockquotes ── */
  .block-quote,
  .blockquote,
  blockquote {
    border-left: 2pt solid black !important;
    padding-left: 0.75rem !important;
    margin: 0.5rem 0 !important;
    break-inside: avoid;
    background: transparent !important;
  }
  .block-quote cite,
  .blockquote footer,
  blockquote footer,
  blockquote cite { font-size: 8pt; color: #555 !important; }

  /* ── Quellangaben ── */
  .source-cite,
  .timeline-source {
    font-size: 7.5pt !important;
    color: #555 !important;
    border-left: none !important;
    margin-top: 0.5rem !important;
    display: block !important;
  }
  .source-label { font-weight: bold; }

  /* ══════════════════════════════════════════════════════════════════
     TIMELINE — vollständige Sichtbarkeit erzwingen
     Ursachen der Unsichtbarkeit:
     1. transition: opacity auf .timeline-item (Chrome friert Zwischenzustand ein)
     2. max-height: 0 auf .timeline-item.timeline-hidden
     3. padding-left: 80px auf .timeline erzeugt Offset-Layout das in Print bricht
     4. position: relative auf .timeline erzeugt Stacking-Kontext
     ══════════════════════════════════════════════════════════════════ */
  .timeline,
  .case-timeline {
    padding: 0 !important;
    margin: 0 !important;
    position: static !important;
    border-left: none !important;
  }
  .timeline::before,
  .timeline::after {
    display: none !important;
    content: none !important;
  }
  .timeline-dot {
    display: none !important;
  }
  /* ALLE timeline-items: sichtbar, keine Höhen-Einschränkung */
  .timeline-item,
  .timeline-item.timeline-hidden,
  .timeline-item.critical {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 0 1rem 0 !important;
    border-bottom: 0.5pt solid #ccc !important;
    border-left: none !important;
  }
  .timeline-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }
  /* Timeline-Texte: explizit sichtbar und lesbar */
  .timeline-year,
  .timeline-date,
  .timeline-title,
  .timeline-content,
  .timeline-content *,
  .timeline-desc,
  .case-entry,
  .case-entry-text,
  .case-entry-date {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: black !important;
    max-width: none !important;
    position: static !important;
  }
  .timeline-year,
  .timeline-date {
    font-size: 7pt !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    margin-bottom: 0.2rem !important;
  }
  .timeline-title {
    font-size: 12pt !important;
    font-weight: 700 !important;
    margin-bottom: 0.3rem !important;
  }
  .timeline-content h4 {
    font-size: 10pt !important;
    font-weight: 700 !important;
    margin-bottom: 0.2rem !important;
    display: block !important;
  }

  /* ── Seitenumbrüche ── */
  /* h2/h3 bleiben mit dem folgenden Inhalt — aber KEIN break-inside:avoid
     auf große Container (.fakt, .section) — sonst entstehen halbleere Seiten */
  h2, h3 { break-after: avoid; }

  /* Nur wirklich kleine Einheiten zusammenhalten */
  .block-quote { break-inside: avoid; }
  .source-cite { break-inside: avoid; }

  /* orphans/widows: mindestens 3 Zeilen am Seitenanfang/-ende — verhindert
     halb-abgeschnittene Einzelzeilen genau an der Seitengrenze */
  p, li {
    orphans: 3;
    widows: 3;
  }

  /* ── Bilder ── */
  img { max-width: 100% !important; height: auto !important; }

  /* ── Dokument-Scans: Höhe begrenzen damit sie nicht eine ganze Seite belegen
     und eine leere halbe Seite davor erzeugen. 380pt ≈ 60% einer A4-Seite. ── */
  .document-image {
    break-inside: avoid;
    margin: 0.75rem 0 !important;
  }
  .document-image img {
    max-height: 380pt !important;
    width: auto !important;
    max-width: 100% !important;
  }
  .document-image figcaption {
    font-size: 8pt !important;
    color: #555 !important;
    margin-top: 0.3rem !important;
  }
}

/* ============================================================================
   HOVER-REVEAL: Fotobeweis on text hover (Schork vs. Zirngast)
   Image follows cursor with slight lag, fades in/out
   ============================================================================ */

.hover-reveal {
  position: relative;
  cursor: crosshair;
  border-bottom: 1px dashed var(--red);
  transition: color 0.2s;
}

.hover-reveal:hover {
  color: var(--red);
}

.hover-reveal-img {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: clamp(220px, 22vw, 340px);
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
  border: var(--border-medium) solid var(--red);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  will-change: transform, opacity, left, top;
}

.hover-reveal-img.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hover-reveal-img img {
  display: block;
  width: 100%;
  height: auto;
}

.hover-reveal-img figcaption {
  background: var(--fg);
  color: var(--white);
  font-size: var(--text-sm);
  padding: 4px 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hide hover-reveal on touch devices / mobile */
@media (hover: none), (max-width: 768px) {
  .hover-reveal {
    border-bottom: none;
    cursor: default;
  }
  .hover-reveal-img {
    display: none !important;
  }
}

/* ============================================================================
   LAYOUT & SPACING UTILITIES
   Remove inline styles — use these classes in templates instead
   ============================================================================ */

/* Margin-top utilities (token-aligned) */
.mt-0   { margin-top: 0 !important; }
.mt-sm  { margin-top: var(--space-sm)  !important; }
.mt-md  { margin-top: var(--space-md)  !important; }
.mt-lg  { margin-top: var(--space-lg)  !important; }
.mt-xl  { margin-top: var(--space-xl)  !important; }
.mt-2xl { margin-top: var(--space-2xl) !important; }

/* Flex-column stack with constrained width */
.flex-stack-narrow {
  display: flex;
  flex-direction: column;
  max-width: 800px;
}
.flex-stack-narrow--gap-md { gap: var(--space-md); }
.flex-stack-narrow--gap-lg { gap: var(--space-lg); }

/* Form layout helpers */
.form-contact-wrapper { max-width: 640px; }

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: var(--text-meta);
  color: var(--dim);
}
.form-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Full-width button modifier */
.btn--full {
  width: 100%;
  justify-content: center;
}

/* Card grid narrow modifier */
.card-grid-2--narrow { max-width: 800px; }

/* Ordered card grid — uses CSS Grid (row-first) instead of column-count.
   Use for numbered/sequential content where DOM order must be preserved. */
.card-grid-2.card-grid--ordered,
.card-grid-3.card-grid--ordered {
  display: grid;
  column-count: unset;
  gap: var(--space-lg);
  align-items: start;
}
.card-grid-2.card-grid--ordered { grid-template-columns: repeat(2, 1fr); }
.card-grid-3.card-grid--ordered { grid-template-columns: repeat(3, 1fr); }
.card-grid-2.card-grid--ordered > *,
.card-grid-3.card-grid--ordered > * {
  display: block;
  width: auto;
  break-inside: unset;
  margin-bottom: 0;
}
@media (max-width: 1024px) {
  .card-grid-3.card-grid--ordered { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .card-grid-2.card-grid--ordered,
  .card-grid-3.card-grid--ordered { grid-template-columns: 1fr; }
}

/* CTA section variants */
.cta-section--dark {
  background-color: var(--gray-800);
  margin-bottom: 0;
}
.cta-section--red {
  background-color: var(--red);
  color: #fff;
  margin-bottom: 0;
}
.cta-section.cta-section--red h2,
.cta-section.cta-section--red p,
.cta-section.cta-section--red * {
  color: #fff !important;
}
.cta-section--flush-top { margin-top: 0; }

/* Section title small variant */
.section-title--sm { font-size: clamp(1.2rem, 2vw, 1.6rem); }

/* Tag: Ermittlung (green) */
.tag-ermittlung {
  background: #166534;
  color: var(--white);
}

/* Language hint for cross-language links on EN pages */
.lang-hint {
  font-size: 0.8em;
  opacity: 0.6;
  font-weight: 400;
}


/* ============================================================================
   SEARCH — Header toggle button + Overlay + Pagefind UI overrides
   ============================================================================ */

/* ── site-header-actions: wraps search toggle + hamburger ── */
.site-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  order: 2; /* sits between logo(1) and nav(3) visually via flex order */
}

/* On desktop (>1024px) the actions are right of the nav: reorder */
@media (min-width: 1025px) {
  .site-logo    { order: 1; font-size: clamp(1.05rem, 1.6vw, 1.45rem); } /* slightly smaller on desktop only */
  .nav-main     { order: 2; }
  .site-header-actions { order: 3; margin-left: 0.25rem; }
}

/* ── Search toggle button (magnifying glass icon) ── */
.nav-search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg);
  cursor: pointer;
  width: 40px;
  height: 40px;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}

/* On desktop: icon flush with right header edge (matches logo on left) */
@media (min-width: 1025px) {
  .nav-search-toggle {
    padding-right: 0;
    justify-content: flex-end; /* icon sits at right edge of 40px touch target */
  }
}

.nav-search-toggle:hover,
.nav-search-toggle[aria-expanded="true"] {
  color: var(--red);
}

.nav-search-toggle svg {
  width: 20px;
  height: 20px;
}

/* On mobile the nav-toggle is already inside site-header-actions */
@media (max-width: 768px) {
  .nav-search-toggle {
    width: 44px;
    height: 44px;
  }
}

/* ── Search Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overscroll-behavior: none; /* iOS: prevent rubber-band scroll-through */
}

.search-overlay[hidden] {
  display: none;
}

.search-overlay-backdrop {
  flex: 1;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.search-overlay-panel {
  background: var(--bg);
  border-bottom: var(--border-thick) solid var(--fg);
  padding: var(--space-lg) var(--pad);
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain; /* prevent iOS rubber-band revealing background */
  -webkit-overflow-scrolling: touch;
}

/* ── Search field row ── */
.search-overlay-field {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 2px solid var(--fg);
  background: var(--bg);
  padding: 0 var(--space-sm);
  max-width: 860px;
  margin: 0 auto;
}

.search-overlay-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--dim);
  stroke-width: 2;
}

.search-overlay-input {
  flex: 1;
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--fg);
  background: transparent;
  border: none;
  outline: none;
  padding: 0.85rem 0.5rem;
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
}

.search-overlay-input::placeholder {
  color: var(--dim);
  font-weight: 400;
}

.search-overlay-input::-webkit-search-cancel-button {
  display: none;
}

.search-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: color 0.15s;
}

.search-overlay-close:hover {
  color: var(--fg);
}

.search-overlay-close svg {
  width: 18px;
  height: 18px;
}

/* ── Results list ── */
.search-overlay-results {
  max-width: 860px;
  margin: var(--space-md) auto 0;
}

.search-overlay-result {
  display: block;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  color: var(--fg);
  transition: color 0.1s;
}

.search-overlay-result:first-child {
  border-top: none;
}

.search-overlay-result:hover {
  color: var(--red);
}

.search-overlay-result:hover .search-overlay-result-title {
  color: var(--red);
}

.search-overlay-result-url {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 2px;
}

.search-overlay-result-title {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color 0.1s;
}

.search-overlay-result-excerpt {
  display: block;
  font-size: 0.85rem;
  color: var(--mid);
  margin-top: 2px;
  line-height: 1.5;
}

.search-overlay-empty {
  font-size: 0.9rem;
  color: var(--dim);
  padding: var(--space-md) 0;
  max-width: 860px;
  margin: 0 auto;
}

/* ── "Alle Ergebnisse" link ── */
.search-overlay-all {
  display: block;
  max-width: 860px;
  margin: var(--space-md) auto 0;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  text-decoration: none;
  border-top: 2px solid var(--fg);
  padding-top: var(--space-md);
  transition: color 0.15s;
}

.search-overlay-all[hidden] {
  display: none;
}

.search-overlay-all:hover {
  color: var(--red);
}

/* ── Pagefind UI overrides (full results page) ── */
.pagefind-search-container {
  margin-top: var(--space-2xl);
}

:root {
  --pagefind-ui-scale: 1;
  --pagefind-ui-primary: var(--fg);
  --pagefind-ui-text: var(--fg);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--fg);
  --pagefind-ui-tag: var(--fg);
  --pagefind-ui-border-width: 2px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-image-border-radius: 0;
  --pagefind-ui-font: Inter, system-ui, -apple-system, sans-serif;
}

.pagefind-ui__search-input {
  font-family: var(--font) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  border: 2px solid var(--fg) !important;
  border-radius: 0 !important;
  background: var(--bg) !important;
  color: var(--fg) !important;
  /* Longhand padding so the magnifying-glass icon (left) and × button (right)
     always have clearance — shorthand would kill the icon spacing */
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  padding-left: calc(54px * var(--pagefind-ui-scale)) !important;
  padding-right: calc(70px * var(--pagefind-ui-scale)) !important;
}

.pagefind-ui__search-input:focus {
  outline: 2px solid var(--red) !important;
  outline-offset: 2px !important;
}

/* Clear button: no box, no background — plain × */
.pagefind-ui__search-clear {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #999 !important;
  font-size: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.pagefind-ui__search-clear::after {
  content: '×';
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1;
  color: inherit;
  display: block;
}
.pagefind-ui__search-clear:hover {
  background: transparent !important;
  color: #444 !important;
}

.pagefind-ui__result {
  border-top: 1px solid var(--gray-200) !important;
  padding: var(--space-lg) 0 !important;
}

.pagefind-result-breadcrumb {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 3px;
}

.pagefind-ui__result-title {
  font-family: var(--font) !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  text-transform: uppercase !important;
  letter-spacing: -0.01em !important;
}

.pagefind-ui__result-title a {
  color: var(--fg) !important;
  text-decoration: none !important;
}

.pagefind-ui__result-title a:hover {
  color: var(--red) !important;
}

.pagefind-ui__result-excerpt {
  font-family: var(--font) !important;
  font-size: 0.9rem !important;
  color: var(--mid) !important;
  line-height: 1.6 !important;
  margin-top: var(--space-xs) !important;
}

.pagefind-ui__result-excerpt mark {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0 2px !important;
  border-radius: 0 !important;
}

.pagefind-ui__message {
  font-family: var(--font) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--dim) !important;
  margin-bottom: var(--space-lg) !important;
}

.pagefind-ui__button {
  font-family: var(--font) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--fg) !important;
  border: 2px solid var(--fg) !important;
  padding: 0.6rem 1.5rem !important;
  margin-top: var(--space-lg) !important;
  cursor: pointer !important;
  transition: background 0.15s, color 0.15s !important;
}

.pagefind-ui__button:hover {
  background: var(--fg) !important;
  color: var(--bg) !important;
}

/* ═══ TABLE OF CONTENTS ═══ */
/* --toc-inset mirrors section padding-left at every breakpoint so the
   red line always aligns with section content, including on ultra-wide screens */
.page-toc {
  --toc-inset: var(--pad);
  position: relative;
  padding: var(--space-2xl) var(--toc-inset);
}
.page-toc::before {
  content: '';
  position: absolute;
  left: var(--toc-inset);
  top: 0;
  bottom: 0;
  width: var(--border-thick);
  background-color: var(--red);
}
@media (min-width: 1200px) {
  .page-toc { --toc-inset: max(var(--pad), 6vw); }
}
@media (min-width: 1600px) {
  .page-toc { --toc-inset: max(var(--pad), calc((100vw - 1400px) / 2)); }
}
.toc-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0 0 0 var(--space-lg);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  cursor: pointer;
  width: auto;
  transition: color 0.15s;
}
.toc-toggle:hover {
  color: var(--red);
}
.toc-toggle::after {
  content: '▾';
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.toc-toggle[aria-expanded="false"]::after {
  transform: rotate(-90deg);
}
.toc-inner {
  padding: var(--space-lg) 0 0 var(--space-lg);
  background: none;
  margin: 0;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}
@media (min-width: 768px) {
  .toc-list {
    columns: 2;
    column-gap: var(--space-2xl);
  }
  .toc-list li {
    break-inside: avoid;
  }
}
.toc-list li {
  counter-increment: toc;
}
.toc-list a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.875rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  line-height: 1.4;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero) '\00a0\00a0';
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--fg);
}
.toc-list a:hover {
  color: var(--red);
  padding-left: 0.25rem;
}
.toc-list a.toc-active {
  color: var(--red);
  font-weight: 600;
  padding-left: 0.25rem;
}
.toc-list a.toc-active::before {
  color: var(--red);
}

/* ═══ READING PROGRESS CIRCLE + PAGE UTILITIES ═══ */
/* mix-blend-mode: difference — weiß invertiert automatisch gegen jeden Hintergrund.
   Auf Rot ergibt das Cyan, wird akzeptiert. Kein JS für Farberkennung nötig. */
.page-utilities {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 998;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  mix-blend-mode: difference;
}
.page-utilities.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* SVG Progress Ring */
.rpc-svg { width: 26px; height: 26px; display: block; }
.rpc-track { fill: none; stroke: white; stroke-width: 1; opacity: 0.35; }
.rpc-fill  { fill: none; stroke: white; stroke-width: 1.5; transform: rotate(-90deg); transform-origin: 50% 50%; }

/* Buttons + Links — opacity: 1 nötig für scharfe mix-blend-mode:difference Inversion */
.page-util-btn,
.page-util-link {
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  display: block;
  opacity: 1;
  line-height: 1;
  white-space: nowrap;
}
.page-util-link:hover,
.page-util-link:visited,
.page-util-link:active { color: white; text-decoration: none; }

@media (max-width: 768px) {
  .page-utilities { display: none; }
}
/* page-utilities print: handled in global @media print block above */
