/* globulifinder.de — Prototyp
   Palette: Papier #FAFAF7 · Tinte #232921 · Tanne #2E4B3F · Salbei #9DB5A4 · Salbei hell #EEF3EE · Braunglas #A9742F */

:root {
  --paper: #FAFAF7;
  --ink: #232921;
  --ink-soft: #55604F;
  --pine: #2E4B3F;
  --pine-deep: #1F3830;
  --sage: #9DB5A4;
  --sage-soft: #C9D6CC;
  --sage-wash: #EEF3EE;
  --amber: #A9742F;
  --amber-deep: #8A5D22;
  --radius: 14px;
  --maxw: 960px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Albert Sans", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--pine); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--sage-soft);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--pine-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
  align-self: center;
  margin-left: 4px;
}

/* ---------- Views ---------- */
.view { display: none; }
.view.active { display: block; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Landing ---------- */
.hero {
  padding: 64px 0 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 550;
  line-height: 1.12;
  color: var(--pine-deep);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero-art { justify-self: center; }

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .18s ease, transform .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-deep); }
.btn-ghost {
  background: none;
  color: var(--pine);
  border: 1.5px solid var(--sage);
}
.btn-ghost:hover { background: var(--sage-wash); }

.trust {
  display: grid;
  gap: 14px;
  padding: 26px 0 10px;
  border-top: 1px solid var(--sage-soft);
}
.trust div {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}
.trust div::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--sage);
}
.trust strong { color: var(--ink); font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 44px 0; }
h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 550;
  color: var(--pine-deep);
  margin-bottom: 8px;
}
.section-sub { color: var(--ink-soft); margin-bottom: 28px; max-width: 36em; }

/* Kategorien-Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.cat-tile {
  text-align: left;
  background: #fff;
  border: 1px solid var(--sage-soft);
  border-radius: var(--radius);
  padding: 20px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}
.cat-tile:hover {
  border-color: var(--pine);
  box-shadow: 0 4px 18px rgba(46, 75, 63, 0.09);
  transform: translateY(-2px);
}
.cat-tile h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--pine-deep);
  margin-bottom: 4px;
}
.cat-tile p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.45; }

/* Schritte */
.steps { display: grid; gap: 22px; counter-reset: step; }
.step { position: relative; padding-left: 52px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--sage-wash);
  border: 1px solid var(--sage-soft);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 600;
  display: grid;
  place-items: center;
}
.step h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 2px; }
.step p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- Quiz ---------- */
.quiz-shell { max-width: 620px; margin: 0 auto; padding: 40px 0 60px; }
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.quiz-cat {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.linklike {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linklike:hover { color: var(--pine); }

/* Perlen-Fortschritt (Signatur) */
.pearls {
  display: flex;
  gap: 9px;
  margin: 6px 0 34px;
}
.pearl {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--sage);
  transition: background .25s ease, border-color .25s ease;
}
.pearl.filled {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: inset 0 -2px 3px rgba(0,0,0,0.12);
}
.pearl.current { border-color: var(--amber); }

.q-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 550;
  line-height: 1.25;
  color: var(--pine-deep);
  margin-bottom: 24px;
}
.q-options { display: grid; gap: 10px; }
.q-option {
  text-align: left;
  background: #fff;
  border: 1px solid var(--sage-soft);
  border-radius: var(--radius);
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 0.99rem;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.q-option:hover { border-color: var(--pine); background: var(--sage-wash); }
.q-option.selected { border-color: var(--pine); background: var(--sage-wash); }

.quiz-nav { margin-top: 26px; }

/* Warnsignal-Hinweis im Ergebnis-Disclaimer */
.redflag-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sage-soft);
}
.redflag-note ul {
  list-style: disc;
  margin: 6px 0 8px;
  padding-left: 20px;
}
.redflag-note li { margin-bottom: 2px; }
.esc-note { display: block; margin-top: 4px; }

/* ---------- Ergebnis ---------- */
.result-shell { max-width: 680px; margin: 0 auto; padding: 40px 0 60px; }

/* Etikett-Karte (Signatur) */
.label-card {
  background: #fff;
  border: 1px solid var(--pine);
  border-radius: 6px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--sage-soft);
  padding: 34px 30px 30px;
  position: relative;
  margin: 18px 2px 26px;
}
.label-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--sage-soft);
  border-radius: 3px;
  pointer-events: none;
}
.potency-badge {
  position: absolute;
  top: 18px; right: 18px;
  background: var(--amber);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}
.remedy-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 550;
  font-style: italic;
  color: var(--pine-deep);
  line-height: 1.1;
}
.remedy-german {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.label-card .portrait { margin-bottom: 18px; }

.label-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 18px 0 8px;
}
.label-card ul { list-style: none; }
.label-card li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px;
  font-size: 0.97rem;
}
.label-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.dosing { font-size: 0.95rem; color: var(--ink-soft); }

.buy-row { margin-top: 24px; }
.affiliate-note {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* Alternativen */
.alt-grid { display: grid; gap: 12px; margin-top: 10px; }
.alt-card {
  background: #fff;
  border: 1px solid var(--sage-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.alt-card .alt-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  color: var(--pine-deep);
}
.alt-card p { font-size: 0.88rem; color: var(--ink-soft); flex-basis: 100%; }
.alt-link {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Disclaimer */
.disclaimer {
  background: var(--sage-wash);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 30px;
}
.disclaimer strong { color: var(--ink); }

.result-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--sage-soft);
  margin-top: 40px;
  padding: 30px 0 44px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
footer nav { display: flex; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); }
footer .fineprint { max-width: 44em; }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.page { max-width: 680px; margin: 0 auto; padding: 48px 20px 60px; }
.page h1 { font-size: 1.9rem; margin-bottom: 20px; }
.page h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.page p { margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .hero { grid-template-columns: 1.4fr 1fr; }
  .trust { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding-left: 0; padding-top: 50px; }
  .step::before { left: 0; }
}
