/* ============================================================
   AEVO Fachgespräch — Karteikarten Styles
   ============================================================ */

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

/* ── Info-Leiste (unten) ─────────────────────────────────── */
.aevo-fg-info-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 40px; padding: 12px 16px;
  max-width: 1000px; width: 100%; box-sizing: border-box;
  background: #13161f; border: 1px solid #1e2233; border-radius: 10px;
}
.aevo-fg-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-fg-info-back:hover { color: #e8eaf0; }
.aevo-fg-info-sep { color: #3a4055; font-size: 14px; }
.aevo-fg-info-title { font-size: 13px; font-weight: 700; color: #e8eaf0; }
.aevo-fg-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;
}

/* ── Main ────────────────────────────────────────────────── */
.aevo-fg-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 80vh;
  justify-content: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 24px;
  box-sizing: border-box;
}

/* ── Intro-Banner ────────────────────────────────────────── */
.aevo-fg-intro {
  background: linear-gradient(135deg, #1a1f30, #1e2535);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 auto 20px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
}
.aevo-fg-intro h2 {
  font-size: 20px;
  font-weight: 700;
  color: #e8eaf0;
  margin: 0 0 8px;
}
.aevo-fg-intro p {
  font-size: 14px;
  color: #9aa0b0;
  margin: 0;
  line-height: 1.6;
}

/* ── HF-Tabs ─────────────────────────────────────────────── */
.aevo-fg-tabs {
  display: flex;
  gap: 8px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 20px;
  flex-wrap: wrap;
}

.aevo-fg-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-fg-tab:hover { border-color: rgba(255,255,255,0.2); color: #e8eaf0; }
.aevo-fg-tab.active     { background: #6366f1; border-color: #6366f1; color: #fff; }
.aevo-fg-tab.hf1.active { background: #6366f1; border-color: #6366f1; }
.aevo-fg-tab.hf2.active { background: #8b5cf6; border-color: #8b5cf6; }
.aevo-fg-tab.hf3.active { background: #06b6d4; border-color: #06b6d4; color: #fff; }
.aevo-fg-tab.hf4.active { background: #10b981; border-color: #10b981; color: #fff; }

/* ── Progress Bar ────────────────────────────────────────── */
.aevo-fg-progress-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto 20px;
}

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

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

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

/* ── Karten-Bereich ──────────────────────────────────────── */
.aevo-fg-card-area {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.aevo-fg-card-wrapper {
  perspective: 1200px;
  width: 100%;
}

.aevo-fg-card {
  width: 100%;
  min-height: 560px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.aevo-fg-card.flipped {
  transform: rotateY(180deg);
}

.aevo-fg-card-face {
  position: absolute;
  top: 0; left: 0; right: 0;
  min-height: 560px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  background: #141824;
  border: 1px solid rgba(255,255,255,0.09);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}

.aevo-fg-card-back {
  transform: rotateY(180deg);
}

/* ── Thema-Badge ─────────────────────────────────────────── */
.aevo-fg-thema-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  align-self: flex-start;
  margin-bottom: 20px;
  background: rgba(99,102,241,0.18);
  color: #fff;
  border: 1px solid rgba(99,102,241,0.3);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Vorderseite ─────────────────────────────────────────── */
.aevo-fg-question-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.aevo-fg-question-text {
  font-size: 19px;
  font-weight: 700;
  color: #e8eaf0;
  line-height: 1.5;
  flex: 1;
  margin-bottom: 24px;
}

.aevo-fg-answer-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.aevo-fg-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  color: #e8eaf0;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.aevo-fg-textarea:focus {
  outline: none;
  border-color: rgba(99,102,241,0.5);
  background: rgba(255,255,255,0.06);
}
.aevo-fg-textarea::placeholder { color: #4a5060; }

.aevo-fg-aufdecken-btn {
  margin-top: 16px;
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: stretch;
}
.aevo-fg-aufdecken-btn:hover {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  transform: translateY(-1px);
}

/* ── Rückseite ───────────────────────────────────────────── */
.aevo-fg-back-frage {
  font-size: 14px;
  font-weight: 600;
  color: #9aa0b0;
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(99,102,241,0.4);
  border-radius: 0 8px 8px 0;
}

.aevo-fg-back-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.aevo-fg-user-answer-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #c8cad6;
  line-height: 1.5;
  margin-bottom: 6px;
  min-height: 48px;
  white-space: pre-wrap;
}

.aevo-fg-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.aevo-fg-match-badge.hoch    { background: rgba(74,222,128,0.15);  color: #4ade80;  border: 1px solid rgba(74,222,128,0.3); }
.aevo-fg-match-badge.mittel  { background: rgba(240,160,60,0.15);  color: #f0a03c;  border: 1px solid rgba(240,160,60,0.3); }
.aevo-fg-match-badge.niedrig { background: rgba(232,93,74,0.15);   color: #e85d4a;  border: 1px solid rgba(232,93,74,0.3); }
.aevo-fg-match-badge.leer    { background: rgba(107,114,128,0.15); color: #6b7280;  border: 1px solid rgba(107,114,128,0.3); }

.aevo-fg-correct-answer {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 10px;
  padding: 16px;
  font-size: 14px;
  color: #d8daff;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 220px;
}

/* ── Bewertungs-Buttons ──────────────────────────────────── */
.aevo-fg-rating-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.aevo-fg-rating-btn {
  padding: 11px 8px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.aevo-fg-rating-btn:hover { transform: translateY(-2px); }

.aevo-fg-rating-btn.nochmal {
  background: rgba(232,93,74,0.2);
  color: #e85d4a;
  border: 1px solid rgba(232,93,74,0.3);
}
.aevo-fg-rating-btn.nochmal:hover { background: rgba(232,93,74,0.35); }

.aevo-fg-rating-btn.schwer {
  background: rgba(240,160,60,0.2);
  color: #f0a03c;
  border: 1px solid rgba(240,160,60,0.3);
}
.aevo-fg-rating-btn.schwer:hover { background: rgba(240,160,60,0.35); }

.aevo-fg-rating-btn.leicht {
  background: rgba(74,222,128,0.2);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.3);
}
.aevo-fg-rating-btn.leicht:hover { background: rgba(74,222,128,0.35); }

.aevo-fg-rating-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
}

/* ── Empty State ─────────────────────────────────────────── */
.aevo-fg-empty {
  text-align: center;
  padding: 60px 24px;
  max-width: 500px;
  margin: 0 auto;
}
.aevo-fg-empty-icon  { font-size: 56px; margin-bottom: 16px; }
.aevo-fg-empty-title { font-size: 22px; font-weight: 700; color: #e8eaf0; margin-bottom: 8px; }
.aevo-fg-empty-sub   { font-size: 15px; color: #6b7280; line-height: 1.5; }
.aevo-fg-empty-next  { font-size: 13px; color: #6366f1; margin-top: 12px; font-weight: 600; }

/* ── Upgrade-Leiste (Free-User) ──────────────────────────── */
.aevo-fg-upgrade-bar {
  max-width: 600px;
  width: 100%;
  margin: 16px auto 0;
  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;
}
.aevo-fg-upgrade-bar-text { font-size: 14px; color: #e8eaf0; }
.aevo-fg-upgrade-bar-text strong { color: #a5b4fc; }
.aevo-fg-upgrade-bar-btn {
  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;
}
.aevo-fg-upgrade-bar-btn:hover { background: #818cf8; }

.aevo-fg-upgrade-banner {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: #e8eaf0;
  margin: 0 auto 16px;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
}

#aevo-fg-content { width: 100%; }

/* ── Layout-Wrapper ──────────────────────────────────────── */
.aevo-fg-layout-wrapper {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.aevo-fg-layout-wrapper .aevo-fg-card-area {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin: 0;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.aevo-fg-sidebar {
  width: 200px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aevo-fg-sb-card {
  background: #12161f;
  border: 1px solid #1e2233;
  border-radius: 12px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.aevo-fg-sb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.aevo-fg-sb-label { font-size: 12px; font-weight: 700; color: #e8eaf0; }
.aevo-fg-sb-count { font-size: 12px; color: #9aa0b0; font-weight: 600; }

.aevo-fg-sb-bar-wrap {
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  height: 6px;
  overflow: hidden;
}

.aevo-fg-sb-bar-thin .aevo-fg-sb-bar-wrap { height: 3px; }

/* ── KI-Buttons (gemeinsam mit aevo-theorie) ─────────────── */
.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;
}

.aevo-fg-sb-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.aevo-fg-sb-bar-indigo { background: #6366f1; }
.aevo-fg-sb-bar-green  { background: #4ade80; }

.aevo-fg-sb-rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.aevo-fg-sb-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}

.aevo-fg-sb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.aevo-fg-sb-row-label { flex: 1; color: #9aa0b0; font-weight: 500; }
.aevo-fg-sb-row-num   { font-weight: 700; color: #e8eaf0; min-width: 20px; text-align: right; }

.aevo-fg-sb-hf-title {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .aevo-fg-layout-wrapper { flex-direction: column; }
  .aevo-fg-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .aevo-fg-sb-card { flex: 1 1 calc(50% - 5px); min-width: 140px; }
  #aevo-fg-sb-hf-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  #aevo-fg-sb-hf-blocks .aevo-fg-sb-card { flex: 1 1 calc(50% - 5px); }
}

@media (max-width: 600px) {
  .aevo-fg-card-face { padding: 20px; }
  .aevo-fg-question-text { font-size: 16px; }
  .aevo-fg-rating-btn { padding: 9px 4px; font-size: 12px; }
  .aevo-fg-tabs { gap: 6px; }
  .aevo-fg-tab { padding: 6px 12px; font-size: 12px; }
  .aevo-fg-sidebar { flex-direction: column; }
  .aevo-fg-sb-card { flex: 1 1 100%; }
  #aevo-fg-sb-hf-blocks { flex-direction: column; }
}
