/* ===================================================================
   HONORARSTREIT-STEUERANWALT.DE — Design System
   =================================================================== */

/* ============ FONTS (lokal gehostet, DSGVO-konform) ============ */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/source-serif-4-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/source-serif-4-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('fonts/source-serif-4-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/source-sans-3-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('fonts/source-sans-3-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/source-sans-3-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('fonts/source-sans-3-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url('fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2');
}

:root{
  /* ============ MOTION SYSTEM (eine Easing-Sprache) ============ */
  --ease-spring: cubic-bezier(.16, 1, .3, 1);
  --ease-snap:   cubic-bezier(.2, .8, .2, 1);
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-in:     cubic-bezier(.55, 0, .55, .2);
  --d-fast:   180ms;
  --d-base:   320ms;
  --d-slow:   520ms;
  --d-deep:   780ms;

  /* Paper palette (light mode) */
  --paper: #faf8f3;
  --paper-deep: #f2efe7;
  --paper-warm: #f7f3e9;
  --card: #ffffff;

  /* Ink */
  --ink: #141619;
  --ink-soft: #3e4147;
  --ink-muted: #6b6f76;
  --ink-fade: #9a9da2;

  /* Lines */
  --line: #e4e1d8;
  --line-strong: #c9c5b9;

  /* Primary — deep petrol */
  --accent: #0d4f5c;
  --accent-soft: #e3eff2;
  --accent-deep: #083742;
  --accent-glow: rgba(13, 79, 92, 0.114);

  /* Warm gold highlight */
  --gold: #b4883c;
  --gold-soft: #f5ecd9;
  --gold-deep: #8b651f;

  /* Alert — restrained burgundy */
  --alert: #9c2b2b;
  --alert-soft: #f7e3e3;

  /* Success */
  --ok: #2f6b3d;
  --ok-soft: #e3efe5;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20,15,5,.04), 0 2px 6px rgba(20,15,5,.04);
  --shadow: 0 1px 0 rgba(20,15,5,.04), 0 20px 40px -20px rgba(20,15,5,.15);
  --shadow-lg: 0 2px 0 rgba(20,15,5,.04), 0 40px 80px -30px rgba(20,15,5,.25);

  /* Radii */
  --r-sm: 6px;
  --r: 12px;
  --r-lg: 20px;

  /* Layout */
  --max: 1200px;
  --max-prose: 720px;
  --max-wide: 1400px;

  /* Typography tokens */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
}


/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
  /* Sehr dezenter, fließender Hero-Glow - editorial, nicht verspielt */
  background-image:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent-glow) 55%, transparent) 0%,
      color-mix(in srgb, var(--accent-glow) 35%, transparent) 200px,
      color-mix(in srgb, var(--accent-glow) 18%, transparent) 460px,
      color-mix(in srgb, var(--accent-glow) 6%,  transparent) 760px,
      transparent 1100px);
  background-repeat: no-repeat;
  background-attachment: scroll;
}
::selection { background: var(--accent); color: var(--paper); }

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

/* ============ TYPOGRAPHY ============ */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  letter-spacing: 0.01em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: 0; margin: 0; }
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.8vw, 64px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 24px;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 3.5vw, 38px);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 18px;
}
h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.35;
  margin: 0 0 10px;
  letter-spacing: 0;
}
h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  margin: 0 0 8px;
}
p { margin: 0 0 16px; }
strong { font-weight: 600; }
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(13,79,92,.3);
  transition: border-color .15s, color .15s;
}
a:hover { border-bottom-color: var(--accent); }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
  border-bottom: 0 !important;
}

/* ============ LAYOUT ============ */
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.wrap-prose { width: min(var(--max-prose), calc(100% - 48px)); margin: 0 auto; }
.wrap-wide { width: min(var(--max-wide), calc(100% - 48px)); margin: 0 auto; }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky; top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--accent); }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  font-style: italic;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 79, 92, 0.25);
  position: relative;
}
.brand-mark::after {
  /* dezenter §-Akzent als Marker für den juristischen Kontext */
  content: "§";
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  line-height: 1;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.brand-text em { font-style: italic; color: var(--accent); }
.brand-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  margin-top: 3px;
  line-height: 1.1;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 6px;
  border-bottom: 0;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 40px; height: 40px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 980px){
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 0;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 8px;
  }
  .nav-toggle { display: flex; }
  /* brand-sub bleibt sichtbar — "Steuerrecht" ist Teil der Marke */
}
@media (max-width: 380px){
  .brand-text { font-size: 19px; }
  .brand-sub { font-size: 12px; }
  .brand-mark { width: 36px; height: 36px; font-size: 20px; }
  .brand-mark::after { width: 14px; height: 14px; font-size: 10px; bottom: -1px; right: -2px; }
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-content { max-width: 780px; }
.hero p.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 32px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  text-decoration: none;
  border: 0;
  border-bottom: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .15s;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(13,79,92,.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.btn svg { width: 16px; height: 16px; }

/* ============ CARDS ============ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card-link {
  display: block;
  color: var(--ink);
  border-bottom: 0;
}
.card-link:hover { color: var(--ink); }
.card-link .card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-link .arrow {
  font-size: 22px;
  color: var(--accent);
  transition: transform .2s;
}
.card-link:hover .arrow { transform: translateX(4px); }
.card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3 { margin-bottom: 10px; }
.card p {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }

/* ============ SECTIONS ============ */
.section {
  padding: 72px 0;
  position: relative;
}
.section-head {
  margin-bottom: 48px;
  max-width: 720px;
}
.section-head p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}
.section-alt {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============ STEPS / PROCESS ============ */
.steps {
  display: grid;
  gap: 24px;
  counter-reset: step;
  grid-template-columns: 1fr;
}
.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.step:first-child { border-top: 0; padding-top: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  font-style: italic;
}
.step h3 { margin-bottom: 6px; }
.step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
}

/* ============ PROSE (Article body) ============ */
.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.7;
  min-width: 0; /* verhindert Grid-Track-Aufblähung durch breite Kinder (z. B. Carousel) */
}
.prose .carousel {
  max-width: 100%;
}
.carousel-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "prev car next";
  align-items: center;
  gap: 10px;
  margin: 0 -24px;
}
.carousel-wrap .carousel-prev { grid-area: prev; }
.carousel-wrap .carousel-next { grid-area: next; }
.carousel-wrap .carousel {
  grid-area: car;
  margin: 0;
  min-width: 0;
  align-self: stretch;
  cursor: grab;
}
.carousel-wrap .carousel.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.carousel-wrap .carousel.dragging * {
  user-select: none;
  pointer-events: none;
}
.carousel-nav {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  font: inherit;
  box-shadow: 0 4px 14px rgba(13, 79, 92, 0.12);
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.carousel-nav svg {
  width: 24px;
  height: 24px;
  display: block;
}
.carousel-nav:hover:not(:disabled) {
  background: var(--accent);
  color: var(--paper);
  transform: scale(1.06);
}
.carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .carousel-wrap { grid-template-columns: 1fr; gap: 0; }
  .carousel-nav { display: none; }
}
.prose > * { margin-bottom: 20px; }
.prose h2 {
  margin-top: 56px;
  margin-bottom: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 40px; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 32px; margin-bottom: 10px; }
.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.prose li { margin-bottom: 10px; }
.prose li::marker { color: var(--accent); }

/* ============ CALLOUT ============ */
.callout {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout-warn {
  background: var(--gold-soft);
  border-left-color: var(--gold-deep);
}
.callout-alert {
  background: var(--alert-soft);
  border-left-color: var(--alert);
}
.callout strong { font-weight: 600; }
.callout p:last-child { margin-bottom: 0; }
.callout-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 600;
}
.callout-warn .callout-label { color: var(--gold-deep); }
.callout-alert .callout-label { color: var(--alert); }

/* ============ DEFINITION LIST ============ */
.dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.dl > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.dl dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-top: 2px;
}
.dl dd { margin: 0; }
@media (max-width: 640px){
  .dl > div { grid-template-columns: 1fr; gap: 4px; }
  .dl dt { font-size: 11px; }
}

/* ============ TABLES ============ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
}
.table-wrap table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.table-wrap th, .table-wrap td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table-wrap thead th {
  background: var(--paper-deep);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td.num, .table-wrap th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

/* ============ FAQ ============ */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--ink);
  position: relative;
  line-height: 1.3;
  transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
  transition: transform .2s;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details > div {
  padding: 0 0 24px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}
.faq details > div p:last-child { margin-bottom: 0; }

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid color-mix(in srgb, var(--line-strong) 50%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line-strong) 50%, transparent);
  margin: 56px 0 40px;
  position: relative;
}
/* Sanfter Glow um die Stats statt harter Linien */
.stats::before {
  content: "";
  position: absolute;
  inset: -1px 0;
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 2px),
    linear-gradient(0deg,   transparent 0%, color-mix(in srgb, var(--accent) 8%, transparent) 1px, transparent 2px);
  pointer-events: none;
}
.stats > div {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: 0; }
.stat-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.stat-v {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1;
  color: var(--ink);
}
.stat-v em { color: var(--accent); font-style: italic; }
@media (max-width: 640px){
  .stats > div { padding: 18px 18px 18px 0; border-right: 0; border-bottom: 1px solid var(--line);}
  .stats > div:last-child { border-bottom: 0; }
}

/* ============ HERO ALT (featured) ============ */
.feature {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(180,136,60,0.2), transparent 70%);
  pointer-events: none;
}
.feature h2 { color: var(--paper); max-width: 640px; }
.feature p { color: rgba(250,248,243,.85); max-width: 560px; font-size: 18px; }
.feature .eyebrow { color: var(--gold); }
.feature .eyebrow::before { background: var(--gold); }
.feature .btn-primary {
  background: var(--paper);
  color: var(--ink);
}
.feature .btn-primary:hover {
  background: var(--gold);
  color: var(--ink);
}
@media (max-width: 640px){
  .feature { padding: 36px 28px; border-radius: var(--r); }
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.breadcrumb a {
  color: var(--ink-muted);
  border-bottom: 0;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 10px; color: var(--ink-fade); }

/* ============ TOC (sidebar) ============ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1000px){
  .article-layout {
    grid-template-columns: 1fr 240px;
    max-width: var(--max-wide);
    margin: 0 auto;
  }
}
.toc-side {
  font-size: 14px;
  position: sticky;
  top: 96px;
}
.toc-side h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.toc-side ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}
.toc-side li { margin: 0; }
.toc-side a {
  display: block;
  padding: 8px 0 8px 16px;
  color: var(--ink-soft);
  border-bottom: 0;
  margin-left: -1px;
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s;
  line-height: 1.4;
}
.toc-side a:hover, .toc-side a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}
@media (max-width: 999px){
  .toc-side { display: none; }
}

/* ============ FOOTER ============ */
footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px){
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 460px){
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin: 0; }
.footer-grid a {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
  padding: 12px 14px;
  margin: 0 -14px;
  border-bottom: 0;
  border-radius: var(--r-sm);
  transition: background var(--d-fast) var(--ease-snap), color var(--d-fast), padding-left var(--d-fast) var(--ease-snap);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--accent);
  background: var(--accent-soft);
  padding-left: 18px;
}
.footer-grid a:active {
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent));
}

/* Auf großen Viewports etwas dezenter (kein full-width-Hover-Bar) */
@media (min-width: 769px) {
  .footer-grid a {
    padding: 8px 12px;
    margin: 0 -12px;
  }
  .footer-grid a:hover,
  .footer-grid a:focus-visible { padding-left: 14px; }
}

/* Auf Mobile: noch luftiger, voll klickbare Reihe mit visueller Trennung */
@media (max-width: 460px) {
  .footer-grid > div + div { margin-top: 16px; }
  .footer-grid h5 { margin-bottom: 10px; }
  .footer-grid a {
    padding: 14px 16px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 15px;
  }
  .footer-grid a:hover,
  .footer-grid a:focus-visible { padding-left: 22px; }
  .footer-grid li:last-child a { border-bottom: 0; }
}

/* ---------- Touch-Target-Politur site-weit (WCAG 2.5.5 AAA: 44 px min) ---------- */
@media (pointer: coarse), (max-width: 768px) {
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .breadcrumb a {
    padding: 6px 4px;
    margin: 0 -4px;
    display: inline-block;
  }
  .toc-side a {
    padding: 12px 0 12px 16px;
    min-height: 44px;
  }
  .faq summary {
    padding-top: 18px;
    padding-bottom: 18px;
    min-height: 44px;
  }
  .form-field input,
  .form-field textarea,
  .form-field select {
    min-height: 48px;
  }
  .form-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }
  .btn {
    min-height: 48px;
    padding: 14px 22px;
  }
  .meta-pill {
    min-height: 32px;
  }
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  align-items: center;
}

/* Eleganter Back-to-top Link - jetzt INNERHALB der .footer-bottom Reihe rechts */
.footer-bottom .back-to-top {
  margin-left: auto; /* Push to right end of flex row */
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: background var(--d-fast) var(--ease-snap),
              border-color var(--d-fast),
              color var(--d-fast),
              transform var(--d-base) var(--ease-spring),
              box-shadow var(--d-base);
  cursor: pointer;
  white-space: nowrap;
}
.back-to-top svg {
  width: 12px;
  height: 12px;
  transition: transform var(--d-base) var(--ease-spring);
}
.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--accent-glow);
}
.back-to-top:hover svg,
.back-to-top:focus-visible svg {
  transform: translateY(-2px);
}
.back-to-top:active { transform: translateY(-1px); }
@media (max-width: 460px) {
  .back-to-top { margin-top: 4px; }
}
.footer-disclaimer {
  max-width: 520px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  letter-spacing: 0;
  margin-top: 20px;
}

.footer-motto {
  margin: 32px 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 720px;
}
.footer-motto cite {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============ HERO PATTERN / ORNAMENT ============ */
.ornament {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  display: inline-block;
}

/* ============ UTILITIES ============ */
.text-muted { color: var(--ink-muted); }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }

/* ============ RESPONSIVE TUNING ============ */
@media (max-width: 640px){
  .wrap, .wrap-prose, .wrap-wide { width: min(var(--max), calc(100% - 32px)); }
  .hero { padding: 56px 0 40px; }
  .section { padding: 56px 0; }
  .card { padding: 24px; }
  .prose { font-size: 17px; }
  body { font-size: 16px; }
}
@media (max-width: 400px){
  .wrap, .wrap-prose, .wrap-wide { width: min(var(--max), calc(100% - 24px)); }
  .card { padding: 20px; }
}

/* ============ PRINT ============ */
@media print {
  .nav, footer.site-footer, .toc-side, .nav-toggle { display: none; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .feature { background: none; color: black; border: 2px solid black; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ MOBILE OVERFLOW GUARDS ============ */
/* Belt + suspenders: no element in the viewport may push the body horizontally.
   Android Chrome has a long-standing bug where overflow-x: hidden on body
   does not always clip if a child triggers layout wider than viewport — using
   overflow-x: clip where supported plus min-width:0 on flex/grid descendants. */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}

/* Stop grid/flex children from forcing parent to min-content size */
.grid > *, .grid-2 > *, .grid-3 > *,
.stats > *, .steps > *, .article-layout > *,
.nav-inner > *, .footer-grid > *,
.contact-grid > *, .section-row > *,
.list-row, .list-row > * {
  min-width: 0;
}

/* German compound words, emails and URLs should never punch past their container */
h1, h2, h3, h4, h5, p, li, dt, dd, summary, blockquote, td, th, .lede, .stat-v {
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}
code, kbd, a[href^="mailto:"], a[href^="http"] {
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Container guards — never wider than viewport */
.wrap, .wrap-wide, .wrap-prose,
.prose, .callout, .feature, .musterschreiben,
main, section, article, header, footer {
  max-width: 100%;
  box-sizing: border-box;
}

/* Any inline <table> without .table-wrap stays within its container */
table { max-width: 100%; }
.prose > table,
.callout table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Make sure .table-wrap really contains its inner table on Android Chrome.
   Without `contain: inline-size`, the inner min-width can propagate up. */
.table-wrap {
  width: 100%;
  contain: inline-size;
  overscroll-behavior-x: contain;
}

/* ----- Mobile-stacked tables (.table-stack inside .table-wrap) -----
   Columns transform into label/value pairs from data-label attributes.
   Use this on tables that compare a few numbers — far more readable than
   horizontal scroll on a 360-px viewport. */
@media (max-width: 600px) {
  .table-wrap:has(.table-stack) {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: visible;
  }
  .table-stack,
  .table-stack thead,
  .table-stack tbody,
  .table-stack tr,
  .table-stack th,
  .table-stack td { display: block; width: 100%; min-width: 0; }
  .table-stack { min-width: 0 !important; font-size: 14px; }
  .table-stack thead { display: none; }
  .table-stack tbody tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 4px 14px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
  }
  .table-stack td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    text-align: left;
  }
  .table-stack td:last-child { border-bottom: 0; }
  .table-stack td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
    flex: 0 0 auto;
    margin-right: 12px;
  }
  .table-stack td:first-child {
    font-weight: 600;
    color: var(--ink);
    border-bottom-style: solid;
    border-bottom-color: var(--line-strong);
  }
  .table-stack td:first-child::before {
    color: var(--accent);
  }
  .table-stack td.num,
  .table-stack td[data-num] {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
  }
  .table-stack td.num { text-align: right; }
  /* Empty cells (— placeholder) — show the placeholder, not an empty row */
  .table-stack td:empty::after,
  .table-stack td.dim { color: var(--ink-fade); }
  /* Special row styles via data-row attribute */
  .table-stack tr[data-row="sum"] { font-weight: 600; }
  .table-stack tr[data-row="sum"] td:first-child { color: var(--ink); }
  .table-stack tr[data-row="total"] {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 700;
  }
  .table-stack tr[data-row="total"] td::before { color: var(--accent); opacity: 0.7; }
  /* If a TD has colspan and is part of a special row, it should still render
     as a single block (the data-label provides context) */
  .table-stack td[colspan] { font-weight: 700; }
}

/* Responsive money rows (Zahlungsströme etc.) */
.money-rows {
  display: grid;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 0;
}
.money-rows .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.money-rows .row .label { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.money-rows .row .val { flex: 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-rows .row.sum { border-top: 1px solid var(--line-strong); font-weight: 600; padding-top: 10px; margin-top: 4px; }
.money-rows .row.total { border-top: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 16px; padding-top: 10px; margin-top: 4px; }

/* Tighten padded blocks on narrow viewports */
@media (max-width: 560px) {
  .callout { padding: 18px 18px; }
  .prose blockquote { padding-left: 16px !important; padding-right: 16px !important; }
  .musterschreiben,
  .prose > div[style*="mono"]:not(.money-rows) {
    font-size: 13px;
    padding: 18px !important;
    line-height: 1.6 !important;
  }
  .money-rows { font-size: 13px; }
}

/* Hero stats inside very narrow viewport: avoid stat-v overshooting */
.stat-v { overflow-wrap: break-word; }


/* ====================================================================
   VISUAL EFFECTS — editorial / forensic / modern CSS
   ==================================================================== */

/* ---------- 1. Drop-Cap (erste Initiale jedes Artikels) ---------- */
/* Nur bei Artikeln aktivieren: erster Absatz muss von weiterem Fließtext gefolgt sein.
   Auf Meta-Seiten (Impressum, Datenschutz, Autor) folgt häufig dl/ul/ol/h2 -> kein Drop-Cap. */
.prose > p:first-of-type:has(+ p)::first-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 4.4em;
  line-height: 0.85;
  float: left;
  margin: 0.06em 0.12em -0.05em 0;
  color: var(--accent);
  text-shadow: 0 1px 0 rgba(13, 79, 92, 0.05);
}
@media (max-width: 640px) {
  .prose > p:first-of-type:has(+ p)::first-letter {
    font-size: 3.6em;
    margin-right: 0.08em;
  }
}
/* Browser ohne :has() Fallback: Drop-Cap auf .prose:not(.prose-meta) */
@supports not selector(:has(*)) {
  .prose:not(.prose-meta) > p:first-of-type::first-letter {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 700;
    font-size: 4.4em;
    line-height: 0.85;
    float: left;
    margin: 0.06em 0.12em -0.05em 0;
    color: var(--accent);
  }
}

/* ---------- 2. Reading-Time-Pill ---------- */
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 24px;
  padding: 5px 14px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  vertical-align: middle;
}
.meta-pill .dot {
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- 3. Akten-Zeilennummerierung in der Marge ---------- */
.prose { counter-reset: paragraph; }
.prose > p {
  counter-increment: paragraph;
  position: relative;
}
.prose > p::before {
  content: counter(paragraph, decimal-leading-zero);
  position: absolute;
  left: -52px;
  top: 0.5em;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-fade);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1100px) {
  .prose > p::before { display: none; }
}

/* ---------- 4. §-Anker-Marker mit Copy-on-Click ---------- */
.prose h2[id], .prose h3[id] {
  position: relative;
  cursor: pointer;
  scroll-margin-top: 100px;
}
.prose h2[id]::before, .prose h3[id]::before {
  content: '§';
  position: absolute;
  left: -1.4em;
  top: 0.05em;
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.85em;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  transform: translateX(8px);
  pointer-events: none;
}
.prose h2[id]:hover::before,
.prose h3[id]:hover::before {
  opacity: 0.55;
  transform: translateX(0);
}
@media (max-width: 1100px) {
  .prose h2[id]::before, .prose h3[id]::before { display: none; }
}
.prose h2[id].copied::after,
.prose h3[id].copied::after {
  content: '✓ Link kopiert';
  display: inline-block;
  margin-left: 12px;
  padding: 2px 10px;
  background: var(--ok-soft);
  color: var(--ok);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  vertical-align: middle;
  animation: copied-pop .3s ease-out;
}
@keyframes copied-pop {
  from { transform: scale(0.7) translateY(-4px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ---------- 5. Akten-Stempel über dem Steckbrief ---------- */
.steckbrief-wrap {
  position: relative;
  padding-top: 5px;
}
.steckbrief-wrap > h2 {
  margin-top: 5px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.akten-stempel {
  position: absolute;
  top: -130px;
  right: 8px;
  width: 132px;
  height: 132px;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transform: rotate(-8deg) scale(2.4) translate(-30px, -40px);
  filter: drop-shadow(0 3px 6px rgba(120, 30, 30, 0.18));
  animation: akten-stamp 720ms cubic-bezier(.18,.89,.32,1.28) 200ms forwards;
}
@supports (animation-timeline: view()) {
  .akten-stempel {
    animation: akten-stamp 720ms cubic-bezier(.18,.89,.32,1.28) both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes akten-stamp {
  0%   { opacity: 0; transform: rotate(-8deg) scale(2.4) translate(-30px, -40px); }
  55%  { opacity: 0.95; transform: rotate(-12deg) scale(0.92); }
  75%  { opacity: 0.92; transform: rotate(-6deg) scale(1.04); }
  100% { opacity: 0.88; transform: rotate(-8deg) scale(1); }
}
.akten-stempel circle.outer {
  fill: none;
  stroke: var(--alert);
  stroke-width: 4;
}
.akten-stempel circle.inner {
  fill: none;
  stroke: var(--alert);
  stroke-width: 1.5;
}
.akten-stempel text {
  fill: var(--alert);
  font-family: var(--font-display);
  font-weight: 600;
}
.akten-stempel .ring-text {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.akten-stempel .center-text {
  font-size: 14px;
  letter-spacing: 0.04em;
  font-style: italic;
}
.akten-stempel .date-text {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .steckbrief-wrap { padding-top: 100px; }
  .steckbrief-wrap > h2 { margin-top: 5px !important; padding-top: 0 !important; border-top: 0 !important; }
  .akten-stempel { width: 110px; height: 110px; top: -10px; right: 0; }
}

/* ---------- 6. Wasserzeichen "X B 2/26" hinter Hero des Fallberichts ---------- */
.hero-fallbericht {
  position: relative;
  overflow: hidden;
}
.hero-fallbericht::before {
  content: 'X B 2/26';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(120px, 22vw, 280px);
  color: var(--paper-deep);
  opacity: 0.65;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.02em;
  user-select: none;
}
.hero-fallbericht > * { position: relative; z-index: 1; }

/* ---------- 7. Tooltip-Styling für BGH-/BFH-Aktenzeichen ---------- */
abbr[title] {
  text-decoration: none;
  border-bottom: 1.5px dotted var(--accent);
  cursor: help;
  text-decoration-skip-ink: none;
}
abbr[title]:hover {
  background: var(--accent-soft);
  border-radius: 2px;
}

/* ---------- 8. Scroll-Progress-Linie oben (modern, scroll-driven) ---------- */
@property --scroll-progress {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: false;
}
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1000;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(180, 136, 60, 0.4);
}
@supports (animation-timeline: scroll()) {
  body::before {
    animation: scroll-prog linear both;
    animation-timeline: scroll(root);
  }
  @keyframes scroll-prog {
    to { transform: scaleX(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

/* ---------- 9. @starting-style + sanftes Auf/Zuklappen für FAQ ---------- */
.faq details[open] > div {
  animation: detail-reveal 280ms cubic-bezier(.2,.8,.2,1);
}
@keyframes detail-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.faq summary {
  transition: padding-left .2s ease, color .15s ease;
}
.faq details[open] summary {
  padding-left: 6px;
}

/* ---------- :target Pulse-Highlight ---------- */
@keyframes target-pulse {
  0%   { background: var(--gold-soft); box-shadow: -8px 0 0 var(--gold-soft), 8px 0 0 var(--gold-soft); }
  100% { background: transparent;       box-shadow: -8px 0 0 transparent, 8px 0 0 transparent; }
}
.prose h2:target,
.prose h3:target {
  animation: target-pulse 2s ease-out;
  border-radius: 4px;
}

/* ---------- Hero-Reveal beim Laden (alle Hero-Elemente) ---------- */
@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
.hero h1            { animation: hero-reveal 700ms cubic-bezier(.2,.8,.2,1) both; }
.hero .lede         { animation: hero-reveal 700ms cubic-bezier(.2,.8,.2,1) 100ms both; }
.hero .eyebrow      { animation: hero-reveal 700ms cubic-bezier(.2,.8,.2,1) 50ms both; }
.hero .breadcrumb   { animation: hero-reveal 700ms cubic-bezier(.2,.8,.2,1) 0ms both; }
.hero .stats        { animation: hero-reveal 700ms cubic-bezier(.2,.8,.2,1) 250ms both; }
.hero .btn          { animation: hero-reveal 700ms cubic-bezier(.2,.8,.2,1) 200ms both; }
.hero > div > div[style*="display:flex"] { animation: hero-reveal 700ms cubic-bezier(.2,.8,.2,1) 200ms both; }
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lede, .hero .eyebrow, .hero .breadcrumb,
  .hero .stats, .hero .btn { animation: none; }
}

/* ---------- View Transitions (Multi-Page-App-Übergänge) ----------
   Vorübergehend deaktiviert - Logo soll über Seitenwechsel hinweg fix stehen.
   Später wieder aktivierbar durch Einkommentieren des @view-transition-Blocks.

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 220ms cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-in 320ms cubic-bezier(0,0,.2,1) 60ms both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in  { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
*/

/* ---------- Card-Hover & Underline-Draw-In ---------- */
.prose p > a:not([class]),
.prose li > a:not([class]) {
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  border-bottom: 0;
  transition: background-size .3s cubic-bezier(.65,.05,.36,1);
  padding-bottom: 1px;
}
.prose p > a:not([class]):hover,
.prose li > a:not([class]):hover {
  background-size: 100% 1.5px;
}


/* ====================================================================
   2026/2027 — STATE OF THE WEB
   light-dark theming · container queries · subgrid · CSS carousel ·
   anchor positioning · @starting-style · @property · interpolate-size ·
   text-wrap balance/pretty · field-sizing · scrollbar styling · popover ·
   dialog backdrop · counter-style · view-transition names · @scope/@layer
   ==================================================================== */

@layer base, components, utilities;

/* ---------- 5+15. Typografie-Polish: balance, pretty, hyphens ---------- */
h1, h2, h3, h4, h5,
.lede, .meta-pill,
blockquote, .callout-label,
.feature h2, .hero p {
  text-wrap: balance;
}
p, li, dd, dt, summary, .footer-disclaimer {
  text-wrap: pretty;
}
.prose p, .prose li, .prose dd {
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
}

/* ---------- 13. Themengetreue Scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-radius: 10px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* ---------- 14. field-sizing: content (autogrow textarea) ---------- */
.form-field textarea {
  field-sizing: content;
  min-height: 140px;
  max-height: 60vh;
}

/* ---------- 12. interpolate-size: native auto-height-Animationen ---------- */
:root { interpolate-size: allow-keywords; }
.faq details > div {
  display: block;
  overflow: hidden;
}

/* ---------- 11. @property + Hue-Animation auf Akzent-Buttons ---------- */
@property --btn-hue {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@property --btn-glow {
  syntax: '<length>';
  initial-value: 0px;
  inherits: false;
}
.btn-primary {
  filter: hue-rotate(var(--btn-hue));
  box-shadow: 0 0 var(--btn-glow) var(--accent-glow);
  transition: --btn-hue .5s, --btn-glow .35s ease, transform .15s, background .15s;
}
.btn-primary:hover {
  --btn-hue: 8deg;
  --btn-glow: 24px;
}

/* ---------- 6. Color-scheme deklariert (Light only - kein Dark-Mode) ---------- */
:root { color-scheme: light; }


/* ====================================================================
   AWARD-POLISH (Awwwards / CSSDA / SOTD-Niveau)
   ==================================================================== */

/* ---------- A1. Typografie-Bundle: Optical Sizing, Hanging Punct, Features ---------- */
:root {
  font-optical-sizing: auto;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  font-variant-numeric: oldstyle-nums proportional-nums;
  text-rendering: geometricPrecision;
}
html { hanging-punctuation: first last allow-end; }
.prose, .lede, blockquote, .feature p {
  hanging-punctuation: first last allow-end;
}
h1, h2, h3, .display, .feature h2 {
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" 1, "liga" 1, "dlig" 1, "ss01" 1;
}
.stat-v, .num, .money-rows .val, .table-wrap .num, .meta-pill,
[class*="stat-"], code, kbd, .mono {
  font-variant-numeric: tabular-nums lining-nums slashed-zero;
}
/* H1 mit subtilem optical-tracking */
h1 {
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 144;
}
h2 { font-variation-settings: "opsz" 96; }
.lede { font-variation-settings: "opsz" 28; letter-spacing: -0.005em; }
body { font-variation-settings: "opsz" 14; }

/* ---------- A2. Focus-States (sichtbar, eskalierbar) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  transition: outline-offset var(--d-fast) var(--ease-snap);
}
.btn:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--accent-glow);
}
a:focus-visible {
  outline-offset: 2px;
  background: var(--accent-glow);
}
.nav-links a:focus-visible {
  outline-offset: 0;
  background: var(--accent-soft);
}

/* Skip-Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 22px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  z-index: 10000;
  transition: top var(--d-fast) var(--ease-snap);
}
.skip-link:focus {
  top: 16px;
  border-bottom: 0;
}

/* ---------- A3. Paper-Noise-Overlay (subtil, 4 % opacity) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (prefers-reduced-data: reduce) {
  body::after { display: none; }
}

/* ---------- A4. Custom Cursor: § Glyphe nur im Hauptmenü beim Hover ---------- */
@media (pointer: fine) and (min-width: 980px) {
  .nav-links a:hover,
  .brand:hover {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text x='50%25' y='62%25' text-anchor='middle' font-family='Source Serif 4, serif' font-style='italic' font-weight='700' font-size='22' fill='%230d4f5c'>%C2%A7</text></svg>") 16 16, pointer;
  }
}

/* ---------- A5. Magnetic Button base (JS shifts via --mx/--my) ---------- */
@property --mx { syntax: '<length>'; initial-value: 0px; inherits: false; }
@property --my { syntax: '<length>'; initial-value: 0px; inherits: false; }
.btn {
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
  transition: transform var(--d-base) var(--ease-spring), background var(--d-fast), box-shadow var(--d-base);
}

/* ---------- A6. Cursor-Following Hero-Glow (JS sets --gx/--gy) ---------- */
@property --gx { syntax: '<length>'; initial-value: 50%; inherits: true; }
@property --gy { syntax: '<length>'; initial-value: 30%; inherits: true; }
.hero {
  position: relative;
}
.hero > * { position: relative; z-index: 1; }
/* Cursor-Glow nur auf Desktop mit Maus - auf Touch keine separate Hero-Schicht (vermeidet Halo-Kante) */
@media (pointer: fine) and (min-width: 980px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: -120px 0 -120px 0;
    background: radial-gradient(ellipse 900px 600px at var(--gx, 50%) var(--gy, 40%),
      color-mix(in srgb, var(--accent-glow) 70%, transparent),
      transparent 80%);
    pointer-events: none;
    z-index: 0;
    transition: background var(--d-deep) var(--ease-out);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 75%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 75%, transparent 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before { transition: none; }
}

/* ---------- A7. Akten-Lineal an der linken .prose-Marge ---------- */
@media (min-width: 1100px) {
  .prose {
    position: relative;
  }
  .prose::before {
    content: "";
    position: absolute;
    left: -68px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-strong);
    background-image:
      linear-gradient(to bottom,
        var(--ink-fade) 0,
        var(--ink-fade) 1px,
        transparent 1px,
        transparent 60px);
    background-size: 100% 60px;
    background-repeat: repeat-y;
    opacity: 0.45;
  }
  .prose::after {
    content: "Akz.";
    position: absolute;
    left: -68px;
    top: -2em;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-fade);
    transform: translateX(-50%);
  }
}

/* ---------- A8. SVG Path-Draw (animation-timeline view) ---------- */
.draw-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw 1.6s var(--ease-out) forwards;
}
@supports (animation-timeline: view()) {
  .draw-path {
    animation: draw 1s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- A9. prefers-* Vollabdeckung ---------- */
@media (prefers-contrast: more) {
  :root {
    --ink-soft: #1a1d20;
    --ink-muted: #2a2f35;
    --line: #555;
    --line-strong: #1a1d20;
    --accent: #003a45;
  }
  .callout, .feature, .card { border-width: 2px; }
}
@media (prefers-reduced-data: reduce) {
  body::before { display: none; }
  .akten-stempel, .hero-fallbericht::before { display: none; }
}
@media (forced-colors: active) {
  .hero::before, body::after, body::before { display: none; }
  .akten-stempel { forced-color-adjust: none; }
  .btn { border: 2px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::after, body::before, .hero::before { display: none; }
  .scroll-story { height: auto; }
  .scroll-story-stage { position: static; height: auto; }
  .scroll-story-track { animation: none; flex-direction: column; width: 100%; height: auto; }
}

/* ---------- A10. Easter Egg: Brand-Mark H → § Flip ---------- */
.brand-mark {
  perspective: 600px;
  position: relative;
  transition: transform var(--d-base) var(--ease-spring);
}
.brand:hover .brand-mark {
  transform: rotateY(8deg);
}
.brand-mark.flip-eggu {
  animation: flip-h-to-§ 1.2s var(--ease-spring) forwards;
}
@keyframes flip-h-to-§ {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(90deg); }
  50.01% { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}
.brand-mark.flip-eggu::after {
  content: "§";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: inherit;
  opacity: 0;
  animation: egg-fade 1.2s var(--ease-spring) forwards;
}
@keyframes egg-fade {
  0%, 49% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

/* ---------- A11. Custom selection color ---------- */
::selection { background: var(--accent); color: var(--paper); text-shadow: none; }
.feature ::selection, .akten-stempel ::selection { background: var(--gold); color: var(--ink); }

/* ---------- A12. Konami-Konfetti (§-Glyphen) ---------- */
.konami-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}
.konami-confetti span {
  position: absolute;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  font-size: 24px;
  top: -40px;
  animation: confetti-fall 2.6s var(--ease-out) forwards;
}
@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ---------- Refactor: alle Standard-Eases auf System ---------- */
.btn, .card, .nav-links a, .card-link, .arrow,
details, summary, summary::after,
.callout, .feature .btn-primary {
  transition-timing-function: var(--ease-spring);
}

/* ---------- 7. Container Queries ---------- */
.feature { container-type: inline-size; container-name: feature; }
@container feature (min-width: 760px) {
  .feature h2 { font-size: clamp(32px, 4cqw, 46px); }
  .feature p { font-size: 19px; max-width: 60cqw; }
}
.stats { container-type: inline-size; container-name: stats; }
@container stats (max-width: 700px) {
  .stats { grid-template-columns: 1fr 1fr; }
}
@container stats (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
}
.card { container-type: inline-size; container-name: card; }
@container card (min-width: 480px) {
  .card { padding: 36px 40px; }
  .card h3 { font-size: 22px; }
}

/* ---------- 8. CSS Subgrid (Footer + Stats Baseline-Alignment) ---------- */
@supports (grid-template-rows: subgrid) {
  .footer-grid { grid-template-rows: auto auto 1fr; }
  .footer-grid > div {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 0;
  }
  .footer-grid > div h5 { margin-bottom: 16px; }
}

/* ---------- 17. Native CSS Carousel (scroll-snap + ::scroll-marker) ---------- */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, 520px);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  padding: 8px 24px 28px;
  margin: 0 -24px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * {
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.carousel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 240px;
}
.carousel-card .carousel-num {
  font-family: var(--font-display);
  font-size: 56px;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  line-height: 0.85;
  letter-spacing: -0.02em;
  opacity: 0.8;
}
.carousel-card .carousel-q {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
}

/* Native Pagination-Marker (Chrome 135+) */
@supports (selector(::scroll-marker)) {
  .carousel { anchor-name: --carousel; }
  .carousel::scroll-marker-group {
    position: relative;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
  }
  .carousel > *::scroll-marker {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line-strong);
    border: 0;
    transition: background .2s, transform .2s;
    cursor: pointer;
  }
  .carousel > *::scroll-marker:target-current,
  .carousel > *::scroll-marker:hover {
    background: var(--accent);
    transform: scale(1.3);
  }
  /* Native ::scroll-button(left/right) deaktiviert, weil eigene HTML-Buttons
     in .carousel-wrap verwendet werden (sonst doppelte Pfeile in Chrome 135+) */
  .carousel::scroll-button(left), .carousel::scroll-button(right) {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--line-strong);
    color: var(--accent);
    cursor: pointer;
    z-index: 10;
  }
  .carousel::scroll-button(left)  { content: '←'; left: 8px; }
  .carousel::scroll-button(right) { content: '→'; right: 8px; }
}
/* Fallback Indicators for browsers ohne ::scroll-marker */
.carousel-fallback-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
}

/* ---------- 16. <dialog> + ::backdrop Animationen ---------- */
dialog {
  border: 0;
  border-radius: var(--r);
  padding: 36px;
  background: var(--card);
  color: var(--ink);
  max-width: min(640px, 92vw);
  max-height: 88vh;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  font-family: var(--font-body);
}
dialog[open] {
  animation: dialog-pop 350ms cubic-bezier(.2,.8,.2,1);
}
@keyframes dialog-pop {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
dialog::backdrop {
  background: rgba(13, 27, 32, 0.55);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  animation: backdrop-in 280ms ease;
}
@keyframes backdrop-in {
  from { opacity: 0; backdrop-filter: blur(0); }
  to   { opacity: 1; backdrop-filter: blur(10px); }
}
dialog .dialog-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: 0; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--ink-muted);
}
dialog .dialog-close:hover { color: var(--accent); }

/* ---------- 10+2. Native Popover + Anchor Positioning für Aktenzeichen ---------- */
[popover] {
  position: fixed;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  padding: 12px 16px;
  max-width: min(360px, 90vw);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--shadow);
  inset: unset;
}
[popover]:popover-open {
  animation: popover-in .18s ease;
}
@keyframes popover-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@supports (anchor-name: --x) {
  .az-trigger {
    anchor-name: --az;
  }
  .az-popover {
    position-anchor: --az;
    top: anchor(bottom);
    left: anchor(left);
    margin-top: 6px;
    position-try-fallbacks: flip-block, flip-inline;
  }
}
.az-trigger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: none;
  border-bottom: 1.5px dotted var(--accent);
  cursor: help;
  font-weight: 600;
}
.az-trigger:hover {
  background: var(--accent-soft);
  border-radius: 2px;
}

/* ---------- 20. Counter-Style: römisch petrol für legal lists ---------- */
@counter-style roman-petrol {
  system: additive;
  range: 1 100;
  additive-symbols: 100 C, 90 XC, 50 L, 40 XL, 10 X, 9 IX, 5 V, 4 IV, 1 I;
  suffix: '. ';
}
.prose ol.legal {
  list-style: roman-petrol;
  padding-left: 32px;
}
.prose ol.legal li::marker {
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
}

/* ---------- 18. Named View Transitions ---------- */
@supports (view-transition-name: x) {
  .feature { view-transition-name: spotlight-case; }
  .steckbrief-wrap { view-transition-name: spotlight-case; }
  .hero h1 { view-transition-name: page-headline; }
  /* Sanfter morph zwischen Seiten, wenn Element auf beiden vorhanden */
  ::view-transition-group(spotlight-case) {
    animation-duration: 480ms;
    animation-timing-function: cubic-bezier(.2,.8,.2,1);
  }
  ::view-transition-group(page-headline) {
    animation-duration: 360ms;
  }

  /* Header / Nav bleibt über Seitenwechsel hinweg optisch stehen -
     eigener view-transition-name + unterdrückte Animation */
  .nav { view-transition-name: site-nav; }
  ::view-transition-group(site-nav),
  ::view-transition-old(site-nav),
  ::view-transition-new(site-nav) {
    animation: none !important;
  }
}

/* ---------- 1. Scroll-Story (horizontaler Pan beim vertikalen Scrollen) ---------- */
.scroll-story {
  position: relative;
  height: 320vh; /* dictate scroll length */
  view-timeline-name: --story-tl;
  view-timeline-axis: block;
}
.scroll-story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper-deep) 100%);
}
.scroll-story-track {
  display: flex;
  gap: 8vw;
  padding: 0 10vw;
  height: 60vh;
  align-items: center;
  width: max-content;
}
.scroll-story-panel {
  width: 60vw;
  max-width: 720px;
  flex: 0 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px 56px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.scroll-story-panel .panel-step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.scroll-story-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2cqw, 40px);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 16px;
}
.scroll-story-panel p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
/* Horizontale Pan-Animation wird per JavaScript gesteuert (ui.js).
   Kein CSS-animation-timeline mehr - hat in Chrome im Edge-Case nicht
   zuverlässig gegriffen. */
@media (max-width: 768px) {
  .scroll-story { height: auto; }
  .scroll-story-stage {
    position: static;
    height: auto;
    overflow: visible;
  }
  .scroll-story-track {
    flex-direction: column;
    height: auto;
    width: 100%;
    padding: 24px 0;
    gap: 24px;
    animation: none !important;
  }
  .scroll-story-panel {
    width: 100%;
    padding: 32px 28px;
  }
}
