/* Hormoncheck – Design angelehnt an wechseljahrestyp.beateschneider.de */

:root {
  --blue: #115a88;
  --blue-dark: #002c56;
  --gold: #d6b85c;
  --gold-light: #e8d696;
  --gold-dark: #a47e40;

  --grad-dark: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  --grad-gold: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-dark) 100%);

  --bg: #f8f6f1;
  --surface: #ffffff;
  --text: #1d2a36;
  --text-muted: #5a6773;
  --line: #e6e1d6;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 44, 86, 0.08);

  /* Systemschriften: keine externen Font-Anfragen (DSGVO) */
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ---------- Header / Footer ---------- */

.site-header {
  background: var(--blue-dark);
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  min-height: 60px;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.wordmark span {
  color: var(--gold);
}

.site-footer {
  padding: 40px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.site-footer a {
  color: var(--text-muted);
  margin: 0 10px;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--grad-dark);
  color: #fff;
  padding: 72px 0 88px;
  text-align: center;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 2em;
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1em;
}

.eyebrow.on-light {
  color: var(--gold-dark);
}

.facts {
  list-style: none;
  padding: 0;
  margin: 2em 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.facts li::before {
  content: "✦ ";
  color: var(--gold);
}

.pills {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pills span {
  border: 1px solid rgba(214, 184, 92, 0.5);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold-light);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 16px 36px;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-gold {
  background: var(--grad-gold);
  color: var(--blue-dark);
  box-shadow: 0 8px 20px rgba(164, 126, 64, 0.35);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(164, 126, 64, 0.45);
}

.btn-link {
  background: none;
  border: 0;
  padding: 8px 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
}

.btn-link:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Bildschirme (Start / Alter / Periode / Fragen) ---------- */

.screen {
  display: none;
}

.screen.is-active {
  display: block;
  animation: fade 0.25s ease;
}

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

/* ---------- Quiz ---------- */

.quiz {
  padding: 48px 0 24px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 36px;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--grad-gold);
  transition: width 0.35s ease;
}

.question-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}

.question-card h2 {
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  margin-bottom: 1.2em;
}

.question-card .intro {
  color: var(--text-muted);
  margin-top: -0.6em;
}

.question-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4em;
}

.answers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.answer {
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 16px 20px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.answer:hover {
  border-color: var(--gold);
}

.answer.is-selected {
  border-color: var(--blue);
  background: #eaf2f8;
}

.option-hint {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.quiz-nav {
  margin-top: 20px;
  min-height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.quiz-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Alter */
.age-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.age-field input {
  font: inherit;
  font-size: 1.6rem;
  width: 140px;
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}

.age-field input:focus {
  border-color: var(--gold);
  outline: none;
}

.age-field span {
  color: var(--text-muted);
}

.error {
  color: #a8394a;
  margin: 12px 0 0;
}

/* ---------- Ergebnisseite ---------- */

.result-hero h1 {
  margin-bottom: 0.3em;
}

.result-hero h1 span {
  color: var(--gold);
}

.result-hero .lead {
  margin-bottom: 0;
}

.section {
  padding: 56px 0 0;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.distribution {
  margin-top: -48px;
  position: relative;
}

.distribution h2 {
  font-size: 1.35rem;
}

.dist-row {
  display: grid;
  grid-template-columns: 9.5em 1fr 3.2em;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.dist-row.is-primary {
  font-weight: 700;
}

.dist-track {
  display: block;
  height: 12px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.dist-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0.55;
  transition: width 0.9s ease;
}

.is-primary .dist-fill {
  background: var(--grad-gold);
  opacity: 1;
}

.dist-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.dist-summary {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features {
  list-style: none;
  padding: 0;
  margin: 1.5em 0 0;
  display: grid;
  gap: 14px;
}

.features li {
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  line-height: 1.55;
  box-shadow: var(--shadow);
}

.tip {
  margin: 24px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: #eaf2f8;
}

.tip strong {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
}

.profile-row + .profile-row {
  margin-top: 22px;
}

.profile-row .dist-row {
  margin-bottom: 4px;
}

.profile-row p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.phase-more {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.phase-more:first-child {
  border-top: 0;
  padding-top: 0;
}

.phase-more:last-child {
  padding-bottom: 0;
}

.phase-more summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.phase-more summary .pct {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.phase-more[open] summary {
  margin-bottom: 12px;
}

.phase-more ul {
  padding-left: 20px;
  margin: 0;
}

.phase-more li {
  margin-bottom: 6px;
}

.note {
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.restart {
  text-align: center;
  margin-top: 32px;
}

/* ---------- Bestätigungsseite ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5em 0 0;
  display: grid;
  gap: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px 22px 76px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--blue-dark);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin-bottom: 0.3em;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.2em 0 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
}

.checklist li::before {
  content: "✦";
  position: absolute;
  left: 2px;
  color: var(--gold-dark);
}

/* ---------- Mobil ---------- */

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 52px 0 72px;
  }

  .question-card,
  .card {
    padding: 26px 20px;
  }

  .dist-row {
    grid-template-columns: 1fr 3em;
    gap: 4px 10px;
  }

  .dist-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .steps li {
    padding: 70px 20px 20px;
  }

  .steps li::before {
    left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

.card > .checklist {
  margin-top: 0;
}
