/* ============================================================
   VermissQuiss – Styles
   Gestaltung: ruhige Salbeigrün-/Beige-Welt im Geist von
   Bauhaus-Interieurs (Salbei + warmes Beige + gedämpfter Ton/Clay
   als zweite Farbe, Anthrazit als Schrift). Sachlich, klar,
   anmutig – ein wissenschaftlicher, kein romantischer Eindruck.

   Für Erwachsene 40+:
   - großzügige, ruhige Typografie (Grundtext >= 18px, hohe Zeilenhöhe)
   - hoher Kontrast, klare Fokus-Stile, große Tap-Flächen (>= 56px)
   ============================================================ */

:root {
  /* Flächen & Schrift */
  --bg:        #e6e4d7;   /* warmes Greige */
  --surface:   #f7f5ee;   /* helles Creme */
  --surface-2: #eceadf;
  --ink:       #2c302a;   /* Anthrazit mit grünem Unterton */
  --ink-soft:  #5d6157;
  --line:      #d6d4c5;

  /* Salbei – Hauptfarbe */
  --sage:      #8a9a78;
  --sage-dk:   #5f7050;
  --sage-soft: #c2ccb2;
  --sage-tint: #eef0e6;

  /* Clay/Ton – zweite, gedämpfte Bauhaus-Farbe (sparsam) */
  --clay:      #b07d5f;
  --clay-dk:   #8f6047;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 16px 44px rgba(60, 66, 52, 0.16);
  --maxw:      720px;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* Das hidden-Attribut muss display:grid/flex-Regeln zuverlässig schlagen. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 50% -10%, #eef0e6 0%, transparent 60%),
    radial-gradient(820px 460px at 92% 112%, #e0ddcb 0%, transparent 55%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 5vw, 40px);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 6px;
}
.wordmark-mark {
  width: 18px; height: 18px;
  border-radius: 3px;
  background: var(--sage-dk);
  display: inline-block;
}
.wordmark-text { letter-spacing: 0.5px; }
.wordmark-text em { color: var(--clay-dk); font-style: normal; }
.wordmark-tag {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--ink-soft);
  align-self: flex-end;
  margin: 0 0 5px -4px;
}
@media (max-width: 480px) { .wordmark-tag { display: none; } }

.site-nav { display: flex; gap: 8px; }
.nav-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.nav-btn:hover { background: var(--surface); border-color: var(--sage); }

/* ----------------------------- Layout ----------------------------- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(8px, 3vw, 24px) clamp(16px, 5vw, 24px) 64px;
}

.screen { animation: fade 0.4s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
}
.card.center { text-align: center; }
.hero { text-align: left; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sage-dk);
  margin: 0 0 12px;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.4px;
  margin: 0 0 16px;
  color: var(--ink);
}
.accent { color: var(--clay-dk); font-style: normal; font-weight: 600; }

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.18rem);
  line-height: 1.62;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin: 36px 0 16px;
}

/* ----------------------------- Formulare ----------------------------- */
.form { margin: 0 0 24px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input,
.share-row input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder { color: #a9a796; }
.field input:focus,
.share-row input:focus {
  outline: none;
  border-color: var(--sage-dk);
  box-shadow: 0 0 0 4px rgba(95, 112, 80, 0.16);
}

.form-error {
  color: var(--clay-dk);
  font-weight: 500;
  margin: -6px 0 16px;
}

/* ----------------------------- Buttons ----------------------------- */
.btn {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 16px 28px;
  min-height: 56px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dk) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(95, 112, 80, 0.28);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 12px 26px rgba(95, 112, 80, 0.36); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--sage-dk);
  border-color: var(--line);
}
.btn-secondary:hover { background: #e3e1d4; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(0,0,0,0.03); color: var(--ink); }

.btn-block { width: 100%; }

/* ----------------------------- Start-Extras ----------------------------- */
.reassure {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.reassure li { position: relative; padding-left: 26px; }
.reassure li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px;
  background: var(--sage-dk);
  border-radius: 2px;
}

/* ----------------------------- Paar-Raum ----------------------------- */
.room-line {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.room-line #roomWordStart strong,
.room-line #roomWordHall strong {
  font-family: var(--font-head);
  color: var(--sage-dk);
  letter-spacing: 0.5px;
}
.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--clay-dk);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.linklike:hover { color: var(--sage-dk); }
.space-note {
  background: var(--sage-tint);
  border-left: 3px solid var(--sage-dk);
  border-radius: 6px;
  padding: 12px 14px;
  margin: -6px 0 16px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.5;
}
.space-note strong {
  font-family: var(--font-head);
  letter-spacing: 1px;
  color: var(--sage-dk);
}

/* ----------------------------- Quiz ----------------------------- */
.quiz-head { margin-bottom: 18px; }
.progress {
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage) 0%, var(--sage-dk) 100%);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(.4,0,.2,1);
}
.quiz-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 2px 4px;
}
.round-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage-dk);
}
.quiz-count { font-size: 0.92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.round-subtitle { margin: 2px 2px 0; color: var(--ink-soft); font-size: 0.98rem; }

.question-card { margin-bottom: 18px; }
.question-text {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  line-height: 1.34;
  color: var(--ink);
  margin: 0 0 8px;
}
.question-hint {
  font-size: 0.95rem;
  color: var(--sage-dk);
  background: var(--sage-tint);
  border-left: 3px solid var(--sage-dk);
  padding: 8px 14px;
  border-radius: 6px;
  margin: 0 0 20px;
}

.answers { display: grid; gap: 12px; margin-top: 22px; }
.answer-btn {
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.answer-btn:hover { border-color: var(--sage); background: #fbfaf5; }
.answer-btn:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.answer-btn .dot {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all 0.15s ease;
}
.answer-btn.selected {
  border-color: var(--sage-dk);
  background: var(--sage-tint);
}
.answer-btn.selected .dot {
  border-color: var(--sage-dk);
  background: var(--sage-dk);
  box-shadow: inset 0 0 0 4px #fff;
}

/* Slider */
.slider-wrap { margin: 34px 0 8px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sage-soft), var(--sage-dk));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--sage-dk);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--sage-dk);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  cursor: pointer;
}
.slider-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.slider-value {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--sage-dk);
  font-variant-numeric: tabular-nums;
}

.quiz-nav { display: flex; gap: 12px; }
.quiz-nav .btn-primary { flex: 1; }

/* ----------------------------- Wait / Share ----------------------------- */
.badge-done {
  width: 56px; height: 56px;
  border-radius: 8px;
  background: var(--sage-dk);
  color: #fff;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.share { margin: 8px 0 24px; }
.share-label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.share-row { display: flex; gap: 10px; }
.share-row input { flex: 1; font-size: 0.98rem; }
.share-code { margin: 14px 0 0; color: var(--ink-soft); }
.share-code strong {
  font-family: var(--font-head);
  letter-spacing: 3px;
  font-size: 1.2rem;
  color: var(--clay-dk);
}
.copy-hint { color: var(--sage-dk); font-weight: 600; margin: 10px 0 0; }

.wait-status {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-weight: 500;
}
.pulse {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sage-dk);
  box-shadow: 0 0 0 0 rgba(95,112,80,0.5);
  animation: pulse 1.8s infinite;
  flex: 0 0 auto;
}
.pulse.big { width: 20px; height: 20px; margin-bottom: 18px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(95,112,80,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(95,112,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,112,80,0); }
}

/* ----------------------------- Ergebnis ----------------------------- */
.result-card { text-align: center; }
.result-headline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.65rem, 5vw, 2.3rem);
  line-height: 1.18;
  color: var(--ink);
  margin: 0 0 12px;
}
.result-sub { font-size: 1.08rem; color: var(--ink-soft); margin: 0 0 28px; }

.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 16px;
  margin-bottom: 8px;
}
.score-side { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px; }
.score-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.score-value {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.score-unit { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.4px; color: var(--ink-soft); }
.score-rounds { font-size: 0.85rem; color: var(--sage-dk); font-weight: 600; margin-top: 4px; min-height: 1.2em; }
.score-side.winner .score-value { color: var(--sage-dk); }
.score-vs .vs {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* Analyse */
.analysis { text-align: left; }
.ana-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ana-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.ana-name { display: block; font-weight: 600; font-size: 1.05rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.ana-name.a { color: var(--sage-dk); }
.ana-name.b { color: var(--clay-dk); }
.ana-led { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }
.ana-notes { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.ana-notes li {
  background: var(--sage-tint);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.ana-notes li strong { color: var(--ink); }
@media (max-width: 480px) {
  .ana-cols { grid-template-columns: 1fr; }
}

.rounds-table { display: grid; gap: 10px; text-align: left; }
.round-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.round-row .rr-title { font-weight: 600; color: var(--ink); }
.round-row .rr-winner { font-size: 0.9rem; color: var(--sage-dk); font-weight: 600; }
.rr-bars { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 4px; }
.rr-bar-line { display: grid; grid-template-columns: 90px 1fr 46px; align-items: center; gap: 10px; font-size: 0.9rem; }
.rr-bar-line .rr-name { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-track { height: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.rr-fill { height: 100%; border-radius: 999px; transition: width 0.6s ease; }
.rr-fill.a { background: linear-gradient(90deg, var(--sage-soft), var(--sage-dk)); }
.rr-fill.b { background: linear-gradient(90deg, #d8b79f, var(--clay-dk)); }
.rr-num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }

.result-footnote {
  margin: 24px 0 8px;
  padding: 16px 18px;
  background: var(--sage-tint);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.result-actions .btn { flex: 1; min-width: 160px; }

/* ----------------------------- Highscores ----------------------------- */
.leaderboard { display: grid; gap: 10px; }
.lb-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.lb-rank { font-family: var(--font-head); font-size: 1.3rem; color: var(--ink-soft); text-align: center; font-variant-numeric: tabular-nums; }
.lb-row:first-child .lb-rank { color: var(--clay-dk); }
.lb-name { font-weight: 600; color: var(--ink); }
.lb-meta { font-size: 0.85rem; color: var(--ink-soft); }
.lb-wins { text-align: right; }
.lb-wins strong { font-family: var(--font-head); font-size: 1.3rem; color: var(--sage-dk); }
.lb-wins span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }

.recent { display: grid; gap: 10px; }
.recent-row {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.recent-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.recent-pair { font-weight: 600; color: var(--ink); }
.recent-date { font-size: 0.85rem; color: var(--ink-soft); }
.recent-detail { font-size: 0.92rem; color: var(--ink-soft); margin-top: 4px; }
.recent-detail .win { color: var(--sage-dk); font-weight: 600; }

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 24px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 24px 16px 36px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ----------------------------- Modell-Auswahl ----------------------------- */
.models-field { border: none; padding: 0; margin: 8px 0 22px; }
.models-field legend { font-weight: 600; color: var(--ink); margin-bottom: 12px; padding: 0; }
.model-choice { display: grid; gap: 12px; }
.model-card {
  text-align: left; background: #fff; border: 2px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; cursor: pointer;
  display: grid; gap: 3px; transition: border-color .15s ease, background .15s ease;
}
.model-card:hover { border-color: var(--sage); }
.model-card:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }
.model-card.selected { border-color: var(--sage-dk); background: var(--sage-tint); }
.mc-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.mc-short { font-size: .85rem; color: var(--sage-dk); font-weight: 600; }
.mc-intro { font-size: .92rem; color: var(--ink-soft); line-height: 1.4; }

/* ----------------------------- Match-Meter ----------------------------- */
.match-meter { text-align: center; margin: 8px 0 6px; }
.mm-top { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.mm-num { font-family: var(--font-head); font-weight: 600; font-size: clamp(3rem, 14vw, 4.4rem); line-height: 1; color: var(--sage-dk); font-variant-numeric: tabular-nums; }
.mm-pct { font-family: var(--font-head); font-size: 1.6rem; color: var(--sage-dk); }
.mm-label { text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; font-weight: 600; color: var(--ink-soft); margin-top: 4px; }
.mm-track { height: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: 14px auto 0; max-width: 420px; }
.mm-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--sage-soft), var(--sage-dk)); transition: width .8s ease; }
.result-note { text-align: center; font-size: .95rem; color: var(--ink-soft); margin: 14px auto 4px; max-width: 520px; }

/* ----------------------------- Profil-Karten ----------------------------- */
.persons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 4px; }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; display: grid; gap: 4px; text-align: center; align-content: start; }
.person-card.a { border-top: 4px solid var(--sage-dk); }
.person-card.b { border-top: 4px solid var(--clay-dk); }
.person-dot { width: 12px; height: 12px; border-radius: 50%; margin: 0 auto; }
.person-dot.a { background: var(--sage-dk); }
.person-dot.b { background: var(--clay-dk); }
.person-name { font-weight: 600; font-size: 1.05rem; color: var(--ink); overflow-wrap: anywhere; }
.person-type { font-family: var(--font-head); font-weight: 600; font-size: 2rem; letter-spacing: 2px; color: var(--ink); }
.person-type.small { font-size: 1.3rem; letter-spacing: 0; }
.person-sub { font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
.person-motto { font-style: italic; color: var(--sage-dk); font-size: .95rem; }
.person-second { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; }

/* Merkmals-Doppelbalken */
.trait-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.trait-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.trait-name { font-weight: 600; color: var(--ink); }
.trait-gap { font-size: .8rem; color: var(--ink-soft); }
.trait-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-soft); margin: 4px 0 10px; }

/* Typen-Raster (Enneagramm) */
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.types-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.types-col-name { display: block; font-weight: 600; margin-bottom: 10px; }
.types-col-name.a { color: var(--sage-dk); }
.types-col-name.b { color: var(--clay-dk); }
.mini-bar { display: grid; grid-template-columns: 1fr; gap: 3px; margin-bottom: 9px; }
.mini-name { font-size: .85rem; color: var(--ink-soft); }
.mini-track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 999px; }
.mini-fill.a { background: linear-gradient(90deg, var(--sage-soft), var(--sage-dk)); }
.mini-fill.b { background: linear-gradient(90deg, #d8b79f, var(--clay-dk)); }

/* Empfehlungen */
.recos { display: grid; gap: 10px; text-align: left; }
.reco-card { background: var(--sage-tint); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 4px; }
.reco-title { font-weight: 600; color: var(--sage-dk); font-size: .92rem; }
.reco-text { color: var(--ink); font-size: .98rem; line-height: 1.5; }

/* ----------------------------- Responsiv ----------------------------- */
@media (max-width: 480px) {
  body { font-size: 17px; }
  .result-actions .btn { flex: 1 1 100%; }
  .rr-bar-line { grid-template-columns: 72px 1fr 40px; }
  .persons, .types-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
