/* TrustNode — Website
   Aufbau und Masse folgen dem JLN-Designsystem (Ablionis-Website V2), der Akzent ist
   TrustNodes Rot statt Ablionis' Violett.
   Keine externen Ressourcen: Schriften liegen als .woff2 im Projekt. */

/* ---------------------------------------------------------------- Schriften */
/* Space Grotesk fuer Ueberschriften, IBM Plex Sans fuer Fliesstext.
   Beide unter SIL Open Font License, als .woff2 im Projekt — NICHT ueber das
   Google-Fonts-CDN: Das wuerde die IP jedes Besuchers an Google uebertragen
   (LG Muenchen I, 3 O 17493/20), eine Einwilligung noetig machen und an der
   CSP (font-src 'self') ohnehin scheitern. Siehe CLAUDE.md 3.1. */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("../fonts/space-grotesk-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: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("../fonts/space-grotesk-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("../fonts/plex-sans-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: "IBM Plex Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url("../fonts/plex-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------ Grundton */

:root {
  --bg: #fdfbfb;
  --bg-soft: #faf4f5;
  --white: #ffffff;

  /* TrustNodes Akzent: Neonrot. Aufgeteilt, weil reines Neon auf Weiss nur
     3,8:1 erreicht — zu wenig fuer Text und fuer weisse Schrift auf Fuellflaechen.
     --accent-neon leuchtet (Verlaeufe, Rahmen, Schein, dunkler Grund),
     --accent fuellt (weisse Schrift darauf: 4,6:1),
     --accent-text traegt kleine Schrift auf Weiss (6,1:1). */
  --accent-neon: #ff2238;
  --accent: #e8142e;
  --accent-hover: #d10a24;
  --accent-hi: #ff2238;
  --accent-deep: #96001a;
  --accent-text: #c70020;
  --accent-soft: #fff0f2;
  --accent-line: #ffc9d0;

  --heading: #1d1318;
  --text: #2e2429;
  --text-2: #524449;
  --muted: #74656a;
  --dim: #a09398;

  --line: #f2eaec;
  --line-2: #e6d9dd;
  --surface: #ffffff;
  --surface-2: #fdf9fa;
  --surface-3: #f7f0f2;

  --ok: #12925a;

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;
  --radius-xl: 34px;
  --shadow-sm: 0 1px 2px rgba(60, 20, 30, 0.05), 0 4px 14px -6px rgba(60, 20, 30, 0.08);
  --shadow: 0 2px 4px rgba(60, 20, 30, 0.04), 0 24px 60px -28px rgba(60, 20, 30, 0.3);
  --shadow-accent: 0 14px 34px -12px rgba(255, 34, 56, 0.55);

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --sec-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Code", "JetBrains Mono", Menlo,
    Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--heading);
  line-height: 1.15;
  /* Zeilen werden gleichmaessig verteilt, statt die letzte mit einem
     einzelnen Wort stehen zu lassen. Browser ohne Unterstuetzung
     umbrechen wie bisher — kein Nachteil. */
  text-wrap: balance;
}

/* Vorspann und Einleitungen: kein einzelnes Wort auf der letzten Zeile. */
.lede,
.sec-head p,
.doc-hero p,
.cta-box p {
  text-wrap: pretty;
}


p {
  margin: 0;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: clamp(28px, 4vw, 44px) 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* Dunkle Flächen: Kopfzeile, Fußzeile, Hero. */
.on-dark {
  color: rgba(255, 255, 255, 0.84);
}
.on-dark h1,
.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: #fff;
}
/* Knoepfe ausgenommen: .on-dark a waere spezifischer als .btn und wuerde
   deren Weiss durch das gedaempfte rgba(255,255,255,0.84) ersetzen. */
.on-dark a:not(.btn) {
  color: inherit;
}

/* -------------------------------------------------------------------- Raster */

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--mid {
  max-width: calc(1040px + var(--gutter) * 2);
}
.shell--narrow {
  max-width: calc(860px + var(--gutter) * 2);
}

.sec {
  position: relative;
  padding-block: var(--sec-y);
}
.sec--tight {
  padding-block: calc(var(--sec-y) * 0.62);
}
.sec--soft {
  background: var(--bg-soft);
}
.sec--tint {
  background:
    radial-gradient(800px 420px at 92% 0%, rgba(255, 34, 56, 0.12), transparent 70%),
    radial-gradient(900px 500px at 0% 100%, rgba(150, 0, 26, 0.1), transparent 70%),
    linear-gradient(180deg, #fbf2f4 0%, #fdfafb 100%);
}

.cols {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.cols > * {
  min-width: 0;
}
.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 960px) {
  .cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* -------------------------------------------------------------------- Schrift */

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.on-dark .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.display {
  font-size: clamp(2.3rem, 5vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.028em;
}
.h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  letter-spacing: -0.015em;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.6;
}
.on-dark .lede {
  color: rgba(255, 255, 255, 0.8);
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-head .eyebrow + * {
  margin-top: 14px;
}
.sec-head p {
  margin-top: 16px;
}

.link-more {
  display: inline-block;
  font-weight: 600;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.link-more:hover {
  text-decoration-color: currentColor;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------- Knöpfe */

.btn {
  --btn-bg: var(--white);
  --btn-fg: #1d1318;
  --btn-bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), background-color 0.25s, border-color 0.25s,
    box-shadow 0.35s var(--ease);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, var(--shadow-accent);
}
.btn-primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-bd: var(--accent-hover);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 18px 42px -12px rgba(255, 34, 56, 0.8);
}

.btn-outline {
  --btn-bg: transparent;
}
.btn-outline:hover {
  --btn-bd: var(--accent);
}

.btn-ghost-dark,
.on-dark .btn-outline {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.btn-ghost-dark:hover,
.on-dark .btn-outline:hover {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-bd: rgba(255, 255, 255, 0.5);
}

.btn-lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1rem;
}
.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}
/* Nur-Symbol-Knopf, z. B. Anmelden in der Kopfzeile: quadratisch, gleiche Hoehe
   wie die Knoepfe daneben, Beschriftung steckt im aria-label. */
.btn-icon {
  width: 48px;
  padding: 0;
  flex: none;
}
.btn-icon svg {
  width: 20px;
  height: 20px;
}
/* Quadratisch bleiben, wenn der Knopf kleiner gesetzt wird. */
.btn-icon.btn-sm {
  width: 40px;
}
.btn-icon.btn-sm svg {
  width: 18px;
  height: 18px;
}

.btn-block {
  width: 100%;
  white-space: normal;
  text-align: center;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 560px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}

/* --------------------------------------------------------------------- Flächen */

.panel {
  position: relative;
  /* Spalte, damit eine Knopfreihe am Fuss der Tafel sitzt: In einer Reihe
     nebeneinander stehen die Knoepfe dann auf gleicher Hoehe, auch wenn der
     Text darueber unterschiedlich lang ist. */
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s, transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.panel--hover:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.panel h3 {
  margin-bottom: 8px;
}
.panel p {
  color: var(--text-2);
}
.panel > .btn-row {
  margin-top: auto;
  padding-top: 24px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.3;
}
.on-dark .chip {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
}

/* Nummerierter Ablauf — ersetzt die alte Schrittkarte. */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3vw, 30px);
  padding-top: clamp(30px, 3.4vw, 38px);
  box-shadow: var(--shadow-sm);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  top: clamp(18px, 2.4vw, 24px);
  left: clamp(22px, 3vw, 30px);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}
.steps h3 {
  margin: 18px 0 8px;
}
.steps p {
  color: var(--text-2);
}

/* Ruhige Aufzählung statt Kartenraster, wo eine Liste besser trägt. */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.facts > li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
}
.facts > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.on-dark .facts > li {
  color: rgba(255, 255, 255, 0.82);
}
.on-dark .facts > li::before {
  background: rgba(255, 255, 255, 0.6);
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  padding: 14px 18px;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ Kopfzeile */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1d1318;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* In der Kopfzeile ohne den Neon-Schein: In der schmalen, dunklen Leiste wirkt
   er zu laut. Fuellung und Anhebung bleiben, nur das Leuchten faellt weg. */
.site-header .btn-primary {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.site-header .btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 10px 24px -14px rgba(255, 34, 56, 0.7);
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px var(--gutter) 22px;
  background: #1d1318;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav__link {
  padding: 11px 12px;
  border-radius: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}
.mobile-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.mobile-nav__foot {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

@media (max-width: 980px) {
  .nav,
  .hide-md {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .header-actions {
    margin-left: auto;
  }
}
@media (max-width: 520px) {
  .hide-xs {
    display: none;
  }
}

/* ------------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  background: #1d1318;
  padding-block: clamp(64px, 9vw, 120px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 920px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.hero p.lede {
  margin-top: 20px;
  max-width: 54ch;
}
.hero .btn-row {
  margin-top: 32px;
}
.hero .chips {
  margin-top: 30px;
}

  /* Beispielbeleg im Hero — zeigt, was am Ende aus der Kasse kommt. */
  .receipt-card {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: clamp(22px, 3vw, 30px);
    backdrop-filter: blur(6px);
  }
  .receipt-card__head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .receipt-card__mark {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 11px;
  }
  .receipt-card__head strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
  }
  .receipt-card__head span {
    display: block;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.55);
  }
  .receipt-rows {
    margin: 0;
    padding: 0;
  }
  .receipt-rows > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .receipt-rows dt {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
  }
  .receipt-rows dd {
    margin: 0;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
  }
  .receipt-rows .is-total {
    border-bottom-width: 2px;
    border-bottom-color: rgba(255, 255, 255, 0.18);
  }
  .receipt-rows .is-total dt,
  .receipt-rows .is-total dd {
    font-size: 1.05rem;
  }
  .receipt-rows .is-total dt {
    color: rgba(255, 255, 255, 0.8);
  }
  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(120, 220, 170, 0.14);
    border: 1px solid rgba(120, 220, 170, 0.4);
    color: #aef0cd;
    font-size: 0.84rem;
    font-weight: 600;
  }
  .status-pill svg {
    width: 13px;
    height: 13px;
    flex: none;
  }
  .receipt-qr {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }
  .receipt-qr img {
    width: 84px;
    height: 84px;
    flex: none;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
  }
  .receipt-qr p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.55;
  }
  .receipt-qr code {
    display: block;
    margin-top: 5px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.82);
    word-break: break-all;
  }

  /* Zweispaltiger Abschnitt mit Text links und Tafel rechts:
     Beide Spalten oben bündig, der Text traegt die Ueberschrift mit,
     damit die kuerzere Spalte nicht als Loch wirkt. */
  .split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }
  @media (max-width: 920px) {
    .split {
      grid-template-columns: minmax(0, 1fr);
    }
  }
  .split__text .eyebrow + * {
    margin-top: 14px;
  }
  .split__text p {
    margin-top: 18px;
    color: var(--text-2);
  }

/* -------------------------------------------------------------------- Fußzeile */

.site-footer {
  background: #1d1318;
  padding-block: clamp(48px, 6vw, 72px) 0;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 980px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-footer__intro {
  color: rgba(255, 255, 255, 0.68);
  margin-top: 14px;
  max-width: 42ch;
}
.site-footer__bottom {
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ------------------------------------------------------- Dokumentation & Recht */

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 920px) {
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc__nav {
    position: static;
  }
}
.doc__nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  font-size: 0.88rem;
}
.doc__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.doc__nav a {
  display: block;
  padding: 6px 12px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
}
.doc__nav a:hover {
  color: var(--accent-text);
  border-left-color: var(--accent-line);
}

.prose > * + * {
  margin-top: 18px;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  letter-spacing: -0.022em;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.prose h3 {
  font-size: 1.12rem;
  margin-top: clamp(26px, 3vw, 34px);
}
.prose p,
.prose li {
  color: var(--text-2);
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 8px;
}
.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 0.08em 0.36em;
}
.prose pre {
  background: #1d1318;
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: #f0e4e7;
  font-size: 0.84rem;
  line-height: 1.7;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line-2);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: none;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* ------------------------------------------------------------------ Bewegung */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------------- Druck */

@media print {
  .site-header,
  .mobile-nav,
  .site-footer,
  .btn-row,
  .doc__nav,
  .skip-link {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  .hero {
    background: none;
    color: #000;
    padding-block: 0 24pt;
  }
  .hero h1,
  .on-dark h1,
  .on-dark h2,
  .on-dark h3 {
    color: #000;
  }
  .sec {
    padding-block: 18pt;
    break-inside: avoid;
  }
  .panel,
  .steps > li {
    box-shadow: none;
    border-color: #ccc;
    break-inside: avoid;
  }
  .doc {
    grid-template-columns: minmax(0, 1fr);
  }
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #555;
  }
}

/* ======================================================================
   Dokumentationsseiten (integration, inbetriebnahme, changelog)
   Eigene Bausteine, weil Codeblöcke, Hinweiskästen und Endpunktzeilen
   im Marketing-Teil keinen Gegenstand haben. Masse und Farben kommen
   aus denselben Token wie oben.
   ====================================================================== */

.container {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.doc-hero {
  background:
    radial-gradient(760px 380px at 88% -20%, rgba(255, 34, 56, 0.32), transparent 68%),
    #1d1318;
  color: rgba(255, 255, 255, 0.84);
  padding-block: clamp(48px, 6vw, 84px);
}
.doc-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.doc-hero p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 16px;
  max-width: 62ch;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.doc-meta > * {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.doc-hero .kicker {
  color: rgba(255, 255, 255, 0.7);
}
.badge-dark {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  color: #fff;
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 72px);
}
@media (max-width: 980px) {
  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  font-size: 0.88rem;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
@media (max-width: 980px) {
  .doc-toc {
    position: static;
    max-height: none;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
}
.doc-toc ol,
.doc-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  border-left: 1px solid var(--line);
}
.doc-toc a {
  display: block;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.doc-toc a:hover {
  color: var(--accent-text);
  border-left-color: var(--accent-line);
}
.doc-toc a.is-active {
  color: var(--accent-text);
  font-weight: 600;
  border-left-color: var(--accent);
}

.doc-content > section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.doc-content > section + section {
  margin-top: clamp(44px, 5vw, 68px);
  padding-top: clamp(28px, 3.4vw, 40px);
  border-top: 1px solid var(--line);
}
.doc-content h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  letter-spacing: -0.022em;
}
.doc-content h3 {
  font-size: 1.12rem;
  margin-top: clamp(26px, 3vw, 34px);
}
.doc-content p,
.doc-content li {
  color: var(--text-2);
}
.doc-content > section > * + * {
  margin-top: 16px;
}
.doc-content a:not(.btn) {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.doc-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 0.08em 0.36em;
}
.doc-content ul,
.doc-content ol {
  padding-left: 1.3rem;
  display: grid;
  gap: 8px;
}
.doc-content ul.bullets,
.doc-content ul.checklist {
  padding-left: 0;
  list-style: none;
}

.bullets > li {
  position: relative;
  padding-left: 26px;
}
.bullets > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.checklist {
  display: grid;
  gap: 12px;
}
.checklist > li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.checklist strong {
  display: block;
  color: var(--heading);
}
.checklist span:not(.ico) {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}
.ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  margin-top: 1px;
}
.ico svg {
  width: 15px;
  height: 15px;
}
.ico-task {
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* Codeblock mit Kopfleiste und Kopieren-Knopf */
.code {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #2d1f25;
  background: #1d1318;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.copy-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: 999px;
  padding: 4px 13px;
  font: inherit;
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.copy-btn.is-done {
  border-color: rgba(120, 220, 170, 0.5);
  color: #aef0cd;
}
.code pre {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
}
.code pre code {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: #f0e4e7;
  white-space: pre;
}

/* Hinweiskaesten */
.callout {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  padding: 15px 18px;
}
.callout svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
}
.callout p {
  margin: 0;
}
.callout p + p {
  margin-top: 8px;
}
.callout-info {
  border-color: var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
}
.callout-info svg {
  color: var(--muted);
}
.callout-warn {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.callout-warn svg {
  color: var(--accent);
}
.callout-ok {
  border-color: #bfe6d2;
  background: #f1faf5;
}
.callout-ok svg {
  color: var(--ok);
}

/* Endpunktzeile */
.endpoint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--surface);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--text);
}
.method {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.method-get {
  background: #1f6f4a;
}
.method-post {
  background: var(--accent);
}
.auth {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}
.req,
.opt {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.req {
  background: var(--accent-soft);
  color: var(--accent-text);
}
.opt {
  background: var(--surface-3);
  color: var(--muted);
}

/* Beispiel-Reiter */
.tabs .tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tabs .tab-list button {
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--text-2);
  border-radius: 999px;
  padding: 6px 15px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.tabs .tab-list button:hover {
  border-color: var(--accent-line);
  color: var(--accent-text);
}
.tabs .tab-list button[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tabs:not(.is-ready) .tab-list {
  display: none;
}
.tabs:not(.is-ready) > [data-tab-label] {
  margin-top: 12px;
}

.seq {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(16px, 2.4vw, 26px);
}
.seq svg {
  width: 100%;
  height: auto;
}

/* Abschluss-Band auf den Dokuseiten */
.cta-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(44px, 5vw, 72px);
}
.cta-box {
  text-align: center;
  max-width: 68ch;
  margin-inline: auto;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.025em;
}
.cta-box p {
  margin-top: 14px;
  color: var(--text-2);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

/* Altbestand aus der ersten Fassung — gleiche Wirkung im neuen System. */
.btn-light {
  --btn-bg: var(--white);
  --btn-fg: #1d1318;
  --btn-bd: var(--line-2);
}
.on-dark .btn-light,
.doc-hero .btn-light,
.hero .btn-light {
  --btn-bg: #fff;
  --btn-fg: #1d1318;
  --btn-bd: #fff;
}
.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.btn-ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-bd: rgba(255, 255, 255, 0.5);
}

/* ======================================================================
   Abstands-Hilfsklassen.
   Die Content-Security-Policy verbietet style-Attribute (style-src 'self'),
   deshalb stehen auch kleine Abstaende hier und nicht im Markup.
   ====================================================================== */

.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-20 { margin-top: 20px; }
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-30 { margin-top: 30px; }
.mt-36 { margin-top: 36px; }

.text-center { text-align: center; }

.btn-row--center { justify-content: center; }

.lede-center {
  margin: 18px auto 0;
  max-width: 60ch;
}

