/* ============================================================
   HANSEDIENST – Anfrage-Wizard Styles
   ============================================================ */

/* ── Wizard Container ── */
.wizard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

.wizard__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard__logo img {
  height: 36px;
  width: auto;
}

.wizard__close {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.wizard__close:hover {
  background: var(--color-bg-light);
  color: var(--color-text);
}

/* ── Progress Bar ── */
.wizard__progress {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  height: 4px;
  background: var(--color-border);
}

.wizard__progress-bar {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

/* ── Steps Container ── */
.wizard__body {
  flex: 1;
  margin-top: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 120px;
  overflow: hidden;
}

.wizard__step {
  display: none;
  width: 100%;
  max-width: 640px;
  animation: wizardFadeIn 0.4s ease;
}

.wizard__step.active {
  display: block;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step Content ── */
.wizard__step-number {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.wizard__step-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.wizard__step-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ── Option Cards (Service-Auswahl, Objekttyp, etc.) ── */
.wizard__options {
  display: grid;
  gap: 12px;
}

.wizard__options--2col {
  grid-template-columns: repeat(2, 1fr);
}

.wizard__options--3col {
  grid-template-columns: repeat(3, 1fr);
}

.wizard__option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wizard__option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.wizard__option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.wizard__option-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.wizard__option-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.wizard__option-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.wizard__option.selected .wizard__option-check {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.wizard__option.selected .wizard__option-check::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ── Big Tiles (Objekttyp) ── */
.wizard__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wizard__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 16px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.wizard__tile:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wizard__tile.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 1px var(--color-primary), var(--shadow-md);
}

.wizard__tile-icon {
  font-size: 2.5rem;
}

.wizard__tile-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* ── Toggle Buttons ── */
.wizard__toggles {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.wizard__toggle {
  flex: 1;
  padding: 14px;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: all 0.2s;
}

.wizard__toggle:hover {
  border-color: var(--color-primary);
}

.wizard__toggle.selected {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

/* ── Form Fields ── */
.wizard__form-grid {
  display: grid;
  gap: 20px;
}

.wizard__form-grid--2col {
  grid-template-columns: 1fr 1fr;
}

.wizard__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wizard__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.wizard__input,
.wizard__select,
.wizard__textarea {
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

.wizard__input:focus,
.wizard__select:focus,
.wizard__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.15);
}

.wizard__input.error,
.wizard__select.error,
.wizard__textarea.error {
  border-color: #ef4444;
}

.wizard__error-msg {
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 2px;
}

.wizard__textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Yes/No Toggle Row ── */
.wizard__yn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.wizard__yn-label {
  font-weight: 500;
  color: var(--color-text);
  font-size: 0.95rem;
}

.wizard__yn-btns {
  display: flex;
  gap: 8px;
}

.wizard__yn-btn {
  padding: 8px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: all 0.2s;
}

.wizard__yn-btn:hover {
  border-color: var(--color-primary);
}

.wizard__yn-btn.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Summary ── */
.wizard__summary {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wizard__summary-section {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
}

.wizard__summary-section:last-child {
  border-bottom: none;
}

.wizard__summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wizard__summary-heading h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.wizard__summary-edit {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.wizard__summary-edit:hover {
  text-decoration: underline;
}

.wizard__summary-value {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.wizard__summary-price {
  text-align: center;
  padding: 24px;
  background: var(--color-primary-light);
}

.wizard__summary-price-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.wizard__summary-price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.wizard__summary-price-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* Datenschutz-Checkbox */
.wizard__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.wizard__consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.wizard__consent a {
  color: var(--color-primary);
}

/* ── Navigation Footer ── */
.wizard__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
}

.wizard__footer-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wizard__btn {
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wizard__btn--next {
  background: var(--color-primary);
  color: #fff;
  margin-left: auto;
}

.wizard__btn--next:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 147, 30, 0.3);
}

.wizard__btn--next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.wizard__btn--back {
  background: none;
  color: var(--color-text-muted);
  padding: 14px 16px;
}

.wizard__btn--back:hover {
  color: var(--color-text);
  background: var(--color-bg-light);
}

.wizard__btn--submit {
  background: #16a34a;
  color: #fff;
  width: 100%;
  justify-content: center;
  padding: 18px 32px;
  font-size: 1.1rem;
}

.wizard__btn--submit:hover {
  background: #15803d;
}

.wizard__btn--submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Success Screen ── */
.wizard__success {
  text-align: center;
  padding: 40px 20px;
}

.wizard__success-icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.wizard__success h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.wizard__success p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.wizard__success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.wizard__success-actions a {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.wizard__success-actions .btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.wizard__success-actions .btn-outline {
  border: 2px solid var(--color-border);
  color: var(--color-text);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .wizard__tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .wizard__options--2col,
  .wizard__options--3col {
    grid-template-columns: 1fr;
  }

  .wizard__form-grid--2col {
    grid-template-columns: 1fr;
  }

  .wizard__tile {
    padding: 20px 12px;
  }

  .wizard__tile-icon {
    font-size: 2rem;
  }

  .wizard__body {
    padding: 24px 16px 100px;
    align-items: flex-start;
    padding-top: 84px;
  }

  .wizard__step-title {
    font-size: 1.4rem;
  }

  .wizard__toggles {
    flex-direction: column;
  }

  .wizard__footer-inner {
    gap: 8px;
  }

  .wizard__btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}
