/* ============================================================
   Quiz Funnel — Davids Umzüge
   ============================================================ */

.quiz-body {
  background: linear-gradient(180deg, #fafaf7 0%, #f0ede4 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.quiz-nav {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  padding: .85rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 50;
}
.quiz-nav__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quiz-nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--ink);
  text-decoration: none;
}
.quiz-nav__logo img { display: block; }
.quiz-nav__call {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: var(--brand);
  font-size: .92rem;
  text-decoration: none;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(79,163,139,.08);
  transition: background .2s, color .2s;
}
.quiz-nav__call:hover { background: var(--brand); color: #fff; }
.quiz-nav__call svg { width: 16px; height: 16px; }

.quiz-main {
  flex: 1;
  padding: 1rem 1rem 3rem;
}
.quiz-shell {
  max-width: 760px;
  margin: 0 auto;
}

/* Header */
.quiz-header {
  text-align: center;
  margin-bottom: 1rem;
}
.quiz-header h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.1rem);
  letter-spacing: -.025em;
  margin: .3rem 0 .5rem;
  text-wrap: balance;
}
.quiz-header__lead {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto .85rem;
}

/* Progress bar */
.wizard-progress {
  max-width: 360px;
  margin: 0 auto;
}
.wizard-progress__bar {
  height: 8px;
  background: rgba(12,51,41,.1);
  border-radius: 999px;
  overflow: hidden;
}
.wizard-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
  border-radius: 999px;
  width: 16.66%;
  transition: width .4s cubic-bezier(.2,.7,.2,1);
}
.wizard-progress__label {
  display: block;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: .55rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Wizard Form */
.wizard-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.25rem, 3vw, 1.9rem);
  box-shadow: 0 30px 60px -20px rgba(12,51,41,.15);
}

.visually-hidden-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Steps */
.wizard-step {
  border: 0;
  padding: 0;
  margin: 0;
  display: none;
  animation: slideInRight .35s cubic-bezier(.2,.7,.2,1);
}
.wizard-step.is-active { display: block; }
.wizard-step__title {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .9rem;
  color: var(--ink);
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Option Grid */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
.option-grid--service { grid-template-columns: repeat(2, 1fr); }
.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  padding: .95rem 1.1rem;
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  position: relative;
  min-height: 76px;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.option-card:hover {
  border-color: var(--brand);
  background: rgba(79,163,139,.04);
  transform: translateY(-2px);
}
.option-card:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.option-card[aria-checked="true"] {
  border-color: var(--brand);
  background: rgba(79,163,139,.08);
  box-shadow: 0 8px 24px -12px rgba(79,163,139,.5);
}
.option-card[aria-checked="true"]::after {
  content: '✓';
  position: absolute;
  top: 0.65rem; right: 0.85rem;
  font-weight: 800;
  color: var(--brand);
  font-size: 1.2rem;
}
.option-card__icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: .1rem;
  color: var(--brand);
}
.option-card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}
.field label .label-icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  color: var(--brand);
}
.option-card__title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
}
.option-card__sub {
  font-size: .85rem;
  color: var(--muted);
}
.option-card--recommended {
  border-color: var(--brand);
  background: rgba(79,163,139,.06);
}
.option-card__badge {
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--cta);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Route grid */
.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.route-grid .field--small { grid-column: span 1; }
@media (max-width: 600px) {
  .route-grid { grid-template-columns: 1fr; }
}

/* Field */
.field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.field label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  min-height: 48px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(79,163,139,.15);
}

/* Contact step */
.contact-grid {
  display: grid;
  gap: 1.1rem;
}
.contact-hint {
  font-size: .9rem;
  color: var(--muted);
  margin: -.4rem 0 .2rem;
  padding-left: .25rem;
}
.contact-reassure {
  margin: .9rem 0 0;
  padding: .8rem 1rem;
  background: rgba(79,163,139,.08);
  border: 1px solid rgba(79,163,139,.22);
  border-radius: 12px;
  font-size: .86rem;
  line-height: 1.55;
  color: var(--ink-2, #2a2d33);
}
.contact-reassure strong { color: var(--accent, #0c3329); }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  line-height: 1.45;
  cursor: pointer;
  padding: .6rem 0;
}
.checkbox-row input {
  width: 22px; height: 22px;
  margin-top: .15rem;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.checkbox-row a { color: var(--brand); text-decoration: underline; }
.checkbox-row--required { font-weight: 500; }

/* Wizard nav */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.wizard-nav .btn { min-height: 48px; }
.wizard-nav [data-wizard-next],
.wizard-nav [data-wizard-submit] {
  margin-left: auto;
}
/* Lange Labels (z. B. Submit) duerfen bei schmalen Fenstern umbrechen */
.wizard-nav [data-wizard-submit] {
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}

/* Form status */
.form-status {
  margin-top: 1.25rem;
  padding: .85rem 1.1rem;
  border-radius: 10px;
  font-size: .95rem;
  display: none;
}
.form-status.is-error,
.form-status.is-success {
  display: block;
}
.form-status.is-error {
  background: #fee;
  color: #c41e1e;
  border: 1px solid rgba(196,30,30,.25);
}
.form-status.is-success {
  background: rgba(79,163,139,.1);
  color: #1a5a48;
  border: 1px solid var(--brand);
}

/* Trust strip */
.quiz-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,.6);
  border-radius: 16px;
  text-align: center;
}
.quiz-trust__item {
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.quiz-trust__item strong {
  font-size: 1.45rem;
  color: var(--brand);
  font-weight: 700;
}
@media (max-width: 640px) {
  .quiz-trust { grid-template-columns: repeat(2, 1fr); }
}

/* Footer */
.quiz-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: .85rem;
  margin-top: auto;
}
.quiz-footer nav {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: .75rem;
}
.quiz-footer nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.quiz-footer nav a:hover { color: var(--brand-2); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  background: rgba(79,163,139,.12);
  color: var(--brand);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -50px;
  left: 1rem;
  background: var(--ink);
  color: #fff;
  padding: .65rem 1.1rem;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: .65rem; }

@media (max-width: 640px) {
  .option-grid { grid-template-columns: 1fr; }
  .option-grid--service { grid-template-columns: 1fr; }
  .wizard-form { padding: 1.5rem 1.1rem; border-radius: 18px; }
  .wizard-nav { flex-direction: column-reverse; gap: .85rem; }
  .wizard-nav .btn { width: 100%; white-space: normal; justify-content: center; text-align: center; }
}

/* Handy: Kopf entzerren — Telefon nur als Icon (volle Nr. überlappte das Logo) */
@media (max-width: 560px) {
  .quiz-nav { padding: .7rem 1rem; }
  .quiz-nav__inner { gap: .5rem; }
  .quiz-nav__call span { display: none; }
  .quiz-nav__call { padding: .55rem; }
  .quiz-nav__logo img:last-child { height: 16px; width: auto; } /* Wortmarke etwas kleiner */
}

/* ---- Quiz responsiv: Hero kompakt, Frage sofort sichtbar (Mobil/Tablet) ---- */
@media (max-width: 640px) {
  .quiz-main { padding: 1rem .85rem 2.5rem; }
  .quiz-header { margin-bottom: 1.1rem; }
  .quiz-header h1 { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.12; }
  .quiz-header__lead { font-size: .92rem; margin-bottom: 1rem; }
  .quiz-badge, .quiz-header .quiz-eyebrow { margin-bottom: .35rem; }
  .wizard-progress { max-width: 100%; }
  .wizard-form { border-radius: 18px; }
}
@media (max-width: 400px) {
  /* Sehr schmal: Lead-Text kürzen, damit die Optionen hochrücken */
  .quiz-header__lead { display: none; }
  .quiz-header h1 { margin-bottom: .5rem; }
}
