/* ══════════════════════════════════════════════════════════════════
   ENERGYO · /start im System der Vertical-Familie
   Lädt nach shell.css, tool-base.css und vertical.css und bringt nur die
   Quiz-Bausteine mit, die es sonst nirgends gibt (Fortschritt, Schritte,
   Kacheln, Chips, Felder, Erfolg, Berater-Tabs).

   start.css bleibt die Basis der Partner-Kampagnen und wird hier nicht
   geladen. Klassennamen sind dieselben, weil start.js sie anspricht.
   Ein Akzent: Orange. Keine Emoji, keine Glow-Rahmen, keine Farb-KPIs.
   ══════════════════════════════════════════════════════════════════ */

/* Kurze Schritte: der Footer sitzt trotzdem am unteren Rand, kein Wurzel-Hintergrund darunter. */
body.v-start { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.v-start > main { flex: 1 0 auto; }
.v-start .v-tool-grid { align-items: start; }
.v-start .v-lead { max-width: 34em; }

/* ---------- Karte + Fortschritt ---------- */
.quiz-container { position: relative; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz-progress-step {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}
.quiz-progress-step.done { background: rgba(245, 166, 35, 0.45); }
.quiz-progress-step.active { background: var(--primary); }

/* ---------- Schritte ---------- */
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: vStartIn 0.3s ease; }
@keyframes vStartIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quiz-step-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.quiz-title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 21px;
  line-height: 1.25;
}

/* ---------- Kacheln (wie die Radio-Kacheln der Rechner) ---------- */
.quiz-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.quiz-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  padding: 14px 10px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-option:hover { border-color: var(--muted); }
.quiz-option:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.quiz-option.selected { border-color: var(--primary); background: rgba(245, 166, 35, 0.08); }
.option-label { font-weight: 600; font-size: 15px; color: var(--text); }
.option-sub { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
/* Strom- und Gas-Zeichen der Familie (dieselben wie in der Bestandsansicht /hausverwaltungen) */
.option-icon { display: inline-flex; gap: 4px; color: var(--primary); }
.option-icon svg { width: 18px; height: 18px; fill: currentColor; }
.quiz-options--energy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-options--energy .quiz-option[data-value="beides"] { grid-column: 1 / -1; }

/* ---------- Chips ---------- */
.quiz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quiz-chip {
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.quiz-chip:hover { color: var(--text); border-color: var(--muted); }
.quiz-chip.selected { border-color: var(--primary); background: rgba(245, 166, 35, 0.08); color: var(--text); }

/* ---------- Felder ---------- */
.quiz-fields label {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 650;
}
.quiz-fields input,
.quiz-fields select { display: block; width: 100%; margin-top: 6px; font-family: var(--font-body); font-weight: 400; }
.quiz-fields select {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 16px;
}
.quiz-fields select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18); }
.quiz-fields select option { background: #141825; color: #f0f2f8; }
.quiz-field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.quiz-helper { display: block; margin: -4px 0 4px; color: var(--muted); font-size: 13px; }

/* ---------- Navigation im Quiz: ein Primary („Weiter“ / „Anfrage absenden“), Zurück als Text ---------- */
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.btn-back {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  cursor: pointer;
}
.btn-back:hover { color: var(--text); }

.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 6px; }
.consent-row input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); }
.consent-row .helper { flex: 1; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.consent-row a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Telefon und WhatsApp: ruhige dritte Option unter dem Absenden (.v-call aus vertical.css) */
.quiz-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.status.error { margin-top: 12px; }

/* ---------- Erfolg + Kalender ---------- */
.quiz-success { display: none; padding: 8px 0 0; text-align: center; }
.quiz-success.visible { display: block; }
.quiz-success-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
}
.quiz-success-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.quiz-success h3 { margin-bottom: 8px; font-family: var(--font-display); font-weight: 650; font-size: 21px; }
.quiz-success p { max-width: 34em; margin: 0 auto 16px; color: var(--muted); }
.quiz-success p strong { color: var(--text); }
.advisor-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.advisor-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  text-align: left;
  font-family: var(--font-body);
  cursor: pointer;
}
.advisor-tab:hover { border-color: var(--muted); }
.advisor-tab.is-active { border-color: var(--primary); background: rgba(245, 166, 35, 0.08); }
.advisor-tab .v-ph { width: 36px; height: 36px; }
.advisor-text { display: flex; flex-direction: column; min-width: 0; }
.advisor-name { font-family: var(--font-display); font-weight: 650; font-size: 15px; line-height: 1.25; }
.advisor-role { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.calendly-trust-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .quiz-options { grid-template-columns: minmax(0, 1fr); }
  .quiz-options--energy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quiz-option { min-height: 60px; }
  .quiz-field-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .quiz-title { font-size: 19px; }
  .advisor-switch { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-step.active { animation: none; }
}

/* Kontext-Modus Hausverwaltung: ruhiger Weg zurück zur Seite, von der der Nutzer kommt (start.js setzt href). */
.start-context-back { display: inline-block; margin-bottom: 14px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.start-context-back[hidden] { display: none; }
.start-context-back:hover { color: var(--text); text-decoration: underline; }
