/* =========================================================================
   Online-Symptomtest Reizdarm (MYRRHINIL) — u21checks / EXT:u21checks
   Optik wie Leber-Selbsttest und Verdauungs-Check: gleiche Bausteine, gleiche
   Klassennamen, gleiche Variablen-Systematik. Farbwerte = Myrrhinil-Set aus
   VerdauungsCheck.css, Abschnitt 1 (dort stehen die Kontrast-Begruendungen).

   Alle Selektoren unter .u21checks--reizdarmtest gescoped. Keine Regeln auf
   generische Namen wie .btn, h2 oder ul (Lehre aus dem Verdauungs-Check,
   Abschnitt 3) - Buttons laufen ueber .u21checks-btn/.u21checks-btn-link.
   ========================================================================= */

.u21checks--reizdarmtest {
  --u21checks-rdt-primary: #880a61;       /* $primary-accessible, Weiss darauf 6,1:1 */
  --u21checks-rdt-primary-dark: #640239;  /* $primary-darker */
  --u21checks-rdt-primary-light: #f9eff5;
  --u21checks-rdt-accent: #880a61;
  --u21checks-rdt-text: #212121;
  --u21checks-rdt-text-soft: #5b5b5b;     /* 6,8:1 gegen Weiss */
  --u21checks-rdt-border: #909090;        /* 3,2:1 - Untergrenze fuer UI-Grenzen */
  --u21checks-rdt-radius: 14px;
  --u21checks-rdt-shadow: 0 4px 18px rgba(0, 0, 0, .07);
  font-family: inherit;
  color: var(--u21checks-rdt-text);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.u21checks--reizdarmtest *,
.u21checks--reizdarmtest *::before,
.u21checks--reizdarmtest *::after { box-sizing: border-box; }

.u21checks--reizdarmtest .u21checks-app > .card {
  background: #fff; border: 1px solid var(--u21checks-rdt-primary);
  box-shadow: var(--u21checks-rdt-shadow);
  padding: 2rem 1.5rem; margin-bottom: 2rem;
}
.u21checks--reizdarmtest .muted { color: var(--u21checks-rdt-text-soft); font-size: .92rem; }

.u21checks--reizdarmtest .u21checks-btn {
  display: inline-block; border: none; cursor: pointer; font-size: 1.05rem; font-weight: 600;
  background: var(--u21checks-rdt-primary); color: #fff; padding: 14px 30px; border-radius: 999px;
  transition: background .15s, transform .1s; text-decoration: none; text-align: center;
  font-family: inherit;
}
.u21checks--reizdarmtest .u21checks-btn:hover { background: var(--u21checks-rdt-primary-dark); color: #fff; }
.u21checks--reizdarmtest .u21checks-btn:active { transform: scale(.98); }
.u21checks--reizdarmtest .u21checks-btn.btn-secondary {
  background: #fff; color: var(--u21checks-rdt-primary); border: 2px solid var(--u21checks-rdt-primary);
}
.u21checks--reizdarmtest .u21checks-btn.btn-secondary:hover { background: var(--u21checks-rdt-primary-light); color: var(--u21checks-rdt-primary-dark); }
.u21checks--reizdarmtest .u21checks-btn[disabled],
.u21checks--reizdarmtest .u21checks-btn[disabled]:hover { background: #e9e9e9; color: #5b5b5b; cursor: not-allowed; }
.u21checks--reizdarmtest .u21checks-btn-link {
  background: none; border: none; color: var(--u21checks-rdt-text-soft); cursor: pointer; text-decoration: none;
  font-size: .95rem; padding: .5rem; font-family: inherit;
}
.u21checks--reizdarmtest .u21checks-btn-link:hover { color: var(--u21checks-rdt-primary-dark); text-decoration: underline; }

/* Startkarte: Ueberschrift, Einleitung, Expertenblock */
.u21checks--reizdarmtest .start-headline { color: var(--u21checks-rdt-primary-dark); margin-bottom: 10px; }
.u21checks--reizdarmtest .start-intro { margin-bottom: 1.5rem; }
.u21checks--reizdarmtest .expert {
  display: flex; gap: 16px; align-items: center; margin-top: 24px;
  background: var(--u21checks-rdt-primary-light); border-radius: var(--u21checks-rdt-radius); padding: 16px;
}
.u21checks--reizdarmtest .expert .muted { margin: 0; color: #515151; }
.u21checks--reizdarmtest .expert-photo {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; object-position: center top; display: block;
}

/* Fragenstrecke */
.u21checks--reizdarmtest .progress-track { background: var(--u21checks-rdt-primary-light); height: 10px; margin: 6px 0 4px; }
.u21checks--reizdarmtest .progress-fill { background: var(--u21checks-rdt-accent); height: 100%; transition: width .3s; }
.u21checks--reizdarmtest .progress-label { font-size: .8rem; color: var(--u21checks-rdt-text-soft); margin: 0 0 4px; }
.u21checks--reizdarmtest .q-body { margin-top: 18px; }
.u21checks--reizdarmtest .q-title { color: var(--u21checks-rdt-primary); margin-bottom: 10px; }
.u21checks--reizdarmtest .q-note { font-size: .92rem; color: var(--u21checks-rdt-text-soft); margin: 0; }

.u21checks--reizdarmtest .options {
  display: flex; flex-direction: column; gap: 12px; margin: 22px 0;
  border: 0; padding: 0; min-width: 0;
}
.u21checks--reizdarmtest .option {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 1rem; margin: 0;
  border: 2px solid var(--u21checks-rdt-border); border-radius: 12px; cursor: pointer;
  background: #fff; color: var(--u21checks-rdt-text); font-size: 1rem; line-height: 1.45;
  transition: border-color .15s, background .15s;
}
.u21checks--reizdarmtest .option:hover { border-color: var(--u21checks-rdt-primary); }
.u21checks--reizdarmtest .option.checked {
  border-color: var(--u21checks-rdt-primary); background: var(--u21checks-rdt-primary-light);
  color: var(--u21checks-rdt-primary-dark); font-weight: 600;
}
.u21checks--reizdarmtest .option input {
  margin-top: .2em; accent-color: var(--u21checks-rdt-accent); width: 18px; height: 18px; flex: none;
}
.u21checks--reizdarmtest .nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: .5rem; }

/* Ergebnis */
.u21checks--reizdarmtest .result-kicker {
  font-size: .95rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--u21checks-rdt-text-soft); margin-bottom: 4px;
}
.u21checks--reizdarmtest .result-headline { color: var(--u21checks-rdt-primary-dark); margin-bottom: 18px; }
.u21checks--reizdarmtest .restart-row { text-align: center; margin-top: 1.5rem; }

/* Debug-Panel - Position und z-index wie im Leber-Selbsttest (Begruendung dort) */
.u21checks--reizdarmtest .u21checks-debug-toggle {
  position: fixed; right: 16px; bottom: 60px; background: var(--u21checks-rdt-primary-dark); color: #fff;
  border: none; border-radius: 99px; padding: 10px 16px; font-size: 12.5px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); z-index: 2147483647;
}
.u21checks--reizdarmtest .u21checks-debug-panel {
  position: fixed; right: 16px; bottom: 110px; width: 320px; max-height: 70vh; overflow: auto;
  background: #0f2a22; color: #dfe9e4; border-radius: 12px; padding: 16px; font-size: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35); z-index: 2147483647; display: none;
  font-family: "SF Mono", Consolas, monospace;
}
.u21checks--reizdarmtest .u21checks-debug-panel.open { display: block; }
.u21checks--reizdarmtest .u21checks-debug-panel h4 { margin: 0 0 8px; color: #9fd8c8; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.u21checks--reizdarmtest .u21checks-debug-panel table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.u21checks--reizdarmtest .u21checks-debug-panel td { padding: 2px 4px; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.u21checks--reizdarmtest .u21checks-debug-panel .log { white-space: pre-wrap; color: #a9c2ba; font-size: 11px; }

@media (max-width: 520px) {
  .u21checks--reizdarmtest .u21checks-app > .card { padding: 24px 18px; }
  .u21checks--reizdarmtest .expert { flex-direction: column; text-align: center; }
  .u21checks--reizdarmtest .u21checks-debug-panel { left: 10px; right: 10px; width: auto; }
}
