:root {
  --bg: #0f172a; --panel: #1e293b; --card: #26334d; --border: #334155;
  --text: #f8fafc; --muted: #94a3b8; --accent: #0284c7; --accent-hover: #0369a1;
  --green: #16a34a; --red: #dc2626; --amber: #d97706; --purple: #6366f1;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
.topbar { background: #090e1a; border-bottom: 1px solid var(--border); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; }
.badge-ihk { background: var(--accent); color: #fff; font-weight: 800; padding: 8px 12px; border-radius: 6px; letter-spacing: 1px; }
.topbar h1 { margin: 0; font-size: 1.25rem; }
.subtitle { color: #38bdf8; font-size: 0.9rem; font-weight: 600; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.prof-switch { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 6px; border: 1px solid var(--border); font-size: 0.85rem; }
.prof-switch.active-prof { background: var(--card); color: #fff; border-color: #38bdf8; }
.btn-save-log { background: #334155; color: #fff; border: 1px solid #475569; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-save-log:hover { background: #475569; }
.container { max-width: 1240px; margin: 20px auto; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }

/* Coach Header & Gamification (Level 0-23) */
.coach-header-panel { background: linear-gradient(135deg, #172554 0%, #1e293b 100%); border: 1px solid #3b82f6; padding: 18px 20px; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.coach-level-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.coach-level-badge-wrap { display: flex; align-items: center; gap: 14px; }
.coach-level-pill { background: linear-gradient(135deg, #f59e0b, #d97706); color: #090e1a; font-weight: 900; padding: 8px 14px; border-radius: 8px; font-size: 0.92rem; letter-spacing: 0.5px; white-space: nowrap; }
.coach-level-title { font-size: 1.1rem; font-weight: 800; color: #f8fafc; }
.coach-level-sub { font-size: 0.82rem; color: #cbd5e1; }
.coach-level-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.coach-stat-chip { background: #0f172a; border: 1px solid #334155; padding: 6px 12px; border-radius: 20px; font-size: 0.84rem; font-weight: 600; color: #38bdf8; }
.coach-prog-bar { height: 10px; background: #090e1a; }
.fill-gold { background: linear-gradient(90deg, #f59e0b, #22c55e); }
.coach-controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 4px; }
.coach-ctrl-box { background: rgba(15, 23, 42, 0.75); border: 1px solid var(--border); padding: 10px 14px; border-radius: 8px; font-size: 0.88rem; }
.select-field { margin: 6px 0 0 0 !important; cursor: pointer; }

/* KPI & Depots */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.kpi-card { background: var(--panel); border: 1px solid var(--border); padding: 14px 18px; border-radius: 10px; }
.kpi-label { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-val { font-size: 1.25rem; font-weight: 700; margin: 6px 0; }
.kpi-sub { font-size: 0.85rem; color: #fbbf24; margin-top: 4px; }
.prog-bar { background: #0f172a; height: 8px; border-radius: 4px; overflow: hidden; }
.prog-fill { background: #38bdf8; height: 100%; transition: width 0.3s; }
.fill-green { background: var(--green); }
.depot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.depot-box { background: var(--panel); border: 1px solid var(--border); padding: 12px 16px; border-radius: 10px; display: flex; flex-direction: column; }
.active-box { border-color: #38bdf8; background: #17253b; }
.depot-title { font-size: 0.82rem; color: var(--muted); }
.depot-num { font-size: 1.6rem; margin: 4px 0; color: #fff; }
.depot-sub { font-size: 0.8rem; color: var(--muted); }

/* Radar & Tabs */
.radar-panel { background: var(--panel); border: 1px solid var(--border); padding: 14px 18px; border-radius: 10px; }
.radar-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.radar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.radar-item { background: #0f172a; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); font-size: 0.82rem; }
.tab-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-btn { background: #0f172a; color: var(--muted); border: 1px solid var(--border); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.88rem; transition: all 0.15s; }
.tab-btn:hover { border-color: #38bdf8; color: #fff; }
.tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Study Units (Tab 1: Dual Coding + Feynman Booster) */
.card-panel { background: var(--panel); border: 1px solid var(--border); padding: 22px; border-radius: 12px; }
.study-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .study-layout { grid-template-columns: 1fr; } }
.study-sidebar { background: #0f172a; border: 1px solid var(--border); border-radius: 10px; padding: 14px; position: sticky; top: 16px; max-height: 82vh; overflow-y: auto; }
.study-sidebar-head h3 { margin: 0 0 4px 0; font-size: 1rem; color: #38bdf8; }
.study-heft-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.study-unit-list { display: flex; flex-direction: column; gap: 7px; }
.study-unit-btn { background: #1e293b; color: var(--text); border: 1px solid var(--border); padding: 10px 12px; border-radius: 8px; text-align: left; cursor: pointer; font-size: 0.86rem; transition: all 0.15s; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.study-unit-btn:hover { border-color: #38bdf8; }
.study-unit-btn.active-unit { background: #172554; border-color: #38bdf8; font-weight: 700; }
.study-content-col { background: #0f172a; border: 1px solid var(--border); border-radius: 10px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.study-unit-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.su-status-pill { padding: 4px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; background: #1e293b; border: 1px solid var(--border); }
.su-title { margin: 0; font-size: 1.3rem; color: #38bdf8; }
.su-takeaways-box { background: rgba(2, 132, 199, 0.12); border-left: 4px solid #38bdf8; padding: 14px 18px; border-radius: 8px; }
.su-box-title { font-weight: 800; color: #38bdf8; margin-bottom: 8px; font-size: 0.95rem; }
.su-takeaways-list { margin: 0; padding-left: 20px; }
.su-takeaways-list li { margin-bottom: 6px; font-weight: 500; }
.su-markdown-body { background: #1e293b; padding: 18px 20px; border-radius: 10px; border: 1px solid var(--border); font-size: 0.98rem; line-height: 1.65; }
.su-markdown-body h3, .su-markdown-body h4 { color: #38bdf8; margin-top: 16px; margin-bottom: 8px; }
.su-markdown-body h3:first-child, .su-markdown-body h4:first-child { margin-top: 0; }
.su-markdown-body ul, .su-markdown-body ol { padding-left: 22px; }
.su-markdown-body li { margin-bottom: 5px; }
.su-markdown-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.9rem; }
.su-markdown-body th, .su-markdown-body td { border: 1px solid #475569; padding: 8px 10px; text-align: left; }
.su-markdown-body th { background: #0f172a; color: #38bdf8; }

/* Mermaid Diagram Box */
.su-mermaid-box { background: #162033; border: 1px solid #334155; padding: 16px; border-radius: 10px; }
.su-mermaid-render { background: #090e1a; border-radius: 8px; padding: 16px; overflow-x: auto; display: flex; justify-content: center; min-height: 120px; }
.su-mermaid-code-toggle { margin-top: 8px; font-size: 0.8rem; color: var(--muted); cursor: pointer; }
.su-mermaid-raw { background: #0f172a; padding: 10px; border-radius: 6px; overflow-x: auto; color: #cbd5e1; font-size: 0.8rem; }

/* Dual Cards: Practice Example & Mnemonic */
.su-dual-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.su-practice-box { background: rgba(22, 163, 74, 0.1); border: 1px solid #16a34a; padding: 14px 16px; border-radius: 10px; font-size: 0.92rem; }
.su-mnemonic-box { background: rgba(245, 158, 11, 0.12); border: 1px solid #f59e0b; padding: 14px 16px; border-radius: 10px; }
.su-mnemonic-text { font-size: 1.02rem; font-weight: 700; color: #fde68a; }

/* Feynman Booster */
.feynman-booster-box { background: #17253b; border: 2px solid #38bdf8; padding: 18px; border-radius: 12px; }
.feynman-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.feynman-head h3 { margin: 0 0 6px 0; color: #38bdf8; }
.feynman-prompt { margin: 0; font-weight: 600; color: #e2e8f0; }
.btn-mic { background: #be123c; color: #fff; border: none; padding: 9px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.88rem; white-space: nowrap; }
.btn-mic.listening { background: #22c55e; animation: pulseMic 1.2s infinite; }
@keyframes pulseMic { 0% { opacity: 1; } 50% { opacity: 0.65; } 100% { opacity: 1; } }
.feynman-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn-success { background: var(--green); color: #fff; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.92rem; }
.btn-danger { background: var(--red); color: #fff; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.92rem; }
.feynman-result-box { background: #0f172a; border: 1px solid var(--border); padding: 16px; border-radius: 10px; margin-top: 14px; }
.feynman-score-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.feynman-kw-title { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.feynman-kw-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kw-pill { padding: 6px 12px; border-radius: 20px; font-size: 0.84rem; font-weight: 700; }
.kw-hit { background: rgba(22, 163, 74, 0.25); border: 1px solid #22c55e; color: #86efac; }
.kw-miss { background: rgba(217, 119, 6, 0.25); border: 1px solid #f59e0b; color: #fde68a; }
.feynman-checklist-box { background: #1e293b; padding: 12px 14px; border-radius: 8px; font-size: 0.9rem; }
.chk-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; cursor: pointer; }

/* Active Recall C1 + Confidence Stars + B3 Elaboration */
.q-meta-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.q-badge { background: var(--accent); padding: 4px 10px; border-radius: 5px; font-weight: 700; font-size: 0.85rem; }
.q-cat-badge, .q-norm-badge { background: #334155; padding: 4px 10px; border-radius: 5px; font-size: 0.85rem; margin-left: 6px; }
.confusable-badge { background: #6366f1; color: #fff; padding: 4px 10px; border-radius: 5px; font-size: 0.82rem; font-weight: 700; margin-left: 6px; }
.leech-badge { background: var(--red); color: #fff; padding: 4px 10px; border-radius: 5px; font-weight: 700; font-size: 0.85rem; margin-left: 6px; }
.q-score-pill { background: #0f172a; padding: 5px 12px; border-radius: 20px; border: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; }
.q-title { margin: 0 0 8px 0; font-size: 1.15rem; color: #38bdf8; }
.q-text { font-size: 1.1rem; background: #0f172a; padding: 16px; border-radius: 8px; border-left: 4px solid #38bdf8; margin: 0 0 16px 0; white-space: pre-line; }
.bridge-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.btn-bridge { background: #4f46e5; color: #fff; border: none; padding: 9px 16px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.btn-bridge:hover { background: #4338ca; }
.bridge-toast { color: #4ade80; font-size: 0.88rem; font-weight: 600; }
.curtain-box { background: #17253b; border: 1px dashed #38bdf8; padding: 18px; border-radius: 10px; text-align: center; margin-bottom: 16px; }
.curtain-title { font-weight: 700; color: #38bdf8; margin-bottom: 6px; }
.recall-input-row { display: flex; gap: 8px; align-items: center; }
.input-field { width: 100%; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--border); background: #0f172a; color: #fff; margin: 8px 0 12px 0; font-family: inherit; }
.coach-stars-box { background: #0f172a; border: 1px solid #334155; padding: 12px; border-radius: 8px; margin-bottom: 14px; }
.stars-label { font-size: 0.9rem; margin-bottom: 10px; color: #fde68a; }
.stars-btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.star-btn { background: #1e293b; color: #cbd5e1; border: 2px solid #334155; padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.9rem; transition: all 0.15s; }
.star-btn:hover { border-color: #f59e0b; color: #fff; }
.star-btn.active-star { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; color: #fff; box-shadow: 0 0 10px rgba(245, 158, 11, 0.35); }
.coach-selfgrade-box { margin-bottom: 16px; }
.verbatim-answer-txt { white-space: pre-line; color: #e2e8f0; margin: 8px 0; }
.keypoints-wrap { margin-top: 10px; padding-top: 8px; border-top: 1px solid #334155; font-size: 0.9rem; }
.selfgrade-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: #17253b; padding: 12px 16px; border-radius: 8px; border: 1px solid #38bdf8; }
.metacog-alert-box { padding: 14px 16px; border-radius: 8px; font-weight: 700; margin-bottom: 14px; }
.metacog-blindspot { background: rgba(220, 38, 38, 0.25); border: 2px solid #ef4444; color: #fca5a5; }
.metacog-lucky { background: rgba(245, 158, 11, 0.22); border: 2px solid #f59e0b; color: #fde68a; }
.contrast-hint-box { margin-top: 10px; padding: 10px 12px; background: rgba(99, 102, 241, 0.15); border-left: 3px solid #6366f1; border-radius: 6px; font-size: 0.88rem; }
.b3-elaboration-box { background: rgba(14, 165, 233, 0.12); border: 1px solid #38bdf8; padding: 14px; border-radius: 8px; margin-bottom: 12px; }
.b3-prompt-text { margin: 6px 0; font-weight: 600; color: #bae6fd; }
.b3-check-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b3-insight-box { margin-top: 8px; padding: 10px; background: #1e293b; border-radius: 6px; font-size: 0.88rem; color: #86efac; }
.anchor-suggestion { font-size: 0.85rem; color: #fde68a; margin: 4px 0; }

.btn-primary { background: var(--accent); color: #fff; border: none; padding: 11px 20px; border-radius: 6px; cursor: pointer; font-weight: 700; font-size: 0.95rem; }
.btn-primary:hover { background: var(--accent-hover); }
.options-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.opt-btn { background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 14px 16px; border-radius: 8px; text-align: left; cursor: pointer; font-size: 0.98rem; transition: all 0.15s; display: flex; gap: 12px; align-items: flex-start; }
.opt-btn:hover:not(:disabled) { border-color: #38bdf8; background: #2d3e5e; }
.opt-correct { background: rgba(22, 163, 74, 0.25) !important; border-color: var(--green) !important; }
.opt-wrong { background: rgba(220, 38, 38, 0.25) !important; border-color: var(--red) !important; }
.feedback-box { background: #0f172a; border: 1px solid var(--border); padding: 18px; border-radius: 10px; margin-top: 14px; }
.feedback-header { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.solution-box { background: #1e293b; padding: 14px; border-radius: 8px; margin-bottom: 14px; }
.cause-box { background: rgba(220, 38, 38, 0.12); border: 1px solid var(--red); padding: 14px; border-radius: 8px; margin-bottom: 12px; }
.anchor-box { background: rgba(217, 119, 6, 0.12); border: 1px solid var(--amber); padding: 12px; border-radius: 8px; margin-bottom: 12px; }
.round-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn-round-locked { background: #334155; color: #94a3b8; border: 1px solid #475569; padding: 11px 18px; border-radius: 6px; font-weight: 700; cursor: not-allowed; }
.btn-round-ready { background: var(--green); color: #fff; border: none; padding: 11px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; box-shadow: 0 0 12px rgba(22, 163, 74, 0.5); }

/* Boss-Level ESA (Tab 3) */
.esa-top-banner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; background: #0f172a; padding: 18px; border-radius: 10px; border: 1px solid #f59e0b; }
.esa-score-card { text-align: right; background: #1e293b; padding: 12px 18px; border-radius: 10px; border: 1px solid var(--border); min-width: 220px; }
.esa-score-lbl { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; }
.esa-score-val { font-size: 1.8rem; font-weight: 900; color: #f59e0b; }
.esa-status-badge { font-size: 0.84rem; font-weight: 700; margin-top: 4px; }
.esa-action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.esa-tasks-container { display: flex; flex-direction: column; gap: 18px; }
.esa-task-card { background: #0f172a; border: 1px solid var(--border); padding: 18px; border-radius: 10px; }
.esa-task-head { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 14px; }
.esa-subq-box { background: #1e293b; border: 1px solid #334155; padding: 16px; border-radius: 8px; margin-top: 12px; }
.esa-rubric-box { background: #0f172a; border: 1px solid #334155; padding: 12px 14px; border-radius: 8px; margin-top: 10px; }

.hidden { display: none !important; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.inspect-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.inspect-table th, .inspect-table td { border-bottom: 1px solid var(--border); padding: 9px 10px; text-align: left; }
.btn-sm { background: #334155; color: #fff; border: none; padding: 6px 12px; border-radius: 5px; cursor: pointer; margin-right: 6px; }

/* Hausverwalter Header, Filter, Multiple-Choice & PWA Offline-Sync */
.sync-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: rgba(22, 163, 74, 0.2); border: 1px solid #22c55e; color: #86efac; cursor: pointer; white-space: nowrap; }
.sync-badge.offline { background: rgba(217, 119, 6, 0.22); border-color: #f59e0b; color: #fde68a; }
.sync-badge.syncing { background: rgba(2, 132, 199, 0.25); border-color: #38bdf8; color: #bae6fd; }

.hv-header-panel { background: linear-gradient(135deg, #0c223d 0%, #1e293b 100%); border: 1px solid #0284c7; padding: 16px 18px; border-radius: 12px; display: flex; flex-direction: column; gap: 12px; }
.hv-header-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.hv-pill { display: inline-block; background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 8px; font-size: 0.84rem; letter-spacing: 0.4px; margin-right: 8px; }
.hv-filter-stats { font-size: 0.86rem; color: #bae6fd; font-weight: 600; }
.hv-btn-reset { background: #0f172a; border: 1px solid #38bdf8; color: #38bdf8; font-weight: 700; padding: 7px 12px; border-radius: 6px; margin-right: 0; }
.hv-btn-reset:hover { background: #17253b; }
.hv-btn-bgh { background: linear-gradient(135deg, #0f766e, #0d9488); border: 1px solid #2dd4bf; color: #fff; font-weight: 700; padding: 7px 12px; border-radius: 6px; margin-right: 6px; cursor: pointer; }
.hv-btn-bgh:hover { filter: brightness(1.1); }

/* Eigenständiges Top-30 BGH-Urteile Kompendium (Hausverwalter) */
.bgh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bgh-hero { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; background: linear-gradient(135deg, #0c223d 0%, #172554 100%); border: 1px solid #0284c7; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.bgh-hero-pill { display: inline-block; background: rgba(14, 165, 233, 0.22); border: 1px solid #38bdf8; color: #bae6fd; font-size: 0.76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: 0.4px; }
.bgh-hero-title { margin: 8px 0 4px 0; font-size: 1.35rem; color: #f8fafc; }
.bgh-hero-sub { margin: 0; color: #cbd5e1; font-size: 0.9rem; max-width: 680px; }
.bgh-update-box { background: rgba(15, 23, 42, 0.85); border: 1px solid #334155; border-radius: 10px; padding: 12px 14px; min-width: 280px; display: flex; flex-direction: column; gap: 8px; }
.bgh-update-meta { font-size: 0.8rem; color: #94a3b8; line-height: 1.4; }
.bgh-update-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bgh-select-sm { background: #1e293b; color: #f8fafc; border: 1px solid #475569; border-radius: 6px; padding: 6px 10px; font-size: 0.82rem; cursor: pointer; }
.bgh-btn-refresh { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; border: 1px solid #38bdf8; font-weight: 700; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.82rem; }
.bgh-btn-refresh:disabled { opacity: 0.6; cursor: wait; }
.bgh-update-feedback { font-size: 0.8rem; padding: 6px 10px; border-radius: 6px; background: rgba(22, 163, 74, 0.18); border: 1px solid #22c55e; color: #bbf7d0; }

.bgh-toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.bgh-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bgh-chip { background: #0f172a; color: #cbd5e1; border: 1px solid #334155; border-radius: 999px; padding: 7px 14px; font-size: 0.84rem; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.bgh-chip:hover { border-color: #38bdf8; color: #fff; }
.bgh-chip.active { background: #0284c7; border-color: #38bdf8; color: #fff; }
.bgh-search-row { display: grid; grid-template-columns: 1fr minmax(210px, 270px) auto; gap: 10px; align-items: center; }
.bgh-search-input, .bgh-topic-select { margin: 0 !important; }
.bgh-btn-toggle-all { background: #1e293b; color: #e2e8f0; border: 1px solid #475569; padding: 9px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.84rem; white-space: nowrap; }
.bgh-btn-toggle-all:hover { border-color: #38bdf8; }

.bgh-result-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: #94a3b8; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.bgh-result-bar strong { color: #38bdf8; }
.bgh-cards-grid { display: flex; flex-direction: column; gap: 12px; }
.bgh-card { background: #0f172a; border: 1px solid var(--border); border-left: 4px solid #38bdf8; border-radius: 10px; padding: 14px 16px; transition: border-color 0.15s; }
.bgh-card.bgh-miete { border-left-color: #10b981; }
.bgh-card.bgh-radar { border-left-color: #f59e0b; }
.bgh-card:hover { border-color: #475569; }
.bgh-card-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.bgh-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bgh-rank { background: #1e293b; color: #94a3b8; font-weight: 800; font-size: 0.78rem; padding: 3px 8px; border-radius: 5px; border: 1px solid #334155; }
.bgh-rg-badge { font-size: 0.78rem; font-weight: 800; padding: 3px 9px; border-radius: 5px; }
.bgh-rg-weg { background: rgba(2, 132, 199, 0.22); color: #7dd3fc; border: 1px solid #0284c7; }
.bgh-rg-miete { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid #10b981; }
.bgh-new-badge { background: rgba(245, 158, 11, 0.22); color: #fde68a; border: 1px solid #f59e0b; font-size: 0.75rem; font-weight: 800; padding: 3px 8px; border-radius: 5px; }
.bgh-prio-badge { background: rgba(99, 102, 241, 0.22); color: #c7d2fe; border: 1px solid #6366f1; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.bgh-az-line { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.86rem; font-weight: 800; color: #38bdf8; background: #1e293b; padding: 4px 10px; border-radius: 6px; border: 1px solid #334155; }
.bgh-card-title { margin: 0 0 6px 0; font-size: 1.05rem; color: #f8fafc; line-height: 1.35; }
.bgh-norms-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bgh-norm-chip { font-size: 0.76rem; background: #1e293b; color: #cbd5e1; border: 1px solid #334155; padding: 2px 8px; border-radius: 4px; font-weight: 600; }
.bgh-topic-chip { font-size: 0.76rem; color: #94a3b8; padding: 2px 6px; }
.bgh-leitsatz { margin: 0 0 10px 0; font-size: 0.93rem; color: #e2e8f0; line-height: 1.55; }
.bgh-details { border-top: 1px solid #1e293b; padding-top: 8px; }
.bgh-details summary { cursor: pointer; font-weight: 700; font-size: 0.86rem; color: #38bdf8; user-select: none; padding: 4px 0; }
.bgh-details-body { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.bgh-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.bgh-praxis-box { background: rgba(22, 163, 74, 0.1); border: 1px solid #16a34a; border-radius: 8px; padding: 10px 12px; font-size: 0.88rem; }
.bgh-exam-box { background: rgba(245, 158, 11, 0.12); border: 1px solid #f59e0b; border-radius: 8px; padding: 10px 12px; font-size: 0.88rem; color: #fef3c7; }
.bgh-links-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bgh-link-btn { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; background: #1e293b; color: #7dd3fc; border: 1px solid #334155; padding: 6px 11px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.bgh-link-btn:hover { border-color: #38bdf8; color: #fff; }
.bgh-sources-footer { margin-top: 18px; padding: 14px 16px; background: #0f172a; border: 1px solid var(--border); border-radius: 10px; font-size: 0.82rem; color: #94a3b8; }
.bgh-sources-footer a { color: #38bdf8; text-decoration: none; }
.bgh-sources-footer a:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .bgh-search-row { grid-template-columns: 1fr; }
  .bgh-update-box { width: 100%; min-width: 0; }
}
.hv-controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.hv-ctrl-box { background: rgba(15, 23, 42, 0.78); border: 1px solid var(--border); padding: 10px 12px; border-radius: 8px; font-size: 0.86rem; }

.q-type-badge { background: #7c3aed; color: #fff; padding: 4px 10px; border-radius: 5px; font-size: 0.82rem; font-weight: 700; margin-left: 6px; display: inline-block; }
.q-type-badge.single { background: #0f766e; }

.opt-btn { min-height: 50px; line-height: 1.45; }
.opt-check-icon { font-size: 1.1rem; flex-shrink: 0; color: #38bdf8; margin-top: 1px; }
.opt-btn.opt-selected { background: rgba(2, 132, 199, 0.26) !important; border-color: #38bdf8 !important; box-shadow: 0 0 0 1px #38bdf8; }
.opt-btn.opt-missed { background: rgba(217, 119, 6, 0.24) !important; border-color: #f59e0b !important; }

.multi-submit-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; background: #17253b; border: 1px solid #38bdf8; padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; }
.multi-selected-hint { font-size: 0.9rem; font-weight: 600; color: #bae6fd; }
.btn-multi-check { min-height: 46px; padding: 11px 22px; }

/* Mobile-First Responsive Layout für Handy-Offline-PWA */
@media (max-width: 680px) {
  .topbar { padding: 12px 14px; gap: 10px; }
  .topbar h1 { font-size: 1.02rem; }
  .subtitle { font-size: 0.8rem; }
  .badge-ihk { padding: 6px 10px; font-size: 0.9rem; }
  .top-actions { width: 100%; justify-content: space-between; gap: 6px; }
  .prof-switch, .btn-save-log { font-size: 0.78rem; padding: 8px 10px; flex: 1 1 auto; text-align: center; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
  .container { margin: 12px auto; padding: 0 10px; gap: 12px; }
  .card-panel { padding: 14px; }
  .kpi-grid { grid-template-columns: 1fr; gap: 10px; }
  .depot-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .depot-box { padding: 10px 12px; }
  .depot-num { font-size: 1.35rem; }
  .hv-header-panel { padding: 12px; }
  .hv-controls-grid { grid-template-columns: 1fr; }
  .q-meta-bar { gap: 6px; }
  .q-cat-badge, .q-norm-badge, .q-type-badge { margin-left: 0; margin-top: 4px; display: inline-block; font-size: 0.78rem; }
  .q-text { font-size: 1rem; padding: 12px; }
  .stars-btn-row { grid-template-columns: 1fr; gap: 8px; }
  .star-btn { min-height: 48px; padding: 10px 12px; }
  .opt-btn { padding: 13px 12px; font-size: 0.95rem; min-height: 52px; }
  .btn-primary, .btn-bridge, .btn-round-ready, .btn-round-locked { width: 100%; min-height: 46px; text-align: center; }
  .multi-submit-bar { flex-direction: column; align-items: stretch; }
  .round-footer { flex-direction: column; align-items: stretch; }
  .tab-bar { width: 100%; }
  .tab-btn { flex: 1 1 45%; min-height: 42px; font-size: 0.82rem; padding: 8px 10px; }
}
