/* Berichtsstruktur als Leitplanke (26.09.2026) – Block unter dem Vorschau-Feld im expira-Block des Reiters „Gutachten“.
   Farben über die 2.0-Variablen mit Rückfallwerten; Ampel: rot = Pflichtinhalt fehlt, gelb = Hinweis, grün = vollständig, grau = leer. */
.rb-panel{margin:12px 0 4px;padding:12px;border:1px solid var(--border,#334155);border-radius:12px;background:var(--bg-card,rgba(148,163,184,.06));position:relative}
.rb-kopf{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px;font-size:13.5px}
.rb-kopf strong{font-size:14px}
.rb-chip{font-size:11.5px;padding:2px 9px;border-radius:999px;background:rgba(56,189,248,.16);color:var(--accent,#38bdf8);white-space:nowrap}
.rb-chip.neutral{background:rgba(148,163,184,.18);color:var(--text-muted,#94a3b8)}
.rb-leiste{display:flex;flex-wrap:wrap;gap:6px}
.rb-box{display:inline-flex;align-items:stretch;gap:2px}
.rb-ampel{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:9px;border:1px solid var(--border,#334155);background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:12.5px;line-height:1.2}
.rb-ampel:hover,.rb-ampel:focus-visible{border-color:var(--accent,#38bdf8);outline:none}
.rb-punkt{display:inline-block;width:10px;height:10px;border-radius:50%;background:#94a3b8;flex:0 0 auto;vertical-align:middle}
.rb-ampel.rot .rb-punkt,.rb-punkt.rot{background:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.18)}
.rb-ampel.gelb .rb-punkt,.rb-punkt.gelb{background:#f59e0b;box-shadow:0 0 0 3px rgba(245,158,11,.18)}
.rb-ampel.gruen .rb-punkt,.rb-punkt.gruen{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.16)}
.rb-ampel.grau .rb-punkt,.rb-punkt.grau{background:#94a3b8}
.rb-ampel.rot{border-color:rgba(239,68,68,.55)}
.rb-ampel.gelb{border-color:rgba(245,158,11,.5)}
.rb-plus{padding:4px 8px;border-radius:9px;border:1px dashed var(--border,#334155);background:transparent;color:var(--text-muted,#94a3b8);cursor:pointer;font:inherit;font-size:11.5px}
.rb-plus:hover,.rb-plus:focus-visible{color:var(--accent,#38bdf8);border-color:var(--accent,#38bdf8);outline:none}
.rb-hinweis{margin-top:8px;font-size:12px}
.rb-karte{margin-top:10px;padding:10px 12px;border-radius:10px;border:1px dashed var(--border,#334155);background:rgba(148,163,184,.04)}
.rb-karte-kopf{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;margin-bottom:6px}
.rb-karte-kopf strong{font-size:13.5px}
.rb-frage{margin:9px 0}
.rb-frage label{display:block;font-size:12.5px;margin-bottom:4px;line-height:1.4}
.rb-frage-box{display:inline-block;font-size:11px;padding:1px 7px;border-radius:999px;background:rgba(148,163,184,.18);color:var(--text-muted,#94a3b8);margin-right:4px}
.rb-antwort{width:100%;min-height:46px;font:inherit;font-size:13px;padding:7px 9px;border-radius:8px;border:1px solid var(--border,#334155);background:var(--bg-input,rgba(15,23,42,.35));color:inherit;resize:vertical;box-sizing:border-box}
.rb-antwort:focus{border-color:var(--accent,#38bdf8);outline:none}
.rb-knoepfe{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.rb-btn{font:inherit}
.rb-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;line-height:1.45;margin:4px 0 10px;padding:8px 10px;border-radius:8px;background:rgba(148,163,184,.08)}
.rb-text.leer{color:var(--text-muted,#94a3b8);font-style:italic}
.rb-menue{position:absolute;z-index:9050;min-width:280px;max-width:min(520px,92vw);max-height:60vh;overflow:auto;padding:6px;border-radius:10px;border:1px solid var(--border,#334155);background:var(--bg,#0f172a);box-shadow:0 10px 30px rgba(0,0,0,.35)}
.rb-menue-kopf{font-size:12px;color:var(--text-muted,#94a3b8);padding:4px 8px 6px}
.rb-menue-eintrag{display:flex;gap:8px;align-items:baseline;width:100%;text-align:left;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer;font:inherit;font-size:12.5px;line-height:1.35}
.rb-menue-eintrag:hover,.rb-menue-eintrag:focus-visible{background:rgba(56,189,248,.14);outline:none}
.rb-menue-eintrag[disabled]{opacity:.5;cursor:not-allowed}
.rb-menue-art{flex:0 0 auto;font-size:10.5px;padding:1px 6px;border-radius:999px;background:rgba(148,163,184,.18);color:var(--text-muted,#94a3b8)}
.rb-menue-ph{flex:0 0 auto;margin-left:auto;font-size:10.5px;color:var(--accent,#38bdf8)}
.rb-modal{position:fixed;inset:0;z-index:9060;background:rgba(2,6,23,.6);display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.rb-modal-inhalt{background:var(--bg,#0f172a);color:inherit;max-width:900px;width:100%;max-height:92vh;overflow:auto;border-radius:14px;padding:14px 16px 12px;border:1px solid var(--border,#334155);box-shadow:0 20px 60px rgba(0,0,0,.45);box-sizing:border-box}
.rb-modal-kopf{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:15px}
.rb-x{border:0;background:transparent;color:inherit;font-size:18px;cursor:pointer;padding:2px 8px;border-radius:8px}
.rb-x:hover{background:rgba(148,163,184,.18)}
.rb-schritt{margin:14px 0 4px;font-size:15px;color:var(--accent,#38bdf8)}
.rb-box-titel{margin:8px 0 2px;font-size:13px;display:flex;align-items:center;gap:6px}
.rb-offen{margin:4px 0 0 18px;padding:0;font-size:13px;line-height:1.5}
.rb-modal-fuss{justify-content:flex-end}
body.light-mode .rb-panel,html[data-theme="light"] .rb-panel{background:rgba(15,23,42,.03);border-color:#dbe3ee}
body.light-mode .rb-menue,body.light-mode .rb-modal-inhalt,html[data-theme="light"] .rb-menue,html[data-theme="light"] .rb-modal-inhalt{background:#fff;border-color:#dbe3ee}
body.light-mode .rb-antwort,html[data-theme="light"] .rb-antwort{background:#fff;border-color:#cbd5e1}
body.light-mode .rb-text,html[data-theme="light"] .rb-text{background:#f1f5f9}
@media(max-width:700px){.rb-knoepfe .eap-btn,.rb-knoepfe .rb-btn{flex:1 1 auto}.rb-ampel{font-size:12px;padding:5px 8px}.rb-modal{padding:6px}.rb-modal-inhalt{max-height:96vh;border-radius:10px}}
