/* ============================================================
   AEVO Theorieprüfung — Multiple-Choice Styles
   ============================================================ */

.aevo-th-page {
  min-height: 100vh;
  background: #0f1119;
  color: #e8eaf0;
  font-family: 'Inter', sans-serif;
  padding-bottom: 60px;
  padding-left: 220px;
}
@media (max-width: 768px) { .aevo-th-page { padding-left: 0; } }

/* ── Info-Leiste (unten) ─────────────────────────────────── */
.aevo-th-info-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px; padding: 12px 16px;
  background: #13161f; border: 1px solid #1e2233; border-radius: 10px;
}
.aevo-th-info-back {
  display: flex; align-items: center; gap: 6px;
  color: #6b7280; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: color 0.15s;
}
.aevo-th-info-back:hover { color: #e8eaf0; }
.aevo-th-info-sep { color: #3a4055; font-size: 14px; }
.aevo-th-info-title { font-size: 13px; font-weight: 700; color: #e8eaf0; }
.aevo-th-info-badge {
  background: #6366f1; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 20px; margin-left: auto;
}

/* ── Score (jetzt in der Info-Leiste) ───────────────────── */
.aevo-th-header-score {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #9aa0b0;
  background: #1a1f2e;
  padding: 4px 14px;
  border-radius: 20px;
}

/* ── Main ────────────────────────────────────────────────── */
.aevo-th-page main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px;
  box-sizing: border-box;
}

/* ── Filter-Bar ──────────────────────────────────────────── */
.aevo-th-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.aevo-th-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}

.aevo-th-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.aevo-th-tab {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: #9aa0b0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.aevo-th-tab:hover { border-color: rgba(255,255,255,0.2); color: #e8eaf0; }
.aevo-th-tab.active     { background: #6366f1; border-color: #6366f1; color: #fff; }
.aevo-th-tab.hf1.active { background: #6366f1; border-color: #6366f1; }
.aevo-th-tab.hf2.active { background: #8b5cf6; border-color: #8b5cf6; }
.aevo-th-tab.hf3.active { background: #06b6d4; border-color: #06b6d4; }
.aevo-th-tab.hf4.active { background: #10b981; border-color: #10b981; }

/* ── Fortschrittsbalken ──────────────────────────────────── */
.aevo-th-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.aevo-th-progress-bar {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border-radius: 6px;
  height: 8px;
  overflow: hidden;
}

.aevo-th-progress-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #6366f1, #818cf8);
  transition: width 0.4s ease;
}

.aevo-th-progress-text {
  font-size: 13px;
  color: #9aa0b0;
  font-weight: 600;
  white-space: nowrap;
  min-width: 130px;
  text-align: right;
}

/* ── Upgrade-Bar ─────────────────────────────────────────── */
.aevo-th-upgrade-bar {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(79,70,229,0.1));
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #e8eaf0;
}
.aevo-th-upgrade-bar strong { color: #a5b4fc; }
.aevo-th-upgrade-bar button {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Quiz-Bereich ────────────────────────────────────────── */
.aevo-th-quiz-area { width: 100%; }

.aevo-th-card {
  background: #141824;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  padding: 28px 32px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Karten-Kopf ─────────────────────────────────────────── */
.aevo-th-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.aevo-th-hf-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.aevo-th-kompetenz {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  flex: 1;
}

.aevo-th-anzahl-hint {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.aevo-th-anzahl-hint.eins    { background: rgba(99,102,241,0.15); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.aevo-th-anzahl-hint.mehrere { background: rgba(240,160,60,0.15);  color: #f0a03c; border: 1px solid rgba(240,160,60,0.3); }

/* ── Fragetext ───────────────────────────────────────────── */
.aevo-th-frage {
  font-size: 18px;
  font-weight: 700;
  color: #e8eaf0;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ── Antworten ───────────────────────────────────────────── */
.aevo-th-antworten {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.aevo-th-antwort {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.aevo-th-antwort:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.3);
}

.aevo-th-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: #6366f1;
  cursor: pointer;
}

.aevo-th-antwort-text {
  font-size: 15px;
  color: #c8cad6;
  line-height: 1.5;
}

/* Zustände nach Auswertung */
.aevo-th-antwort.richtig {
  background: rgba(74,222,128,0.1);
  border-color: rgba(74,222,128,0.4);
}
.aevo-th-antwort.richtig .aevo-th-antwort-text { color: #4ade80; font-weight: 600; }
.aevo-th-antwort.richtig::after { content: ' ✓'; color: #4ade80; font-weight: 700; font-size: 14px; margin-left: auto; flex-shrink: 0; }

.aevo-th-antwort.falsch {
  background: rgba(232,93,74,0.1);
  border-color: rgba(232,93,74,0.4);
}
.aevo-th-antwort.falsch .aevo-th-antwort-text { color: #e85d4a; }
.aevo-th-antwort.falsch::after { content: ' ✗'; color: #e85d4a; font-weight: 700; font-size: 14px; margin-left: auto; flex-shrink: 0; }

.aevo-th-antwort.verpasst {
  background: rgba(240,160,60,0.08);
  border-color: rgba(240,160,60,0.35);
}
.aevo-th-antwort.verpasst .aevo-th-antwort-text { color: #f0a03c; }
.aevo-th-antwort.verpasst::after { content: ' ←'; color: #f0a03c; font-weight: 700; font-size: 14px; margin-left: auto; flex-shrink: 0; }

/* ── Rechtsgrundlage ─────────────────────────────────────── */
.aevo-th-rechtsgrundlage {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border-left: 3px solid rgba(99,102,241,0.4);
}

/* ── Erklärung ───────────────────────────────────────────── */
.aevo-th-erklaerung {
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #c8caff;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.aevo-th-btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.aevo-th-btn-auswerten {
  flex: 1;
  padding: 13px 24px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.aevo-th-btn-auswerten:hover { background: linear-gradient(135deg, #818cf8, #6366f1); }
.aevo-th-btn-auswerten.korrekt { background: linear-gradient(135deg, #4ade80, #22c55e); color: #0a2a14; }
.aevo-th-btn-auswerten.falsch  { background: linear-gradient(135deg, #e85d4a, #c0392b); }

.aevo-th-btn-weiter {
  flex: 1;
  padding: 13px 24px;
  background: rgba(255,255,255,0.06);
  color: #e8eaf0;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.aevo-th-btn-weiter:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ── Session-Ende ────────────────────────────────────────── */
.aevo-th-ende {
  text-align: center;
  padding: 60px 24px;
  max-width: 500px;
  margin: 0 auto;
}
.aevo-th-ende-icon  { font-size: 56px; margin-bottom: 16px; }
.aevo-th-ende-titel { font-size: 24px; font-weight: 800; color: #e8eaf0; margin-bottom: 12px; }
.aevo-th-ende-score {
  font-size: 20px;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 12px;
}
.aevo-th-ende-sub   { font-size: 15px; color: #9aa0b0; line-height: 1.6; margin-bottom: 28px; }

.aevo-th-btn-neustart {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.aevo-th-btn-neustart:hover { background: linear-gradient(135deg, #818cf8, #6366f1); transform: translateY(-1px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .aevo-th-card { padding: 20px; }
  .aevo-th-frage { font-size: 16px; }
  .aevo-th-filter-bar { flex-direction: column; align-items: flex-start; }
  .aevo-th-tabs { gap: 6px; }
  .aevo-th-tab { padding: 6px 12px; font-size: 12px; }
  .aevo-th-btn-row { flex-direction: column; }
  .aevo-th-btn-auswerten, .aevo-th-btn-weiter { flex: none; width: 100%; }
}

/* ── Modus-Bar ───────────────────────────────────────────── */
.aevo-th-modus-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.aevo-th-modus-btn {
  flex: 1;
  background: #12161f;
  border: 2px solid #1e2233;
  border-radius: 12px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #9aa0b0;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.aevo-th-modus-btn:hover { border-color: #6366f1; color: #e8eaf0; }
.aevo-th-modus-btn.active { border-color: #6366f1; background: rgba(99,102,241,0.1); color: #e8eaf0; }
.aevo-th-modus-sub { font-size: 12px; font-weight: 500; color: #6b7280; }
.aevo-th-modus-btn.active .aevo-th-modus-sub { color: #a5b4fc; }

/* ── KI-Buttons ──────────────────────────────────────────── */
.aevo-ki-tipp-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 8px;
  color: #22d3ee;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.aevo-ki-tipp-btn:hover { background: rgba(6,182,212,0.2); }

.aevo-ki-hilfe-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  background: rgba(240,160,60,0.1);
  border: 1px solid rgba(240,160,60,0.3);
  border-radius: 8px;
  color: #f0a03c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.aevo-ki-hilfe-btn:hover { background: rgba(240,160,60,0.2); }

.aevo-ki-box {
  margin-top: 12px;
  padding: 14px 16px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  font-size: 14px;
  color: #c8cad8;
  line-height: 1.7;
}
.aevo-ki-box-label {
  font-size: 11px;
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}
