/* ═══════════════════════════════════════════════════════════════
   TRH — Agentische KI für Unternehmen
   Statische Umsetzung des Design-Handoffs "TRH Website v2"
   ═══════════════════════════════════════════════════════════════ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---- Tokens ---- */
:root {
  --bg: #04050a;
  --panel: #070b16;

  --heading: #eef2fb;
  --text: #e8ecf4;
  --muted: #9aa2b6;
  --dim: #6f7a92;

  --blue: #5b8cff;
  --blue-3: #2f5bff;
  --blue-soft: #8fb0ff;
  --blue-logo: #4E8CFF;
  --cyan: #3fe0ff;
  --green: #4de29a;

  --border: rgba(255, 255, 255, .08);
  --border-soft: rgba(255, 255, 255, .06);
  --border-strong: rgba(255, 255, 255, .14);

  --grad-text: linear-gradient(90deg, #cfe0ff 0%, #8fb0ff 50%, #3fe0ff 100%);
  --grad-metric: linear-gradient(160deg, #eef3ff, #6f9bff);
  --grad-heading: linear-gradient(160deg, #f4f7ff 30%, #8fb0ff);
  --grad-flow: linear-gradient(90deg, #2f5bff, #3fe0ff);
  --grad-line: linear-gradient(90deg, transparent, rgba(91, 140, 255, .4), transparent);

  --font-body: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "calt" 0, "liga" 0, "ss01", "cv10";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--heading); }
/* Deutsche Komposita ohne Trennstelle („Datenschutzerklärung“) sprengen sonst auf
   320–360px-Displays ihre Zeile und werden am Rand einfach abgeschnitten. */
h1, h2, h3 { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
::selection { background: rgba(91, 140, 255, .35); }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
/* Der Ankerabstand kommt allein aus scroll-padding-top oben — zusätzliches
   scroll-margin würde sich addieren und Sprungziele 110px zu tief absetzen. */

/* ---- Keyframes ---- */
@keyframes trh-twinkle { 0%, 100% { opacity: .1; } 50% { opacity: .85; } }
@keyframes trh-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.12); } }
@keyframes trh-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -240; } }
@keyframes trh-orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes trh-floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes trh-barfill { 0% { width: 8%; } 60% { width: 86%; } 100% { width: 8%; } }
@keyframes trh-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ═══ Gemeinsame Bausteine ═══ */

.btn-primary {
  display: inline-block;
  background: var(--blue-3);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: filter .2s;
}
.btn-primary:hover { filter: brightness(1.2); color: #ffffff; }
.btn-primary--sm { font-size: 14px; padding: 9px 16px; }

.btn-ghost {
  display: inline-block;
  color: var(--heading);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .03);
  transition: border-color .25s;
}
.btn-ghost:hover { border-color: rgba(91, 140, 255, .5); color: var(--heading); }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 16px;
  border-radius: 5px;
  transition: color .2s, background .2s;
}
.btn-quiet:hover { color: var(--heading); background: rgba(255, 255, 255, .04); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .04);
}

.divider { height: 1px; background: var(--grad-line); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.17;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--heading);
}
.section-head p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 16px 0 0; }

.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  padding: 6px 13px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .02);
}
.chip--cyan {
  color: var(--cyan);
  border-color: rgba(63, 224, 255, .35);
  background: rgba(63, 224, 255, .04);
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}
.live-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: trh-pulse 2s ease-in-out infinite;
}

.logo-mark { display: inline-flex; flex-shrink: 0; filter: drop-shadow(0 0 9px rgba(78, 140, 255, .45)); }

/* ═══ Intro Overlay ═══ */
#trh-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity;
}
#trh-intro-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 760px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(77, 125, 255, .16), transparent 68%);
  filter: blur(22px);
  opacity: 0;
  pointer-events: none;
}
.intro-constellation { position: absolute; inset: 0; width: 100%; height: 100%; }
.trh-mark { opacity: 0; }
.intro-center {
  position: relative;
  width: 340px; height: 340px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
}
.intro-center > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.intro-orbit { transform-box: fill-box; transform-origin: center; animation: trh-orbit 26s linear infinite; }
#trh-intro-rect { filter: drop-shadow(0 0 14px rgba(63, 224, 255, .25)); }
#trh-intro-title {
  display: flex; align-items: baseline;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--heading);
  opacity: 0;
  will-change: opacity;
  position: relative;
}
#trh-intro-title .clip { display: inline-flex; overflow: hidden; padding-bottom: 2px; }
#trh-intro-word { display: inline-block; will-change: transform, opacity; }
#trh-intro-sub {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0;
  will-change: opacity, transform;
}

/* ═══ Floating Pill Nav ═══ */
#trh-nav {
  position: fixed;
  top: 18px; left: 0; right: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
#trh-nav nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: rgba(6, 9, 18, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .04);
}
.nav-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); }
.nav-brand span { font-size: 14px; font-weight: 500; letter-spacing: .07em; color: var(--heading); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  padding: 6px 11px;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--heading); background: rgba(255, 255, 255, .05); }

/* ═══ Hero ═══ */
.hero { position: relative; overflow: hidden; }
#starfield { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#starfield span { position: absolute; border-radius: 50%; background: #dfe8ff; }
.hero-glow {
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 920px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(77, 125, 255, .16), transparent 68%);
  filter: blur(22px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 178px 32px 110px;
  text-align: center;
}
.hero h1 {
  font-weight: 500;
  font-size: clamp(44px, 6.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
  color: var(--heading);
}
.hero-lead {
  font-size: 18px;
  line-height: 1.56;
  font-weight: 400;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 46px; }
.hero-chips .chip { animation: trh-floaty 6s ease-in-out infinite; }

/* Dashboard-Mockup */
.dash-wrap { position: relative; max-width: 1140px; margin: 68px auto 0; }
.dash-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 120px;
  background: radial-gradient(ellipse at center, rgba(77, 125, 255, .25), transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.dash {
  position: relative;
  display: grid;
  grid-template-columns: 224px 1fr;
  text-align: left;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .05);
  overflow: hidden;
}
.dash-side {
  padding: 20px 16px;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dash-brand { display: flex; align-items: center; gap: 8px; padding: 0 10px 16px; }
.dash-brand span { font-size: 12.5px; font-weight: 500; letter-spacing: .07em; color: var(--heading); }
.dash-item {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px;
  font-family: inherit;
  color: var(--dim);
  padding: 8px 10px;
  border-radius: 5px;
  border: 0;
  background: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.dash-item .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .18); flex-shrink: 0; }
.dash-item:not(.dash-item--active):hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.dash-item--active { color: var(--heading); background: rgba(91, 140, 255, .1); }
.dash-item--active .dot { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
/* min-width:0 — sonst kann die Grid-Spalte nicht unter ihre Min-Content-Breite
   schrumpfen und der Inhalt wird auf schmalen Displays rechts abgeschnitten. */
.dash-main { padding: 26px 30px; display: flex; flex-direction: column; min-height: 330px; min-width: 0; }

/* Dashboard-Ansichten */
@keyframes trh-view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.dash-view { display: flex; flex-direction: column; gap: 18px; }
.dash-view.view-in { animation: trh-view-in .5s var(--ease); }
.dash-rows { display: flex; flex-direction: column; }
.dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.dash-row:last-child { border-bottom: none; padding-bottom: 0; }
.row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-main .name { font-size: 13px; color: var(--text); }
.row-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proc-status--flow { color: var(--cyan); }
.log {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 14px 16px;
}
.log-line { display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-line .t { color: var(--dim); flex-shrink: 0; }
.log-line .tag { color: var(--blue-soft); flex-shrink: 0; }
.log-line .tag--cyan { color: var(--cyan); }
.log-line .tag--green { color: var(--green); }
.log-line .tag--dim { color: var(--dim); }
.log-line .cursor {
  display: inline-block;
  width: 7px; height: 12px;
  background: var(--blue-soft);
  animation: trh-blink 1.1s steps(1) infinite;
}
.dash-toggle {
  position: relative;
  width: 34px; height: 19px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .25s, border-color .25s;
}
.dash-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .25s var(--ease), background .25s;
}
.dash-toggle.on { background: rgba(47, 91, 255, .55); border-color: rgba(91, 140, 255, .6); }
.dash-toggle.on::after { transform: translateX(15px); background: #ffffff; box-shadow: 0 0 8px rgba(91, 140, 255, .6); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dash-head .title { font-size: 14px; font-weight: 500; color: var(--heading); }
.dash-pipeline { display: flex; align-items: center; gap: 10px; }
.dash-pipeline .chip { font-size: 11px; padding: 5px 11px; white-space: nowrap; }
.dash-pipeline .chip--cyan {
  border-color: rgba(63, 224, 255, .45);
  background: rgba(63, 224, 255, .05);
  box-shadow: inset 0 0 12px rgba(63, 224, 255, .12);
  animation: trh-floaty 5s ease-in-out infinite;
}
.dash-pipeline .link {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(91, 140, 255, .08), rgba(91, 140, 255, .5), rgba(91, 140, 255, .08));
}
.dash-procs { display: flex; flex-direction: column; gap: 12px; }
.proc { display: flex; flex-direction: column; gap: 7px; }
.proc-head { display: flex; justify-content: space-between; align-items: baseline; }
.proc-head .name { font-size: 13px; color: var(--text); }
.proc-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.proc-status--run { color: var(--green); }
.proc-status--wait { color: var(--dim); }
.proc-track { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.proc-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-flow);
  animation: trh-barfill 4.5s var(--ease) infinite;
}
.proc-fill--static { width: 28%; background: rgba(143, 176, 255, .35); animation: none; }
.terminal {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--blue-soft);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border-soft);
  border-radius: 5px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  /* «agent.execute(...)» ist ein Wort ohne Trennstelle und würde die Karte sonst sprengen */
  overflow-wrap: anywhere;
}
.terminal .prompt { color: var(--dim); }
.terminal .cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--blue-soft);
  animation: trh-blink 1.1s steps(1) infinite;
}

/* ═══ Showcase / Agent Graph ═══ */
.showcase-inner { padding-top: 110px; }
.showcase .section-head { margin-bottom: 52px; }
.graph-panel { border-radius: 16px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 0 0 24px rgba(255, 255, 255, .04); padding: 24px 26px; }
.graph-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.graph-head .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.graph-panel svg.graph { width: 100%; height: auto; display: block; }
.trh-node { cursor: pointer; transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease), filter .45s var(--ease); will-change: transform; }
.trh-node:hover { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(91, 140, 255, .45)); }
.trh-node:focus { outline: none; }
.trh-node:focus-visible { outline: 1px solid rgba(91, 140, 255, .6); outline-offset: 3px; border-radius: 50%; }
.planer-orbit { transform-origin: 350px 220px; animation: trh-orbit 24s linear infinite; }
.planer-pulse { transform-origin: center; transform-box: fill-box; animation: trh-pulse 3.2s ease-in-out infinite; }
.ergebnis-dot { transform-origin: center; transform-box: fill-box; animation: trh-pulse 2s ease-in-out infinite; filter: drop-shadow(0 0 6px #4de29a); }
.edge { animation: trh-flow 16s linear infinite; }
.edge--slow { animation-duration: 20s; }
.packet-cyan { filter: drop-shadow(0 0 6px #3fe0ff); }
.packet-green { filter: drop-shadow(0 0 6px #4de29a); }

#trh-node-detail {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  will-change: transform, opacity;
}
.nd-main { flex: 1 1 320px; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.nd-head { display: flex; align-items: center; gap: 12px; }
.nd-name { font-size: 16px; font-weight: 500; color: var(--heading); }
.nd-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 32px;
  padding: 3px 10px;
}
.nd-desc { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.nd-meta { flex: 1 1 280px; min-width: 240px; display: flex; flex-direction: column; gap: 9px; }
.nd-row { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; }
.nd-row .k {
  font-family: var(--font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 10.5px;
  color: var(--dim);
  padding-top: 2px;
}
.nd-row .v { color: var(--text); text-align: right; }

/* ═══ Metriken ═══ */
.metrics-inner { padding-top: 96px; }
.metrics .divider { margin-bottom: 80px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.metric-num {
  font-weight: 500;
  font-size: clamp(38px, 4vw, 52px);
  letter-spacing: -0.4px;
  line-height: 1.1;
  background: var(--grad-metric);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-label { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* ═══ Funktionen ═══ */
.features-inner { padding-top: 120px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 44px 36px;
}
.feature { padding: 8px; }
.feature svg { margin-bottom: 14px; }
.feature h3 { font-weight: 500; font-size: 18px; margin: 0 0 8px; color: var(--heading); }
.feature p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ═══ Workflow ═══ */
.workflow { position: relative; overflow: hidden; }
.workflow-glow {
  position: absolute;
  /* Hoehe folgt dem Abschnitt statt fester 400px ab top:120px. Der Abschnitt hat
     keine untere Polsterung und war damit kuerzer als der Schein — der Verlauf
     lief bei rund 80 % seiner Deckkraft gegen das overflow:hidden und brach
     hart ab, genau unter dem Text.
     Warum 100 % das sauber loest: bei "ellipse" mit Standardgroesse
     farthest-corner betraegt der vertikale Radius das 0,707-fache der Hoehe.
     Der Nullpunkt bei 70 % liegt also 0,495 x Hoehe vom Zentrum, die Kante bei
     0,5 x Hoehe — der Schein ist damit in JEDER Abschnittshoehe ausgelaufen,
     bevor er die Kante erreicht. Mit fester Pixelhoehe gilt das nicht. */
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 100%;
  background: radial-gradient(ellipse at center, rgba(77, 125, 255, .09), transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}
.workflow-inner { position: relative; padding-top: 120px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 24px;
}
.step { text-align: center; }
.step-marker-row { display: flex; justify-content: center; margin-bottom: 20px; }
.step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(91, 140, 255, .5);
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  box-shadow: inset 0 0 18px rgba(91, 140, 255, .15);
}
.step h3 { font-weight: 500; font-size: 18px; margin: 0 0 8px; color: var(--heading); }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; padding: 0 6px; }

/* ═══ Use Cases ═══ */
.usecases-inner { padding-top: 120px; }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}
.usecase { padding: 26px; transition: border-color .25s; }
.usecase:hover { border-color: rgba(91, 140, 255, .4); }
.usecase .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}
.usecase h3 { font-weight: 500; font-size: 17.5px; margin: 12px 0 8px; color: var(--heading); }
.usecase p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ═══ Sicherheit ═══ */
.security-inner {
  padding-top: 120px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 56px;
  align-items: center;
}
.security-copy h2 {
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.17;
  letter-spacing: -0.3px;
  margin: 0 0 18px;
  color: var(--heading);
}
.security-copy p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trust-tile { padding: 18px; }
.trust-tile svg { margin-bottom: 10px; }
.trust-tile h3 { font-weight: 500; font-size: 14px; margin: 0 0 5px; color: var(--heading); }
.trust-tile p { font-size: 13px; line-height: 1.55; color: var(--dim); margin: 0; }

/* ═══ Angebot ═══ */
.offer-inner { padding-top: 120px; }
.offer .section-head { max-width: 660px; }
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
  align-items: stretch;
}
.price-card { display: flex; flex-direction: column; padding: 30px; position: relative; }
.price-card--featured {
  border-color: rgba(91, 140, 255, .55);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, .06), inset 0 -18px 34px rgba(91, 140, 255, .08);
}
.price-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 32px;
  background: #0a1128;
  border: 1px solid rgba(91, 140, 255, .5);
  color: var(--blue-soft);
  white-space: nowrap;
}
.price-card h3 { font-weight: 500; font-size: 18px; margin: 0 0 8px; color: var(--heading); }
.price-card .desc { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 22px; }
.price { font-weight: 500; font-size: 30px; letter-spacing: -0.2px; color: var(--heading); }
.price--grad {
  background: var(--grad-metric);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 6px 0 22px;
}
.price-card .divider { margin-bottom: 22px; }
.price-card--featured .divider { background: linear-gradient(90deg, transparent, rgba(91, 140, 255, .5), transparent); }
.checklist { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; }
.checklist div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.price-card--featured .checklist div { color: var(--text); }
.checklist svg { flex-shrink: 0; margin-top: 3px; }
.price-card .btn-ghost, .price-card .btn-primary {
  display: block;
  text-align: center;
  margin-top: auto;
  font-size: 14.5px;
  padding: 11px 18px;
}

/* ═══ CTA ═══ */
.cta { position: relative; overflow: hidden; }
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 820px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(77, 125, 255, .18), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 32px 130px;
  text-align: center;
}
.cta h2 {
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.4px;
  margin: 0 0 20px;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 36px; }
.cta-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
.cta-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  padding: 12px 15px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--heading);
  outline: none;
  transition: border-color .25s;
}
.cta-form input[type="email"]:focus { border-color: rgba(91, 140, 255, .6); }
.cta-form .btn-primary { padding: 12px 22px; }
.cta-success {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--green);
  padding: 14px 0;
}
.cta-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 22px 0 0;
}

/* ═══ Footer ═══ */
footer { position: relative; }
.footer-top {
  padding: 56px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 44px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .word { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.footer-logo .word .trh { font-weight: 700; font-size: 16px; letter-spacing: .08em; color: #f2f5ff; }
.footer-logo .word .tagline {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #8a92a8;
  white-space: nowrap;
}
.footer-brand p { font-size: 14px; line-height: 1.6; color: var(--dim); margin: 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--heading); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--dim);
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { color: var(--dim); font-size: 13px; }
.footer-bottom a:hover { color: var(--heading); }

/* ═══ Rechtsseiten ═══ */
.legal-inner { max-width: 760px; margin: 0 auto; padding: 150px 32px 100px; }
.legal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.legal-inner h1 {
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.17;
  letter-spacing: -0.3px;
  margin: 14px 0 18px;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.legal-inner h2 { font-weight: 500; font-size: 19px; margin: 36px 0 10px; color: var(--heading); }
.legal-inner p { font-size: 15px; line-height: 1.7; color: var(--muted); margin: 0 0 14px; }
.legal-hint {
  border-radius: 11px;
  border: 1px solid rgba(91, 140, 255, .35);
  background: rgba(91, 140, 255, .06);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--blue-soft);
  margin: 22px 0 8px;
}

/* ═══ Demo-Buchung ═══ */
.demo-hero { position: relative; overflow: hidden; }
.demo-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 178px 32px 64px;
}
.demo-hero-inner h1 {
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin: 0 0 18px;
  color: var(--heading);
  max-width: 740px;
}
.demo-lead { font-size: 17px; line-height: 1.62; color: var(--muted); max-width: 640px; margin: 0; }

.demo-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 120px;
}
.demo-aside { position: sticky; top: 110px; }
.demo-aside-head {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-soft);
}
.agenda .time { font-family: var(--font-mono); font-size: 12.5px; color: var(--cyan); padding-top: 3px; }
.agenda .step-t { font-size: 15.5px; font-weight: 500; color: var(--heading); margin: 0 0 5px; }
.agenda .step-d { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.demo-kontakt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding: 15px 18px;
  border-radius: 11px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .02);
}
.demo-kontakt .head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
/* 44px Zeilenhoehe: die Nummer wird am Handy angetippt, nicht gelesen. */
.demo-kontakt a { font-size: 16px; font-weight: 500; color: var(--blue-soft); line-height: 44px; }
.demo-kontakt a:hover { color: var(--cyan); }
.demo-kontakt .hours { font-size: 12.5px; line-height: 1.55; color: var(--dim); margin-top: 4px; }

.demo-card { overflow: hidden; }
.demo-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .02);
}
.demo-card-head .title { font-size: 15px; font-weight: 500; color: var(--heading); }
.demo-ref {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  line-height: 1.6;
}
.demo-ref b { display: block; font-weight: 400; font-size: 11.5px; color: var(--blue-soft); }

.demo-noscript {
  margin: 22px 28px 0;
  padding: 14px 18px;
  border-radius: 11px;
  border: 1px solid rgba(255, 110, 90, .4);
  background: rgba(255, 110, 90, .06);
  font-size: 14px;
  line-height: 1.6;
  color: #ff9d8f;
}
#demoForm { padding: 6px 28px 28px; }
.fgroup { padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.fgroup:last-of-type { border-bottom: none; }
.fgroup-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 16px;
}
.fgroup-head .no { color: var(--blue); }
.fhint { font-size: 13px; line-height: 1.55; color: var(--dim); margin: -8px 0 14px; }

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field > label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 7px;
}
.field label .opt { font-weight: 400; font-size: 12px; color: var(--dim); }
.req { color: var(--cyan); }

.demo-card input:not([type="checkbox"]):not([type="radio"]),
.demo-card select,
.demo-card textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
  padding: 11px 13px;
  font-size: 14.5px;
  font-family: var(--font-body);
  color: var(--heading);
  outline: none;
  transition: border-color .25s;
}
.demo-card input:focus, .demo-card select:focus, .demo-card textarea:focus { border-color: rgba(91, 140, 255, .6); }
.demo-card ::placeholder { color: var(--dim); text-overflow: ellipsis; }
.demo-card textarea { min-height: 92px; resize: vertical; }
.demo-card select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239aa2b6' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}
.demo-card select:invalid { color: var(--dim); }
.demo-card select option { background: var(--panel); color: var(--text); }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: rgba(255, 110, 90, .6); }
.err-msg { display: none; font-size: 12.5px; color: #ff9d8f; margin-top: 6px; }
.field.invalid .err-msg { display: block; }
.field.invalid .agent-chips { outline: 1px solid rgba(255, 110, 90, .45); outline-offset: 8px; border-radius: 8px; }

.agent-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.agent-chip { position: relative; }
.agent-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.agent-chip label {
  display: inline-block;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background .2s, color .2s;
}
.agent-chip label:hover { border-color: rgba(91, 140, 255, .5); color: var(--text); }
.agent-chip input:checked + label {
  color: var(--cyan);
  border-color: rgba(63, 224, 255, .5);
  background: rgba(63, 224, 255, .06);
  box-shadow: inset 0 0 12px rgba(63, 224, 255, .1);
}
.agent-chip input:focus-visible + label { outline: 1px solid rgba(91, 140, 255, .6); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .03);
  transition: border-color .25s;
}
.consent input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue-3); cursor: pointer; }
.consent label { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.consent.invalid { border-color: rgba(255, 110, 90, .6); }

.demo-submit { margin-top: 22px; }
.btn-block { display: block; width: 100%; text-align: center; padding: 13px 20px; font-size: 15px; }
.btn-block:disabled { opacity: .6; cursor: progress; filter: none; }
.demo-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  margin: 16px 0 0;
}

.demo-panel { display: none; padding: 64px 32px; text-align: center; }
.ptag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  display: inline-block;
  padding: 5px 13px;
  border-radius: 32px;
  border: 1px solid;
}
.ptag--ok { color: var(--green); border-color: rgba(77, 226, 154, .4); background: rgba(77, 226, 154, .06); }
.ptag--bad { color: #ff9d8f; border-color: rgba(255, 110, 90, .4); background: rgba(255, 110, 90, .06); }
.demo-panel h3 { font-size: 24px; font-weight: 500; color: var(--heading); margin: 18px 0 10px; }
.demo-panel p { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 46ch; margin: 0 auto; }
.demo-panel .refline { font-family: var(--font-mono); font-size: 12.5px; color: var(--blue-soft); margin-top: 18px; }

@media (max-width: 920px) {
  .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .demo-aside { position: static; }
  /* iOS Safari zoomt beim Antippen in jedes Feld unter 16px hinein — und wieder heraus
     zoomt es nicht. Ab hier also 16px, damit das Formular am Handy benutzbar bleibt. */
  .demo-card input:not([type="checkbox"]):not([type="radio"]),
  .demo-card select,
  .demo-card textarea { font-size: 16px; }
  .agent-chip label { padding: 11px 16px; }
  /* 17px sind mit dem Daumen kaum zu treffen (WCAG 2.5.8 verlangt 24px) */
  .consent input[type="checkbox"] { width: 24px; height: 24px; margin-top: 0; }
}
@media (max-width: 600px) {
  .demo-hero-inner { padding: 146px 20px 48px; }
  .demo-card-head { padding: 16px 20px; }
  #demoForm { padding: 4px 20px 22px; }
  .frow { grid-template-columns: 1fr; }
}

/* ═══ Responsive ═══ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  /* 17px hohe Footer-Links sind mit dem Daumen kaum zu treffen — gilt auch im Querformat */
  .footer-col { gap: 4px; }
  .footer-col a, .footer-bottom .legal a { padding: 7px 0; }
  /* Der Graph skaliert mit seiner Breite — auf 375px wären die Knotenlabels noch
     ~4,5px groß. Unter 860px lieber seitlich scrollbar in lesbarer Größe halten
     (nebenbei werden die Knoten damit auch wieder tippbar groß). */
  .graph-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
  .graph-scroll svg.graph { min-width: 700px; }
}
@media (max-width: 720px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-pipeline { flex-wrap: wrap; }
  .dash-pipeline .link { min-width: 24px; }
  /* Ohne Sidebar bleibt von den 330px Mindesthöhe nur leere Kartenfläche übrig */
  .dash-main { min-height: 0; }
  /* Umbrechender Terminal-Text: der Cursor gehört ans Textende, nicht an den rechten Rand */
  .terminal { display: block; }
  .terminal .prompt { margin-right: 8px; }
}
@media (max-width: 600px) {
  .wrap, .hero-inner, .cta-inner, .legal-inner { padding-left: 20px; padding-right: 20px; }
  .hero-inner { padding-top: 146px; padding-bottom: 56px; }
  .security-grid { grid-template-columns: 1fr; }

  /* Die 110–150px Abstände sind fürs Desktop-Layout gedacht; am Handy stehen dadurch
     bis zu 250px leere Fläche zwischen zwei Abschnitten. */
  .showcase-inner, .features-inner, .workflow-inner,
  .usecases-inner, .security-inner, .offer-inner { padding-top: 76px; }
  .metrics-inner { padding-top: 64px; }
  .metrics .divider { margin-bottom: 44px; }
  .cta-inner { padding-top: 88px; padding-bottom: 80px; }
  .section-head, .showcase .section-head { margin-bottom: 36px; }
  .features-grid { gap: 30px 36px; }
  .security-inner { gap: 40px; }
  .footer-top { padding: 40px 0 32px; }
  .footer-bottom { gap: 12px; }
  .footer-bottom .legal { gap: 4px 16px; }
}

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

/* ═══════════════════════════════════════════════════════════════
   Barrierefreiheit und Rechtsseiten
   ═══════════════════════════════════════════════════════════════ */

/* ---- Sprungmarke: erst beim Tabben sichtbar ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--blue-3);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 6px;
  transition: top .15s;
}
.skip-link:focus { top: 16px; color: #ffffff; }

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

/* ---- Honeypot: unsichtbar, aber nicht display:none ----
   Manche Bots überspringen display:none-Felder gezielt. Aus dem Viewport
   schieben fängt mehr ab und hält das Feld trotzdem aus dem Fokus heraus. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Sichtbarer Fokus für alles, was bedienbar ist ----
   WCAG 1.4.11 verlangt 3:1 für Bedienelemente. Der alte 1px-Ring in
   rgba(91,140,255,.6) kam auf 2,84:1 — Cyan auf 2px erreicht 11,6:1. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 3px;
}
.trh-node:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 50%; }
.agent-chip input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
.demo-card input:focus, .demo-card select:focus, .demo-card textarea:focus { border-color: var(--cyan); }

/* ---- Ränder von Bedienelementen auf 3:1 anheben ----
   rgba(255,255,255,.12) lag bei 1,24:1 und war als Feldbegrenzung nicht erkennbar. */
.demo-card input:not([type="checkbox"]):not([type="radio"]),
.demo-card select,
.demo-card textarea,
.agent-chip label,
.consent input[type="checkbox"] {
  border-color: rgba(255, 255, 255, .38);
}

/* ═══ Rechtsseiten: Fließtext ═══ */
.legal-inner h2 { scroll-margin-top: 120px; }
.legal-inner h3 { font-weight: 500; font-size: 16px; margin: 24px 0 8px; color: var(--heading); }
.legal-inner ul { margin: 0 0 16px; padding-left: 22px; }
.legal-inner li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 7px;
}
.legal-inner li::marker { color: var(--blue-soft); }
.legal-inner strong { color: var(--text); font-weight: 500; }
.legal-inner em { color: var(--text); font-style: italic; }
.legal-inner code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--blue-soft);
}
.legal-meta { font-size: 14px; color: var(--dim); margin: 0 0 8px; }
.legal-note {
  font-size: 14px;
  line-height: 1.65;
  color: var(--dim);
  border-left: 2px solid rgba(91, 140, 255, .4);
  padding-left: 14px;
  margin: 0 0 14px;
}
.legal-updated {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---- Aufgabenkasten für den Betreiber ---- */
.legal-todo {
  border-radius: 11px;
  border: 1px solid rgba(255, 178, 66, .38);
  background: rgba(255, 178, 66, .07);
  padding: 16px 20px 4px;
  margin: 24px 0 12px;
}
.legal-todo p, .legal-todo li { color: #ffd9a3; font-size: 14px; line-height: 1.65; }
.legal-todo strong, .legal-todo em { color: #ffe9cc; }
.legal-todo ul { margin-bottom: 12px; }
.legal-todo li::marker { color: rgba(255, 178, 66, .7); }

/* ---- Tabellen ---- */
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 0 18px; }
.legal-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-bottom: 10px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.legal-table th { color: var(--heading); font-weight: 500; background: rgba(255, 255, 255, .03); }
.legal-table td { color: var(--muted); }

@media (max-width: 600px) {
  .legal-inner { padding-top: 130px; padding-bottom: 72px; }
  .legal-table { min-width: 420px; }
}

/* ---- Bildunterschrift der Produktdarstellung ---- */
.mock-note {
  margin: 14px auto 0;
  max-width: 620px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
}
