:root {
  --bg: #0f0a20;
  --bg-2: #1c1438;
  --card: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f3eefc;
  --muted: #bdb3d8;
  --accent: #b69cff;
  --gold: #e8c77a;
  --gold-dark: #c9a24c;
  --error: #ff9b9b;
  /* Tinas Seite: Cremepapier, dunkle Tinte, Merriweather + Open Sans */
  --paper: #fbf7f4;
  --paper-2: #f3e9df;
  --ink: #1a1a1a;
  --ink-muted: #5d554d;
  --pencil: #8a7f74;
  --radius: 16px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: radial-gradient(ellipse 120% 70% at 50% 0%, var(--bg-2), var(--bg) 70%) fixed;
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sky { position: fixed; inset: 0; pointer-events: none; }

.wrap {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 44px 22px 24px;
}

.screen { display: none; }
.screen.active { display: block; animation: rise 0.6s ease both; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 14px;
}
h1 { font-size: 42px; letter-spacing: -0.01em; }
h1 em { font-style: italic; font-weight: 500; color: var(--gold); }
h2 { font-size: 31px; }
h3 { font-size: 22px; color: var(--gold); margin-top: 22px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead { color: var(--muted); margin: 0 0 28px; }
.center { text-align: center; }

/* Start */
.moon {
  width: 74px;
  height: 74px;
  margin: 8px 0 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff6dc, var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 0 40px 8px rgba(232, 199, 122, 0.35), 0 0 120px 30px rgba(182, 156, 255, 0.15);
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow { 50% { box-shadow: 0 0 55px 12px rgba(232, 199, 122, 0.45), 0 0 140px 40px rgba(182, 156, 255, 0.2); } }

.trust { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; text-align: center; letter-spacing: 0.02em; }

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #8a64ff, #b69cff);
  color: #fff;
  font: 600 18px/1.2 "Inter", system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(138, 100, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-small { width: auto; display: inline-block; padding: 11px 18px; font-size: 15px; }
.btn-ink {
  background: var(--ink);
  color: #fff;
  font-family: "Open Sans", system-ui, sans-serif;
  box-shadow: 0 10px 26px rgba(26, 26, 26, 0.25);
}

.link {
  display: block;
  margin: 16px auto 0;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

/* Quiz */
.progress { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; margin-bottom: 30px; }
.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 10px var(--gold);
  transition: width 0.5s ease;
}

.question-sub { margin: -4px 0 22px; color: var(--muted); }

.step-in h2, .step-in .question-sub { animation: rise 0.5s ease both; }
.step-in .option { animation: rise 0.45s ease both; animation-delay: calc(0.08s + var(--i) * 0.06s); }

.options { display: grid; gap: 12px; margin-top: 22px; }
.option {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: 500 17px/1.3 "Inter", system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.3s ease, transform 0.2s ease;
}
.option:hover, .option:focus-visible { border-color: var(--accent); background: rgba(182, 156, 255, 0.1); }
.option.chosen {
  border-color: var(--gold);
  background: rgba(232, 199, 122, 0.12);
  box-shadow: 0 0 24px rgba(232, 199, 122, 0.2);
}
.option.faded { opacity: 0.35; }

.reaction {
  min-height: 28px;
  margin: 20px 0 0;
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 23px;
  font-style: italic;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reaction.visible { opacity: 1; transform: none; }

.field-step { display: grid; gap: 14px; margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; }
.field-row label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }

select, input[type="text"], input[type="email"] {
  width: 100%;
  padding: 16px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font: 400 17px "Inter", system-ui, sans-serif;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
select option { color: #111; }

/* Sternbild */
.constellation { display: block; width: 100%; max-width: 280px; height: 210px; margin: 18px auto 26px; overflow: visible; }
.constellation line { stroke: var(--gold); stroke-width: 0.6; stroke-linecap: round; opacity: 0.8; }
.constellation circle { fill: #fff8e6; filter: drop-shadow(0 0 2px var(--gold)); }
.constellation.animate line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.6s ease forwards; animation-delay: var(--d); }
.constellation.animate circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 0.5s ease forwards; animation-delay: var(--d); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { opacity: 0; transform: scale(0.2); } 60% { opacity: 1; transform: scale(1.6); } 100% { opacity: 1; transform: scale(1); } }

#screen-reveal { text-align: center; }
.reveal-title, .reveal-planet, #reveal-line, #reveal-continue { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; transform: translateY(8px); }
.revealed .reveal-title { opacity: 1; transform: none; transition-delay: 1.4s; }
.revealed .reveal-planet { opacity: 1; transform: none; transition-delay: 1.8s; }
.revealed #reveal-line { opacity: 1; transform: none; transition-delay: 2.2s; }
.revealed #reveal-continue { opacity: 1; transform: none; transition-delay: 2.7s; }
.reveal-title { font-size: 44px; margin-bottom: 6px; }
.reveal-planet { color: var(--accent); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 18px; }
.glyph { font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", serif; color: var(--gold); }

/* Kompatibilitätskreis */
#screen-loading { text-align: center; }
.wheel { display: block; width: 100%; max-width: 280px; margin: 10px auto 24px; overflow: visible; }
.wheel-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.wheel line { stroke: var(--gold); stroke-width: 1.2; opacity: 0.85; }
.wheel.animate line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.7s ease forwards; animation-delay: var(--d); }
.wheel text {
  fill: var(--muted);
  font-size: 17px;
  text-anchor: middle;
  dominant-baseline: central;
  font-family: "Segoe UI Symbol", "Apple Symbols", "Noto Sans Symbols", serif;
}
.wheel text.self { fill: #fff8e6; font-size: 24px; filter: drop-shadow(0 0 6px var(--gold)); }
.wheel text.match { fill: var(--gold); }
.wheel.animate text.match { animation: pulse 0.6s ease both; animation-delay: var(--d); }
@keyframes pulse { 0% { font-size: 17px; } 50% { font-size: 23px; } 100% { font-size: 19px; } }

/* E-Mail */
#optin-form { display: grid; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.consent a, .consent-banner a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { margin: 0; color: var(--error); font-size: 14px; }

/* Ergebnis: Profilkarte */
.profile-card {
  position: relative;
  margin: 0 auto 26px;
  max-width: 340px;
  padding: 26px 22px 22px;
  border: 1px solid rgba(232, 199, 122, 0.55);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(182, 156, 255, 0.14), rgba(232, 199, 122, 0.06) 60%, rgba(15, 10, 32, 0.4)),
    #150f2c;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 6px rgba(232, 199, 122, 0.06);
  text-align: center;
}
.profile-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(232, 199, 122, 0.22);
  border-radius: 16px;
  pointer-events: none;
}
.card-kicker { margin: 0; color: var(--gold); font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; }
.card-name { margin: 6px 0 0; font: italic 500 30px/1.1 "Cormorant Garamond", Georgia, serif; }
.constellation.small { max-width: 180px; height: 130px; margin: 16px auto 14px; }
.card-sign { margin: 0 0 14px; font: 600 26px/1.1 "Cormorant Garamond", Georgia, serif; }
.card-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding-top: 14px; border-top: 1px solid rgba(232, 199, 122, 0.25); }
.card-facts dt { color: var(--muted); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.card-facts dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 500; }

.reading p { margin: 0 0 12px; }
.signs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.signs li { padding: 7px 14px; border: 1px solid var(--gold-dark); border-radius: 999px; color: var(--gold); font-weight: 500; }
.closing { margin-top: 18px !important; color: var(--muted); font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; font-style: italic; line-height: 1.35; }

/* Übergang: Nacht → Morgen → Skizzenpapier (Tinas Look) */
.dawn {
  margin: 40px calc(50% - 50vw) 0;
  padding: 120px 22px 36px;
  background: linear-gradient(180deg, rgba(15, 10, 32, 0) 0%, #3a2a4a 14%, #b98f7e 30%, var(--paper-2) 44%, var(--paper) 58%);
}
.paper {
  max-width: 520px;
  margin: 0 auto;
  padding: 30px 22px 24px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(0deg, rgba(138, 127, 116, 0.035) 0 1px, transparent 1px 4px),
    var(--paper);
  box-shadow: 0 18px 50px rgba(58, 42, 74, 0.25);
  color: var(--ink);
  font-family: "Open Sans", system-ui, sans-serif;
}
.paper h2 { font-family: "Merriweather", Georgia, serif; font-weight: 700; font-size: 27px; line-height: 1.25; color: var(--ink); }
.paper p { color: var(--ink-muted); }
.paper-kicker { margin: 0 0 10px; color: var(--pencil) !important; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }

.portrait { margin: 22px auto; width: 200px; text-align: center; }
.portrait svg {
  display: block;
  width: 200px;
  height: 220px;
  background: #fffdfa;
  border: 1px solid #e3d8cc;
  box-shadow: 0 6px 18px rgba(26, 26, 26, 0.08);
  transform: rotate(-1.5deg);
}
.portrait figcaption { margin-top: 10px; color: var(--pencil); font: italic 500 20px "Cormorant Garamond", Georgia, serif; }

.journey { margin: 8px 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.journey li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
.journey span {
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid #cfc3b6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--pencil);
}
.journey .done { color: var(--ink-muted); }
.journey .done span { background: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.journey .next { color: var(--ink); font-weight: 600; }
.journey .next span { border-color: var(--ink); color: var(--ink); }

.guarantee { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ink-muted) !important; }
.guarantee::before { content: "✓  "; color: #2e7d4f; font-weight: 600; }
.disclosure { margin: 10px 0 0; text-align: center; font-size: 12.5px; line-height: 1.45; color: #857b71 !important; }

/* Footer – auf der Ergebnisseite im Papierton */
.footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 22px 40px;
  color: rgba(189, 179, 216, 0.7);
  font-size: 11.5px;
  text-align: center;
}
.footer p { margin: 0 0 6px; }
.footer a { color: inherit; }
body.on-result { background: var(--paper); }
body.on-result .sky { display: none; }
body.on-result main { background: radial-gradient(ellipse 120% 40% at 50% 0%, var(--bg-2), var(--bg) 70%); max-width: none; }
body.on-result .wrap { padding-bottom: 0; }
body.on-result .screen { max-width: 516px; margin: 0 auto; }
body.on-result .footer { color: #9b9187; max-width: none; background: var(--paper); }

/* Klick zum Hoplink: sanft in Tinas Papierton überblenden */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 20;
}
body.leaving::after { opacity: 1; }

/* Cookie-Banner */
.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 536px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #1c1438f2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  z-index: 10;
}
.consent-banner p { margin: 0; flex: 1 1 220px; }
.consent-banner .link { display: inline; margin: 0 0 0 10px; }

/* Rechtsseiten */
.legal { max-width: 720px; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 24px; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent); }

@media (min-width: 640px) {
  .wrap { padding-top: 70px; }
  h1 { font-size: 52px; }
}

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