/* ════════════════════════════════════════════════════════════════
   QUIZ CHECKER — Apple-light theme: KI, Marketing, Prozess
   ════════════════════════════════════════════════════════════════ */

body {
  background: #f5f5f7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%,  rgba(200,200,220,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(200,200,220,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.quiz-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: calc(var(--nav-top, 20px) + var(--nav-height, 52px) + 64px);
  padding-bottom: 120px;
}

.quiz-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ────────────────────────────────────────────────────── */
.quiz-hero { text-align: center; margin-bottom: 48px; }

.quiz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #98989d;
  margin-bottom: 18px;
}

.quiz-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #c7c7cc;
}

.quiz-title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
  margin-bottom: 14px;
}

.quiz-subtitle {
  font-size: 15px;
  color: #6e6e73;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ── Start card ──────────────────────────────────────────────── */
.quiz-start-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow:
    0 2px 24px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.90);
}

.quiz-start-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
}

.quiz-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.quiz-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
}

.quiz-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.quiz-meta-value {
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.quiz-meta-label {
  font-size: 11px;
  color: #98989d;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quiz-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(0,0,0,0.06);
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

.quiz-start-btn:hover {
  background: rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

.quiz-start-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  pointer-events: none;
}

/* ── Progress bar ────────────────────────────────────────────── */
.quiz-progress {
  margin-bottom: 32px;
}

.quiz-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.quiz-progress-label {
  font-size: 12px;
  color: #98989d;
  font-weight: 450;
}

.quiz-progress-step {
  font-size: 12px;
  color: #aeaeb2;
}

.quiz-progress-track {
  width: 100%;
  height: 2px;
  background: rgba(0,0,0,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #1d1d1f;
  transition: width 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Question card ───────────────────────────────────────────── */
.quiz-card {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 24px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.90);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.quiz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
}

.quiz-card--enter {
  opacity: 0;
  transform: translateX(22px);
}

.quiz-card--exit {
  opacity: 0;
  transform: translateX(-22px);
}

.quiz-question {
  font-size: 18px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-align: left;
  font-family: inherit;
  width: 100%;
}

.quiz-option:hover {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.12);
  transform: translateX(3px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.quiz-option.selected {
  background: #ffffff;
  border-color: var(--quiz-accent);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.quiz-option-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.18);
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quiz-option.selected .quiz-option-dot {
  background: var(--quiz-accent);
  border-color: transparent;
}

.quiz-option-text {
  font-size: 14px;
  font-weight: 450;
  color: #3d3d3f;
  line-height: 1.4;
}

.quiz-option.selected .quiz-option-text {
  color: #1d1d1f;
}

/* ── Results ─────────────────────────────────────────────────── */
.quiz-results-header {
  text-align: center;
  margin-bottom: 36px;
}

.quiz-score-ring-wrap {
  position: relative;
  width: 120px; height: 120px;
  margin: 0 auto 20px;
}

.quiz-score-ring-canvas {
  width: 120px; height: 120px;
  display: block;
}

.quiz-score-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.quiz-score-value {
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.03em;
  line-height: 1;
}

.quiz-score-unit {
  font-size: 12px;
  color: #98989d;
  margin-top: 2px;
}

.quiz-results-title {
  font-size: 22px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.quiz-results-subtitle {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.5;
}

/* ── Insight cards ───────────────────────────────────────────── */
.quiz-insights {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.quiz-insight {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  align-items: flex-start;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.quiz-insight-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.quiz-insight-body {}

.quiz-insight-title {
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 3px;
}

.quiz-insight-desc {
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.5;
}

/* ── KPI row ─────────────────────────────────────────────────── */
.quiz-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}

.quiz-kpi {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.quiz-kpi-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.quiz-kpi-label {
  font-size: 11px;
  color: #98989d;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CTA block ───────────────────────────────────────────────── */
.quiz-cta {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 24px rgba(0,0,0,0.06),
    0 1px 4px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.90);
}

.quiz-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), transparent);
}

.quiz-cta-text {
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.quiz-cta-sub {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 24px;
  line-height: 1.5;
}

.quiz-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #1d1d1f;
  border: 1px solid #1d1d1f;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.quiz-cta-btn:hover {
  background: #3d3d3f;
  transform: translateY(-1px);
}

.quiz-restart {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: #aeaeb2;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s ease;
}
.quiz-restart:hover { color: #6e6e73; }

/* ── Accent colour tokens (set by JS) ────────────────────────── */
:root {
  --quiz-accent: rgba(160,120,255,1);
  --quiz-accent-bg: rgba(160,120,255,0.12);
}

/* ── Hidden ──────────────────────────────────────────────────── */
[hidden] { display: none !important; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .quiz-page { padding-top: calc(var(--nav-top, 0px) + var(--nav-height, 52px) + env(safe-area-inset-top, 0px) + 32px); }
  .quiz-start-card, .quiz-card { padding: 24px 18px; }
  .quiz-kpi-row { grid-template-columns: repeat(3,1fr); }
  .quiz-meta { gap: 16px; }
}
