/* ════════════════════════════════════════════════════════════════
   QUIZ CHECKER — shared styles for KI, Marketing, Prozess checkers
   ════════════════════════════════════════════════════════════════ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 20% 10%,  rgba(255,255,255,0.028) 0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 80% 80%, rgba(255,255,255,0.018) 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: rgba(255,255,255,0.38);
  margin-bottom: 18px;
}

.quiz-eyebrow-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

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

.quiz-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.42);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 32px;
}

/* ── Start card ──────────────────────────────────────────────── */
.quiz-start-card {
  background: rgba(255,255,255,0.042);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.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.18), 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;
}

.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: #fff;
  letter-spacing: -0.02em;
}

.quiz-meta-label {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  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(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.92);
  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(255,255,255,0.16);
  transform: translateY(-1px);
}

.quiz-start-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.08) 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: rgba(255,255,255,0.32);
  font-weight: 450;
}

.quiz-progress-step {
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}

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

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

/* ── Question card ───────────────────────────────────────────── */
.quiz-card {
  background: rgba(255,255,255,0.040);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

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

.quiz-question {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  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(255,255,255,0.038);
  border: 1px solid rgba(255,255,255,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.065);
  border-color: rgba(255,255,255,0.14);
  transform: translateX(3px);
}

.quiz-option.selected {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
}

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

.quiz-option.selected .quiz-option-dot {
  border-color: transparent;
}

.quiz-option-text {
  font-size: 14px;
  font-weight: 450;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

.quiz-option.selected .quiz-option-text {
  color: rgba(255,255,255,0.92);
}

/* ── 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: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}

.quiz-score-unit {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

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

.quiz-results-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.40);
  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.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  align-items: flex-start;
}

.quiz-insight-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.quiz-insight-body {}

.quiz-insight-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  margin-bottom: 3px;
}

.quiz-insight-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  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.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}

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

.quiz-kpi-label {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── CTA block ───────────────────────────────────────────────── */
.quiz-cta {
  background: rgba(255,255,255,0.040);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.quiz-cta-text {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.quiz-cta-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.30);
  margin-bottom: 24px;
  line-height: 1.5;
}

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

.quiz-cta-btn:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.quiz-restart {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color 0.2s ease;
}
.quiz-restart:hover { color: rgba(255,255,255,0.45); }

/* ── Card transitions ────────────────────────────────────────── */
.quiz-card {
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

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

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

/* ── 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; }
}
