/* =========================================================
   Ulrike von den Driesch · Selbsttest (Leadmagnet) v2
   Eigenständiges Stylesheet, nutzt die Tokens aus style.css
   ========================================================= */

/* ---------- Lead-Magnet-Teaser (Startseite) ---------- */
.lm-teaser { background: var(--cream-deep); overflow: clip; }
.lm-teaser .lm-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
.lm-teaser .lm-eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terra-700); margin-bottom: 1.1rem;
}
.lm-teaser h2 { margin-bottom: .6rem; }
.lm-teaser .lead { max-width: 46ch; margin-bottom: 1.4rem; }
.lm-teaser .lm-meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; margin: 1.8rem 0 2rem;
}
.lm-teaser .lm-meta div { display: flex; flex-direction: column; gap: .15rem; }
.lm-teaser .lm-meta .m-num {
  font-family: var(--font-display); font-style: italic; font-size: 2.3rem;
  color: var(--plum); line-height: 1;
}
.lm-teaser .lm-meta .m-lbl { font-size: .82rem; color: var(--muted); }

/* Visualisierung der "Karte" rechts */
.lm-card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-2);
}
.lm-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: rotate(-3deg) translate(14px, 16px);
  background: var(--plum); border-radius: var(--r-lg); opacity: .9;
}
.lm-card .lm-card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.lm-card .lm-card-head span { font-family: var(--font-display); font-style: italic; color: var(--plum); }
.lm-card .lm-card-head .dot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--cream-deep);
  display: grid; place-items: center; color: var(--terra);
}
.lm-bar { margin-bottom: 1.05rem; }
.lm-bar .b-top { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: .4rem; }
.lm-bar .b-top b { font-weight: 600; color: var(--plum); }
.lm-bar .b-top span { color: var(--muted); }
.lm-bar .b-rail { height: 8px; border-radius: 99px; background: var(--cream-deep); overflow: hidden; }
.lm-bar .b-fill { height: 100%; border-radius: 99px; background: var(--terra); }
.lm-bar.is-sage .b-fill { background: var(--sage-700); }
.lm-bar.is-gold .b-fill { background: var(--gold); }
.lm-bar.is-plum .b-fill { background: var(--plum-300); }

@media (max-width: 880px) {
  .lm-teaser .lm-grid { grid-template-columns: 1fr; }
  .lm-card { order: -1; }
}

/* ---------- Selbsttest-Bühne ---------- */
.quiz-wrap { width: min(880px, 92%); margin-inline: auto; }

.quiz-stage {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: clamp(1.8rem, 4vw, 3.6rem);
  min-height: 460px;
  display: flex; flex-direction: column;
}

/* Fortschrittsleiste */
.quiz-progress { margin-bottom: 2.2rem; }
.quiz-progress .qp-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .82rem; color: var(--muted); margin-bottom: .55rem;
}
.quiz-progress .qp-meta b { color: var(--plum); font-weight: 600; }
.quiz-progress .qp-rail { height: 5px; border-radius: 99px; background: var(--cream-deep); overflow: hidden; }
.quiz-progress .qp-fill {
  height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--terra), var(--gold));
  transition: width .55s var(--ease);
}

/* Panels (Screens) */
.quiz-panel { display: none; flex: 1; flex-direction: column; }
.quiz-panel.active { display: flex; animation: q-fade .5s var(--ease) both; }
@keyframes q-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ----- Intro ----- */
.quiz-intro { text-align: left; }
.quiz-intro .q-kick {
  display: inline-block;
  font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra-700); margin-bottom: 1rem;
}
.quiz-intro h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .7rem; }
.quiz-intro p { max-width: 56ch; }
.quiz-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin: 2rem 0 2.4rem; border-top: 1px solid var(--line); padding-top: 1.8rem;
}
.quiz-facts .qf { display: flex; flex-direction: column; gap: .25rem; }
.quiz-facts .qf .n { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; color: var(--plum); line-height: 1; }
.quiz-facts .qf .l { font-size: .84rem; color: var(--muted); }
.quiz-intro .q-start-row { margin-top: auto; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.quiz-intro .q-note { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .45rem; }

@media (max-width: 560px) { .quiz-facts { grid-template-columns: 1fr; gap: .8rem; } }

/* ----- Fragen ----- */
.q-dim-tag {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--plum); background: var(--cream-deep);
  padding: .4rem .85rem; border-radius: 99px; margin-bottom: 1.4rem;
}
.q-dim-tag .d-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.quiz-question h3 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.15;
  margin-bottom: 1.8rem; max-width: 24ch;
}
.q-scale { display: grid; gap: .7rem; margin-bottom: 1.5rem; }
.q-option {
  display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left;
  padding: 1.05rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--cream); color: var(--ink); cursor: pointer; font-size: 1.02rem;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .2s var(--ease);
}
.q-option .o-mark {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--plum-300); display: grid; place-items: center;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.q-option .o-mark::after {
  content: ""; width: 11px; height: 11px; border-radius: 50%; background: transparent;
  transition: background .2s var(--ease);
}
.q-option:hover { border-color: var(--terra); background: var(--paper); transform: translateX(4px); }
.q-option.selected { border-color: var(--terra); background: var(--paper); }
.q-option.selected .o-mark { border-color: var(--terra); }
.q-option.selected .o-mark::after { background: var(--terra); }
.q-nav { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; }
.q-back {
  background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .92rem;
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 0;
}
.q-back:hover { color: var(--terra); }
.q-back[hidden] { visibility: hidden; }
.q-hint { font-size: .82rem; color: var(--muted); }

/* ----- Berechnen / Loader ----- */
.quiz-calc { align-items: center; justify-content: center; text-align: center; gap: 1.4rem; }
.quiz-calc .c-ring {
  width: 64px; height: 64px; border-radius: 50%;
  border: 3px solid var(--cream-deep); border-top-color: var(--terra);
  animation: q-spin 1s linear infinite;
}
@keyframes q-spin { to { transform: rotate(360deg); } }
.quiz-calc p { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--plum); }

/* ----- Ergebnis ----- */
.quiz-result { gap: 0; }
.result-head { text-align: center; margin-bottom: 2.2rem; }
.result-head .r-kick {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terra-700); margin-bottom: .8rem;
}
.result-head .r-type { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: .5rem; }
.result-head .r-sub { max-width: 60ch; margin-inline: auto; }

.result-score {
  display: flex; align-items: center; justify-content: center; gap: 1.8rem;
  background: var(--plum); color: var(--cream); border-radius: var(--r-lg);
  padding: 1.8rem clamp(1.4rem, 4vw, 3rem); margin-bottom: 2.4rem; flex-wrap: wrap;
}
.result-score .rs-ring {
  --p: 0; position: relative; width: 116px; height: 116px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(248,244,237,.16) 0);
  display: grid; place-items: center;
}
.result-score .rs-ring::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--plum);
}
.result-score .rs-ring b {
  position: relative; z-index: 1; font-family: var(--font-display); font-style: italic;
  font-size: 2.1rem; color: var(--cream);
}
.result-score .rs-txt { max-width: 40ch; }
.result-score .rs-txt h4 { color: var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-bottom: .3rem; font-weight: 400; }
.result-score .rs-txt p { color: rgba(248,244,237,.82); margin: 0; font-size: .95rem; }

/* Dimensions-Balken */
.result-dims { display: grid; gap: 1.5rem; margin-bottom: 2.4rem; }
.r-dim .rd-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.r-dim .rd-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--plum); }
.r-dim .rd-name .rd-i { font-style: italic; color: var(--terra); margin-right: .5rem; }
.r-dim .rd-val { font-size: .85rem; color: var(--muted); }
.r-dim .rd-val b { color: var(--plum); font-weight: 600; }
.r-dim .rd-rail { height: 9px; border-radius: 99px; background: var(--cream-deep); overflow: hidden; }
.r-dim .rd-fill { height: 100%; width: 0; border-radius: 99px; background: var(--terra); transition: width 1s var(--ease); }
.r-dim[data-level="stark"] .rd-fill { background: var(--sage-700); }
.r-dim[data-level="solide"] .rd-fill { background: var(--gold); }
.r-dim[data-level="entwicklung"] .rd-fill { background: var(--terra); }
.r-dim .rd-insight { font-size: .92rem; color: var(--muted); margin: .7rem 0 0; max-width: 70ch; }
.r-dim .rd-insight b { color: var(--plum); font-weight: 600; }
.r-dim .rd-focus {
  display: flex; gap: .7rem; align-items: baseline; margin: .6rem 0 0;
  font-size: .9rem; color: var(--plum); max-width: 70ch;
}
.r-dim .rd-focus span {
  flex-shrink: 0; font-size: .66rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--terra-700);
  border: 1px solid var(--line); border-radius: 99px; padding: .15rem .55rem;
}

/* Auswahl-Optionen (verzweigte Folgefrage): längere, mehrzeilige Labels */
.q-opt-choice { align-items: flex-start; }
.q-opt-choice .o-mark { margin-top: 1px; }
.q-scale.q-choice .q-option { font-size: .98rem; }

/* E-Mail-Gate für PDF */
.pdf-gate {
  background: var(--cream-deep); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 1.6rem;
}
.pdf-gate .pg-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.pdf-gate h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.pdf-gate h3 .ico-svg { color: var(--terra); width: 1.1em; height: 1.1em; vertical-align: -2px; margin-right: .4rem; }
.pdf-gate p { font-size: .95rem; margin-bottom: 0; }
.pdf-gate .pg-form { display: flex; gap: .7rem; flex-wrap: wrap; }
.pdf-gate .pg-form .pg-input { flex: 1 1 240px; }
.pdf-gate .pg-form input[type="email"], .pdf-gate .pg-form input[type="text"] {
  width: 100%; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.pdf-gate .pg-form input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(196,111,77,.14); }
.pdf-gate .pg-form .pg-input.has-error input { border-color: var(--terra-700); box-shadow: 0 0 0 3px rgba(196,111,77,.12); }
.pdf-gate .pg-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.pdf-gate .pg-check input { margin-top: .25rem; accent-color: var(--terra); }
.pdf-gate .pg-msg { font-size: .85rem; min-height: 1.2rem; margin: 0; }
.pdf-gate .pg-msg.err { color: var(--terra-700); }
.pdf-gate .pg-msg.ok { color: var(--sage-700); }

/* Gate nach Freischaltung */
.pdf-ready {
  display: none; background: var(--plum); color: var(--cream); border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.6rem;
  align-items: center; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap;
}
.pdf-ready.show { display: flex; animation: q-fade .5s var(--ease) both; }
.pdf-ready h3 { color: var(--cream); margin-bottom: .3rem; }
.pdf-ready p { color: rgba(248,244,237,.82); margin: 0; font-size: .95rem; max-width: 44ch; }
.pdf-ready-msg { flex-basis: 100%; margin: 0; font-size: .85rem; min-height: 0; }
.pdf-ready-msg.err { color: var(--gold); }
.pdf-ready-msg:empty { display: none; }

.result-cta {
  text-align: center; border-top: 1px solid var(--line); padding-top: 2rem;
}
.result-cta p { max-width: 52ch; margin-inline: auto; margin-bottom: 1.4rem; }
.result-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.q-restart {
  background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem;
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem;
}
.q-restart:hover { color: var(--terra); }

/* Vertrauens-Zeile unter der Bühne */
.quiz-trust {
  display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.8rem; font-size: .84rem; color: var(--muted);
}
.quiz-trust span { display: inline-flex; align-items: center; gap: .45rem; }
.quiz-trust .ico-svg { width: 1em; height: 1em; color: var(--sage-700); }

@media (max-width: 560px) {
  .result-score { flex-direction: column; text-align: center; gap: 1.2rem; }
  .result-score .rs-txt { text-align: center; }
}

/* ==================== SELBSTTEST-LANDING ==================== */
/* Hero */
.st-hero {
  padding-top: calc(var(--nav-h) + var(--top-bar) + clamp(2.6rem, 6vw, 4.5rem));
  padding-bottom: clamp(2.6rem, 5vw, 4rem);
  background: var(--cream); overflow: clip;
}
.st-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.st-hero-copy .lm-eyebrow { margin-bottom: 1rem; }
.st-hero-copy h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; margin: 0 0 .55em; }
.st-hero-copy .lead { max-width: 46ch; margin-bottom: 1.7rem; }
.st-hero-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.9rem; }
.st-hero-cta .q-note { font-size: .82rem; color: var(--muted); }
.st-hero-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.st-hero-trust li { display: flex; align-items: center; gap: .65rem; font-size: .92rem; color: var(--muted); }
.st-hero-trust li .ico-svg { width: 1.05em; height: 1.05em; color: var(--sage-700); flex-shrink: 0; }
.st-hero-visual { display: flex; justify-content: center; }
.st-hero-visual .lm-card { width: 100%; max-width: 430px; }
@media (max-width: 880px) {
  .st-hero-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .st-hero-visual { order: -1; }
  .st-hero-visual .lm-card { max-width: 380px; }
}

/* Quiz-Bühne in eigener, ruhiger Sektion */
.st-stage-sec { background: var(--cream-deep); }

/* "Was Sie bekommen" – Report-Mock */
.report-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.report-preview { position: relative; height: 380px; }
.report-card { position: absolute; top: 50%; left: 50%; width: 240px; height: 330px; border-radius: 16px; }
.report-card.back {
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transform: translate(-30%, -50%) rotate(6deg); padding: 1.5rem 1.3rem;
}
.report-card.back .rp-h { font-family: var(--font-display); color: var(--plum); font-size: 1rem; margin-bottom: .9rem; }
.report-card.back .rp-bar { height: 7px; border-radius: 99px; background: var(--cream-deep); margin-bottom: .7rem; overflow: hidden; }
.report-card.back .rp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--terra); }
.report-card.back .rp-tx { height: 6px; border-radius: 99px; background: var(--line); margin-bottom: .45rem; }
.report-card.back .rp-tx.s { width: 70%; }
.report-card.front {
  background: var(--plum); color: var(--cream); box-shadow: var(--shadow-3);
  transform: translate(-66%, -50%) rotate(-5deg); padding: 1.7rem 1.4rem;
  display: flex; flex-direction: column;
}
.report-card.front .rc-kick { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.report-card.front h3 { color: var(--cream); font-size: 1.55rem; line-height: 1.05; margin: .7rem 0 .3rem; }
.report-card.front .rc-sub { font-size: .72rem; color: rgba(248,244,237,.72); }
.report-card.front .rc-ring {
  margin-top: auto; width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--gold) 64%, rgba(248,244,237,.16) 0);
  display: grid; place-items: center;
}
.report-card.front .rc-ring::after { content: ""; position: absolute; width: 50px; height: 50px; border-radius: 50%; background: var(--plum); }
.report-card.front .rc-ring b { position: relative; z-index: 1; font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--cream); }
.report-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.report-list li { display: flex; gap: .9rem; align-items: flex-start; }
.report-list li .ico-svg { width: 1.2em; height: 1.2em; color: var(--terra); flex-shrink: 0; margin-top: .15rem; }
.report-list li b { display: block; color: var(--plum); font-weight: 600; font-size: 1.02rem; margin-bottom: .1rem; }
.report-list li span { font-size: .92rem; color: var(--muted); }
@media (max-width: 880px) {
  .report-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .report-preview { height: 320px; order: -1; }
}

/* Dimensionen-Liste auf hellem Grund (Homepage-Variante ist on-dark) */
.values-list.dims-light { border-top-color: var(--line); }
.values-list.dims-light .value-row { border-bottom-color: var(--line); }
.values-list.dims-light .value-row h3 { color: var(--plum); }
