/* SCB Kursbereich – style.css */
:root {
  --bg: #F5F3EF; --text: #1a1a1a; --muted: #777; --accent: #1C4963; --gold: #C8913A;
  --surface: #fff; --border: rgba(0,0,0,.08); --shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --radius: 16px; --radius-sm: 10px; --success: #2f9e44; --danger: #c92a2a; --warning: #e67700;
}
[data-theme="dark"] {
  --bg: #0f1923; --text: #e8e4dc; --muted: #929aa1; --accent: #C8913A; --gold: #e0a84a;
  --surface: #1a2533; --border: rgba(255,255,255,.08); --shadow: 0 1px 4px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.2); --success: #51cf66;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; line-height: 1.5; min-height: 100vh; }
h1,h2,h3,h4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; letter-spacing: -.02em; }
button, input, textarea, select { font-family: 'DM Sans', system-ui, sans-serif; font-size: 13px; }
a { text-decoration: none; color: inherit; }

/* UTILS */
.hidden { display: none !important; }
.text-muted { color: var(--muted); }
.text-warning { color: var(--warning) !important; }
.text-sm { font-size: 12px; } .text-xs { font-size: 11px; } .fw-700 { font-weight: 700; }
.row { display: flex; align-items: center; gap: 8px; } .col { display: flex; flex-direction: column; gap: 6px; }
.ml-auto { margin-left: auto; } .flex-wrap { flex-wrap: wrap; }
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-14{margin-top:14px}.mt-20{margin-top:20px}
.mb-0{margin-bottom:0!important}.mb-14{margin-bottom:14px}.gap-4{gap:4px}.gap-6{gap:6px}

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; transition: all .12s; white-space: nowrap; }
.btn:hover { border-color: var(--gold); color: var(--accent); }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn-primary:hover { opacity: .88; color: #fff; border-color: transparent; }
[data-theme="dark"] .btn-primary { background: var(--gold); color: #0f1923; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(0,0,0,.04); color: var(--text); border-color: transparent; }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-danger { background: rgba(201,42,42,.08); border-color: rgba(201,42,42,.2); color: var(--danger); }
.btn-danger:hover { background: rgba(201,42,42,.14); border-color: rgba(201,42,42,.3); }
.btn-warning { background: rgba(230,119,0,.08); border-color: rgba(230,119,0,.2); color: var(--warning); }
.btn-sm { padding: 5px 10px; font-size: 12px; } .btn-lg { padding: 11px 22px; font-size: 14px; }

/* FORMS */
.form-field { margin-bottom: 14px; }
.form-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 5px; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; background: var(--surface); color: var(--text); outline: none; transition: border-color .12s, box-shadow .12s; }
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,145,58,.12); }
.upload-box { min-height: 80px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; gap: 4px; cursor: pointer; transition: border-color .12s; padding: 12px; }
.upload-box:hover { border-color: var(--gold); }
.rich-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--border); border-bottom: none; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--bg); }
.rich-btn { width: auto; min-height: 30px; border: 1px solid var(--border); border-radius: 7px; padding: 5px 9px; background: var(--surface); color: var(--text); cursor: pointer; font-weight: 700; font-size: 12px; }
.rich-btn:hover { border-color: var(--gold); color: var(--accent); }
.rich-select { width: auto; min-height: 30px; padding: 5px 28px 5px 9px; border-radius: 7px; font-size: 12px; }
.rich-editor { min-height: 150px; max-height: 340px; overflow: auto; border: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 12px; background: var(--surface); color: var(--text); outline: none; line-height: 1.65; }
.rich-editor:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,145,58,.12); }
.rich-editor p, .lesson-rich-text p { margin-bottom: 10px; }
.rich-editor ul, .rich-editor ol, .lesson-rich-text ul, .lesson-rich-text ol { padding-left: 22px; margin: 10px 0; }
.rich-editor h2, .lesson-rich-text h2 { font-size: 24px; margin: 14px 0 8px; }
.rich-editor h3, .lesson-rich-text h3 { font-size: 20px; margin: 12px 0 8px; }
.rich-editor h4, .lesson-rich-text h4 { font-size: 17px; margin: 10px 0 6px; }

/* CARDS */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 15px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h3 { font-size: 18px; }
.card-body { padding: 18px; }
.card-footer { padding: 14px 18px; border-top: 1px solid var(--border); }

/* PILLS */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 3px 9px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pill-green { background: rgba(47,158,68,.1); color: var(--success); }
.pill-muted { background: rgba(0,0,0,.06); color: var(--muted); }
[data-theme="dark"] .pill-muted { background: rgba(255,255,255,.08); }
.pill-gold { background: rgba(200,145,58,.12); color: var(--gold); }
.pill-blue { background: rgba(28,73,99,.1); color: var(--accent); }
[data-theme="dark"] .pill-blue { background: rgba(200,145,58,.12); color: var(--gold); }
.pill-red { background: rgba(201,42,42,.1); color: var(--danger); }
.pill-warning { background: rgba(230,119,0,.1); color: var(--warning); }
.eyebrow { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 4px; }

/* PROGRESS */
.progress-bar { height: 6px; border-radius: 99px; background: rgba(0,0,0,.08); overflow: hidden; }
[data-theme="dark"] .progress-bar { background: rgba(255,255,255,.1); }
.progress-fill { height: 100%; border-radius: 99px; background: var(--success); }

/* AVATAR */
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, rgba(28,73,99,.8), rgba(200,145,58,.6)); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: white; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; border-radius: 50%; background: linear-gradient(135deg, rgba(28,73,99,.8), rgba(200,145,58,.6)); display: flex; align-items: center; justify-content: center; font-weight: 800; color: white; }
.avatar-xl { width: 86px; height: 86px; font-size: 24px; }

/* THUMBNAILS */
.thumb { border-radius: 8px; background: linear-gradient(135deg, #182020, #0f1719 65%, #6f3526); box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); flex-shrink: 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-sm { width: 44px; height: 34px; }
.thumb-md { width: 64px; height: 50px; border-radius: 10px; }
.thumb-lg { width: 100%; height: 155px; border-radius: 14px; display: flex; align-items: center; padding: 24px; color: white; }
.thumb-lg span { font-size: 24px; font-weight: 800; line-height: 1.05; }
.thumb-blue   { background: linear-gradient(135deg, rgba(28,73,99,.95), rgba(200,145,58,.65)); }
.thumb-purple { background: linear-gradient(135deg, #2d1a4a, #4a2060); }
.thumb-green  { background: linear-gradient(135deg, #1a3020, #2a4a30); }
.thumb-orange { background: linear-gradient(135deg, #3a1a10, #5a2a18); }
.thumb-teal   { background: linear-gradient(135deg, #0d3035, #1a5560); }

/* MODAL */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-bg.open { display: flex; }
.modal-card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 8px 40px rgba(0,0,0,.2); width: min(640px, 100%); max-height: 90vh; overflow: auto; }
.modal-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-head h2 { font-size: 24px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* TABLES */
.tbl-head { display: grid; gap: 12px; padding: 10px 18px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); border-bottom: 1px solid var(--border); }
.tbl-row { display: grid; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); align-items: center; transition: background .1s; }
.tbl-row:last-child { border-bottom: none; }
.tbl-row:hover { background: rgba(0,0,0,.025); }
[data-theme="dark"] .tbl-row:hover { background: rgba(255,255,255,.03); }
.tbl-actions { display: flex; gap: 6px; justify-content: flex-end; }
.col-kurse    { grid-template-columns: 1fr 60px 80px minmax(120px,180px) auto; }
.col-produkte { grid-template-columns: 1fr 1fr 70px 110px; }
.col-nutzer   { grid-template-columns: 1.1fr 1.2fr 1fr .9fr 110px; }
.col-nutzer-erweitert { grid-template-columns: minmax(200px,2fr) minmax(100px,140px) 110px 120px 100px 120px; }
.col-berichte { grid-template-columns: 1.2fr 1fr 1fr 110px; }
.add-row { padding: 13px 18px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--muted); font-weight: 600; border-top: 1px dashed var(--border); transition: all .12s; font-size: 13px; border-radius: 0 0 var(--radius) var(--radius); }
.add-row:hover { background: rgba(0,0,0,.02); color: var(--accent); }
.add-icon { width: 28px; height: 28px; border-radius: 7px; border: 1.5px dashed var(--border); display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }

/* ALERT */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert-warning, .alert-warn { background: rgba(230,119,0,.08); border: 1px solid rgba(230,119,0,.2); color: var(--warning); }
.alert-danger  { background: rgba(201,42,42,.08); border: 1px solid rgba(201,42,42,.2); color: var(--danger); }
.alert-info    { background: rgba(28,73,99,.07); border: 1px solid rgba(28,73,99,.15); color: var(--accent); }
[data-theme="dark"] .alert-info { color: var(--gold); border-color: rgba(200,145,58,.2); background: rgba(200,145,58,.07); }

/* BREADCRUMB */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text); font-weight: 600; }
.breadcrumb-sep { opacity: .4; }

/* APP SHELL */
.app-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.app-sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.sidebar-brand { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.brand-name { font-family: 'DM Serif Display', Georgia, serif; font-size: 20px; color: var(--accent); cursor: pointer; }
[data-theme="dark"] .brand-name { color: var(--gold); }
.badge-admin { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; background: rgba(28,73,99,.1); color: var(--accent); border-radius: 99px; padding: 2px 8px; }
[data-theme="dark"] .badge-admin { background: rgba(200,145,58,.15); color: var(--gold); }
.nav-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 0 10px; margin-bottom: 3px; margin-top: 14px; }
.nav-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font-weight: 600; text-align: left; cursor: pointer; font-size: 13px; transition: all .12s; }
.nav-btn:hover { background: rgba(0,0,0,.04); color: var(--text); }
[data-theme="dark"] .nav-btn:hover { background: rgba(255,255,255,.06); }
.nav-btn.active { background: rgba(28,73,99,.09); color: var(--accent); font-weight: 700; }
[data-theme="dark"] .nav-btn.active { background: rgba(200,145,58,.12); color: var(--gold); }
.nav-icon { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.sidebar-footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }

/* SIDEBAR SUCHE */
.sidebar-search { display: flex; align-items: center; gap: 4px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.sidebar-search input { border: none; background: transparent; padding: 7px 10px; font-size: 12px; flex: 1; box-shadow: none; }
.sidebar-search input:focus { box-shadow: none; }
.search-btn { border: none; background: transparent; color: var(--muted); padding: 7px 10px; cursor: pointer; font-size: 14px; flex-shrink: 0; }
.search-btn:hover { color: var(--accent); }
.search-result-item:hover { border-color: var(--gold); }

/* TOPBAR */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(245,243,239,.93); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
[data-theme="dark"] .topbar { background: rgba(15,25,35,.93); }
.topbar-left h2 { font-size: 26px; line-height: 1.1; }
.topbar-left p  { font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.notice-menu { position: relative; }
.notice-menu summary { list-style: none; }
.notice-menu summary::-webkit-details-marker { display: none; }
.notice-bell { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 700; transition: all .12s; }
.notice-bell:hover { border-color: rgba(28,73,99,.28); color: var(--accent); }
.notice-bell.has-notice { color: var(--text); border-color: rgba(185,28,28,.18); background: rgba(185,28,28,.04); }
.notice-bell.has-notice .notice-bell-icon { animation: bellNudge 1.8s ease-in-out 2; transform-origin: 50% 0; }
.notice-bell-icon { font-size: 14px; line-height: 1; }
.notice-bell-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: white; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.notice-popover { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 32px)); z-index: 80; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.notice-popover strong { display: block; font-size: 14px; margin-bottom: 5px; }
.notice-popover p { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.notice-popover-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@keyframes bellNudge {
  0%, 78%, 100% { transform: rotate(0); }
  84% { transform: rotate(12deg); }
  90% { transform: rotate(-10deg); }
  96% { transform: rotate(6deg); }
}
.content { padding: 26px 30px 60px; flex: 1; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-header h2 { font-size: 28px; margin-bottom: 2px; }
.panel-header p  { color: var(--muted); font-size: 13px; }

/* GLOBAL STATS */
.global-stats { display: flex; align-items: center; gap: 14px; }
.gstat { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.gstat strong { color: var(--text); font-weight: 700; }
.gstat-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* EDITOR GRIDS */
.editor-grid      { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.prod-editor-grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }

/* MODULE / LESSON */
.module-block { margin-bottom: 12px; }
.module-head-row { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(0,0,0,.025); border-radius: var(--radius-sm) var(--radius-sm) 0 0; border: 1px solid var(--border); }
[data-theme="dark"] .module-head-row { background: rgba(255,255,255,.04); }
.drag-handle { color: var(--muted); font-size: 14px; cursor: grab; }
.module-head-row strong { flex: 1; font-size: 13px; font-weight: 700; }
.lesson-rows { border: 1px solid var(--border); border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); overflow: hidden; }
.lesson-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background .1s; }
.lesson-item:last-child { border-bottom: none; }
.lesson-item:hover { background: rgba(0,0,0,.02); }
.lesson-item-name { flex: 1; font-weight: 600; font-size: 13px; }
.lesson-item-meta { font-size: 11px; color: var(--muted); }
.add-lesson-btn { width: 100%; padding: 9px 14px; border: none; border-top: 1px dashed var(--border); background: transparent; color: var(--muted); font-weight: 600; font-size: 12px; cursor: pointer; text-align: left; transition: all .12s; }
.add-lesson-btn:hover { color: var(--accent); background: rgba(0,0,0,.02); }

/* PRODUCT CHECKBOXES */
.course-checkbox-list { display: flex; flex-direction: column; gap: 7px; }
.course-checkbox-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all .12s; }
.course-checkbox-item:hover { border-color: rgba(200,145,58,.4); }
.course-checkbox-item.selected { border-color: var(--accent); background: rgba(28,73,99,.05); }
[data-theme="dark"] .course-checkbox-item.selected { border-color: var(--gold); background: rgba(200,145,58,.08); }
.course-checkbox-item input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.course-checkbox-name { font-weight: 600; font-size: 13px; flex: 1; }
.course-checkbox-meta { font-size: 11px; color: var(--muted); }
#uProducts .course-checkbox-item { display: block; cursor: default; }
#uProducts .course-checkbox-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
#uProducts .course-access-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-left: 28px; }
#uProducts .course-access-dates .form-field { margin-bottom: 0; }
#uProducts .course-access-dates input:disabled { opacity: .55; cursor: not-allowed; background: var(--bg); }
.prod-summary { background: rgba(28,73,99,.06); border: 1px solid rgba(28,73,99,.12); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
[data-theme="dark"] .prod-summary { background: rgba(200,145,58,.07); border-color: rgba(200,145,58,.15); }
.prod-summary-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: 8px; }
[data-theme="dark"] .prod-summary-title { color: var(--gold); }
.prod-summary-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* STATS */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card { padding: 18px 20px; border-top: 3px solid var(--accent); }
.stat-num { font-family: 'DM Serif Display', Georgia, serif; font-size: 34px; line-height: 1; margin-bottom: 3px; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-delta { font-size: 11px; margin-top: 3px; }
.stat-delta.warn { color: var(--warning); }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 16px; align-items: start; }
.admin-focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.admin-task-list, .admin-list { display: flex; flex-direction: column; }
.admin-task-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 13px 18px 13px 15px; border-bottom: 1px solid var(--border); align-items: flex-start; border-left: 3px solid transparent; transition: border-color .15s; }
.admin-task-item:last-child { border-bottom: none; }
.admin-task-item:hover, .admin-list-row:hover { background: rgba(0,0,0,.025); }
[data-theme="dark"] .admin-task-item:hover, [data-theme="dark"] .admin-list-row:hover { background: rgba(255,255,255,.03); }
.admin-task-item strong, .admin-list-row strong { display: block; font-size: 13px; }
.admin-task-item span:not(.pill), .admin-list-row span:not(.pill) { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.admin-task-item.status-ok    { border-left-color: var(--success); }
.admin-task-item.status-warn  { border-left-color: var(--warning); }
.admin-task-item.status-crit  { border-left-color: var(--danger); }
.admin-health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }
.admin-health-grid > div { background: var(--surface); padding: 18px; }
.admin-health-grid strong { display: block; font-family: 'DM Serif Display', Georgia, serif; font-size: 30px; line-height: 1; margin-bottom: 4px; }
.admin-health-grid span { color: var(--muted); font-size: 12px; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px 13px 15px; border-bottom: 1px solid var(--border); border-left: 3px solid transparent; }
.admin-list-row:last-child { border-bottom: none; }
.admin-list-row.status-warn  { border-left-color: var(--warning); }
.admin-list-row.status-crit  { border-left-color: var(--danger); }
.admin-empty { padding: 18px; color: var(--muted); font-size: 13px; }
.mailing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.mail-editor-toolbar { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: var(--bg); }
.mail-editor { min-height: 260px; padding: 14px; border: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: var(--surface); outline: none; line-height: 1.55; }
.mail-editor:empty:before { content: attr(data-placeholder); color: var(--muted); }
.mail-editor img { max-width: 100%; height: auto; border-radius: 6px; }
.mailing-history-grid { grid-template-columns: 1.6fr 120px 90px 100px 70px; }
.mailing-detail-grid { grid-template-columns: 1.4fr 120px 150px 110px; }

/* COURSE GRID */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.course-section { margin-bottom: 36px; }
.course-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.course-section-head h3 { font-size: 20px; }
.course-section-head span { color: var(--muted); font-size: 12px; }
.course-motivation-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 22px; }
.course-motivation-card h3 { font-size: 20px; margin-bottom: 4px; }
.course-motivation-card p { color: var(--muted); font-size: 13px; }
.course-tile { display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.course-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.tile-body { padding: 14px 16px; }
.tile-body h3 { font-size: 16px; margin-bottom: 4px; }
.tile-status { font-size: 12px; color: var(--muted); }
.offer-preview-box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; background: var(--bg); }
.offer-preview-box h3 { font-size: 20px; margin-bottom: 6px; }
.offer-preview-box p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.workflow-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 18px; }
.workflow-step { min-height: 64px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.workflow-step strong { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--bg); color: var(--muted); }
.workflow-step span { font-size: 12px; font-weight: 700; color: var(--muted); }
.workflow-step.done { border-color: rgba(31,122,61,.24); background: rgba(31,122,61,.06); }
.workflow-step.done strong { background: var(--success); color: white; }
.workflow-step.done span { color: var(--text); }
.workflow-step.locked { opacity: .45; cursor: not-allowed; }
button.workflow-step, a.workflow-step { cursor: pointer; text-decoration: none; text-align: left; font-family: inherit; }
button.workflow-step:hover, a.workflow-step:hover { border-color: var(--accent); }

/* FORTSCHRITT PRO MODUL */
.module-progress { margin-bottom: 10px; }
.module-progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* LOGIN */
.login-member-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.login-member-left { background: linear-gradient(160deg, var(--accent) 0%, #0d2a3a 100%); padding: 60px 48px; display: flex; align-items: center; }
.login-hero { color: white; }
.login-hero h1 { font-size: 42px; line-height: 1.05; margin-bottom: 16px; color: white; }
.login-hero p { color: rgba(255,255,255,.75); line-height: 1.65; margin-bottom: 28px; }
.login-testimonial { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 18px 20px; }
.login-testimonial p { font-size: 13px; color: rgba(255,255,255,.85); margin-bottom: 12px; font-style: italic; }
.login-testimonial-author { display: flex; align-items: center; gap: 10px; }
.login-testimonial-author strong { display: block; color: white; font-size: 13px; }
.login-testimonial-author span { font-size: 11px; color: rgba(255,255,255,.6); }
.login-member-right { padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; max-width: 480px; }
.login-form h2 { font-size: 32px; margin-bottom: 6px; }
.login-form p { color: var(--muted); margin-bottom: 24px; }
.login-note { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }
.login-link { margin-top: 8px; font-size: 12px; text-align: center; color: var(--muted); }
.login-admin-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-admin-card { width: min(400px,100%); padding: 32px; }
.login-admin-card h2 { font-size: 26px; margin-bottom: 4px; }
.login-admin-card p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }

/* LEARN SHELL */
.learn-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.learn-nav { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.learn-nav-logo { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.learn-nav-course { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.learn-nav-course h3 { font-size: 15px; margin-bottom: 4px; }
.learn-nav-course span { font-size: 12px; color: var(--muted); }
.learn-nav-links { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.module-nav-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 10px 4px; }
.lesson-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--muted); transition: all .1s; }
.lesson-link:hover { background: rgba(0,0,0,.04); color: var(--text); }
.lesson-link.active { background: rgba(28,73,99,.09); color: var(--accent); font-weight: 700; }
.lesson-link.done { color: var(--success); }
[data-theme="dark"] .lesson-link.active { background: rgba(200,145,58,.12); color: var(--gold); }
.check-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 10px; flex-shrink: 0; }
.lesson-link.done .check-dot { background: var(--success); border-color: var(--success); color: white; }
.learn-main { min-width: 0; padding: 32px 40px 60px; }
.learn-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.learn-breadcrumb a:hover { color: var(--accent); }
.learn-breadcrumb-sep { opacity: .4; }
.video-box { position: relative; width: min(860px, 72vw, calc(52vh * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto 24px; background: #000; border-radius: var(--radius); overflow: hidden; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; color: white; background: transparent; border: none; cursor: pointer; }
.lesson-content { max-width: 720px; margin: 0 auto 24px; }
.lesson-focus-card { max-width: 860px; margin: -8px auto 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.lesson-focus-card h3 { font-size: 18px; margin-bottom: 3px; }
.lesson-focus-card p, .lesson-focus-goal span { color: var(--muted); font-size: 13px; }
.lesson-focus-goal { max-width: 260px; padding-left: 16px; border-left: 1px solid var(--border); }
.lesson-focus-goal strong { display: block; font-size: 13px; margin-bottom: 3px; }
.lesson-feedback-card { max-width: 720px; margin: 0 auto 20px; padding: 18px 20px; }
.lesson-feedback-card h3 { font-size: 18px; margin-bottom: 4px; }
.lesson-feedback-card p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.lesson-feedback-form { display: grid; gap: 10px; }
.lesson-feedback-form textarea { min-height: 92px; }
.lesson-complete-card { display: none; max-width: 720px; margin: 0 auto 16px; padding: 14px 16px; border: 1px solid rgba(31,122,61,.22); border-radius: var(--radius-sm); background: rgba(31,122,61,.08); }
.lesson-complete-card.show { display: block; }
.lesson-complete-card strong { display: block; font-size: 14px; margin-bottom: 3px; color: var(--success); }
.lesson-complete-card span { font-size: 13px; color: var(--muted); }
.lesson-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 800px; margin: 0 auto; padding-top: 20px; border-top: 1px solid var(--border); }
.resource-list { display: flex; flex-direction: column; gap: 8px; }
.resource-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); }

/* DASHBOARD CARDS */
.welcome-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, var(--accent), #0d2a3a); border-radius: var(--radius); padding: 28px 32px; color: white; margin-bottom: 20px; }
.welcome-hero h1 { color: white; font-size: 28px; margin-bottom: 4px; }
.welcome-hero p { color: rgba(255,255,255,.75); font-size: 13px; }
.welcome-hero-visual { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: white; flex-shrink: 0; }
.welcome-hero-stats { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hero-stat { text-align: center; color: white; }
.hero-stat strong { display: block; font-size: 22px; font-weight: 700; line-height: 1; }
.hero-stat span { font-size: 11px; color: rgba(255,255,255,.65); }
.streak-badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px 10px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; font-size: 12px; font-weight: 600; color: white; }
.hinweis-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.hinweis-card { padding: 18px 20px; }
.hinweis-card h3 { font-size: 16px; margin-bottom: 6px; }
.hinweis-card p { font-size: 13px; color: var(--muted); }
.continue-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.continue-card h3 { font-size: 18px; margin-bottom: 4px; }
.continue-card p { font-size: 13px; color: var(--muted); }
.next-step-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; margin-bottom: 14px; border-color: rgba(28,73,99,.16); }
.next-step-card h3 { font-size: 18px; margin-bottom: 4px; }
.next-step-card p { font-size: 13px; color: var(--muted); }
.quick-actions-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; }
.quick-actions-card h3 { font-size: 17px; }

/* EVENTS */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.event-tile { cursor: pointer; overflow: hidden; transition: transform .15s; }
.event-tile:hover { transform: translateY(-2px); }
.event-past { opacity: .7; }
.event-thumb { position: relative; height: 120px; overflow: hidden; }
.event-thumb img { width: 100%; height: 100%; object-fit: cover; }
.event-thumb-placeholder { width: 100%; height: 100%; }
.event-thumb-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.4), transparent); display: flex; align-items: flex-end; padding: 10px 12px; }
.event-type-pill { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.2); color: white; border-radius: 99px; padding: 3px 9px; backdrop-filter: blur(4px); }
.event-body { padding: 14px 16px; }
.event-body h3 { font-size: 15px; margin-bottom: 6px; }
.event-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* UPSELL */
.upsell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.upsell-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.upsell-card h3 { font-size: 18px; }
.upsell-card p { font-size: 13px; color: var(--muted); }
.offer-landing { max-width: 920px; margin: 0 auto; }
.offer-hero { border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), #0d2a3a); color: white; padding: 42px 46px; }
.offer-hero h1 { color: white; font-size: 38px; margin-bottom: 10px; }
.offer-hero p { color: rgba(255,255,255,.76); max-width: 620px; }

/* ZUGÄNGE */
.zugang-hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.zugang-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.zugang-meta-item { padding: 12px 16px; border-right: 1px solid var(--border); }
.zugang-meta-item:last-child { border-right: none; }
.zugang-meta-item span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.zugang-meta-item strong { font-size: 14px; font-weight: 700; }

/* PROGRAM PROFILE */
.program-list { display: flex; flex-direction: column; gap: 10px; }
.program-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg); }
.program-row strong { display: block; font-size: 13px; }
.program-row span:not(.pill) { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* PROFILE */
.profile-card-body { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; }
.profile-photo-form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.profile-data-form { min-width: 0; }

/* BOOKING */
.booking-card { overflow: hidden; }
.booking-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.booking-card-head h3 { font-size: 20px; }
.booking-frame { width: 100%; min-height: 680px; border: 0; display: block; background: var(--surface); }
.booking-embed-wrap { min-height: 680px; padding: 0; background: var(--surface); }
.tidycal-embed { width: 100%; min-height: 680px; }
.booking-simple { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; background: var(--bg); }
.booking-simple h2 { font-size: 30px; margin-bottom: 8px; }
.booking-simple p { color: var(--muted); max-width: 540px; margin-bottom: 22px; }
.booking-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(200,145,58,.13); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }

/* NOTICE PREVIEW */
.notice-preview { background: linear-gradient(135deg, var(--accent), #0d2a3a); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 20px; color: white; }
.notice-preview .eyebrow { color: var(--gold); }
.notice-preview h2 { color: white; font-size: 22px; margin-bottom: 6px; }
.notice-preview p { color: rgba(255,255,255,.75); font-size: 13px; }

/* ACCOUNT MINI */
.account-mini { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: rgba(0,0,0,.03); }
[data-theme="dark"] .account-mini { background: rgba(255,255,255,.04); }
.account-mini-link { transition: all .12s; }
.account-mini-link:hover, .account-mini-link.active { background: rgba(28,73,99,.09); }
[data-theme="dark"] .account-mini-link:hover, [data-theme="dark"] .account-mini-link.active { background: rgba(200,145,58,.12); }
.account-mini-text strong { display: block; font-size: 12px; font-weight: 700; color: var(--text); }
.account-mini-text span { font-size: 11px; color: var(--muted); }

/* ============================================================
   RESPONSIVE – Tablet & Mobile
   ============================================================ */

/* Tablet (max 900px) */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 190px 1fr; }
  .learn-shell { grid-template-columns: 240px 1fr; }
  .editor-grid { grid-template-columns: 1fr; }
  .prod-editor-grid { grid-template-columns: 1fr; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .admin-focus-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: repeat(3, 1fr); }
  .mailing-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .login-member-wrap { grid-template-columns: 1fr; }
  .login-member-left { display: none; }
  .login-member-right { max-width: 100%; justify-content: flex-start; padding: 40px 32px; }
  .col-nutzer-erweitert { grid-template-columns: 1.2fr 120px 90px 100px; }
  .col-nutzer-erweitert .tbl-head span:nth-child(4),
  .col-nutzer-erweitert .tbl-row > *:nth-child(4) { display: none; }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-sidebar.open { display: flex; position: fixed; inset: 0; z-index: 100; height: 100vh; width: 260px; box-shadow: 8px 0 32px rgba(0,0,0,.15); }
  .learn-shell { grid-template-columns: 1fr; }
  .learn-nav { display: none; }
  .content { padding: 16px 16px 40px; }
  .topbar { padding: 10px 16px; }
  .topbar-left h2 { font-size: 20px; }
  .notice-bell-text { display: none; }
  .notice-bell { padding: 6px 8px; }
  .notice-popover { right: -42px; }
  .global-stats { display: none; }
  .course-grid { grid-template-columns: 1fr; }
  .course-motivation-card { flex-direction: column; align-items: flex-start; }
  .workflow-steps { grid-template-columns: 1fr 1fr; }
  .event-grid { grid-template-columns: 1fr; }
  .upsell-grid { grid-template-columns: 1fr; }
  .hinweis-row { grid-template-columns: 1fr; }
  .welcome-hero { flex-direction: column; padding: 20px; }
  .welcome-hero-visual { display: none; }
  .continue-card { flex-direction: column; align-items: flex-start; }
  .next-step-card { flex-direction: column; align-items: flex-start; }
  .next-step-card .btn { width: 100%; justify-content: center; }
  .profile-card-body { grid-template-columns: 1fr; }
  .profile-photo-form { align-items: flex-start; }
  .program-row { grid-template-columns: 1fr; align-items: start; }
  .booking-card-head { flex-direction: column; align-items: flex-start; }
  .booking-card-head .btn { width: 100%; justify-content: center; }
  .booking-frame { min-height: 620px; }
  .booking-embed-wrap, .tidycal-embed { min-height: 620px; }
  .col-kurse { grid-template-columns: 1fr 80px 90px; }
  .col-kurse span:nth-child(3),
  .col-kurse span:nth-child(4) { display: none; }
  .col-produkte { grid-template-columns: 1fr 80px; }
  .col-nutzer-erweitert { grid-template-columns: 1fr 90px; }
  .mailing-history-grid { grid-template-columns: 1fr 80px; }
  .mailing-history-grid > *:nth-child(2),
  .mailing-history-grid > *:nth-child(3) { display: none; }
  .mailing-detail-grid { grid-template-columns: 1fr; }
  .mailing-detail-grid.tbl-head { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .lesson-nav-row { flex-direction: column; align-items: stretch; }
  .lesson-nav-row .btn { width: 100%; justify-content: center; }
  .lesson-nav-row > span:empty { display: none; }
  .learn-main { padding: 16px 16px 40px; }
  .lesson-focus-card { flex-direction: column; align-items: flex-start; }
  .lesson-focus-goal { max-width: none; padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 12px; }
  .modal-card { max-height: 95vh; }
  #uProducts .course-access-dates { grid-template-columns: 1fr; padding-left: 0; }

  /* Mobile Topbar Burger */
  .mobile-menu-btn { display: flex; }
}

.mobile-menu-btn { display: none; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; cursor: pointer; font-size: 18px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
.sidebar-overlay.open { display: block; }

/* ── Betreuungszentrale ──────────────────────────────────────────── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.admin-shortcut-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-shortcut { display: flex; align-items: center; gap: 14px; padding: 16px 20px; text-decoration: none; color: inherit; transition: border-color .15s; }
.admin-shortcut:hover { border-color: var(--accent); }
.admin-shortcut-icon { font-size: 22px; flex-shrink: 0; }
.admin-shortcut strong { display: block; font-size: 14px; font-weight: 700; }
.admin-shortcut span { font-size: 12px; color: var(--muted); }
.admin-shortcut-arrow { margin-left: auto; color: var(--muted); font-size: 16px; flex-shrink: 0; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; text-decoration: none; transition: background .15s, border-color .15s; }
.filter-btn:hover { background: var(--surface-hover, #f5f5f5); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-badge { background: rgba(255,255,255,.25); color: inherit; border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 600; }
.filter-btn:not(.active) .filter-badge { background: var(--accent-light, #e8f0fe); color: var(--accent); }

.care-list { display: flex; flex-direction: column; gap: 16px; }
.care-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.care-item-header { display: flex; align-items: center; gap: 10px; }
.care-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.care-item-info strong { font-size: 14px; }
.care-item-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); }
.care-item-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.input-inline { padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; background: var(--surface); color: var(--text); }
.care-note-form { display: flex; flex-direction: column; gap: 6px; }
.care-note-input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: inherit; background: var(--surface); color: var(--text); resize: vertical; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-neutral { background: var(--surface-hover, #f0f0f0); color: var(--text-muted); }

.text-danger { color: #c0392b; }
.text-warning { color: #856404; }

.feedback-list { display: flex; flex-direction: column; gap: 16px; }
.feedback-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.feedback-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.feedback-message { font-size: 14px; margin: 0 0 10px; white-space: pre-wrap; }
.feedback-actions { display: flex; gap: 8px; }

.page-header { display: flex; flex-direction: column; gap: 4px; }
.page-header h1 { margin: 0; }

/* ── Nutzer-Detailseite ─────────────────────────────────────────── */
.nutzer-detail-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .nutzer-detail-grid { grid-template-columns: 1fr; } }
.nutzer-detail-profile { display: flex; align-items: center; gap: 14px; }
.member-avatar.large { width: 56px; height: 56px; font-size: 20px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.member-avatar.small { width: 36px; height: 36px; font-size: 13px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.nutzer-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nutzer-access-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.nutzer-access-row:last-child { border-bottom: none; }
.badge-success { background: #d4edda; color: #155724; }
.nutzer-progress-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.nutzer-progress-row:last-child { border-bottom: none; }
.nutzer-progress-info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.progress-bar-wrap { width: 80px; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.nutzer-last-lesson { display: flex; gap: 8px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.nutzer-feedback-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.nutzer-feedback-row:last-child { border-bottom: none; }
.nutzer-feedback-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 12px; align-items: center; }
.nutzer-feedback-text { font-size: 13px; margin: 0 0 4px; }
.nutzer-feedback-reply { font-size: 12px; color: var(--text-muted); margin: 0 0 6px; font-style: italic; }
.link-muted { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

/* ── Feedback-Detailseite ───────────────────────────────────────── */
.feedback-detail-list { display: flex; flex-direction: column; gap: 16px; }
.feedback-detail-item { display: flex; flex-direction: column; gap: 10px; }
.feedback-detail-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; }
.feedback-detail-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.feedback-detail-course { font-size: 12px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.feedback-detail-message { background: var(--surface-hover, #f8f8f8); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin: 0; }
.feedback-detail-reply { background: #e8f4e8; border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.feedback-detail-reply strong { font-size: 12px; color: #2d7a2d; }
.feedback-reply-form { display: flex; flex-direction: column; gap: 8px; }
.feedback-reply-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.feedback-status-actions { display: flex; gap: 8px; padding-top: 4px; border-top: 1px solid var(--border); }

/* ── Kursabschluss-Overlay ──────────────────────────────────────── */
/* ── Meeting-Raum ───────────────────────────────── */
.meetingroom-card { text-align:center; max-width:480px; width:100%; padding:48px 40px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:0 12px 40px rgba(0,0,0,.08); }
.meetingroom-pulse { position:relative; width:56px; height:56px; margin:0 auto; }
.meetingroom-dot { position:absolute; inset:12px; border-radius:50%; background:var(--accent); }
.meetingroom-dot-ring { position:absolute; inset:0; border-radius:50%; border:2px solid var(--accent); opacity:.35; animation:meetPulse 2s ease-out infinite; }
@keyframes meetPulse { 0%{transform:scale(.6);opacity:.5} 100%{transform:scale(1.4);opacity:0} }
.meetingroom-title { font-size:26px; margin:6px 0 10px; }
.meetingroom-meta { font-size:13px; color:var(--muted); margin-bottom:10px; }
.meetingroom-desc { font-size:13px; color:var(--muted); margin-bottom:16px; }
.meetingroom-hint { font-size:13px; color:var(--muted); background:var(--bg); border-radius:var(--radius-sm); padding:12px 16px; margin-bottom:24px; line-height:1.6; }
.btn-meetingroom { display:inline-flex; align-items:center; gap:8px; background:var(--accent); color:white; border-radius:var(--radius-sm); padding:14px 32px; font-size:16px; font-weight:700; text-decoration:none; transition:opacity .15s; }
.btn-meetingroom:hover { opacity:.88; }
.meetingroom-no-link { font-size:13px; color:var(--muted); font-style:italic; padding:14px; border:1px dashed var(--border); border-radius:var(--radius-sm); }
/* ── Live-Call Seite ─────────────────────────────── */
.livecall-hero { display: flex; gap: 24px; align-items: flex-start; background: linear-gradient(135deg, #0d2a3a, #1a4d5c); border-radius: var(--radius); padding: 36px 40px; margin-bottom: 28px; color: white; }
.livecall-hero.is-live { background: linear-gradient(135deg, #7b1a1a, #1a3a0d); }
.livecall-hero-left { flex: 1; }
.livecall-hero-left h1 { color: white; font-size: 28px; margin: 8px 0 12px; }
.livecall-meta { display: flex; gap: 18px; font-size: 13px; color: rgba(255,255,255,.75); margin-bottom: 14px; flex-wrap: wrap; }
.livecall-desc { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 20px; line-height: 1.6; }
.livecall-no-link { font-size: 13px; color: rgba(255,255,255,.55); font-style: italic; }
.btn-livecall { display: inline-flex; align-items: center; gap: 8px; background: white; color: #0d2a3a; border: none; border-radius: var(--radius-sm); padding: 12px 22px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; transition: opacity .15s; }
.btn-livecall:hover { opacity: .88; }
.livecall-hero.is-live .btn-livecall { background: #e53e3e; color: white; }
.livecall-hero-right { flex-shrink: 0; }
.livecall-countdown-box { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 20px 24px; text-align: center; min-width: 180px; }
.livecall-countdown-box.live { border-color: rgba(255,255,255,.3); }
.countdown-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.countdown-digits { display: flex; gap: 10px; justify-content: center; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.countdown-unit strong { font-size: 26px; font-weight: 800; color: white; line-height: 1; min-width: 42px; text-align: center; }
.countdown-unit span { font-size: 10px; color: rgba(255,255,255,.55); text-transform: uppercase; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(220,38,38,.9); color: white; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: white; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
@media (max-width: 600px) {
  .livecall-hero { flex-direction: column; padding: 24px 20px; }
  .livecall-hero-right { width: 100%; }
  .livecall-countdown-box { min-width: 0; }
}
/* ────────────────────────────────────────────────── */

.course-complete-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; align-items: center; justify-content: center; }
.course-complete-overlay.show { display: flex; }
.course-complete-card { background: var(--surface); border-radius: var(--radius); padding: 40px; max-width: 420px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.course-complete-icon { font-size: 48px; margin-bottom: 12px; }
.course-complete-card h2 { margin: 0 0 8px; }
.course-complete-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.streak-info { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.lesson-question-hint { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); max-width: 720px; margin: 0 auto 20px; font-size: 13px; color: var(--muted); }

/* ── Utility ────────────────────────────────────────────────────── */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
