/**
 * apollon AIRD Multi-Step Wizard v2.0.0 — Brand-Layer
 *
 * Brand-Tokens (OPS 2026-05-02 Korrektur):
 *   Primary  CTA  #41AAEF   (Hellblau)
 *   Secondary CTA #E76433   (Korallrot)
 *   Font          Open Sans
 *   Radius        1rem
 *
 * Hinweis: erbt grundlegende Form-Tokens aus apollon-lead-form.v1-0-0.css.
 * Diese Datei ergaenzt nur Multi-Step-spezifische Komponenten:
 *   - Progress-Bar
 *   - Frage-Karte (Single, Multi, Skala)
 *   - Score-Card mit Tier-Skala
 *   - Touch-Targets >= 44px
 */

.aird-wizard {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
  color: #111;
}

/* ---- Progress ---- */
.aird-progress { margin-bottom: 1.5rem; }
.aird-progress-text {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.aird-progress-bar {
  background: #eef3f7;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.aird-progress-fill {
  background: #41AAEF;
  height: 100%;
  transition: width 280ms ease-out;
}

/* ---- Step Card ---- */
.aird-step {
  background: #fff;
  border: 1px solid #e6ebf0;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 24px rgba(20, 40, 80, 0.04);
}
@media (min-width: 640px) {
  .aird-step { padding: 2.5rem; }
}

.aird-q-label {
  font-size: 1.375rem;
  line-height: 1.35;
  margin: 0 0 1rem;
  font-weight: 700;
}
.aird-q-hint {
  color: #555;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}
.aird-q-help {
  background: #f6fafe;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}
.aird-q-help summary {
  cursor: pointer;
  color: #41AAEF;
  font-weight: 600;
}
.aird-q-help p { margin: 0.5rem 0 0; color: #333; }

/* ---- Options (Single + Multi) ---- */
.aird-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.aird-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px; /* Touch-Target */
  padding: 0.875rem 1rem;
  border: 2px solid #e6ebf0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 160ms, background 160ms;
  background: #fff;
}
.aird-option:hover { border-color: #c9dcec; }
.aird-option input { margin: 0; flex-shrink: 0; transform: scale(1.1); }
.aird-option:has(input:checked) {
  border-color: #41AAEF;
  background: #f1f8fd;
}

/* ---- Skala 1-5 ---- */
.aird-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
}
.aird-scale-item {
  position: relative;
  cursor: pointer;
  min-height: 56px;
}
.aird-scale-item input { position: absolute; opacity: 0; pointer-events: none; }
.aird-scale-num {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border: 2px solid #e6ebf0;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  background: #fff;
  transition: all 160ms;
}
.aird-scale-item:hover .aird-scale-num { border-color: #c9dcec; }
.aird-scale-item input:checked + .aird-scale-num {
  background: #41AAEF;
  border-color: #41AAEF;
  color: #fff;
}
.aird-scale-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #666;
  margin-bottom: 1.25rem;
}

/* ---- Navigation ---- */
.aird-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.aird-btn {
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  min-height: 48px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 160ms;
}
.aird-btn-next, .aird-btn-primary, .aird-btn-submit {
  background: #41AAEF;
  color: #fff;
}
.aird-btn-next:hover:not(:disabled),
.aird-btn-primary:hover,
.aird-btn-submit:hover:not(:disabled) {
  background: #2e94d8;
}
.aird-btn-next:disabled, .aird-btn-submit:disabled {
  background: #b9d6ec;
  cursor: not-allowed;
}
.aird-btn-back {
  background: transparent;
  color: #41AAEF;
  border-color: #41AAEF;
}
.aird-btn-back:hover { background: #f1f8fd; }

/* ---- Lead Form ---- */
.aird-lead-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}
.aird-field { display: flex; flex-direction: column; gap: 0.375rem; }
.aird-field-label { font-weight: 600; font-size: 0.9375rem; }
.aird-field input, .aird-field select {
  font-family: inherit;
  font-size: 1rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 2px solid #e6ebf0;
  border-radius: 0.75rem;
  background: #fff;
  transition: border-color 160ms;
}
.aird-field input:focus, .aird-field select:focus {
  outline: none;
  border-color: #41AAEF;
}
.aird-req { color: #E76433; }
.aird-error { color: #E76433; font-size: 0.9375rem; margin-top: 0.5rem; min-height: 1.5em; }
.aird-btn-submit { align-self: flex-start; padding: 0.875rem 2rem; }

/* ---- Score Card ---- */
.aird-score-card {
  background: linear-gradient(135deg, #f1f8fd 0%, #e9f3fb 100%);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.aird-score-num {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: #41AAEF;
}
.aird-score-num span {
  font-size: 1.5rem;
  font-weight: 600;
  color: #6a8aa6;
}
.aird-tier-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}
.aird-tier-line {
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.aird-cliffhanger {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #b9d6ec;
  color: #2e6a96;
  font-style: italic;
}

/* Tier-Skala mit Position */
.aird-tier-scale-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.aird-tier-scale-item {
  background: #fff;
  border: 2px solid #e6ebf0;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  text-align: center;
  font-weight: 700;
  color: #999;
}
.aird-tier-scale-item.is-past {
  background: #d6ebf9;
  color: #2e6a96;
  border-color: #b9d6ec;
}
.aird-tier-scale-item.is-current {
  background: #41AAEF;
  color: #fff;
  border-color: #41AAEF;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(65, 170, 239, 0.3);
}

/* Tier-spezifische Score-Card-Akzente (Korallrot fuer Tier 5 Sonderbehandlung) */
.aird-tier-5 .aird-score-num { color: #E76433; }
.aird-tier-5 .aird-cliffhanger { color: #c4471f; border-top-color: #f1c1ad; }

.aird-result-msg {
  text-align: center;
  font-size: 1.0625rem;
  color: #333;
  margin: 1.5rem 0;
}
