/* ═══════════════════════════════════════════════════════════════════════════
 * app-additions.css — ergänzende Styles nur für Komponenten, die es in
 * der HTML-Vorlage noch nicht gab (Login, Lade-Zustände).
 * Die Haupt-Optik kommt komplett aus app.css (1:1 aus der HTML).
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ─── Zentrierte Lade-/Fehler-States ─────────────────────────────────────── */
.centered-state {
  max-width: 640px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
}
.centered-state code {
  background: #F4F5FB;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.error-pre {
  background: #FFEFEC;
  color: #7A2E1A;
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  overflow-x: auto;
  font-size: 0.85em;
}
.text-soft {
  color: var(--text-soft);
}

/* ─── Login-Screen ───────────────────────────────────────────────────────── */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #F4F5FB 0%, #FAFAFA 60%);
  font-family: 'DM Sans', sans-serif;
}
.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(43, 45, 66, 0.08);
}
.login-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  margin: 1rem 0 0.5rem;
  color: var(--text);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.login-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.login-form label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
}
.login-form input {
  padding: 0.7rem 0.9rem;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
.login-form input:focus {
  outline: none;
  border-color: #4F5DA6;
  box-shadow: 0 0 0 3px rgba(79, 93, 166, 0.12);
}
.login-error {
  color: #B1472E;
  background: #FDEBE4;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0;
}
.login-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}
.link {
  background: none;
  border: none;
  color: #4F5DA6;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}
.btn {
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms, transform 80ms;
}
.btn-primary {
  background: #4F5DA6;
  color: white;
}
.btn-primary:hover {
  background: #3E4C91;
}
.btn-primary:disabled {
  background: #9DA4C4;
  cursor: not-allowed;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: #E2E6EF;
}
.btn-ghost:hover { background: #F4F5FB; }

/* ─── Material-Download-Liste in section-body ────────────────────────────── */
.mat-list { list-style: none; padding: 0; margin: 0; }
.mat-list .mat-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  margin: 6px 0;
  background: #FAFAFA;
  border: 1px solid #ECEFF6;
  border-radius: 8px;
}
.mat-list .mat-row a[data-download] {
  color: #4F5DA6;
  text-decoration: none;
  font-weight: 600;
}
.mat-list .mat-row a[data-download]:hover { text-decoration: underline; }
.mat-list .mat-row a[data-download]::after {
  content: ' ↓';
  color: #9CA3AF;
  font-weight: 400;
}
.mat-list .mat-desc-inline {
  color: var(--text-soft);
  font-size: 13px;
}

/* ─── AI-Mentor schwebender FAB-Button ───────────────────────────────────── */
.mentor-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2B2D42 0%, #4F5DA6 100%);
  color: white;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(43, 45, 66, 0.25);
  transition: transform 180ms, box-shadow 180ms;
}
.mentor-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(43, 45, 66, 0.35); }
.mentor-fab.open {
  padding: 14px;
  width: 48px;
  height: 48px;
  justify-content: center;
}
.mentor-fab-label { font-size: 14px; }
.mentor-fab svg { color: white; }

/* Tab-Icons (Phase 2 UI-Polish) — Icons im farbigen Kreis */
.nav-tab.nav-tab-icon .tab-num {
  width: 28px;
  height: 28px;
}
.nav-tab .tab-num svg { color: white; display: block; }

/* Background-Farben für Tabs 10-12 (Roleplay / Werkzeuge / Assessment) —
   das Original-app.css deckt nur 1-9 ab. Ohne Background sind die SVG-Icons
   weiß-auf-weiß und damit unsichtbar. */
.nav-tab:nth-child(10) .tab-num { background: var(--resources); }
.nav-tab:nth-child(11) .tab-num { background: var(--private-life); }
.nav-tab:nth-child(12) .tab-num { background: var(--health); }
.nav-tab:nth-child(10).active::after { background: var(--resources); }
.nav-tab:nth-child(11).active::after { background: var(--private-life); }
.nav-tab:nth-child(12).active::after { background: var(--health); }

/* ─── Mentor-Panel ───────────────────────────────────────────────────────── */
.mentor-panel {
  position: fixed;
  bottom: 88px;
  right: 24px;
  z-index: 998;
  width: 420px;
  max-width: calc(100vw - 48px);
  height: 640px;
  max-height: calc(100vh - 140px);
  background: white;
  border: 1px solid #E2E4F0;
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(43, 45, 66, 0.20);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.mentor-header {
  padding: 14px 18px;
  border-bottom: 1px solid #ECEFF6;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(79,93,166,0.06), rgba(31,107,66,0.04));
}
.mentor-title { font-weight: 700; font-size: 16px; color: var(--text); }
.mentor-subtitle { font-size: 12px; color: var(--text-soft); margin-top: 2px; }
.mentor-close {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}
.mentor-modeswitch {
  display: flex;
  gap: 0;
  padding: 0 12px;
  border-bottom: 1px solid #ECEFF6;
}
.mentor-mode {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
}
.mentor-mode.active {
  color: #4F5DA6;
  border-bottom-color: #4F5DA6;
  font-weight: 600;
}
.mentor-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
}
.mentor-hint {
  background: #F4F5FB;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-soft);
}
.mentor-hint ul { margin: 6px 0 0 20px; padding: 0; }
.mentor-hint li { margin: 4px 0; }
.mentor-msg { margin-bottom: 14px; }
.mentor-msg-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.mentor-msg-user .mentor-msg-role { color: #4F5DA6; }
.mentor-msg-assistant .mentor-msg-role { color: #1F6B42; }
.mentor-msg-text { color: var(--text); }
.mentor-msg-text h3, .mentor-msg-text h4 { margin: 10px 0 4px; font-family: inherit; }
.mentor-msg-text p { margin: 4px 0; }
.mentor-msg-text ul { margin: 4px 0; padding-left: 20px; }
.mentor-msg-text code { background: #F4F5FB; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.mentor-typing::after {
  content: '▋';
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.mentor-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #ECEFF6;
}
.mentor-input-row textarea {
  flex: 1 1 auto;
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  resize: none;
}
.mentor-input-row .btn-primary {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
  white-space: nowrap;
}
.rp-input-wrap {
  position: relative;
  flex: 1 1 auto;
  display: flex;
}
.rp-input-wrap textarea {
  flex: 1 1 auto;
  padding-right: 46px;
}
.rp-mic-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #E2E6EF;
  background: #F7F8FC;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.rp-mic-btn:hover {
  background: #EEF1F8;
  transform: scale(1.04);
}
.rp-mic-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.rp-mic-btn-active {
  background: #E8705A;
  color: white;
  border-color: #E8705A;
  box-shadow: 0 0 0 0 rgba(232, 112, 90, 0.55);
  animation: rp-mic-pulse 1.4s infinite;
}
.rp-mic-btn-active:hover {
  background: #D85F4A;
}
@keyframes rp-mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(232, 112, 90, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(232, 112, 90, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 112, 90, 0); }
}
.rp-speech-error {
  padding: 6px 14px 10px;
  font-size: 13px;
  color: #B4453A;
}

/* ══════ Auswertungs-Card (separate von Persona-Dialog) ══════ */
.roleplay-analysis-card {
  margin-top: 20px;
  background: linear-gradient(145deg, #F7F5EF 0%, #EFEAD9 100%);
  border: 2px solid var(--identity);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}
.rp-analysis-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}
.rp-analysis-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--identity);
  color: #1A1A1A;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}
.rp-analysis-sub {
  font-size: 13px;
  color: var(--text-soft);
}
.rp-analysis-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.rp-analysis-body h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  margin: 18px 0 6px;
  color: #1A1A1A;
}
.rp-analysis-body h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  margin: 16px 0 4px;
  color: var(--resources);
}
.rp-analysis-body h4:first-child,
.rp-analysis-body h3:first-child {
  margin-top: 0;
}
.rp-analysis-body strong {
  color: #1A1A1A;
}
.rp-analysis-foot {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}
.rp-speech-hint {
  padding: 6px 14px 10px;
  font-size: 12px;
  color: var(--text-soft);
}
.mentor-supervision {
  padding: 14px 18px;
  border-top: 1px solid #ECEFF6;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mentor-supervision label span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.mentor-supervision textarea {
  width: 100%;
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}

/* ─── Roleplay ───────────────────────────────────────────────────────────── */
.roleplay-personas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.roleplay-persona {
  text-align: left;
  background: white;
  border: 1px solid #E2E4F0;
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  display: flex;
  gap: 16px;
  transition: transform 120ms, box-shadow 120ms;
}
.roleplay-persona:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 45, 66, 0.08);
}
.roleplay-persona .rp-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}
.roleplay-persona .rp-name {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin-bottom: 2px;
}
.roleplay-persona .rp-role {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.roleplay-persona .rp-intro {
  font-size: 13px;
  line-height: 1.5;
}

.roleplay-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  margin-bottom: 12px;
}
.roleplay-dialog-header .rp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* Monochrome Initial-Avatare + schlichtes Mod-Icon (ersetzt frühere Emojis) */
.rp-avatar-initials,
.cp-avatar-initials,
.mod-icon-plain {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px !important;
  font-weight: 600;
  color: #2B2D42;
  letter-spacing: 0.5px;
}
.roleplay-persona .rp-avatar-initials {
  font-size: 22px !important;
}
.mod-icon-plain {
  font-size: 20px !important;
  color: #2D2D3D;
}
.q-badge-correct { background: #1F6B42; color: white; }
.q-badge-wrong   { background: #B1472E; color: white; }
.q-badge-hint    { background: #F6C731; color: #2B2D42; }

/* ─── Flashcards ─────────────────────────────────────────────────────────── */
.flashcard {
  background: white;
  border: 1px solid #E2E4F0;
  border-radius: 14px;
  padding: 28px;
  margin-top: 20px;
}
.flashcard-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.flashcard-badge {
  display: inline-block;
  background: #4F5DA6;
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.flashcard-progress {
  font-size: 12px;
  color: var(--text-muted);
}
.flashcard-question {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 20px;
}
.flashcard-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.flashcard-options .quiz-option {
  text-align: left;
  padding: 10px 14px;
  background: #FAFAFA;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: background 120ms;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.flashcard-options .quiz-option:hover:not(:disabled) { background: #F4F5FB; }
.flashcard-options .quiz-option .q-letter {
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}
.flashcard-options .quiz-option.correct { background: #E7F4EC; border-color: #1F6B42; color: #155A35; }
.flashcard-options .quiz-option.incorrect { background: #FDEBE4; border-color: #B1472E; color: #7A2E1A; }
.flashcard-options .quiz-option.correct-hint { background: #F0F8F3; border-color: #AED9BE; }

.rate-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.rate-btn {
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 80ms;
}
.rate-btn:hover { transform: translateY(-1px); }
.rate-again { background: #FDEBE4; color: #7A2E1A; border-color: #F3CFC1; }
.rate-hard  { background: #FFF4E0; color: #8E5A12; border-color: #F3DEA6; }
.rate-good  { background: #E7F4EC; color: #155A35; border-color: #B7DCC3; }
.rate-easy  { background: #E0ECFE; color: #1E3A8A; border-color: #BCD0F9; }

/* ─── Decision-Tree-Slide ────────────────────────────────────────────────── */
.slide-decision-tree { }
.decision-step {
  background: #FAFAFA;
  border: 1px solid #E2E4F0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}
.decision-step-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4F5DA6;
  margin-bottom: 8px;
}
.decision-situation {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.decision-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.decision-option {
  text-align: left;
  padding: 12px 14px;
  background: white;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: all 120ms;
}
.decision-option:hover {
  background: #F4F5FB;
  border-color: #4F5DA6;
  transform: translateX(2px);
}
.decision-restart {
  margin-top: 12px;
  font-size: 13px;
}

.decision-review {
  background: linear-gradient(135deg, rgba(79,93,166,0.06), rgba(31,107,66,0.04));
  padding: 20px 24px;
  border-radius: 14px;
  margin-top: 16px;
}
.decision-review h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  margin: 0 0 12px;
}
.decision-path { margin: 0 0 16px; padding-left: 20px; }
.decision-path li {
  margin-bottom: 10px;
  line-height: 1.5;
}
.decision-feedback {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
  padding-left: 0;
}
.decision-ending {
  background: white;
  padding: 16px;
  border-radius: 10px;
  margin: 16px 0;
  line-height: 1.6;
  border-left: 4px solid #4F5DA6;
}

/* ─── Calculator-Slide ───────────────────────────────────────────────────── */
.slide-calculator { }
.calc {
  background: white;
  border: 1px solid #E2E4F0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 14px;
}
.calc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ECEFF6;
}
.calc-tab {
  background: none;
  border: none;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.calc-tab.active {
  color: #4F5DA6;
  border-bottom-color: #4F5DA6;
  font-weight: 600;
}
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.calc-inputs.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.calc-inputs label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-inputs label span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}
.calc-inputs input[type="number"] {
  padding: 8px 10px;
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  font: inherit;
  font-variant-numeric: tabular-nums;
}
.calc-inputs small {
  font-size: 11px;
  color: var(--text-muted);
}
.calc-inputs label.calc-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.calc-result {
  background: #F0F5EC;
  border: 1px solid #B7DCC3;
  border-radius: 10px;
  padding: 14px 18px;
}
.calc-result-head {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.calc-result ul { margin: 0; padding-left: 20px; line-height: 1.6; }
.calc-result-fail { background: #FDEBE4; border-color: #F3CFC1; }
.calc-ampel-gelb { background: #FFF4E0; border-color: #F3DEA6; }
.calc-ampel-rot { background: #FDEBE4; border-color: #F3CFC1; }
.calc-ampel-label { font-size: 13px; font-weight: 400; color: var(--text-soft); }

.tool-wrapper {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

/* ─── Refresher-Banner ───────────────────────────────────────────────────── */
.refresher-banner {
  background: linear-gradient(135deg, rgba(79,93,166,0.06), rgba(246,199,49,0.08));
  border: 1px solid #E2E4F0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 18px;
}
.refresher-banner-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
}
.refresher-dot {
  color: #E8705A;
  font-size: 10px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.refresher-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.refresher-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: white;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ECEFF6;
}
.refresher-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.refresher-time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ─── Assessment (Phase 2 Redesign) ──────────────────────────────────────── */
.assessment-panel { padding: 8px 0 32px; }

/* Hero */
.assessment-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #2B2D42 0%, #4F5DA6 100%);
  color: white;
  padding: 28px 32px;
  border-radius: 16px;
  margin-bottom: 18px;
}
.assessment-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #F6C731;
}
.assessment-hero-text h2 {
  margin: 4px 0 6px;
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  color: white;
}
.assessment-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.assessment-hero-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.55;
  max-width: 600px;
}

/* Stat-Tiles */
.assessment-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.assessment-stat {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.assessment-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F0F2FA;
  color: #4F5DA6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.assessment-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: #2B2D42;
  line-height: 1;
}
.assessment-stat-label {
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cards */
.assessment-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.assessment-card {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 14px;
  padding: 20px 22px;
}
.assessment-card h3 {
  margin: 0 0 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #2B2D42;
}
.assessment-card-reward {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #F6F8FF 0%, #F0F5EC 100%);
  border-color: #D6DEEF;
}
.assessment-blueprint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}
.ab-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
  align-items: center;
}
.ab-row:hover { background: #F7F8FC; }
.ab-modul {
  font-weight: 700;
  color: #4F5DA6;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.ab-label { color: #2D2D3D; }
.ab-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
  font-size: 12px;
}
.assessment-criteria {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assessment-criteria li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
}
.assessment-criteria li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4F5DA6;
}
.assessment-reward {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ar-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: white;
  color: #C28A1B;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #E6DCB8;
}
.assessment-reward strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: #2B2D42;
}
.assessment-reward p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}

.assessment-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 14px;
  padding: 18px 22px;
}
.assessment-cta .text-soft {
  margin: 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Running */
.assessment-runtime {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 14px 20px 16px;
  margin-bottom: 14px;
  position: sticky;
  top: 8px;
  z-index: 10;
}
.assessment-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.assessment-progress-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.assessment-question-num {
  font-weight: 700;
  color: #2B2D42;
}
.assessment-modul-pill {
  background: #F0F2FA;
  color: #4F5DA6;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}
.assessment-progress-bar {
  position: relative;
  height: 6px;
  background: #F0F2FA;
  border-radius: 999px;
  overflow: visible;
}
.assessment-progress-fill {
  position: absolute;
  inset: 0;
  height: 100%;
  background: linear-gradient(90deg, #4F5DA6, #1F6B42);
  border-radius: 999px;
  transition: width 300ms ease;
  z-index: 1;
}
.assessment-progress-tick {
  position: absolute;
  top: -1px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid #DADFEF;
  z-index: 2;
}
.assessment-progress-tick.done {
  background: #1F6B42;
  border-color: #1F6B42;
}
.assessment-progress-tick.current {
  width: 12px;
  height: 12px;
  margin-left: -6px;
  top: -3px;
  background: white;
  border: 2px solid #4F5DA6;
  box-shadow: 0 0 0 3px rgba(79, 93, 166, 0.18);
}

/* Question card */
.assessment-question-card {
  background: white;
  padding: 32px 36px;
  border-radius: 14px;
  border: 1px solid #ECEFF6;
}
.assessment-question-text {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 24px;
  color: #2B2D42;
}
.assessment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assessment-option {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  background: #FAFBFD;
  border: 1.5px solid #E2E6EF;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: #2D2D3D;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s;
}
.assessment-option:hover {
  background: #F0F2FA;
  border-color: #C8CFE6;
}
.assessment-option:active { transform: scale(0.997); }
.assessment-option.selected {
  background: #EEF0F9;
  border-color: #4F5DA6;
  box-shadow: 0 0 0 3px rgba(79, 93, 166, 0.12);
}
.assessment-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid #DADFEF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #5A5A68;
  flex-shrink: 0;
}
.assessment-option.selected .assessment-option-letter {
  background: #4F5DA6;
  border-color: #4F5DA6;
  color: white;
}
.assessment-option-text { line-height: 1.5; }
.assessment-option-check {
  color: #4F5DA6;
  flex-shrink: 0;
}
.assessment-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 14px 18px;
  background: white;
  border-radius: 10px;
  border: 1px solid #ECEFF6;
  gap: 12px;
}
.assessment-nav-bar .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Result Banner */
.assessment-result-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px 32px;
  border-radius: 16px;
  margin-bottom: 18px;
  color: white;
}
.assessment-result-banner.pass {
  background: linear-gradient(135deg, #1F6B42 0%, #4F5DA6 100%);
}
.assessment-result-banner.fail {
  background: linear-gradient(135deg, #B1472E 0%, #4F5DA6 100%);
}
.arb-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.assessment-result-banner.pass .arb-icon { color: #F6C731; }
.arb-text h2 {
  margin: 4px 0 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: white;
}
.arb-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}
.arb-score {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 18px;
}
.arb-score strong {
  font-size: 28px;
  font-family: 'DM Serif Display', serif;
}
.arb-pct {
  color: rgba(255, 255, 255, 0.78);
}

.assessment-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 0;
}
.breakdown-row {
  display: grid;
  grid-template-columns: 220px 1fr 110px;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}
.breakdown-label {
  font-size: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.breakdown-modul {
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-soft);
}
.breakdown-bar {
  position: relative;
  height: 12px;
}
.breakdown-bar-track {
  position: absolute;
  inset: 0;
  background: #F0F2FA;
  border-radius: 999px;
}
.breakdown-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  transition: width 600ms ease;
}
.breakdown-fill.pass { background: linear-gradient(90deg, #4F5DA6, #1F6B42); }
.breakdown-fill.fail { background: linear-gradient(90deg, #C98A2B, #B1472E); }
.breakdown-threshold {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: #2B2D42;
  opacity: 0.4;
}
.breakdown-threshold::after {
  content: 'min';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: #2B2D42;
  opacity: 0.55;
  letter-spacing: 0.5px;
}
.breakdown-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}
.breakdown-score strong { font-size: 14px; color: #2B2D42; }
.breakdown-score .text-soft { font-size: 11px; }
.breakdown-row.pass strong { color: #155A35; }
.breakdown-row.fail strong { color: #7A2E1A; }

.assessment-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.assessment-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.assessment-hint {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 16px 18px;
  background: #FFF8E5;
  border-radius: 12px;
  border-left: 4px solid #C98A2B;
  font-size: 14px;
  line-height: 1.55;
}
.assessment-hint > svg {
  color: #C98A2B;
  flex-shrink: 0;
  margin-top: 2px;
}
.assessment-hint ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

@media (max-width: 768px) {
  .assessment-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .assessment-hero-icon { width: 56px; height: 56px; }
  .assessment-stats { grid-template-columns: repeat(2, 1fr); }
  .assessment-cards { grid-template-columns: 1fr; }
  .assessment-cta { flex-direction: column; align-items: stretch; }
  .assessment-cta .btn-lg { width: 100%; justify-content: center; }
  .assessment-question-card { padding: 22px 20px; }
  .assessment-question-text { font-size: 18px; }
  .assessment-result-banner { grid-template-columns: auto 1fr; padding: 20px; }
  .assessment-result-banner .btn-lg { grid-column: 1 / -1; justify-content: center; }
  .breakdown-row { grid-template-columns: 1fr 80px; }
  .breakdown-row .breakdown-bar { grid-column: 1 / -1; }
}

/* ─── Zertifikat ─────────────────────────────────────────────────────────── */
.certificate-view {
  padding: 0 !important;
}
.certificate-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  margin-bottom: 20px;
}

.certificate {
  width: 297mm;
  height: 210mm;
  max-width: 100%;
  margin: 0 auto;
  font-family: Georgia, 'Times New Roman', serif;
  background: linear-gradient(135deg, #F5F6FB 0%, #F0E8FA 50%, #F5F6FB 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(43, 45, 66, 0.14);
  border-radius: 6px;
  aspect-ratio: 297 / 210;
}
.certificate::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8mm;
  background: linear-gradient(90deg, #4F5DA6, #1F6B42);
}
.certificate::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4mm;
  background: linear-gradient(90deg, #1F6B42, #4F5DA6);
}
.cert-inner {
  padding: 30mm 40mm;
  height: 100%;
  box-sizing: border-box;
  text-align: center;
  position: relative;
}
.cert-org {
  font-size: 14px;
  color: #5A5A68;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 20mm;
}
.cert-title {
  font-size: 32px;
  color: #4F5DA6;
  margin: 8mm 0 4mm;
  font-weight: 700;
  font-family: inherit;
}
.cert-subtitle { font-size: 16px; color: #5A5A68; }
.cert-name {
  font-size: 28px;
  color: #2B2D42;
  margin: 10mm 0;
  border-bottom: 2px solid #4F5DA6;
  padding-bottom: 4mm;
  display: inline-block;
}
.cert-body {
  font-size: 14px;
  color: #2D2D3D;
  line-height: 1.7;
  max-width: 180mm;
  margin: 8mm auto 0;
  text-align: center;
}
.cert-score {
  margin-top: 8mm;
  font-size: 13px;
  color: #4F5DA6;
  font-weight: 600;
}
.cert-footer {
  position: absolute;
  bottom: 18mm;
  left: 40mm;
  right: 40mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #5A5A68;
}
.cert-footer-col { text-align: left; }
.cert-footer-right { text-align: right; }
.cert-seal {
  width: 20mm;
  height: 20mm;
  border: 2px solid #4F5DA6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #4F5DA6;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

@media print {
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; background: white; }
  .hero, .nav-bar, .no-print, .mentor-fab, .mentor-panel, .certificate-toolbar { display: none !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .certificate {
    box-shadow: none;
    border-radius: 0;
    max-width: none;
    width: 297mm !important;
    height: 210mm !important;
    page-break-after: avoid;
  }
}

/* ─── Quiz-Slide (erweitertes Feedback) ──────────────────────────────────── */
.slide-quiz .quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 12px 14px;
  background: white;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  transition: all 120ms;
}
.slide-quiz .quiz-option:not(:disabled):hover {
  background: #F4F5FB;
  border-color: #4F5DA6;
}
.slide-quiz .quiz-option .q-letter {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #F4F5FB;
  color: #4F5DA6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.slide-quiz .quiz-option .q-opt-text { flex: 1 1 auto; }
.slide-quiz .quiz-option .q-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.slide-quiz .quiz-option.correct {
  background: #E7F4EC;
  border-color: #1F6B42;
  color: #155A35;
}
.slide-quiz .quiz-option.correct .q-letter,
.slide-quiz .quiz-option.correct-hint .q-letter {
  background: #1F6B42;
  color: white;
}
.slide-quiz .quiz-option.correct .q-badge,
.slide-quiz .quiz-option.correct-hint .q-badge {
  background: #1F6B42;
  color: white;
}
.slide-quiz .quiz-option.incorrect {
  background: #FDEBE4;
  border-color: #B1472E;
  color: #7A2E1A;
}
.slide-quiz .quiz-option.incorrect .q-letter {
  background: #B1472E;
  color: white;
}
.slide-quiz .quiz-option.incorrect .q-badge {
  background: #B1472E;
  color: white;
}
.slide-quiz .quiz-option.correct-hint {
  background: #F0F8F3;
  border-color: #AED9BE;
  color: #155A35;
}
.slide-quiz .quiz-option.dimmed { opacity: 0.55; }

.quiz-feedback {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 4px solid #1F6B42;
  background: #E7F4EC;
  line-height: 1.55;
}
.quiz-feedback-wrong {
  background: #FDEBE4;
  border-left-color: #B1472E;
}
.quiz-feedback-head {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 15px;
}
.quiz-feedback p { margin: 0 0 6px; }
.quiz-retry {
  margin-top: 10px;
  font-size: 13px;
}

/* ─── Refresher-Modal ────────────────────────────────────────────────────── */
.refresher-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 30, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.refresher-modal {
  background: white;
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(43, 45, 66, 0.3);
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.refresher-modal-header {
  padding: 20px 28px;
  border-bottom: 1px solid #ECEFF6;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(79, 93, 166, 0.06), rgba(246, 199, 49, 0.08));
}
.refresher-modal-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #B1472E;
  margin-bottom: 6px;
}
.refresher-modal-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin: 0;
  color: var(--text);
}
.refresher-modal-body {
  padding: 22px 28px 28px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  line-height: 1.6;
}
.refresher-intro {
  padding: 14px 16px;
  background: #F4F5FB;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 15px;
}
.refresher-section {
  margin-bottom: 20px;
}
.refresher-section h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #4F5DA6;
  margin: 0 0 8px;
}
.refresher-section ul {
  margin: 6px 0;
  padding-left: 22px;
}
.refresher-modal-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ECEFF6;
  text-align: right;
}

/* ─── Responsive Mentor-Panel ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .mentor-panel {
    width: calc(100vw - 16px);
    right: 8px;
    height: calc(100vh - 120px);
  }
  .roleplay-personas { grid-template-columns: 1fr; }
  .rate-buttons { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Admin Content Studio (Phase 2a)
   ═══════════════════════════════════════════════════════════════════════ */
.admin-root {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 28px 48px;
  min-height: 100vh;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #ECEFF6;
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.admin-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin: 4px 0 6px;
  color: #2B2D42;
}
.admin-header p { margin: 0; font-size: 13px; }
.admin-header-right {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}
.admin-back {
  font-size: 12px;
  color: #4F5DA6;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 4px;
}
.admin-back:hover { text-decoration: underline; }

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ECEFF6;
}
.admin-tab {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #5A5A68;
  font: inherit;
}
.admin-tab strong { font-size: 14px; color: #2B2D42; }
.admin-tab span { font-size: 12px; color: var(--text-soft); }
.admin-tab:hover { background: #F7F8FC; }
.admin-tab.active {
  border-bottom-color: #4F5DA6;
}
.admin-tab.active strong { color: #4F5DA6; }

.admin-content { min-height: 500px; }
.admin-empty {
  background: white;
  border: 1px dashed #DDE2EE;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
}
.admin-empty h3 { margin-top: 0; color: #2B2D42; font-family: 'DM Serif Display', serif; }

.admin-pane {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-sidebar {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 14px;
  position: sticky;
  top: 20px;
}
.admin-sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 4px 12px;
  border-bottom: 1px solid #ECEFF6;
  margin-bottom: 12px;
}
.admin-sidebar-head strong {
  font-size: 14px;
  letter-spacing: 0.4px;
  color: #2B2D42;
  text-transform: uppercase;
}
.admin-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.btn-block { width: 100%; }
.admin-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 60vh;
  overflow-y: auto;
}
.admin-sidebar-item {
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-sidebar-item:hover { background: #F7F8FC; }
.admin-sidebar-item.active {
  background: #F0F2FA;
  border-color: #C8CFE6;
}
.asi-title { font-size: 14px; color: #2B2D42; font-weight: 500; line-height: 1.3; }
.asi-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--text-soft);
  align-items: center;
}
.asi-state {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.asi-state-published { background: #E7F4EC; color: #1F6B42; }
.asi-state-draft     { background: #FFF4E4; color: #8A5A00; }

.admin-main {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 20px;
}
.admin-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ECEFF6;
  padding-bottom: 14px;
}
.admin-title-input {
  flex: 1;
  font-size: 22px;
  font-family: 'DM Serif Display', serif;
  border: none;
  padding: 6px 0;
  background: transparent;
}
.admin-title-input:focus {
  outline: none;
  border-bottom: 2px solid #4F5DA6;
}
.admin-form-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.btn-danger {
  color: #B1472E;
}
.btn-danger:hover {
  background: #FDEBE4;
}
.btn-xs {
  font-size: 11px;
  padding: 4px 8px;
}
.admin-row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}
.admin-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}
.admin-field-grow { flex: 1; }
.admin-field span {
  font-weight: 600;
  color: #2B2D42;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.admin-field input,
.admin-field textarea {
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}
.admin-field input:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: #4F5DA6;
}
.admin-section {
  margin-bottom: 24px;
}
.admin-section h4 {
  font-size: 13px;
  color: #2B2D42;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 10px;
}
.admin-subsection {
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  background: #FAFBFD;
}
.admin-subsection-head {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.admin-subsection-heading {
  flex: 1;
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 600;
  background: white;
}
.admin-subsection-actions {
  display: flex;
  gap: 4px;
}

/* Markdown-Editor mit Live-Preview */
.md-editor { display: flex; flex-direction: column; gap: 6px; }
.md-editor-label {
  font-size: 12px;
  font-weight: 600;
  color: #2B2D42;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.md-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.md-editor-stacked .md-editor-grid {
  grid-template-columns: 1fr;
}
.md-editor-input-wrap {
  position: relative;
  display: flex;
}
.md-editor-textarea {
  width: 100%;
  border: none;
  border-right: 1px solid #ECEFF6;
  padding: 12px 50px 12px 14px;
  font: 14px/1.55 Georgia, serif;
  resize: vertical;
  min-height: 180px;
  background: #FAFBFD;
}
.md-editor-textarea:focus { outline: none; background: white; }
.md-editor-input-wrap .rp-mic-btn { right: 8px; bottom: 8px; }
.md-editor-preview {
  padding: 12px 14px;
  font: 14px/1.55 Georgia, serif;
  overflow-y: auto;
  max-height: 600px;
  background: white;
}
.md-editor-preview p { margin: 0 0 10px; }
.md-editor-preview ul { margin: 0 0 10px; padding-left: 20px; }
.md-editor-preview h3, .md-editor-preview h4 { margin: 14px 0 6px; }

/* AI-Assist Modal */
.admin-ai-modal { max-width: 760px; }
.admin-ai-tabs {
  display: flex;
  gap: 6px;
  margin: 14px 0 18px;
  border-bottom: 1px solid #ECEFF6;
}
.admin-ai-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: #5A5A68;
}
.admin-ai-tab.active {
  border-bottom-color: #4F5DA6;
  color: #4F5DA6;
  font-weight: 600;
}
.admin-ai-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ECEFF6;
}
.admin-ai-preview {
  background: #FAFBFD;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}
.admin-ai-preview h3 {
  margin: 0 0 8px;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
}
.admin-ai-preview-block {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #ECEFF6;
}
.admin-ai-preview-block strong { display: block; margin-bottom: 4px; color: #2B2D42; }

@media (max-width: 900px) {
  .admin-pane { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .md-editor-grid { grid-template-columns: 1fr; }
  .md-editor-textarea { border-right: none; border-bottom: 1px solid #ECEFF6; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Admin: Module-Editor + Quizbank + Live-Edit-Stift (Phase 2a)
   ═══════════════════════════════════════════════════════════════════════ */
.admin-module-pane {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}
.admin-modulenav {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 14px;
  position: sticky;
  top: 14px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.admin-modulenav-unit { margin-bottom: 4px; }
.admin-modulenav-unitbtn {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 10px;
  cursor: pointer;
  font: inherit;
}
.admin-modulenav-unitbtn:hover { background: #F7F8FC; }
.admin-modulenav-unitbtn.active {
  background: #EEF0F9;
  border-color: #C8CFE6;
}
.ammv-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #4F5DA6;
  background: #F0F2FA;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
}
.ammv-title { font-size: 13px; line-height: 1.3; color: #2B2D42; }
.ammv-count { font-size: 11px; color: var(--text-soft); }

.admin-modulenav-chapters {
  margin-left: 10px;
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid #ECEFF6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-modulenav-chapter { display: flex; flex-direction: column; }
.admin-modulenav-chapterbtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: #2D2D3D;
}
.admin-modulenav-chapterbtn:hover { background: #F7F8FC; }
.admin-modulenav-chapterbtn.active {
  background: #F0F2FA;
  color: #4F5DA6;
  font-weight: 600;
}
.admin-modulenav-slides {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px dashed #DADFEF;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}
.admin-modulenav-slidebtn {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 6px;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 6px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  color: var(--text-soft);
  text-align: left;
}
.admin-modulenav-slidebtn:hover { background: #F7F8FC; color: #2B2D42; }
.admin-modulenav-slidebtn.active {
  background: #EEF0F9;
  color: #2B2D42;
  border-color: #C8CFE6;
}
.ammv-slide-idx { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.ammv-slide-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ammv-slide-type {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #F0F2FA;
  color: #4F5DA6;
  padding: 1px 5px;
  border-radius: 3px;
}
.ammv-slide-type.type-quiz { background: #FFF4E4; color: #8A5A00; }
.ammv-slide-type.type-reflection { background: #E7F4EC; color: #155A35; }
.ammv-slide-type.type-info_card { background: #F0F5EC; color: #2B5E1F; }
.ammv-slide-type.type-bridge { background: #FDEBE4; color: #7A2E1A; }

/* Slide-Editor */
.slide-editor { display: flex; flex-direction: column; gap: 18px; }
.slide-editor-meta {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding-bottom: 12px;
  border-bottom: 1px solid #ECEFF6;
}
.admin-form-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-soft);
}
.admin-large-textarea {
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
}
.admin-field select {
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  background: white;
}
.slide-editor-preview { margin-top: 8px; }
.slide-editor-preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.slide-editor-preview-frame {
  background: #F4F5FB;
  border: 1px solid #DADFEF;
  border-radius: 12px;
  padding: 18px;
}

/* Quiz-Options Editor */
.quiz-options-edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz-option-edit {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}
.quiz-option-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.quiz-option-radio input { margin: 0; }
.quiz-option-letter-edit {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F0F2FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #5A5A68;
}
.quiz-option-radio input:checked + .quiz-option-letter-edit {
  background: #4F5DA6;
  color: white;
}
.quiz-option-input {
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
}

/* Quizbank */
.quizbank-pane { display: flex; flex-direction: column; gap: 14px; }
.quizbank-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.quizbank-search {
  flex: 1;
  min-width: 280px;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
}
.quizbank-actions { display: flex; gap: 8px; }
.btn-block-inline {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.quizbank-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ECEFF6;
}
.quizbank-filter {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12px;
  color: #5A5A68;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quizbank-filter:hover { background: #F7F8FC; }
.quizbank-filter.active {
  background: #4F5DA6;
  color: white;
  border-color: #4F5DA6;
}
.quizbank-filter span {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 11px;
  background: rgba(255,255,255,0.18);
  padding: 1px 6px;
  border-radius: 999px;
}
.quizbank-filter:not(.active) span {
  background: #F0F2FA;
  color: #4F5DA6;
}
.quizbank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quizbank-row {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.15s;
}
.quizbank-row:hover { border-color: #C8CFE6; }
.quizbank-row.inactive { opacity: 0.6; }
.quizbank-row.editing {
  border-color: #4F5DA6;
  box-shadow: 0 0 0 3px rgba(79,93,166,0.12);
}
.quizbank-row-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.difficulty {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.difficulty-easy { background: #E7F4EC; color: #155A35; }
.difficulty-medium { background: #FFF4E4; color: #8A5A00; }
.difficulty-hard { background: #FDEBE4; color: #7A2E1A; }
.quizbank-inactive-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #ECEFF6;
  color: var(--text-soft);
}
.quizbank-question {
  margin: 4px 0 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #2B2D42;
}
.quizbank-correct {
  margin-top: 6px;
  font-size: 13px;
  color: #155A35;
  background: #E7F4EC;
  padding: 6px 10px;
  border-radius: 6px;
}
.quizbank-explain {
  margin-top: 6px;
  font-size: 12px;
}
.quizbank-explain summary {
  cursor: pointer;
  color: var(--text-soft);
  user-select: none;
}
.quizbank-explain summary:hover { color: #4F5DA6; }
.quizbank-explain p {
  margin: 6px 0 0;
  color: #2D2D3D;
  line-height: 1.5;
}
.quizbank-newrow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 0 0;
  font-size: 13px;
}

/* Live-Edit-Stift im Lerner-View */
.slide-admin-wrapper {
  position: relative;
}
.slide-edit-fab {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #2B2D42;
  color: white;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, transform 0.1s;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(43,45,66,0.25);
}
.slide-admin-wrapper:hover .slide-edit-fab {
  opacity: 0.95;
}
.slide-edit-fab:hover {
  background: #4F5DA6;
  transform: scale(1.04);
  opacity: 1 !important;
}
.slide-edit-modal { max-width: 1100px; }
.slide-edit-modal .refresher-modal-body {
  max-height: 78vh;
}

/* ═══════════════════════════════════════════════════════════════════════
   Overview-Panel Redesign (Phase 2a Polish)
   ═══════════════════════════════════════════════════════════════════════ */

/* Refresher-Banner — Icon statt Punkt */
.refresher-banner-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.refresher-banner-head svg { color: #C98A2B; }
.refresher-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Lernfortschritts-Cockpit */
.progress-cockpit {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 22px;
}
.pc-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.pc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.pc-headline {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pc-headline strong {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: #4F5DA6;
  line-height: 1;
}
.pc-mini-stats {
  display: flex;
  gap: 10px;
}
.pc-stat {
  background: #F7F8FC;
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 78px;
}
.pc-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #2B2D42;
  line-height: 1;
}
.pc-stat-lbl {
  font-size: 10.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.pc-bar {
  height: 8px;
  background: #F0F2FA;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.pc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F5DA6, #1F6B42);
  transition: width 600ms ease;
}

.pc-modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.pc-module {
  display: grid;
  grid-template-columns: 32px 1fr 60px 38px;
  gap: 10px;
  align-items: center;
  background: #FAFBFD;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.12s, border-color 0.12s, transform 0.05s;
}
.pc-module:hover {
  background: #F0F2FA;
  border-color: #C8CFE6;
  transform: translateY(-1px);
}
.pcm-num {
  font-size: 11px;
  font-weight: 700;
  color: #4F5DA6;
  background: #F0F2FA;
  padding: 4px 6px;
  border-radius: 6px;
  text-align: center;
  letter-spacing: 0.4px;
}
.pcm-title {
  font-size: 13px;
  color: #2B2D42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcm-bar {
  height: 6px;
  background: #ECEFF6;
  border-radius: 999px;
  overflow: hidden;
}
.pcm-bar-fill {
  height: 100%;
  background: #4F5DA6;
  transition: width 400ms ease;
}
.pcm-pct {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-soft);
  text-align: right;
}
.pc-module-done {
  background: #E7F4EC;
  border-color: #B5DBC3;
}
.pc-module-done .pcm-num { background: #1F6B42; color: white; }
.pc-module-done .pcm-bar-fill { background: #1F6B42; }
.pc-module-done .pcm-pct { color: #1F6B42; }
.pc-module-progress { background: #F2F4FB; border-color: #C8CFE6; }
.pc-module-progress .pcm-num { background: #4F5DA6; color: white; }

/* Section-Heads über den Karten */
.overview-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 0 12px;
}
.overview-section-head h3 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #2B2D42;
}

/* OV-Cards Polish */
.ov-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.ov-card-done-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1F6B42;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ov-card-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
}
.ov-card-progress-bar {
  flex: 1;
  height: 5px;
  background: #ECEFF6;
  border-radius: 999px;
  overflow: hidden;
}
.ov-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F5DA6, #1F6B42);
  transition: width 400ms ease;
}
.ov-card-progress-pct {
  font-size: 11px;
  font-weight: 700;
  color: #4F5DA6;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}
.ov-card-done {
  background: linear-gradient(135deg, #F4FAF6 0%, #FFFFFF 100%);
  border-color: #B5DBC3;
}
.ov-card-done .ov-card-progress-fill { background: #1F6B42; }
.ov-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ov-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ov-meta svg { color: var(--text-soft); }

/* Assessment-CTA als großer klickbarer Button */
.overview-assessment-cta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: 100%;
  margin-top: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #2B2D42 0%, #4F5DA6 100%);
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: 0 4px 16px rgba(43,45,66,0.18);
}
.overview-assessment-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(43,45,66,0.32);
}
.oac-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255,255,255,0.16);
  color: #F6C731;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.oac-text h3 {
  margin: 4px 0 6px;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: white;
}
.oac-eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.78);
}
.oac-text p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  max-width: 600px;
}
.oac-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #2B2D42;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .pc-summary { flex-direction: column; align-items: flex-start; }
  .pc-mini-stats { width: 100%; justify-content: space-between; }
  .pc-modules { grid-template-columns: 1fr; }
  .overview-assessment-cta { grid-template-columns: auto 1fr; padding: 18px 20px; }
  .overview-assessment-cta .oac-cta { grid-column: 1 / -1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Practice-Mode (Phase 1b) — Übungsfragen mit sofortigem Feedback
   ═══════════════════════════════════════════════════════════════════════ */
.assessment-practice-hint {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #FFF8E5 0%, #FFFCF1 100%);
  border: 1px solid #F0E0B6;
  border-radius: 12px;
}
.aph-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201,138,43,0.18);
  color: #8A5A00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.assessment-practice-hint strong {
  display: block;
  margin-bottom: 4px;
  color: #2B2D42;
  font-size: 14px;
}
.assessment-practice-hint p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Practice-Panel */
.practice-panel { padding: 8px 0 32px; }
.practice-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 14px;
}
.practice-headline h2 {
  margin: 4px 0 0;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #2B2D42;
}
.practice-score {
  text-align: center;
  background: #F0F2FA;
  border-radius: 10px;
  padding: 8px 16px;
}
.practice-score-num {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: #4F5DA6;
  line-height: 1;
}
.practice-score-lbl {
  font-size: 10.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.practice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.practice-question {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.2s;
}
.practice-question.is-correct { border-color: #B5DBC3; }
.practice-question.is-wrong { border-color: #E2B7AC; }
.practice-question-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.practice-question-text {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 16px;
  color: #2B2D42;
}
.practice-option-correct {
  background: #E7F4EC !important;
  border-color: #1F6B42 !important;
  box-shadow: 0 0 0 3px rgba(31,107,66,0.12);
}
.practice-option-correct .assessment-option-letter {
  background: #1F6B42;
  border-color: #1F6B42;
  color: white;
}
.practice-option-wrong {
  background: #FDEBE4 !important;
  border-color: #B1472E !important;
}
.practice-option-wrong .assessment-option-letter {
  background: #B1472E;
  border-color: #B1472E;
  color: white;
}
.practice-option-hint {
  background: #FAFBFD !important;
  border-color: #B5DBC3 !important;
  border-style: dashed !important;
}
.practice-option-hint .assessment-option-letter {
  background: white;
  border-color: #B5DBC3;
  color: #1F6B42;
}
.practice-option-dim { opacity: 0.55; }

.practice-feedback {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
}
.practice-feedback.correct {
  background: #E7F4EC;
  border-left: 4px solid #1F6B42;
}
.practice-feedback.wrong {
  background: #FFF8E5;
  border-left: 4px solid #C98A2B;
}
.practice-feedback-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.practice-feedback.correct .practice-feedback-head { color: #155A35; }
.practice-feedback.wrong .practice-feedback-head { color: #8A5A00; }
.practice-feedback-text p { margin: 0 0 6px; }
.practice-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 18px;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
}
.practice-footer .btn { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 768px) {
  .assessment-practice-hint { grid-template-columns: 1fr; }
  .practice-topbar { grid-template-columns: 1fr; }
  .practice-question { padding: 18px 18px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Trainer-Dashboard (Phase 2b-A)
   ═══════════════════════════════════════════════════════════════════════ */
.trainer-cohort-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.trainer-cohort-tab {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trainer-cohort-tab:hover { background: #F7F8FC; }
.trainer-cohort-tab.active {
  background: #2B2D42;
  color: white;
  border-color: #2B2D42;
}
.trainer-cohort-tab strong { font-size: 14px; }
.trainer-cohort-tab span { font-size: 11px; opacity: 0.7; }

.trainer-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.trainer-stat {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 14px 18px;
}
.trainer-stat-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: #2B2D42;
  line-height: 1;
}
.trainer-stat-lbl {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  margin-top: 4px;
}
.trainer-stat-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.trainer-table {
  width: 100%;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 14px;
}
.trainer-table th {
  background: #F7F8FC;
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  border-bottom: 1px solid #ECEFF6;
}
.trainer-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F4F5FB;
  vertical-align: middle;
}
.trainer-table tr:last-child td { border-bottom: none; }
.trainer-table tr:hover td { background: #FAFBFD; }

.trainer-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trainer-progress-bar {
  flex: 1;
  height: 6px;
  background: #ECEFF6;
  border-radius: 999px;
  overflow: hidden;
  min-width: 100px;
}
.trainer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4F5DA6, #1F6B42);
  transition: width 400ms ease;
}
.trainer-progress span {
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.trainer-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.trainer-badge-pass { background: #E7F4EC; color: #155A35; }
.trainer-badge-fail { background: #FDEBE4; color: #7A2E1A; }
.trainer-badge-open { background: #ECEFF6; color: var(--text-soft); }

.trainer-detail-modal { max-width: 900px; }

@media (max-width: 768px) {
  .trainer-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════
   Fall-Simulationen (Phase 2b-B)
   ═══════════════════════════════════════════════════════════════════════ */
.case-list {
  display: grid;
  gap: 14px;
}
.case-card {
  border: 1px solid #ECEFF6;
  border-radius: 14px;
  padding: 22px 24px;
}
.case-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.case-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-soft);
  display: block;
  margin-bottom: 2px;
}
.case-card h3 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: #2B2D42;
}
.case-setup-preview {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.case-setup-preview p { margin: 0 0 8px; }
.case-setup-preview ul { margin: 4px 0 8px; padding-left: 20px; }
.case-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.case-card-foot .text-soft {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.case-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #ECEFF6;
  color: var(--text-soft);
}
.case-badge-draft { background: #FFF4E4; color: #8A5A00; }
.case-badge-submitted { background: #EEF0F9; color: #4F5DA6; }
.case-badge-reviewed { background: #E7F4EC; color: #155A35; }
.case-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
  font-size: 13px;
}

.case-detail { display: flex; flex-direction: column; gap: 18px; }
.case-section {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 18px 22px;
}
.case-section h3 {
  margin: 0 0 10px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #2B2D42;
}
.case-section h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-soft);
}
.case-task {
  background: #FFF8E5;
  border-color: #F0E0B6;
}
.case-textarea {
  width: 100%;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  padding: 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  background: #FAFBFD;
}
.case-textarea:focus { outline: none; background: white; border-color: #4F5DA6; }
.case-textarea[readonly] { background: #F4F5FB; cursor: default; }
.case-meta-row {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
}
.case-feedback-section {
  background: linear-gradient(135deg, #F4FAF6 0%, #FFFFFF 100%);
  border-color: #B5DBC3;
}
.case-trainer-notes {
  padding: 12px;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 8px;
  margin-bottom: 12px;
}
.case-criteria-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-criteria-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.case-criteria-list li.passed { background: #E7F4EC; color: #155A35; }
.case-criteria-list li.failed { color: var(--text-soft); }
.case-criteria-list li.passed svg { color: #1F6B42; }
.case-x { color: #B1472E; font-weight: 700; width: 14px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════
   Peer-Review (Phase 2b-C)
   ═══════════════════════════════════════════════════════════════════════ */
.peer-submission-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #F7F8FC;
  border-radius: 8px;
  margin-bottom: 8px;
}
.peer-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.peer-queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
}
.peer-queue-item:hover { background: #FAFBFD; }
.peer-rating {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: white;
}
.peer-rating-rot { background: #B1472E; }
.peer-rating-gelb { background: #C98A2B; }
.peer-rating-blau { background: #4F5DA6; }
.peer-rating-gruen { background: #1F6B42; }

.peer-rating-btn {
  background: white;
  border: 1.5px solid #E2E6EF;
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-soft);
  transition: transform 0.05s;
}
.peer-rating-btn:hover { transform: scale(1.02); border-color: #C8CFE6; }
.peer-rating-btn.selected {
  color: white;
  border-color: transparent;
}
.peer-rating-btn.peer-rating-rot.selected { background: #B1472E; }
.peer-rating-btn.peer-rating-gelb.selected { background: #C98A2B; }
.peer-rating-btn.peer-rating-blau.selected { background: #4F5DA6; }
.peer-rating-btn.peer-rating-gruen.selected { background: #1F6B42; }

.peer-submission-content {
  background: #FAFBFD;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  padding: 14px 18px;
  font: 14px/1.6 Georgia, serif;
  max-height: 400px;
  overflow-y: auto;
}
.peer-submission-content p { margin: 0 0 10px; }
.peer-submission-content ul { padding-left: 20px; }

.peer-review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.peer-dim-row {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 16px 18px;
}
.peer-dim-head { margin-bottom: 10px; }
.peer-dim-scale {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.peer-comment-input {
  width: 100%;
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
.peer-comment-input:focus { outline: none; border-color: #4F5DA6; }

.peer-received {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 8px;
}
.peer-received-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.peer-dim-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.peer-dim-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* Assessment-Extras */
.assessment-extras {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 18px;
}
.assessment-extras-head {
  margin: 0 0 4px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #2B2D42;
}
.assessment-extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}
.assessment-extra-card {
  background: #FAFBFD;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.12s, border-color 0.12s, transform 0.05s;
}
.assessment-extra-card:hover {
  background: #F0F2FA;
  border-color: #C8CFE6;
  transform: translateY(-1px);
}
.aec-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #4F5DA6;
}
.assessment-extra-card h4 {
  margin: 4px 0 6px;
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #2B2D42;
}
.assessment-extra-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}
@media (max-width: 768px) {
  .assessment-extras-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Trainer-Bewertungs-UI (Phase 2b-D)
   ═══════════════════════════════════════════════════════════════════════ */
.trainer-review-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}
.trainer-review-aside {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.trainer-review-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #F7F8FC;
  border-radius: 10px;
  margin: 10px 0 14px;
}
.trainer-review-pct {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.trainer-review-pct.pass {
  background: #E7F4EC;
  color: #155A35;
  border: 2px solid #1F6B42;
}
.trainer-review-pct.fail {
  background: #FDEBE4;
  color: #7A2E1A;
  border: 2px solid #B1472E;
}

.trainer-criteria-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trainer-criteria-list li label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  transition: background 0.1s;
}
.trainer-criteria-list li label:hover { background: #F7F8FC; }
.trainer-criteria-list input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #1F6B42;
}
.trainer-criteria-list .crit-passed {
  color: #155A35;
  font-weight: 500;
}

.trainer-mod-checklist {
  background: #FFF8E5;
  border-left: 3px solid #C98A2B;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .trainer-review-grid {
    grid-template-columns: 1fr;
  }
  .trainer-review-aside {
    position: static;
    max-height: none;
  }
}

/* ══════════ PWA Install Banner ══════════ */
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 950;
  pointer-events: none;
}
.pwa-install-banner__body {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 12px 14px;
  border-radius: 16px;
  max-width: 520px;
  margin: 0 auto;
}
.pwa-install-banner__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.pwa-install-banner__text strong {
  font-size: 14px;
  color: var(--text);
}
.pwa-install-banner__text span {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
}
.pwa-install-banner__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-install-banner__cta {
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
  font-family: inherit;
}
.pwa-install-banner__cta:hover { background: #000; }
.pwa-install-banner__close {
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.pwa-install-banner__close:hover { background: var(--bg); color: var(--text); }

/* Wenn Bottom-Nav sichtbar, InstallBanner darüber platzieren */
@media (max-width: 767px) {
  body.has-bottom-nav .pwa-install-banner {
    bottom: calc(env(safe-area-inset-bottom) + 72px);
  }
}

/* ══════════ Hero-Meta (Benutzer-Infozeile) ══════════ */
.hero-meta {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-link { color: rgba(255, 255, 255, 0.92); }

/* ══════════ Bottom-Nav (Mobile) ══════════ */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.06);
}
.bottom-nav__item {
  background: transparent;
  border: none;
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.1;
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.15s, background 0.15s;
}
.bottom-nav__item:active { background: var(--bg); }
.bottom-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav__label {
  font-weight: 500;
  letter-spacing: 0.01em;
}
.bottom-nav__item.is-active {
  color: var(--resources);
  font-weight: 600;
}
.bottom-nav__item.is-active .bottom-nav__icon {
  transform: translateY(-1px);
}

/* ══════════ More-Sheet ══════════ */
.more-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.more-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 16, 32, 0.55);
  animation: more-sheet-fade 0.2s ease;
}
.more-sheet__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 8px 16px calc(env(safe-area-inset-bottom) + 16px);
  box-shadow: var(--shadow-lg);
  animation: more-sheet-slide-up 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
}
.more-sheet__handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 8px auto 4px;
}
.more-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 12px;
}
.more-sheet__header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.more-sheet__close {
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.more-sheet__close:hover { background: var(--bg); color: var(--text); }
.more-sheet__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.more-sheet__list li { margin: 0; }
.more-sheet__list button,
.more-sheet__list a {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: left;
  min-height: 48px;
}
.more-sheet__list button:hover,
.more-sheet__list a:hover { background: var(--bg); }
.more-sheet__list button > span:nth-child(2),
.more-sheet__list a > span:nth-child(2) { flex: 1; }
.more-sheet__spacer {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.more-sheet__logout {
  color: #B1472E !important;
}

@keyframes more-sheet-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes more-sheet-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ══════════ Mobile-Aggregator: Modul-Liste / Practice-Hub ══════════ */
.mobile-list { padding: 4px 0 24px; }
.mobile-list__header { padding: 8px 4px 16px; }
.mobile-list__header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.mobile-list__header p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.mobile-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mobile-list__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
  color: var(--text);
  min-height: 72px;
}
.mobile-list__item:hover { border-color: var(--resources); box-shadow: var(--shadow-sm); }
.mobile-list__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.mobile-list__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-list__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.mobile-list__meta {
  font-size: 12px;
  color: var(--text-soft);
}
.mobile-list__bar {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}
.mobile-list__bar > span {
  display: block;
  height: 100%;
  background: var(--resources);
  transition: width 0.4s ease;
}

.mobile-hub__cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-hub__card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  min-height: 80px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mobile-hub__card:hover { border-color: var(--resources); box-shadow: var(--shadow-sm); }
.mobile-hub__card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, #E8EAF4, #F5F6FB);
  color: var(--resources);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-hub__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-hub__card-title {
  font-size: 15px;
  font-weight: 600;
}
.mobile-hub__card-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.4;
}

/* ══════════ Supervision Panel ══════════ */
.supervision-disclaimer-box {
  background: #FDECEC;
  border: 1px solid #F5B7B7;
  border-left: 4px solid #C0392B;
  border-radius: 12px;
  padding: 18px 20px;
}
.supervision-disclaimer-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #8B1F1F;
}
.supervision-disclaimer-box p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 8px;
  color: #5C0F0F;
}
.supervision-disclaimer-box p:last-child { margin-bottom: 0; }

.supervision-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 0 40px;
}
.supervision-privacy-box {
  background: #FEF9E7;
  border: 1px solid #F5E6A3;
  border-radius: 12px;
  padding: 18px 20px;
}
.supervision-privacy-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #92750A;
}
.supervision-privacy-box p {
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 8px;
  color: #5C4A06;
}
.supervision-privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
}
.supervision-privacy-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
}
.supervision-privacy-check span {
  font-size: 13px;
  line-height: 1.45;
  color: #5C4A06;
}
.supervision-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.supervision-form h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.supervision-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.supervision-form label > span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.supervision-form input,
.supervision-form select,
.supervision-form textarea {
  border: 1px solid #E2E6EF;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: white;
}
.supervision-form input:focus,
.supervision-form select:focus,
.supervision-form textarea:focus {
  outline: none;
  border-color: #4F5DA6;
  box-shadow: 0 0 0 2px rgba(79,93,166,0.12);
}
.supervision-form textarea {
  resize: vertical;
  min-height: 80px;
}
.supervision-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .supervision-row { grid-template-columns: 1fr; }
}
.supervision-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.supervision-upload h3 {
  margin: 0;
  font-size: 16px;
}
.supervision-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.supervision-file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F6FB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.supervision-submit {
  padding-top: 8px;
}
.supervision-response-text {
  background: white;
  border: 1px solid #ECEFF6;
  border-radius: 12px;
  padding: 20px 22px;
  font-size: 14px;
  line-height: 1.65;
}
.supervision-response-text strong {
  color: var(--heading);
}
.btn-icon-sm {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  color: #666;
}
.btn-icon-sm:hover { background: #E8E8E8; }

/* ══════════ Fullscreen Overlay (Peer-Review / Cases aus MoreSheet) ══════════ */
.fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 960;
  background: var(--bg);
  overflow-y: auto;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 96px);
}

/* ══════════ Responsive Breakpoints ══════════ */

/* Mobile — unter 768px: Bottom-Nav zeigen, Top-Nav verstecken */
@media (max-width: 767px) {
  body.has-bottom-nav {
    padding-bottom: calc(env(safe-area-inset-bottom) + 64px);
  }
  body.has-bottom-nav .bottom-nav {
    display: grid;
  }
  body.has-bottom-nav .nav-bar {
    display: none;
  }
  body.has-bottom-nav .app-content {
    padding-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding: 36px 20px 28px;
  }
  .hero h1 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.15;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.55;
  }
  .hero-meta {
    font-size: 13px;
    gap: 10px;
  }
  .hero-badge {
    font-size: 11px;
  }
  /* FAB: nicht hinter Bottom-Nav verstecken */
  body.has-bottom-nav .mentor-fab {
    bottom: calc(env(safe-area-inset-bottom) + 80px);
  }
  /* Fullscreen-Overlay: Platz für Bottom-Nav */
  body.has-bottom-nav .fullscreen-overlay {
    padding-bottom: calc(env(safe-area-inset-bottom) + 80px);
  }
  /* Grids auf einspaltig */
  .overview-grid,
  .lz-grid,
  .ov-cards {
    grid-template-columns: 1fr !important;
  }
  /* Touch-Targets */
  .nav-tab,
  .pr-btn,
  button {
    min-height: 44px;
  }
  .pr-btn { min-height: 36px; }
}

/* Tablet/Desktop — ab 768px: Bottom-Nav ausblenden */
@media (min-width: 768px) {
  body.has-bottom-nav .bottom-nav {
    display: none;
  }
  body.has-bottom-nav .pwa-install-banner {
    bottom: calc(env(safe-area-inset-bottom) + 12px);
  }
}

/* Max-Width für sehr breite Desktops */
@media (min-width: 1280px) {
  .hero-inner,
  .nav-bar,
  .content {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ══════════ Home-Dashboard (Greeting + Recommendation + Quick-Actions) ══════════ */
.home-greet {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}
.home-greet__salut {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.home-greet__time {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  color: var(--text);
}
.home-greet__name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.15;
  color: var(--resources);
}
.home-greet__context {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.4;
  margin-top: -6px;
}
.home-recommend {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(145deg, #1A1A1A 0%, #2D2D3D 60%, #4F5DA6 160%);
  color: var(--white);
  border: none;
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 96px;
}
.home-recommend:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.home-recommend:active { transform: translateY(0); }
.home-recommend__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.home-recommend__eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.home-recommend__headline {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.home-recommend__detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.home-recommend__cta {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.home-quicks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.home-quick {
  --quick-accent: var(--resources);
  --quick-bg: var(--white);
  --quick-icon-bg: #F5F6FB;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  background: var(--quick-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  min-height: 56px;
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.home-quick svg {
  color: var(--quick-accent);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: var(--quick-icon-bg);
  box-sizing: border-box;
}
.home-quick:hover {
  border-color: var(--quick-accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.home-quick--flashcards { --quick-accent: #B18B0F; --quick-icon-bg: rgba(246, 199, 49, 0.15); }
.home-quick--roleplay { --quick-accent: var(--resources); --quick-icon-bg: rgba(79, 93, 166, 0.12); }
.home-quick--tools { --quick-accent: var(--private-life); --quick-icon-bg: rgba(58, 170, 109, 0.14); }
.home-quick--exam { --quick-accent: var(--health); --quick-icon-bg: rgba(232, 112, 90, 0.14); }

.home-quick--trainer {
  --quick-accent: #7A5A00;
  --quick-bg: linear-gradient(135deg, #FFF6D6 0%, #FFECB2 100%);
  --quick-icon-bg: rgba(255, 255, 255, 0.7);
  border-color: #E5C244;
  font-weight: 600;
}

/* ══════════ Personas-Editor (Content Studio, Tab „Rollenspiele") ══════════ */
.personas-edit-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding: 20px 24px 28px;
}
.personas-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-field-wide {
  width: 100%;
}
.admin-field-hint {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}
.admin-color-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 0;
}
.admin-color-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, transform 0.15s;
}
.admin-color-chip:hover { transform: scale(1.05); }
.admin-color-chip.active {
  border-color: #1A1A1A;
  box-shadow: 0 0 0 2px white, 0 0 0 4px #1A1A1A;
}

.personas-preview {
  position: sticky;
  top: 20px;
  align-self: start;
  border-left: 1px dashed var(--border);
  padding-left: 24px;
}
.personas-preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 8px;
}
.personas-preview-card {
  pointer-events: none;
  opacity: 0.95;
}
.personas-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.personas-checklist li {
  padding: 4px 10px 4px 28px;
  position: relative;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: 6px;
  background: #F7F7F7;
}
.personas-checklist li::before {
  content: '○';
  position: absolute;
  left: 10px;
  top: 4px;
  color: #CA8A04;
}
.personas-checklist li.ok {
  color: #1F6B42;
  background: #E7F4EC;
}
.personas-checklist li.ok::before {
  content: '✓';
  color: #1F6B42;
}

/* Schwierigkeits-Badge in der Persona-Auswahl-UI */
.rp-diff {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  vertical-align: middle;
}
.rp-diff-leicht        { background: #E7F4EC; color: #1F6B42; }
.rp-diff-mittel        { background: #FFF4E4; color: #8A5A00; }
.rp-diff-anspruchsvoll { background: #FCE8E4; color: #B4453A; }

/* Personas-Editor-Breakpoint: unter 1024px Preview unter die Fields statt rechts daneben */
@media (max-width: 1024px) {
  .personas-edit-body {
    grid-template-columns: 1fr;
  }
  .personas-preview {
    position: static;
    border-left: none;
    border-top: 1px dashed var(--border);
    padding-left: 0;
    padding-top: 20px;
  }
}

/* ─── Materialien-Editor (Admin) ──────────────────────────────────────── */
.admin-materials-pane {
  padding: 20px 24px 40px;
}
.admin-materials-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-materials-dropzone {
  transition: background 150ms, border-color 150ms;
}
.admin-materials-dropzone:hover {
  border-color: #4F5DA6;
  background: rgba(79, 93, 166, 0.04);
}
.admin-materials-content table.admin-table th,
.admin-materials-health table.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  font-weight: 600;
}
.admin-materials-content table.admin-table input[type='text'] {
  border: 1px solid var(--border, #ddd);
  border-radius: 4px;
  background: #fff;
}
.admin-materials-content table.admin-table select {
  padding: 4px 6px;
}

/* ─── Fehlendes Material (Lerner-View) ────────────────────────────────── */
.material-missing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(246, 199, 49, 0.14);
  border: 1px dashed #d9a900;
  border-radius: 999px;
  font-size: 13px;
  color: #6b4d00;
  margin: 2px 0;
}
.material-missing-label {
  font-style: italic;
}
.material-missing-request {
  border: none;
  background: #f6c731;
  color: #2B2D42;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
}
.material-missing-request:hover:not(:disabled) {
  background: #e4b21f;
}
.material-missing-request:disabled {
  background: #d9d9d9;
  color: #555;
  cursor: default;
}

/* ─── Quiz Multi-Select Erweiterung ───────────────────────────────────── */
.quiz-multi-hint {
  font-weight: 400;
  color: var(--text-soft);
  font-size: 13px;
}
.q-letter.q-checkbox {
  font-size: 18px;
  line-height: 1;
}
.quiz-submit {
  align-self: flex-start;
}

/* ─── Cloze (Lückentext) ──────────────────────────────────────────────── */
.slide-cloze .cloze-text {
  line-height: 2.1;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  padding: 16px 18px;
  margin: 12px 0;
}
.slide-cloze .cloze-text p { display: inline; margin: 0; }
.cloze-blank {
  display: inline-block;
  vertical-align: baseline;
  border: none;
  border-bottom: 2px solid #4F5DA6;
  background: #f5f7ff;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: 4px 4px 0 0;
  font: inherit;
  color: #2B2D42;
  min-width: 80px;
  transition: background 120ms, border-color 120ms;
}
.cloze-blank:focus {
  outline: none;
  background: #e9ecff;
  border-bottom-color: #2B2D42;
}
.cloze-blank.correct {
  background: #e7f5ec;
  border-bottom-color: #1F6B42;
  color: #1F6B42;
}
.cloze-blank.incorrect {
  background: #fdecea;
  border-bottom-color: #B4453A;
  color: #B4453A;
}
.cloze-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 14px 0 4px;
}
.cloze-score {
  font-weight: 600;
  color: #2B2D42;
}
.cloze-solutions, .ordering-solution, .ranking-ideal {
  margin-top: 10px;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
  padding: 10px 14px;
}
.cloze-solutions summary, .ordering-solution summary, .ranking-ideal summary {
  cursor: pointer;
  font-weight: 600;
  color: #4F5DA6;
}

/* ─── Ordering (Reihenfolge) ─────────────────────────────────────────── */
.ordering-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ordering-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  padding: 10px 12px;
  transition: background 150ms, border-color 150ms;
}
.ordering-row.correct {
  background: #e7f5ec;
  border-color: #1F6B42;
}
.ordering-row.incorrect {
  background: #fdecea;
  border-color: #B4453A;
}
.ordering-pos {
  font-weight: 700;
  color: #4F5DA6;
  text-align: center;
}
.ordering-text { font-size: 14px; }
.ordering-buttons { display: flex; gap: 4px; }
.ordering-actions, .ranking-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}
.ordering-score {
  font-weight: 600;
  color: #2B2D42;
}

/* ─── Ranking (Priorisierung) ────────────────────────────────────────── */
.ranking-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ranking-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  padding: 8px 12px;
}
.ranking-row.matched {
  background: #e7f5ec;
  border-color: #1F6B42;
}
.ranking-pos { font-weight: 700; color: #4F5DA6; }
.ranking-text { font-size: 14px; }
.ranking-ideal-pos {
  font-size: 12px;
  color: #8A5A00;
  background: rgba(246,199,49,0.15);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.ranking-buttons { display: flex; gap: 4px; }

@media (max-width: 640px) {
  .ordering-row, .ranking-row {
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
  }
  .ordering-buttons, .ranking-buttons {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
  .ranking-ideal-pos {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

/* ─── Walkthrough ─────────────────────────────────────────────────────── */
.slide-walkthrough .wt-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
}
.wt-progress-bar {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.wt-progress-fill {
  height: 100%;
  background: #4F5DA6;
  transition: width 200ms;
}
.wt-progress-label {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}
.wt-stepnav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.wt-stepnav-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 100px;
  max-width: 180px;
  text-align: left;
  font-size: 12px;
  color: var(--text-soft);
  transition: border-color 120ms, background 120ms;
}
.wt-stepnav-btn:hover { border-color: #4F5DA6; }
.wt-stepnav-btn.active {
  border-color: #4F5DA6;
  background: #f5f7ff;
  color: #2B2D42;
}
.wt-stepnav-btn.done .wt-stepnav-num {
  background: #1F6B42;
  color: #fff;
}
.wt-stepnav-num {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #eee;
  color: #2B2D42;
  font-weight: 600;
}
.wt-stepnav-title {
  font-weight: 600;
  color: #2B2D42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}
.wt-step {
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.wt-step-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.wt-step-head h4 { margin: 0; }
.wt-step-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
}
.wt-step-body { font-size: 14px; line-height: 1.55; }
.wt-step-note {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(246,199,49,0.14);
  border-left: 3px solid #d9a900;
  border-radius: 4px;
  font-size: 13px;
}
.wt-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.wt-nav-end { color: var(--text-soft); font-size: 13px; }
.wt-summary {
  margin-top: 16px;
  padding: 14px 18px;
  background: #e7f5ec;
  border: 1px solid #a9d8bb;
  border-radius: 8px;
}
.wt-summary strong { display: block; margin-bottom: 4px; }

/* ─── Matching ────────────────────────────────────────────────────────── */
.matching-instruction {
  color: var(--text-soft);
  font-size: 13px;
  margin: 8px 0 12px;
}
.matching-pool {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  background: #f7f8fc;
  border-radius: 8px;
  border: 1px dashed var(--border, #e5e5e5);
  margin-bottom: 16px;
}
.matching-item {
  background: #fff;
  border: 1px solid var(--border, #d6d8e2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  color: #2B2D42;
  transition: background 120ms, border-color 120ms, box-shadow 120ms;
}
.matching-item:hover { border-color: #4F5DA6; }
.matching-item.selected {
  background: #4F5DA6;
  color: #fff;
  border-color: #4F5DA6;
  box-shadow: 0 0 0 3px rgba(79,93,166,0.2);
}
.matching-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.matching-category {
  background: #fff;
  border: 2px solid var(--border, #e5e5e5);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 150ms, background 150ms;
  cursor: pointer;
}
.matching-category.droppable {
  border-color: #4F5DA6;
  background: #f5f7ff;
}
.matching-category.droppable:hover {
  background: #e9ecff;
}
.matching-category-label {
  font-weight: 600;
  color: #2B2D42;
  margin-bottom: 8px;
  font-size: 14px;
}
.matching-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 28px;
}
.matching-category-empty {
  color: var(--text-soft);
  font-style: italic;
  font-size: 12px;
}
.matching-chip {
  background: #4F5DA6;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 120ms;
}
.matching-chip:hover { background: #3a4894; }
.matching-chip.correct {
  background: #1F6B42;
  cursor: default;
}
.matching-chip.incorrect {
  background: #B4453A;
  cursor: default;
}
.matching-chip-x { opacity: 0.7; }
.matching-chip-correct-hint { font-style: italic; opacity: 0.9; }
.matching-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}
.matching-score { font-weight: 600; color: #2B2D42; }

/* ─── Hotspot ─────────────────────────────────────────────────────────── */
.hotspot-prompt {
  background: rgba(79,93,166,0.06);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 12px;
}
.hotspot-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-soft);
}
.hotspot-actions { display: flex; gap: 6px; }
.hotspot-canvas-wrap { position: relative; }
.hotspot-canvas {
  position: relative;
  display: inline-block;
  max-width: 100%;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
}
.hotspot-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}
.hotspot-zone {
  position: absolute;
  border: 2px dashed transparent;
  background: transparent;
  pointer-events: none;
  transition: border-color 200ms, background 200ms;
}
.hotspot-zone.found {
  border-color: #1F6B42;
  background: rgba(31,107,66,0.18);
}
.hotspot-zone-label {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: #1F6B42;
  color: #fff;
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 4px 4px 4px 0;
  white-space: nowrap;
  font-weight: 600;
}
.hotspot-miss {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #B4453A;
  border-radius: 50%;
  background: rgba(180,69,58,0.2);
  animation: hotspot-miss-pulse 600ms ease-out;
  pointer-events: none;
}
@keyframes hotspot-miss-pulse {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}
.hotspot-info {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
}
.hotspot-info-hit {
  background: #e7f5ec;
  border-left: 3px solid #1F6B42;
}
.hotspot-info-miss {
  background: #fdecea;
  border-left: 3px solid #B4453A;
  color: #6b211a;
}
.hotspot-error {
  background: #fdecea;
  border: 1px solid #e8b1a8;
  border-radius: 6px;
  padding: 12px 14px;
  color: #6b211a;
  font-size: 13px;
}

/* ─── Förder-Vergleich (Calculator) ──────────────────────────────────── */
.foerder-vergleich-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.foerder-card {
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-top: 4px solid #4F5DA6;
  border-radius: 8px;
  padding: 14px 16px;
}
.foerder-card-disabled {
  opacity: 0.5;
  border-top-color: #999;
}
.foerder-card-reference {
  border-top-color: #aaa;
  background: #fafafa;
}
.foerder-card-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.foerder-card-sum {
  font-size: 22px;
  font-weight: 700;
  color: #2B2D42;
  margin-bottom: 6px;
}
.foerder-card-sum small {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-soft);
  margin-left: 6px;
}
.foerder-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #444;
}
.foerder-card-fail {
  color: #B4453A;
  font-weight: 600;
  font-size: 13px;
}

/* ─── MaterialsSection (Lerner-View am Ende eines Moduls) ─────────────── */
.materials-section {
  margin-top: 32px;
  padding: 22px 24px;
  background: #fafbff;
  border: 1px solid #e4e7f5;
  border-radius: 12px;
}
.materials-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.materials-section-head h3 {
  margin: 0;
  color: #2B2D42;
  font-size: 17px;
}
.materials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.materials-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color 120ms, box-shadow 120ms;
}
.materials-item:hover {
  border-color: #4F5DA6;
  box-shadow: 0 1px 4px rgba(79,93,166,0.08);
}
.materials-item-error {
  background: #fdecea;
  border-color: #e8b1a8;
}
.materials-icon {
  font-size: 24px;
  text-align: center;
}
.materials-body { min-width: 0; }
.materials-title {
  font-weight: 600;
  color: #2B2D42;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.materials-meta {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}
.materials-type {
  display: inline-block;
  padding: 1px 6px;
  background: #eef0f9;
  color: #4F5DA6;
  border-radius: 3px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.materials-filename {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #6b6d7e;
}
.materials-download {
  white-space: nowrap;
}
.materials-error-badge {
  font-size: 12px;
  color: #B4453A;
  background: rgba(180,69,58,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .materials-item {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
  }
  .materials-download,
  .materials-error-badge {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Paywall — Kauf + Zugangs-Code
 * ═══════════════════════════════════════════════════════════════════════════ */
.paywall-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, #F4F5FB 0%, #FAFAFA 60%);
  font-family: 'DM Sans', sans-serif;
}
.paywall-card {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 960px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(43, 45, 66, 0.08);
}
.paywall-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.paywall-header h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  margin: 0.75rem 0 0.4rem;
  color: var(--text, #2B2D42);
}
.paywall-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.paywall-col {
  padding: 1.5rem;
  border: 1px solid #E2E6EF;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.paywall-col h2 {
  font-size: 1.1rem;
  margin: 0 0 0.3rem;
}
.paywall-col-primary {
  background: #FAFBFF;
  border-color: #D8DDF0;
}
.paywall-col-secondary {
  background: #fff;
}
.paywall-price {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-top: 1px solid #E2E6EF;
  border-bottom: 1px solid #E2E6EF;
}
.paywall-price strong {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  line-height: 1;
  color: #4F5DA6;
}
.paywall-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.95rem;
}
.paywall-bullets li::before {
  content: '✓';
  color: #2f7d3a;
  font-weight: 700;
  margin-right: 0.5rem;
}
.paywall-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text, #2B2D42);
}
.paywall-consent input[type='checkbox'] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.paywall-consent a {
  color: #4F5DA6;
}
.paywall-error {
  color: #B1472E;
  background: #FDEBE4;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 0;
}
.paywall-cta {
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  margin-top: 0.3rem;
}
.paywall-fineprint {
  font-size: 0.8rem;
  text-align: center;
  margin: 0;
}
.paywall-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #E2E6EF;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft, #6b6d7e);
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.paywall-footer a {
  color: inherit;
}
.paywall-footer .sep {
  opacity: 0.5;
}

.paywall-voucher-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.paywall-voucher-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.paywall-voucher-form label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft, #6b6d7e);
}
.paywall-voucher-form input {
  padding: 0.7rem 0.9rem;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.paywall-voucher-form input:focus {
  outline: none;
  border-color: #4F5DA6;
  box-shadow: 0 0 0 3px rgba(79, 93, 166, 0.12);
}
.paywall-voucher-success {
  background: #E8F4EC;
  border: 1px solid #B6D8C1;
  border-radius: 10px;
  padding: 0.9rem;
  color: #1F6B42;
}
.btn-secondary {
  background: #fff;
  color: #4F5DA6;
  border-color: #4F5DA6;
}
.btn-secondary:hover {
  background: #F4F5FB;
}
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Admin-Editor Karten (für VouchersEditor und künftig weitere) */
.admin-card {
  background: #fff;
  border: 1px solid #E2E6EF;
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}
.admin-card h2 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.admin-card form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.admin-card form label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft, #6b6d7e);
}
.admin-card form input[type='text'],
.admin-card form input[type='email'],
.admin-card form input[type='number'],
.admin-card form input[type='date'] {
  padding: 0.6rem 0.8rem;
  border: 1px solid #E2E6EF;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
}
.admin-card .btn-ghost.active {
  background: #4F5DA6;
  color: #fff;
  border-color: #4F5DA6;
}

@media (max-width: 720px) {
  .paywall-columns {
    grid-template-columns: 1fr;
  }
  .paywall-card {
    padding: 1.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * Global Legal-Footer (AGB, Datenschutz, Impressum, Kontakt)
 * ═══════════════════════════════════════════════════════════════════════════ */
.app-legal-footer {
  margin: 3rem auto 0;
  padding: 1.5rem 1rem 2rem;
  border-top: 1px solid #E2E6EF;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-soft, #6b6d7e);
  font-family: 'DM Sans', sans-serif;
}
.app-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  justify-content: center;
  align-items: center;
}
.app-legal-footer a {
  color: #4F5DA6;
  text-decoration: none;
}
.app-legal-footer a:hover {
  text-decoration: underline;
}
.app-legal-footer .sep {
  opacity: 0.5;
}
.app-legal-copyright {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--text-soft, #6b6d7e);
}

/* Sektions-Überschrift im Mehr-Menü */
.more-sheet__section-title {
  padding: 0.75rem 1rem 0.25rem !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft, #6b6d7e) !important;
  font-weight: 600;
  pointer-events: none;
}
