/* The Expedition Test — layout & theme */
:root {
  --bg: #0c1118;
  --bg-elevated: #141c28;
  --surface: #1a2433;
  --text: #e8edf4;
  --text-muted: #94a3b8;
  --accent: #c9a227;
  --accent-soft: rgba(201, 162, 39, 0.15);
  --preussen: #5b8fb9;
  --preussen-soft: rgba(91, 143, 185, 0.18);
  --wikinger: #c45c3e;
  --wikinger-soft: rgba(196, 92, 62, 0.18);
  --border: rgba(232, 237, 244, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(ellipse 120% 80% at 50% -20%, #1a2840 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(91, 143, 185, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(196, 92, 62, 0.06) 0%, transparent 40%);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(12, 17, 24, 0.75);
}

.site-header__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 0.5rem;
}

.nav__link {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface);
}

#main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  min-height: calc(100vh - 140px);
}

.view {
  display: none;
  animation: viewEnter 0.55s var(--transition) both;
}

.view--active {
  display: block;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero--visual-first .eyebrow {
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  max-width: 18ch;
}

.hero__hook {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__mark {
  font-weight: 600;
  font-style: normal;
}

.hero__mark--preussen {
  color: var(--preussen);
}

.hero__mark--wikinger {
  color: var(--wikinger);
}

/* Preuße & Wikinger – Bildpaar */
.expedition-figures {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0 0 1.35rem;
  max-width: 560px;
}

@media (min-width: 600px) {
  .expedition-figures {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 640px;
  }
}

.expedition-figures__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.expedition-figures__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1062 / 1614;
  max-height: min(52vh, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.expedition-figures__item--preussen .expedition-figures__frame {
  border-color: rgba(91, 143, 185, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--preussen-soft);
}

.expedition-figures__item--wikinger .expedition-figures__frame {
  border-color: rgba(196, 92, 62, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--wikinger-soft);
}

.expedition-figures__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.expedition-figures__caption {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.expedition-figures__item--preussen .expedition-figures__caption {
  color: var(--preussen);
}

.expedition-figures__item--wikinger .expedition-figures__caption {
  color: var(--wikinger);
}

.expedition-figures--compact {
  max-width: none;
  margin: 0 0 1.25rem;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .expedition-figures--compact {
    gap: 1rem;
  }
}

.expedition-figures--compact .expedition-figures__frame {
  max-height: min(28vh, 220px);
  aspect-ratio: 1 / 1.35;
}

.expedition-figures--compact .expedition-figures__caption {
  font-size: 0.72rem;
}

.hero__cta {
  margin-top: 2.25rem;
}

.btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(145deg, #d4af37 0%, #a67c1a 100%);
  color: #0c1118;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: rgba(232, 237, 244, 0.2);
  background: var(--surface);
}

.hero__hint {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.landing-context {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 48ch;
}

.origin {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.origin__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.origin__body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.origin__body p {
  margin: 0 0 0.75rem;
  max-width: 58ch;
}

.origin__body p:last-child {
  margin-bottom: 0;
}

/* Staggered fade-in */
.fade-in {
  opacity: 0;
  animation: fadeUp 0.7s var(--transition) forwards;
}

.fade-in--2 {
  animation-delay: 0.1s;
}
.fade-in--3 {
  animation-delay: 0.22s;
}
.fade-in--4 {
  animation-delay: 0.38s;
}
.fade-in--5 {
  animation-delay: 0.5s;
}
.fade-in--6 {
  animation-delay: 0.62s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    animation: none;
    transform: none;
  }
  .view,
  .quiz-panel,
  .result-card {
    animation: none !important;
  }
  .quiz-progress__fill {
    transition: none !important;
  }
  .btn--primary:hover {
    transform: none;
  }
}

/* Quiz */
.quiz-shell {
  padding-top: 0.5rem;
}

.quiz-progress {
  margin-bottom: 2rem;
}

.quiz-progress__track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.quiz-progress__fill {
  height: 100%;
  width: 12.5%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--preussen), var(--accent));
  transition: width 0.45s var(--transition);
}

.quiz-progress__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz-questions {
  min-height: 280px;
}

.quiz-panel {
  display: none;
  animation: panelIn 0.4s var(--transition) both;
}

.quiz-panel--active {
  display: block;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quiz-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.quiz-panel__scene {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent-soft);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform 0.2s ease;
}

.quiz-option:hover {
  border-color: rgba(201, 162, 39, 0.35);
  background: var(--surface);
}

.quiz-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quiz-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow);
}

.quiz-option input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.quiz-option span {
  font-size: 0.98rem;
  line-height: 1.5;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.quiz-actions .btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Result */
.result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  animation: viewEnter 0.6s var(--transition) both;
}

.result-card__eyebrow {
  margin-bottom: 0.5rem;
}

.result-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.result-card__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  max-width: 52ch;
}

.result-card__bridge {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  max-width: 54ch;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 600px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.result-block {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.result-block h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.result-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.result-block li {
  margin-bottom: 0.4rem;
}

.missing {
  margin-top: 1.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--preussen-soft), var(--wikinger-soft));
  border: 1px solid var(--border);
}

.missing h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.missing__intro {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.missing__tips {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.missing__tips li {
  margin-bottom: 0.5rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Archetype accent variants on result title */
.result-card[data-archetype="architect"] .result-card__title {
  color: var(--preussen);
}
.result-card[data-archetype="viking"] .result-card__title {
  color: var(--wikinger);
}
.result-card[data-archetype="balance"] .result-card__title {
  color: var(--accent);
}
.result-card[data-archetype="navigator"] .result-card__title {
  color: #7eb8d9;
}
.result-card[data-archetype="storm"] .result-card__title {
  color: #e07a5f;
}
