/* Digitaler Reifegrad-Check — Seitengerüst + Mehrschritt-Flow (T2)
   Nutzt die globalen Tokens aus style.css (Dark-Theme, Blau-Akzente,
   Space Grotesk / Manrope / JetBrains Mono). Mobile-first, Reduced-Motion-fest,
   Reflow bei 320px ohne Horizontal-Scroll. */

.rg-wrap { max-width: 760px; margin-inline: auto; }

/* JS-/No-JS-Sichtbarkeit */
.js-only { display: none; }
.js .js-only { display: block; }
.nojs-note { display: block; }
.js .nojs-note { display: none; }

/* Screenreader-only (eigene Utility, da global keine vorhanden) */
.rg-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- INTRO ---------- */
.rg-intro {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}
.rg-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ice);
  margin: 6px 0 12px;
}
.rg-intro-lead { color: var(--muted); line-height: 1.65; margin: 0 0 20px; max-width: 56ch; }

.rg-expect {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
}
.rg-expect li {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-2);
  border: 1px solid var(--line-d-strong);
  border-radius: 999px;
  padding: 7px 13px;
}

/* Accordion „Was wir messen" */
.rg-accordion {
  border-top: 1px solid var(--line-d);
  border-bottom: 1px solid var(--line-d);
  margin: 0 0 24px;
}
.rg-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 16px 2px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ice);
}
.rg-accordion summary::-webkit-details-marker { display: none; }
.rg-acc-icon { position: relative; width: 14px; height: 14px; flex: none; }
.rg-acc-icon::before, .rg-acc-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; border-radius: 2px;
  background: var(--blue-2); transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.rg-acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.rg-accordion[open] .rg-acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.rg-acc-body { padding: 0 2px 18px; color: var(--muted); line-height: 1.65; }
.rg-modlist { margin: 10px 0 0; padding-left: 1.2em; display: grid; gap: 7px; }
.rg-modlist li { font-size: .94rem; }
.rg-modlist b { color: var(--ice); font-weight: 600; }

.rg-intro-actions { margin-top: 6px; }

/* ---------- FORTSCHRITT ---------- */
.rg-progress { margin-bottom: 20px; }
.rg-progress-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 0 0 10px;
}
.rg-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--line-d);
  overflow: hidden;
}
.rg-meter span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--blue-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

/* ---------- FRAGE-SCHRITT ---------- */
.rg-q {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(20px, 3.4vw, 30px);
  margin: 0;
  /* UA-Default fieldset{min-inline-size:min-content} sonst -> Overflow bei langen
     Optionswoertern (z. B. „Termin-/Auftragsabwicklung") < 360px. Neutralisieren. */
  min-inline-size: 0;
  min-width: 0;
}
.rg-qtext, .rg-qnum { overflow-wrap: anywhere; }
.rg-q:focus { outline: none; }
.rg-q:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.rg-q legend { padding: 0; width: 100%; }
.rg-qnum {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin-bottom: 10px;
}
.rg-qtext {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ice);
  margin-bottom: 20px;
}

.rg-opts { display: grid; gap: 10px; }
.rg-opt {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--line-d);
  border-radius: 14px;
  cursor: pointer;
  color: var(--ice);
  font-size: .98rem;
  line-height: 1.4;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.rg-opt:hover { border-color: var(--blue-2); }
.rg-opt > span { min-width: 0; overflow-wrap: anywhere; }
.rg-opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
  border: 2px solid var(--slate);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .2s;
}
.rg-opt input::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--blue-2);
  transform: scale(0);
  transition: transform .18s var(--ease);
}
.rg-opt input:checked { border-color: var(--blue-2); }
.rg-opt input:checked::after { transform: scale(1); }
.rg-opt input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.rg-opt:has(input:checked) {
  border-color: var(--blue-2);
  background: color-mix(in srgb, var(--blue-2) 12%, transparent);
}
/* „Weiß nicht" optisch dezenter, klar als Sonderoption */
.rg-opt-wn { border-style: dashed; color: var(--muted); }
.rg-opt-wn:has(input:checked) { color: var(--ice); }

/* ---------- NAVIGATION ---------- */
.rg-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.rg-nav .btn-primary { margin-left: auto; }
/* display:flex oben wuerde [hidden] ueberstimmen -> explizit ausblenden (T4-Uebergang). */
.rg-nav[hidden] { display: none; }
.rg-hint { color: var(--blue-2); font-size: .9rem; margin: 14px 0 0; min-height: 1em; }

/* ---------- FORTSCHRITT ALS SPANNE (T4) ---------- */
.rg-step-count { display: block; }
.rg-step-span {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--slate-text);
}

/* ---------- MODUL-ÜBERGANG (T4) ---------- */
.rg-uebergang {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(20px, 3.4vw, 30px);
}
.rg-uebergang:focus { outline: none; }
.rg-uebergang:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.rg-ueb-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  color: var(--ice);
  margin: 6px 0 12px;
}
.rg-ueb-lead { color: var(--muted); line-height: 1.6; margin: 0 0 20px; max-width: 60ch; }
.rg-ueb-lead b { color: var(--ice); font-weight: 600; }

.rg-deep { border: 0; padding: 0; margin: 0 0 4px; }
.rg-deep-legend {
  padding: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ice);
  margin-bottom: 12px;
}
.rg-deep-hint-inline {
  display: inline;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-text);
  font-weight: 400;
}
.rg-deep-opt {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--line-d);
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.rg-deep-opt:hover { border-color: var(--blue-2); }
.rg-deep-opt:has(input:checked) {
  border-color: var(--blue-2);
  background: color-mix(in srgb, var(--blue-2) 12%, transparent);
}
.rg-deep-opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  flex: none;
  margin: 2px 0 0;
  border: 2px solid var(--slate);
  border-radius: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.rg-deep-opt input::after {
  content: "";
  width: 11px;
  height: 6px;
  border: 2px solid var(--ink, #06101f);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transition: transform .18s var(--ease);
  margin-top: -2px;
}
.rg-deep-opt input:checked { border-color: var(--blue-2); background: var(--blue-2); }
.rg-deep-opt input:checked::after { transform: rotate(-45deg) scale(1); }
.rg-deep-opt input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.rg-deep-text { display: block; }
.rg-deep-text b { display: block; color: var(--ice); font-weight: 600; font-size: 1rem; line-height: 1.35; }
.rg-deep-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-2);
  margin: 4px 0 5px;
}
.rg-deep-why { display: block; color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Gleichwertige Buttons „Überspringen" / „Ja, vertiefen" — kein Dark Pattern:
   beide identisch gewichtet, keiner als leuchtender Primär-CTA. */
.rg-ueb-actions { display: flex; gap: 12px; margin-top: 16px; }
.btn-choice {
  flex: 1 1 0;
  justify-content: center;
  background: rgba(140, 185, 245, .05);
  color: var(--ice);
  border: 1px solid var(--line-d-strong);
}
.btn-choice:hover { border-color: var(--blue); background: rgba(30, 155, 240, .1); }
.rg-ueb-back {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--slate-text);
  text-align: center;
}
.rg-ueb-back:hover { color: var(--blue-2); }
.rg-ueb-back:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- ERGEBNIS-PLATZHALTER (T3 folgt) ---------- */
.rg-result { margin-top: 26px; }
.rg-result-card {
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-card);
}
.rg-result-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ice);
  margin: 6px 0 12px;
}
.rg-result-card p { color: var(--muted); line-height: 1.65; }
.rg-result-card .rg-reset { margin-top: 18px; }
.rg-placeholder-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--slate-text);
}

.rg-privacy {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
  line-height: 1.6;
  color: var(--slate-text);
}

/* ---------- RESPONSIV / SCHMAL ---------- */
@media (max-width: 420px) {
  .rg-nav { flex-direction: column-reverse; align-items: stretch; }
  .rg-nav .btn { width: 100%; justify-content: center; margin-left: 0; }
  .rg-cta { flex-direction: column; align-items: stretch; }
  .rg-cta .btn { width: 100%; justify-content: center; }
  .rg-ueb-actions { flex-direction: column; }
  .rg-ueb-actions .btn { width: 100%; }
}

/* ---------- ERGEBNIS-SCREEN (T3) ---------- */
.rg-result-card { animation: rg-rise .4s var(--ease) both; }
@keyframes rg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.rg-result-h {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: var(--ice);
  margin: 6px 0 14px;
  outline: none;
}
.rg-result-h:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 6px; }

.rg-scorehead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.rg-score { display: flex; align-items: baseline; gap: 9px; margin: 0; }
.rg-score b {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--blue-2);
}
.rg-score span { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.rg-konf { font-size: .92rem; color: var(--muted); margin: 0; }
.rg-konf b { color: var(--ice); font-weight: 600; }

.rg-meter { height: 8px; border-radius: 999px; background: var(--line-d); overflow: hidden; margin-bottom: 14px; }
.rg-meter span {
  display: block; height: 100%; width: 100%; border-radius: 999px;
  background: var(--blue-2); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.rg-version {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .04em;
  color: var(--slate-text); margin: 0 0 26px;
}

.rg-sub {
  font-family: var(--font-display);
  font-size: 1.06rem; font-weight: 600; color: var(--ice);
  margin: 26px 0 12px;
}

/* Stufen-Akzent über Score/Meter (nie NUR Farbe — Stufenname steht als Text) */
.rg-tier-grundlagen .rg-score b, .rg-tier-grundlagen .rg-meter span,
.rg-tier-grundlagen .rg-chart-bar { color: var(--muted); fill: var(--muted); background: var(--muted); }
.rg-tier-vorreiter .rg-score b { color: var(--blue); }
.rg-tier-vorreiter .rg-meter span { background: var(--blue); }

/* Diagramm */
.rg-chart { width: 100%; height: auto; display: block; margin-bottom: 16px; }
.rg-chart-label { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.rg-chart-track { fill: var(--line-d); }
.rg-chart-bar { fill: var(--blue-2); }
.rg-chart-val { fill: var(--ice); font-family: var(--font-mono); font-size: 11px; }
.rg-chart-na { fill: var(--slate); }

/* Tabelle (gleichwertige Alternative) */
.rg-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-bottom: 8px; font-size: .9rem; }
.rg-table caption { text-align: left; color: var(--slate-text); font-size: .78rem; margin-bottom: 8px; }
.rg-table th, .rg-table td { text-align: left; padding: 9px 7px; border-bottom: 1px solid var(--line-d); }
.rg-table tbody th, .rg-table td { overflow-wrap: anywhere; }
.rg-table th:nth-child(1), .rg-table td:nth-child(1) { width: 50%; }
.rg-table th:nth-child(2), .rg-table td:nth-child(2) { width: 28%; }
.rg-table th:nth-child(3), .rg-table td:nth-child(3) { width: 22%; }
.rg-table thead th {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .02em;
  text-transform: uppercase; color: var(--blue-2); font-weight: 600; white-space: nowrap;
}
.rg-table tbody th { font-weight: 600; color: var(--ice); }
.rg-table tbody td { color: var(--muted); }

/* Modul 2 — Ist/Soll-Ziellinie (Best-Practice 80) + Lücke-Spalte.
   Progressive Enhancement: nur aktiv, wenn ReifegradIstSoll geladen ist. */
.rg-chart-soll { stroke: var(--ice); stroke-width: 2; stroke-dasharray: 4 3; opacity: .8; }
.rg-chart-legend {
  display: flex; align-items: center; gap: 8px;
  margin: -6px 0 14px; font-size: .8rem; color: var(--muted); line-height: 1.5;
}
.rg-chart-legend-mark {
  flex: 0 0 auto; width: 18px; height: 0;
  border-top: 2px dashed var(--ice); opacity: .8;
}
/* 4-Spalten-Variante: Breiten neu (nach Basisregeln → gewinnt bei gleicher Spezifität).
   Header dürfen umbrechen, damit „Lücke zu 80" bei 320px nicht überläuft. */
.rg-table--soll th:nth-child(1), .rg-table--soll td:nth-child(1) { width: 36%; }
.rg-table--soll th:nth-child(2), .rg-table--soll td:nth-child(2) { width: 24%; }
.rg-table--soll th:nth-child(3), .rg-table--soll td:nth-child(3) { width: 18%; }
.rg-table--soll th:nth-child(4), .rg-table--soll td:nth-child(4) { width: 22%; }
.rg-table--soll thead th { white-space: normal; }

/* Stärken / Handlungsfelder */
.rg-list { margin: 0; padding-left: 1.15em; display: grid; gap: 9px; }
.rg-list li { color: var(--muted); line-height: 1.55; }
.rg-list b { color: var(--ice); font-weight: 600; }
.rg-empty { color: var(--muted); margin: 0; }

/* Maßnahmen-Karten */
.rg-measures { display: grid; gap: 14px; }
.rg-measure {
  border: 1px solid var(--line-d-strong);
  border-radius: 14px;
  background: var(--panel-2);
  padding: 18px 20px;
}
.rg-measure-field {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-2); margin: 0 0 6px;
}
.rg-measure h4 {
  font-family: var(--font-display); font-size: 1.06rem; font-weight: 600;
  color: var(--ice); margin: 0 0 10px;
}
.rg-measure-why { color: var(--muted); line-height: 1.55; margin: 0 0 8px; font-size: .94rem; }
.rg-measure-why b { color: var(--ice); font-weight: 600; }
.rg-measure-meta {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px;
  padding: 0; margin: 0 0 8px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted);
}
.rg-measure-meta b { color: var(--blue-2); }
.rg-measure-link {
  display: inline-block; margin-top: 4px; color: var(--blue-2);
  font-weight: 600; font-size: .92rem; text-decoration: none;
}
.rg-measure-link:hover { text-decoration: underline; }
.rg-nomeasure { color: var(--muted); line-height: 1.6; margin: 0; }

.rg-teil-note { color: var(--muted); line-height: 1.6; margin: 0 0 14px; max-width: 60ch; }

.rg-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 0; }
.rg-disclaimer { margin-top: 18px; font-size: .8rem; color: var(--slate-text); line-height: 1.6; }

/* ---------- BEDARFSSEGMENTE (T5, §10) ---------- */
.rg-segments {
  border: 1px solid var(--line-d-strong);
  border-left: 3px solid var(--blue-2);
  border-radius: 14px;
  background: var(--panel-2);
  padding: 16px 18px;
}
.rg-seg-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--ice);
  font-size: 1.04rem;
  line-height: 1.35;
}
.rg-seg-primary b { color: var(--ice); font-weight: 700; }
.rg-seg-badge {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-2);
  border: 1px solid var(--line-d-strong);
  border-radius: 999px;
  padding: 4px 9px;
}
.rg-seg-why { color: var(--muted); line-height: 1.55; margin: 0; font-size: .94rem; }
.rg-seg-secondary { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }
.rg-seg-secondary b { color: var(--ice); font-weight: 600; }

/* PDF-CTA (T8): echter, rein clientseitiger Export ueber window.print(). */
.rg-cta-pdf-note { margin-top: 12px; font-size: .8rem; color: var(--slate-text); line-height: 1.6; }
.rg-cta-note { margin-top: 10px; font-size: .82rem; color: var(--muted); line-height: 1.6; }
/* Schiene B: gleichwertiger Termin-/Rueckruf-Anfrage-Link (cookielos, kein Embed). */
.rg-cta-termin { margin-top: 10px; font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* Nur im Druck/PDF sichtbar (Bildschirm: ausgeblendet, auch fuer AT). */
.rg-print-only { display: none; }

/* ROI-Zusammenfassung im PDF — am Bildschirm immer aus; im Druck nur, wenn der Nutzer
   den Rechner wirklich benutzt hat (JS setzt .is-active). Verhindert Default-Fantasiezahlen. */
.rg-print-roi { display: none; }

/* ---------- ROI-RECHNER „ZEIT/AUTOMATISIERUNG" (T6, §15) ---------- */
.rg-roi {
  margin-top: 26px;
  border: 1px solid var(--line-d-strong);
  border-radius: 14px;
  background: var(--panel-2);
  overflow: hidden;
}
.rg-roi-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
}
.rg-roi-summary::-webkit-details-marker { display: none; }
.rg-roi-summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: 12px; }
.rg-roi-sum-text { display: block; min-width: 0; }
.rg-roi-sum-text b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ice);
  line-height: 1.35;
}
.rg-roi-sum-meta {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--slate-text);
}
/* +/–-Icon aus dem Intro-Accordion wiederverwenden; Rotation hier eigens schalten. */
.rg-roi[open] .rg-acc-icon::after { transform: translate(-50%, -50%) rotate(0); }

.rg-roi-body { padding: 0 18px 20px; }
.rg-roi-intro { color: var(--muted); line-height: 1.6; margin: 0 0 18px; font-size: .95rem; }
.rg-roi-intro b { color: var(--ice); font-weight: 600; }

.rg-roi-inputs {
  border: 0; padding: 0; margin: 0 0 18px;
  display: grid; gap: 14px;
}
.rg-roi-field { display: grid; gap: 7px; min-width: 0; }
.rg-roi-field label {
  font-family: var(--font-display); font-weight: 600; font-size: .94rem;
  color: var(--ice); line-height: 1.4;
}
.rg-roi-inwrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.rg-roi-inwrap input {
  width: 7.5em; max-width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-d-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ice);
  font-family: var(--font-mono); font-size: 1.05rem;
  -moz-appearance: textfield;
}
.rg-roi-inwrap input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue-2); }
.rg-roi-unit {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em;
  color: var(--slate-text);
}

/* Live-Ergebnis (bewusst KEINE Animation: ändert sich bei jedem Tastendruck). */
.rg-roi-out {
  display: block;
  border: 1px solid var(--line-d-strong);
  border-left: 3px solid var(--blue-2);
  border-radius: 12px;
  background: var(--panel);
  padding: 16px 18px;
  margin-bottom: 18px;
}
.rg-roi-headline { color: var(--ice); font-size: 1.04rem; line-height: 1.4; margin: 0; }
.rg-roi-headline b { color: var(--blue-2); font-weight: 700; }
.rg-roi-sub2 { color: var(--muted); font-size: .9rem; margin: 4px 0 0; }
.rg-roi-baseline { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 12px 0 0; }
.rg-roi-calc { font-family: var(--font-mono); font-size: .8rem; color: var(--slate-text); }
.rg-roi-empty { color: var(--muted); font-size: .94rem; margin: 0; }

.rg-roi-scen { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 1px; }
.rg-roi-scen-row {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 14px;
  padding: 9px 0; border-top: 1px solid var(--line-d);
}
.rg-roi-scen-name { color: var(--muted); font-size: .9rem; }
.rg-roi-scen-pct {
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--slate-text);
}
.rg-roi-scen-val { font-family: var(--font-mono); font-size: .92rem; color: var(--ice); font-weight: 600; }

/* Pflicht-Transparenz: Formel/Baseline/Annahmen/Unsicherheit/Grenzen — immer sichtbar. */
.rg-roi-trans { border-top: 1px solid var(--line-d); padding-top: 16px; }
.rg-roi-trans-h {
  font-family: var(--font-display); font-size: .96rem; font-weight: 600;
  color: var(--ice); margin: 0 0 10px;
}
.rg-roi-formula {
  font-family: var(--font-mono); font-size: .82rem; line-height: 1.6;
  color: var(--blue-2); margin: 0 0 12px; overflow-wrap: anywhere;
}
.rg-roi-formula b { color: var(--ice); }
.rg-roi-notes { margin: 0; padding-left: 1.15em; display: grid; gap: 8px; }
.rg-roi-notes li { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.rg-roi-notes b { color: var(--ice); font-weight: 600; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .rg-opt, .rg-opt input, .rg-opt input::after,
  .rg-deep-opt, .rg-deep-opt input, .rg-deep-opt input::after,
  .rg-meter span, .rg-acc-icon::before, .rg-acc-icon::after { transition: none; }
  .rg-result-card { animation: none; }
}

/* ---------- PDF-EXPORT / DRUCK (T8, §11/§13/§14/§18) ----------
   Clientseitiges „PDF" rein ueber window.print() — KEIN Drittlib, 0 Supply-Chain-
   Risiko. Der Browser erzeugt aus dem semantischen HTML ein getaggtes, barriere-
   freies Dokument. Gedruckt wird AUSSCHLIESSLICH der Ergebnis-Inhalt: Stufe, Score,
   Bereiche als Tabelle (Textalternative zum Chart, §13), Staerken, Handlungsfelder,
   Segment, max. 3 Massnahmen, Disclaimer, Score-Modell + Datum. Buttons/Nav/Hero/
   ROI-Eingaben werden ausgeblendet; kein €/Umsatz, keine PII. Schwarz auf Weiss. */
@media print {
  /* Alles ausser dem Ergebnis ausblenden. */
  .site-header, .site-footer, .progress,
  .page-hero, .crumbs,
  #rg-intro, #rg-quiz, .rg-progress, .rg-privacy,
  .rg-cta, .rg-cta-note, .rg-cta-pdf-note, .rg-cta-termin,
  .rg-roi, .rg-chart, .rg-meter, .rg-reset { display: none !important; }

  .rg-print-only { display: block !important; }
  /* ROI nur im PDF, wenn der Nutzer den Rechner wirklich benutzt hat (JS: .is-active). */
  .rg-print-roi.is-active { display: block !important; }

  html, body { background: #fff !important; }
  main, .section-pad-sm, .rg-wrap, .rg-result { margin: 0 !important; padding: 0 !important; }

  .rg-result-card, .rg-result-card--teil {
    margin: 0 !important; border: 0 !important; border-radius: 0 !important;
    background: #fff !important; box-shadow: none !important;
    padding: 0 !important; animation: none !important;
  }

  /* Druck-Schwarz: Bildschirm-Tokens (helle Schrift auf Dunkel) ueberschreiben. */
  .rg-result-card, .rg-result-card *,
  .rg-result-h, .rg-result-card h2, .rg-sub, .rg-measure h4, .rg-score b,
  .rg-result-card p, .rg-list li, .rg-list b,
  .rg-table tbody th, .rg-table tbody td, .rg-table thead th,
  .rg-seg-primary, .rg-seg-primary b, .rg-seg-why, .rg-seg-secondary, .rg-seg-secondary b,
  .rg-seg-badge, .rg-measure-field, .rg-measure-why, .rg-measure-why b,
  .rg-measure-meta, .rg-measure-meta b, .rg-measure-link { color: #000 !important; }
  .rg-version, .rg-konf, .rg-teil-note, .rg-disclaimer,
  .rg-print-kicker, .rg-print-foot { color: #333 !important; }

  /* Tabelle mit sichtbaren Linien fuer den Druck. */
  .rg-table { border: 1px solid #999 !important; }
  .rg-table th, .rg-table td { border: 1px solid #c4c4c4 !important; }
  .rg-table caption { color: #333 !important; }

  /* Karten flach, mit dezenter Linie statt Fuellung (sparsam mit Druckfarbe). */
  .rg-segments, .rg-measure {
    background: #fff !important;
    border: 1px solid #999 !important; border-left: 1px solid #999 !important;
  }
  .rg-measure-link { text-decoration: underline; }
  a[href] { color: #000 !important; }

  /* Print-Kopf/-Fuss. */
  .rg-print-head { border-bottom: 1px solid #999; padding-bottom: 8px; margin: 0 0 16px; }
  .rg-print-brand { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0; }
  .rg-print-kicker { font-size: .85rem; margin: 2px 0 0; }
  .rg-print-foot { border-top: 1px solid #999; padding-top: 8px; margin-top: 24px; font-size: .72rem; line-height: 1.5; }

  /* Karten/Tabellen nicht ueber Seitengrenzen zerreissen. */
  .rg-measure, .rg-segments, .rg-table, .rg-list li { break-inside: avoid; page-break-inside: avoid; }
  .rg-sub { break-after: avoid; page-break-after: avoid; }

  @page { margin: 16mm; }
}
