/* BreakMySystem.ai Surface — Design-System (ISSUE-0063, ADR-0041).
   Einzige Stylesheet-Datei der Surface. Alle Zustandsfarben laufen ueber
   Klassen (CSP verbietet style=-Attribute); Tokens aus dem Design-Handoff
   (docs/issues/ISSUE-0063-surface-web-ui/design/README.md, normativ). */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 — s. ../fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  --paper: #fcfcfb;
  --app-bg: #f7f8f9;
  --surface: #ffffff;
  --surface-muted: #fbfbfa;
  --line: #e7e8ea;
  --line-soft: #eff0f2;
  --line-softer: #f1f2f4;
  --line-input: #d9dbde;
  --ink: #16181d;
  --ink-2: #3a3f47;
  --ink-2b: #565b64;
  --ink-3: #8a9099;
  --ink-3b: #9aa0a6;
  --ink-faint: #b0b4ba;
  --ink-fainter: #c9ccd1;

  --dark-bg: #16181d;
  --dark-panel: #22252c;
  --dark-line: #2a2e36;
  --dark-line-2: #3a3e46;
  --dark-text: #c9cdd4;
  --dark-text-2: #b7bcc4;
  --dark-muted: #8a9099;

  --amber: #f5a623;
  --amber-deep: #e0930c;
  --amber-ink: #1a1205;
  --amber-text: #b36b00;
  --amber-text-deep: #8a5a00;
  --amber-text-soft: #c08400;
  --amber-tint: #fef9ef;
  --amber-tint-2: #fbe6bf;
  --amber-tint-3: #fdf3e1;
  --amber-border: #f0d8a6;

  --red: #e5484d;
  --red-bg: #fcedec;
  --red-bd: #f3d2d2;
  --green: #2e9e5b;
  --green-deep: #227a46;
  --green-bg: #eaf6ef;
  --green-bg-soft: #f6fbf8;
  --green-bd: #cfe6da;
  --blue: #3b6fe0;
  --blue-deep: #2f5bc0;
  --blue-bg: #f7faff;
  --blue-chip: #eaf0fd;
  --blue-bd: #d3def5;
  --gray: #6b7280;
  --gray-chip: #f1f2f4;
  --gray-bd: #dfe1e4;
  --gray-dot: #9aa0a6;
  --seg-empty: #ecedef;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --radius-card: 14px;
  --radius-card-lg: 16px;
  --radius-btn: 10px;
  --radius-chip: 7px;
  --shadow-card: 0 1px 2px rgba(16, 18, 29, 0.04);
  --shadow-float: 0 24px 60px -30px rgba(16, 18, 29, 0.35);
}

/* ---------- Reset & Basis ---------- */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--app-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Landing-Wrapper: Marketing-Seiten liegen auf Papier-Ton (die App behaelt
   den App-Hintergrund des body). */
.landing-page {
  background: var(--paper);
  min-height: 100vh;
}

a {
  color: var(--amber-text);
  text-decoration: none;
}

a:hover {
  color: var(--amber-text-deep);
}

::selection {
  background: var(--amber-tint-2);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
}

p {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
}

.muted {
  color: var(--ink-3);
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.divider {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 18px 0;
}

/* ---------- Container ---------- */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.wrap--narrow {
  max-width: 940px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--amber);
  border-color: var(--amber-deep);
  color: var(--amber-ink);
}

.btn--primary:hover {
  background: var(--amber-deep);
  color: var(--amber-ink);
}

.btn--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn--dark:hover {
  background: var(--dark-panel);
  color: #ffffff;
}

.btn--outline {
  background: var(--surface);
  border-color: var(--line-input);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-2b);
}

.btn--ghost:hover {
  color: var(--ink);
}

.btn--danger {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.btn--sm {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 8px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

/* ---------- Karten & Panels ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.card--dark {
  background: var(--dark-bg);
  border-color: var(--dark-line);
  color: var(--dark-text);
}

.card--dark h2,
.card--dark h3 {
  color: #ffffff;
}

.card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

.panel-muted {
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 14px 16px;
}

/* ---------- Chips & Badges ---------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-chip);
  border: 1px solid var(--gray-bd);
  background: var(--gray-chip);
  color: var(--ink-2b);
  font-size: 12px;
  font-weight: 600;
}

.chip--mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

.chip--soon {
  border-style: dashed;
  border-color: var(--amber-border);
  background: var(--amber-tint);
  color: var(--amber-text);
  font-size: 11px;
}

/* Gate-Badge: vier Zustaende aus gate_topline (BLOCKED / NEEDS_DECISION /
   ACCEPTABLE / "" = neutral). */

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gate-badge--sm {
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 6px;
}

.gate--blocked {
  color: var(--red);
  background: var(--red-bg);
  border-color: var(--red-bd);
}

.gate--needs-decision {
  color: var(--amber-text);
  background: var(--amber-tint-3);
  border-color: var(--amber-border);
}

.gate--acceptable {
  color: var(--green-deep);
  background: var(--green-bg);
  border-color: var(--green-bd);
}

.gate--none {
  color: var(--gray);
  background: var(--gray-chip);
  border-color: var(--gray-bd);
}

/* Risiko-/Level-Farben (endliche Menge, ersetzt die JS-Farb-Maps des
   Prototyps). */

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gray-dot);
}

.dot--red {
  background: var(--red);
}

.dot--amber {
  background: var(--amber);
}

.dot--green {
  background: var(--green);
}

.dot--blue {
  background: var(--blue);
}

.dot--gray {
  background: var(--ink-fainter);
}

.lvl-0 {
  color: var(--ink-3b);
}

.lvl-1 {
  color: var(--green);
}

.lvl-2 {
  color: var(--blue);
}

.lvl-3 {
  color: #e08600;
}

.lvl-4 {
  color: var(--red);
}

/* ---------- App-Shell (Sidebar + Main) ---------- */

.app {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--dark-bg);
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px 14px;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 16px;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.sidebar__brand:hover {
  color: #ffffff;
}

.sidebar__brand .brand-ai {
  color: var(--amber);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.nav-group-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-muted);
  padding: 14px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-left: 3px solid transparent;
  border-radius: 0 8px 8px 0;
  color: var(--dark-text);
  font-size: 14px;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--dark-panel);
  color: #ffffff;
}

.nav-item--active {
  background: var(--dark-panel);
  border-left-color: var(--amber);
  color: #ffffff;
}

.nav-item--active .nav-item__icon {
  color: var(--amber);
}

.nav-item--disabled,
.nav-item--disabled:hover {
  background: transparent;
  color: var(--dark-muted);
  cursor: default;
}

.nav-item__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.sidebar__footer {
  border-top: 1px solid var(--dark-line);
  margin-top: 10px;
  padding-top: 12px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
}

.user-card__avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.user-card__meta {
  min-width: 0;
  flex: 1;
}

.user-card__email {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-card__role {
  color: var(--dark-muted);
  font-size: 11px;
}

.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--dark-muted);
  cursor: pointer;
}

.iconbtn:hover {
  background: var(--dark-panel);
  color: #ffffff;
}

.main {
  min-width: 0;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 30px;
  background: rgba(247, 248, 249, 0.85);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.topbar__crumb {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content {
  padding: 24px 30px;
  display: grid;
  gap: 18px;
}

/* ---------- KPI (Dashboard B: dunkler Streifen) ---------- */

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark-bg);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
}

.kpi-cell {
  padding: 18px 22px;
  border-right: 1px solid var(--dark-line);
}

.kpi-cell:last-child {
  border-right: 0;
}

.kpi-cell__label {
  color: var(--dark-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kpi-cell__value {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
}

.kpi-cell__value--red {
  color: var(--red);
}

.kpi-cell__value--muted {
  color: var(--dark-muted);
}

.kpi-cell__hint {
  color: var(--dark-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ---------- Dashboard-Spalten & Gate-Queue ---------- */

.dash-cols {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: start;
}

.queue {
  display: grid;
  gap: 10px;
}

.queue-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink);
  box-shadow: var(--shadow-card);
}

.queue-card:hover {
  border-color: var(--ink-fainter);
  color: var(--ink);
}

.queue-card--blocked {
  border-left-color: var(--red);
}

.queue-card--needs-decision {
  border-left-color: var(--amber);
}

.queue-card--acceptable {
  border-left-color: var(--green);
}

.queue-card--none {
  border-left-color: var(--gray-dot);
}

.queue-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
}

.queue-card__title {
  font-weight: 600;
  margin-top: 3px;
}

.queue-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ---------- Platzhalter (Ausblick-Features, „folgt") ---------- */

.placeholder-tile {
  border: 1px dashed var(--line-input);
  border-radius: var(--radius-card);
  background: var(--surface-muted);
  padding: 18px;
  color: var(--ink-3);
}

.placeholder-tile__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-2b);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
}

.placeholder-tile p {
  margin-top: 6px;
  font-size: 13px;
}

/* ---------- Empty-State ---------- */

.empty-state {
  text-align: center;
  padding: 42px 20px;
  color: var(--ink-3);
}

.empty-state__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
}

.empty-state p {
  margin: 6px 0 14px;
}

/* ---------- Tabellen & Listen ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--line-soft);
  padding: 9px 12px;
}

.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-softer);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.row-link {
  color: var(--ink);
  font-weight: 600;
}

.row-link:hover {
  color: var(--amber-text);
}

.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* ---------- Formulare ---------- */

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-input);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
}

.input::placeholder {
  color: var(--ink-faint);
}

.input:focus {
  outline: none;
  border-color: var(--amber-deep);
  box-shadow: 0 0 0 3px var(--amber-tint-2);
}

textarea.input {
  min-height: 140px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 13px;
}

.form-hint {
  font-size: 12.5px;
  color: var(--ink-3);
}

.error-callout {
  border: 1px solid var(--red-bd);
  background: var(--red-bg);
  color: var(--red);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.success-callout {
  border: 1px solid var(--green-bd);
  background: var(--green-bg-soft);
  color: var(--green-deep);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

.warn-callout {
  border: 1px solid var(--amber-border);
  background: var(--amber-tint);
  color: var(--amber-text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 14px;
}

/* ---------- Card-Layout (sessionlose Token-Seiten) ---------- */

.card-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background: var(--app-bg);
}

.card-page__card {
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.card-page__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.card-page__brand .brand-ai {
  color: var(--amber-text);
}

/* ---------- Login (Split-Layout) ---------- */

.login-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

.brand-panel {
  background: var(--dark-bg);
  color: var(--dark-text-2);
  padding: 34px 40px;
  display: flex;
  flex-direction: column;
}

.brand-panel__gate-line {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--amber);
  margin-top: 60px;
}

.brand-panel h2 {
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
}

.brand-panel__checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}

.brand-panel__checks .check {
  color: var(--green);
  margin-right: 8px;
}

.brand-panel__footer {
  margin-top: auto;
  color: var(--dark-muted);
  font-size: 12.5px;
}

.login-panel {
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 32px;
}

.login-panel__inner {
  width: 100%;
  max-width: 380px;
}

.login-panel h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.login-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Landing ---------- */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(252, 252, 251, 0.85);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid #ecedef;
}

.landing-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.landing-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.landing-nav__brand:hover {
  color: var(--ink);
}

.brand-sub {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.landing-nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0 56px;
}

.hero h1 {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 18px 0 16px;
}

.hero__sub {
  font-size: 18px;
  color: #4a5058;
  max-width: 46ch;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--amber-border);
  border-radius: 999px;
  background: var(--amber-tint);
  color: var(--amber-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow-pill .dot--amber {
  animation: bmsPulse 2s infinite;
}

.trust-line {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-2b);
}

.trust-line .check {
  color: var(--green);
  margin-right: 6px;
}

/* Gate-Terminal-Demo-Karte (statisches Beispiel) */

.terminal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: bmsUp 0.5s ease-out;
}

.terminal-card__head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-muted);
}

.terminal-card__head .cmd {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.terminal-card__body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.finding-teaser {
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--red);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.finding-teaser--decision {
  border-left-color: var(--blue);
}

.count-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.example-tag {
  font-size: 11px;
  color: var(--ink-3b);
  font-family: var(--font-mono);
}

/* Landing-Sektionen */

.section {
  padding: 52px 0;
  border-top: 1px solid var(--line-soft);
}

.section--dark {
  background: var(--dark-bg);
  color: var(--dark-text-2);
  border-top: 0;
}

.section--dark h2 {
  color: #ffffff;
}

.section__head {
  max-width: 62ch;
  margin-bottom: 26px;
}

.section__head h2 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.section__head p {
  color: var(--ink-2b);
  margin-top: 8px;
}

.section--dark .section__head p {
  color: var(--dark-text-2);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pipeline-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.pipeline-step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3b);
}

.pipeline-step__name {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 4px;
}

.pipeline-step--future {
  border-style: dashed;
  color: var(--ink-3);
  background: var(--surface-muted);
}

.pipeline-step--future .pipeline-step__name {
  color: var(--ink-3);
}

.mono-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-input);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2b);
  margin-top: 18px;
}

.dim-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.dim-card--amber {
  background: var(--amber-tint);
  border-color: var(--amber-border);
}

.dim-card__name {
  font-family: var(--font-display);
  font-weight: 600;
}

.dim-card p {
  font-size: 13.5px;
  color: var(--ink-2b);
  margin-top: 6px;
}

.dim-card--amber p {
  color: var(--amber-text);
}

/* LLM-Zusatzzeile der Preis-Karten (ISSUE-0147, ADR-0041: klassenbasiert).
   Spezifität bewusst über .dim-card p (0,1,1) gehoben. */
.dim-card p.dim-card__llm {
  color: var(--ink-2);
  font-weight: 600;
}

.dim-card p.dim-card__llm + p.dim-card__llm {
  font-weight: 400;
  color: var(--ink-2b);
}

.moat-panel {
  background: var(--dark-panel);
  border: 1px solid var(--dark-line-2);
  border-radius: var(--radius-card-lg);
  padding: 20px;
}

.verdict-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.verdict-card__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
}

.verdict-card p {
  font-size: 13px;
  color: var(--ink-2b);
  margin-top: 6px;
}

.cta-band {
  margin: 52px 0;
  background: var(--amber-tint);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-card-lg);
  padding: 34px;
  text-align: center;
}

.cta-band h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
}

.cta-band p {
  color: var(--amber-text);
  margin: 8px 0 18px;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 34px;
  color: var(--ink-3b);
  font-size: 12.5px;
}

.site-footer__links {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

/* App-Shell-Nachschaerfung (S2-Kaltreview): .site-footer erbt ausserhalb von
   .content kein horizontales Padding -- ohne diese Regel klebt der Footer
   30px versetzt am linken Rand von .main. */
.main > .site-footer {
  padding-left: 30px;
  padding-right: 30px;
}

/* Impressum-Nachschaerfung (S4-Kaltreview): die mehrzeilige Anschrift traegt
   echte \n-Umbrueche -- ohne pre-line kollabiert HTML sie zu einer Zeile.
   Bewusst eng auf die Legal-Definitionsliste gescoped statt global auf
   .report-body (nh3-Report-Inhalte bleiben unberuehrt). */
.legal-disclosure dd {
  white-space: pre-line;
}

/* ---------- Report-Detail ---------- */

.gate-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.gate-banner__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.gate-banner h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gate-banner__summary {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2b);
}

/* Wrapper um das nh3-sanitisierte C7-Fragment — Styling ausschliesslich von
   aussen; die Renderer-Allowlist bleibt unangetastet. */

.report-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px 30px;
  overflow-x: auto;
}

.report-body h1,
.report-body h2,
.report-body h3,
.report-body h4,
.report-body h5,
.report-body h6 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin: 22px 0 8px;
}

.report-body h1:first-child,
.report-body h2:first-child {
  margin-top: 0;
}

.report-body h1 {
  font-size: 24px;
}

.report-body h2 {
  font-size: 19px;
}

.report-body h3 {
  font-size: 16px;
}

.report-body p {
  margin: 8px 0;
  color: var(--ink-2);
}

.report-body ul,
.report-body ol {
  margin: 8px 0;
  padding-left: 24px;
  color: var(--ink-2);
}

.report-body li {
  margin: 3px 0;
}

.report-body blockquote {
  margin: 12px 0;
  padding: 8px 14px;
  border-left: 3px solid var(--amber);
  background: var(--amber-tint);
  color: var(--amber-text);
  border-radius: 0 8px 8px 0;
}

.report-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface-muted);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 1px 5px;
}

.report-body pre {
  background: var(--dark-bg);
  color: var(--dark-text);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
}

.report-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.report-body hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 18px 0;
}

/* ---------- Keyframes ---------- */

@keyframes bmsUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bmsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(245, 166, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0);
  }
}
