/* Ruhe-Begleiter fuer angsthilfe24.de - alle Regeln unter .rb-app */
.rb-app {
  --rb-surface: #ffffff;
  --rb-bg: #f5f7f6;
  --rb-fg: #1c2733;
  --rb-muted: #566372;
  --rb-line: #dde4e1;
  --rb-navy: #1e3a8a;
  --rb-sage: #4b7c6f;
  --rb-sage-soft: #e3eeea;
  --rb-crisis: #dc2626;
  max-width: 38rem;
  margin: 0 auto;
  color: var(--rb-fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.rb-app *, .rb-app *::before, .rb-app *::after { box-sizing: border-box; }
.rb-app p { margin: 0; }
.rb-app h3 { margin: 0; font-family: inherit; font-weight: 600; letter-spacing: normal; font-size: 1.2rem; line-height: 1.3; color: var(--rb-fg); }
.rb-app strong, .rb-app span, .rb-app blockquote { font-family: inherit; }
.rb-app button { font-family: inherit; letter-spacing: normal; text-transform: none; line-height: 1.3; box-shadow: none; }
.rb-app button:focus-visible { outline: 3px solid var(--rb-navy); outline-offset: 2px; }
.rb-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; background: var(--rb-surface); border: 1px solid var(--rb-line); border-radius: 14px; padding: .3rem; }
.rb-tabs button { font-size: .9rem; font-weight: 600; border: 0; background: transparent; color: var(--rb-muted); padding: .65rem .25rem; border-radius: 10px; cursor: pointer; min-height: 44px; }
.rb-tabs button:hover { background: var(--rb-sage-soft); color: var(--rb-fg); }
.rb-tabs button[aria-selected="true"] { background: var(--rb-sage); color: #ffffff; }
.rb-panel { background: var(--rb-surface); border: 1px solid var(--rb-line); border-radius: 16px; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.rb-panel[hidden] { display: none !important; }
.rb-hint { font-size: .92rem; color: var(--rb-muted); }
.rb-stage { display: grid; place-items: center; padding-block: .5rem; }
.rb-circle-box { width: min(15rem, 70vw); max-width: 100%; aspect-ratio: 1; display: grid; place-items: center; position: relative; }
.rb-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--rb-line); }
.rb-circle { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--rb-sage-soft); border: 3px solid var(--rb-sage); transform: scale(.55); transition-property: transform; transition-timing-function: ease-in-out; }
.rb-phase { position: absolute; display: flex; flex-direction: column; align-items: center; gap: .1rem; text-align: center; }
.rb-phase-name { font-weight: 700; font-size: 1.15rem; }
.rb-phase-count { font-size: 2.2rem; font-weight: 600; color: var(--rb-sage); font-variant-numeric: tabular-nums; line-height: 1; }
.rb-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.rb-group { display: flex; flex-direction: column; gap: .4rem; }
.rb-label { font-size: .75rem; letter-spacing: .07em; text-transform: uppercase; color: var(--rb-muted); font-weight: 600; }
.rb-app .rb-chip { font-size: .88rem; font-weight: 500; border: 1px solid var(--rb-line); background: var(--rb-bg); color: var(--rb-fg); padding: .5rem .8rem; border-radius: 999px; cursor: pointer; min-height: 40px; }
.rb-app .rb-chip[aria-pressed="true"] { border-color: var(--rb-sage); background: var(--rb-sage-soft); font-weight: 600; }
.rb-app .rb-primary { font-weight: 600; font-size: 1rem; border: 0; background: var(--rb-navy); color: #ffffff; padding: .85rem 1.4rem; border-radius: 12px; cursor: pointer; min-height: 48px; }
.rb-app .rb-primary:hover { background: #172e6e; color: #ffffff; }
.rb-app .rb-secondary { font-weight: 600; font-size: 1rem; border: 1px solid var(--rb-line); background: var(--rb-surface); color: var(--rb-fg); padding: .8rem 1.2rem; border-radius: 12px; cursor: pointer; min-height: 48px; }
.rb-app .rb-secondary:disabled { opacity: .5; cursor: default; }
.rb-status { font-variant-numeric: tabular-nums; color: var(--rb-muted); font-size: .9rem; }
.rb-step-head { display: flex; align-items: baseline; gap: .75rem; }
.rb-big-num { font-size: 3rem; font-weight: 700; color: var(--rb-sage); line-height: 1; font-variant-numeric: tabular-nums; }
.rb-dots { display: flex; gap: .5rem; flex-wrap: wrap; }
.rb-app .rb-dot { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--rb-sage); background: transparent; cursor: pointer; color: var(--rb-sage); font-weight: 600; font-size: 1rem; }
.rb-app .rb-dot[aria-pressed="true"] { background: var(--rb-sage); color: #ffffff; }
.rb-progress { display: flex; gap: .35rem; }
.rb-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--rb-line); }
.rb-progress span.on { background: var(--rb-sage); }
.rb-quote { margin: 0; font-size: 1.3rem; line-height: 1.45; font-weight: 500; color: var(--rb-fg); padding-block: .5rem; min-height: 5.5rem; border: 0; font-style: normal; }
.rb-facts { display: flex; flex-direction: column; gap: .9rem; }
.rb-fact { display: flex; flex-direction: column; gap: .2rem; padding-bottom: .9rem; border-bottom: 1px solid var(--rb-line); }
.rb-fact:last-child { border-bottom: 0; padding-bottom: 0; }
.rb-crisis-line { font-size: .92rem; border-left: 4px solid var(--rb-crisis); padding: .5rem .8rem; background: #fdecec; border-radius: 0 8px 8px 0; }
.rb-crisis-line strong { color: #b91c1c; }
.rb-footnote { font-size: .82rem; color: var(--rb-muted); }
@media (max-width: 420px) { .rb-tabs button { font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .rb-circle { transition: none !important; } }
