/* =========================================================================
   "Deine kurze Körper-Analyse" — quiz styles.
   Uses the site design tokens from style.css (cream / forest / sage / clay /
   burnt-orange, Fraunces + Inter). Loaded only on /koerper-analyse.html.
   Scoped under .qz so nothing leaks into the rest of the site.
   ========================================================================= */

.qz { width: min(100% - 0rem, 640px); margin-inline: auto; }

.qz-screen {
  background: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.8rem);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--clay) 45%, transparent);
  animation: fadeRise .45s ease both;
}
@media (prefers-reduced-motion: reduce) { .qz-screen { animation: none; } }

.qz-eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep);
  display: inline-block; margin-bottom: .8rem;
}
.qz :is(h1, h2, h3) { color: var(--forest); }
.qz [data-qz-focus] { outline: none; }

/* ---------- intro ---------- */
.qz-intro { text-align: center; }
.qz-title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.08; margin-bottom: 1rem; }
.qz-subline { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: color-mix(in srgb, var(--ink) 88%, var(--forest)); max-width: 46ch; margin: 0 auto 1.8rem; }
.qz-start { margin-inline: auto; }
.qz-meta { margin-top: 1.1rem; font-size: .82rem; letter-spacing: .04em; color: color-mix(in srgb, var(--ink) 60%, var(--cream)); }

/* ---------- question ---------- */
.qz-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.qz-back {
  background: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem;
  color: color-mix(in srgb, var(--forest) 70%, var(--cream)); padding: .3rem .1rem; display: inline-flex; align-items: center; gap: .35rem;
  transition: color .2s ease;
}
.qz-back:hover { color: var(--accent-deep); }
.qz-back__ico { font-size: 1.05em; }
.qz-count { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }

.qz-progress { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--sage-l) 70%, var(--cream)); overflow: hidden; margin-bottom: 1.6rem; }
.qz-progress__bar { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s cubic-bezier(.4, 0, .2, 1); }
@media (prefers-reduced-motion: reduce) { .qz-progress__bar { transition: none; } }

.qz-question { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 3.6vw, 2rem); line-height: 1.15; margin-bottom: 1.4rem; }

.qz-options { display: grid; gap: .7rem; }
.qz-option {
  display: flex; align-items: flex-start; gap: .85rem; width: 100%; text-align: left;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 500; color: var(--ink);
  background: var(--cream); border: 1.5px solid color-mix(in srgb, var(--forest) 20%, transparent);
  border-radius: 12px; padding: .95rem 1.05rem; cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.qz-option::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  border: 2px solid color-mix(in srgb, var(--forest) 30%, transparent);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.qz-option:hover { border-color: var(--accent); background: var(--offwhite); transform: translateY(-1px); }
.qz-option[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--cream)); }
.qz-option[aria-pressed="true"]::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--offwhite); }
.qz-option__label { line-height: 1.4; }
@media (hover: none) { .qz-option:hover { transform: none; } }

/* ---------- lead capture ---------- */
.qz-lead-sub { color: color-mix(in srgb, var(--ink) 85%, var(--forest)); margin-bottom: 1.4rem; max-width: 46ch; }
.qz-fields { display: grid; gap: 1rem 1.2rem; grid-template-columns: 1fr 1fr; }
.qz-fields .field:nth-child(3), .qz-fields .field:nth-child(4) { grid-column: 1 / -1; }
@media (max-width: 480px) { .qz-fields { grid-template-columns: 1fr; } }
.qz-lead-err { color: #9A2B17; font-weight: 600; font-size: .9rem; min-height: 1.2em; margin: .7rem 0 .1rem; }
.qz-lead .qz-lead-submit { margin-top: .6rem; }
.qz-lead-note { font-size: .8rem; line-height: 1.5; color: color-mix(in srgb, var(--ink) 62%, var(--cream)); margin: .9rem auto 0; text-align: center; max-width: 42ch; }
.qz-lead-note a { color: var(--accent-deep); }

/* ---------- result ---------- */
.qz-headline { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.1; margin-bottom: 1rem; }
.qz-mech { color: color-mix(in srgb, var(--ink) 90%, var(--forest)); margin-bottom: 1.6rem; }
.qz-try { font-weight: 600; color: var(--forest); margin-bottom: .9rem; }

.qz-exercise {
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
  background: var(--cream); border: 1px solid color-mix(in srgb, var(--clay) 40%, transparent);
  border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.6rem;
}
@media (min-width: 520px) { .qz-exercise { grid-template-columns: 148px 1fr; align-items: start; } }
.qz-exercise__media { border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; }
.qz-exercise__media img { width: 100%; height: 100%; object-fit: cover; }
.qz-exercise__media--ph {
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--clay), color-mix(in srgb, var(--clay) 55%, var(--sage)));
}
.qz-ph { text-align: center; color: color-mix(in srgb, var(--forest) 78%, white); padding: .6rem; }
.qz-ph svg { width: 40px; height: 40px; margin: 0 auto .4rem; opacity: .75; }
.qz-ph span { display: block; font-size: .72rem; letter-spacing: .04em; }
.qz-exercise__name { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--forest); margin-bottom: .5rem; }
.qz-exercise__body p { color: color-mix(in srgb, var(--ink) 90%, var(--forest)); font-size: .97rem; }

.qz-bridge { color: color-mix(in srgb, var(--ink) 90%, var(--forest)); margin-bottom: 1.4rem; }

.qz-perso { display: grid; gap: .6rem; margin-bottom: 1.6rem; }
.qz-perso__item {
  background: color-mix(in srgb, var(--sage-l) 45%, var(--offwhite));
  border-left: 3px solid var(--sage-d); border-radius: 8px;
  padding: .75rem .95rem; font-size: .95rem; color: color-mix(in srgb, var(--ink) 88%, var(--forest));
  max-width: none;
}

.qz-cta { margin-top: .4rem; display: grid; gap: .7rem; }
.qz-cta .btn { justify-content: center; }
.qz-cta__sub { font-size: .88rem; text-align: center; color: color-mix(in srgb, var(--ink) 65%, var(--cream)); margin: .5rem auto 0; }

/* ---------- enquiry popup ---------- */
.qz-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.qz-modal__backdrop { position: absolute; inset: 0; background: rgba(51, 66, 47, .55); }
.qz-modal__panel {
  position: relative; background: var(--offwhite); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 2.4rem); max-width: 520px; width: 100%; max-height: 92vh; overflow: auto;
  box-shadow: var(--shadow); animation: fadeRise .35s ease both;
}
@media (prefers-reduced-motion: reduce) { .qz-modal__panel { animation: none; } }
.qz-modal__close { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--forest); cursor: pointer; opacity: .55; padding: .2rem .45rem; z-index: 2; }
.qz-modal__close:hover { opacity: 1; }
.qz-modal__title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 1.9rem); color: var(--forest); margin-bottom: .5rem; }
.qz-modal__sub { color: color-mix(in srgb, var(--ink) 82%, var(--forest)); margin-bottom: 1.4rem; }
.qz-modal__msg { margin-top: 1rem; }
.qz-modal__msg textarea { min-height: 90px; resize: vertical; }
.qz-modal .qze-submit { margin-top: 1.1rem; }
.qz-modal__success { text-align: center; padding: 1.5rem .5rem; }
.qz-modal__success svg { width: 68px; height: 68px; margin: 0 auto 1rem; }
.qz-modal__success p { color: color-mix(in srgb, var(--ink) 88%, var(--forest)); margin-inline: auto; }

.qz-disclaimer {
  margin-top: 1.5rem; padding-top: 1.1rem; font-size: .8rem; line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 60%, var(--cream));
  border-top: 1px solid color-mix(in srgb, var(--forest) 15%, transparent); max-width: none;
}
.qz-restart {
  display: block; margin: 1.1rem auto 0; background: none; border: 0; cursor: pointer; font: inherit;
  font-size: .88rem; color: color-mix(in srgb, var(--forest) 70%, var(--cream));
  text-decoration: underline; text-underline-offset: 3px; padding: .3rem;
}
.qz-restart:hover { color: var(--accent-deep); }

/* no-JS fallback message */
.qz-noscript {
  background: var(--offwhite); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow); text-align: center;
}
