/* REGULIERER-PORTAL — expira komplett (26.09.2026): Panel „expira-Akte“, Funktions-Karte, Plan-Karten im Assistenten.
   Farben über die 2.0-Tokens (regulierung_2.css), Rückfall auf neutrale Werte. Alles unter .rexp-* – keine globalen Regeln. */
.rexp-akte { margin: 0 0 12px; padding: 12px 14px; border: 1px solid rgba(14,165,233,.28); border-radius: 12px; background: rgba(14,165,233,.05); font-size: 13px; color: var(--text, #e5e7eb); }
.rexp-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rexp-kopf .ak, .rexp-plan .ak, .rexp-dlg .ak, .rexp-fk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.rexp-hinweis { font-size: 12px; color: var(--text-muted, #94a3b8); margin: 4px 0; }
.rexp-mini { font-size: 10px; opacity: .75; margin-left: 4px; }
.rexp-leer { font-size: 12px; color: var(--text-muted, #94a3b8); padding: 6px 0; }
.rexp-h { font-weight: 600; font-size: 12px; margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted, #94a3b8); }
.rexp-bereiche { display: flex; flex-direction: column; gap: 6px; }
.rexp-bereich { border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: rgba(255,255,255,.03); }
.rexp-bereich > summary { cursor: pointer; padding: 8px 10px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.rexp-bereich > summary::-webkit-details-marker { display: none; }
.rexp-bereich > summary .nr { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; font-size: 11px; background: rgba(14,165,233,.2); }
.rexp-bereich-body { padding: 0 10px 10px; }
.rexp-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .rexp-spalten { grid-template-columns: 1fr; } }
.rexp-felder { width: 100%; border-collapse: collapse; font-size: 12px; }
.rexp-felder td, .rexp-felder th { padding: 3px 6px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: top; text-align: left; }
.rexp-felder td.l { width: 42%; color: var(--text-muted, #94a3b8); }
.rexp-felder td.w { white-space: pre-wrap; word-break: break-word; }
.rexp-liste { margin: 6px 0; padding: 6px 8px; border-left: 3px solid rgba(14,165,233,.4); }
.rexp-unterschiede { margin: 4px 0 0; padding-left: 18px; font-size: 12px; }
.rexp-unterschiede li { margin: 3px 0; }
.rexp-chip { display: inline-block; font-size: 10px; padding: 1px 7px; border-radius: 999px; background: #64748b; color: #fff; vertical-align: middle; }
.rexp-chip.rot { background: #ef4444; } .rexp-chip.blau { background: #3b82f6; } .rexp-chip.grau { background: #64748b; } .rexp-chip.amber { background: #f59e0b; color: #111; }
.rexp-link { text-decoration: none; opacity: .7; margin-left: auto; }
.rexp-btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--text, #e5e7eb); font-size: 13px; cursor: pointer; text-decoration: none; }
.rexp-btn.primary { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.rexp-btn.rot { background: #ef4444; border-color: #ef4444; color: #fff; }
.rexp-btn.ghost { background: transparent; }
.rexp-btn.sm { padding: 5px 9px; font-size: 12px; } .rexp-btn.xs { padding: 3px 7px; font-size: 11px; }
.rexp-btn:disabled { opacity: .5; cursor: default; }
.rexp-overlay { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.rexp-dlg { width: min(560px, 100%); max-height: 92vh; overflow: auto; border-radius: 14px; background: var(--card, #1e293b); color: var(--text, #e5e7eb); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rexp-dlg.breit { width: min(820px, 100%); }
.rexp-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.rexp-head .t { font-weight: 700; flex: 1; }
.rexp-x { border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }
.rexp-body { padding: 12px 14px; }
.rexp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 8px; }
@media (max-width: 640px) { .rexp-form { grid-template-columns: 1fr; } }
.rexp-feld { display: flex; flex-direction: column; gap: 3px; }
.rexp-lbl { font-size: 12px; color: var(--text-muted, #94a3b8); }
.rexp-pflicht { color: #f59e0b; }
.rexp-in { width: 100%; box-sizing: border-box; padding: 7px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: inherit; font: inherit; font-size: 13px; }
.rexp-multi { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; }
.rexp-check { font-size: 12px; }
.rexp-plan { margin: 8px 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(14,165,233,.35); background: rgba(14,165,233,.08); font-size: 13px; }
.rexp-plan .k { font-weight: 700; margin-bottom: 6px; }
.rexp-pfade { font-size: 11px; margin-top: 6px; color: var(--text-muted, #94a3b8); }
.rexp-pfade code { font-size: 10px; background: rgba(255,255,255,.08); padding: 1px 4px; border-radius: 4px; }
.rexp-rueckfrage { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(245,158,11,.15); border: 1px solid rgba(245,158,11,.4); font-size: 12px; }
.rexp-ok { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.4); font-size: 12px; }
.rexp-sperre { font-size: 11px; color: var(--text-muted, #94a3b8); margin-top: 6px; }
.rexp-spin { display: inline-block; width: 12px; height: 12px; border: 2px solid rgba(255,255,255,.3); border-top-color: #0ea5e9; border-radius: 50%; animation: rexpSpin .8s linear infinite; vertical-align: middle; }
@keyframes rexpSpin { to { transform: rotate(360deg); } }
.rexp-chipbtn { border-color: rgba(14,165,233,.5) !important; }
body.light-mode .rexp-akte, html[data-theme="light"] .rexp-akte { color: #0f172a; }
body.light-mode .rexp-dlg, html[data-theme="light"] .rexp-dlg { background: #fff; color: #0f172a; }
body.light-mode .rexp-in, html[data-theme="light"] .rexp-in { background: #fff; border-color: #cbd5e1; }
body.light-mode .rexp-bereich, html[data-theme="light"] .rexp-bereich { border-color: #e2e8f0; background: #f8fafc; }
