:root {
  --wizard-accent: var(--primary, #60a5fa);
  --wizard-accent-soft: rgba(96, 165, 250, 0.14);
  --wizard-good: #34d399;
}

.wizard-card {
  overflow: hidden;
}

.wizard-progress {
  margin: 20px 0 16px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 16px;
  background: rgba(7, 17, 31, 0.42);
}

.wizard-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.20);
  overflow: hidden;
}

.wizard-progress-bar span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wizard-accent), var(--wizard-good));
  transition: width 0.22s ease;
}

.wizard-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.wizard-progress-meta strong,
#wizardProgressLabel {
  color: var(--text);
  font-weight: 850;
}

.wizard-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.wizard-tab {
  min-height: 58px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(7, 17, 31, 0.42);
  color: var(--muted);
  font: inherit;
  font-size: 0;
  font-weight: 850;
  line-height: 1.1;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  white-space: normal;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.wizard-tab::before {
  display: block;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.wizard-tab::after {
  display: block;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.05;
  max-width: 100%;
}

.wizard-tab:nth-child(1)::before { content: "1."; }
.wizard-tab:nth-child(1)::after { content: "Ziel"; }
.wizard-tab:nth-child(2)::before { content: "2."; }
.wizard-tab:nth-child(2)::after { content: "Reisegruppe"; }
.wizard-tab:nth-child(3)::before { content: "3."; }
.wizard-tab:nth-child(3)::after { content: "Wann?"; }
.wizard-tab:nth-child(4)::before { content: "4."; }
.wizard-tab:nth-child(4)::after { content: "Programm"; }
.wizard-tab:nth-child(5)::before { content: "5."; }
.wizard-tab:nth-child(5)::after { content: "Klasse"; }
.wizard-tab:nth-child(6)::before { content: "6."; }
.wizard-tab:nth-child(6)::after { content: "Punkte"; }

.wizard-tab:hover {
  transform: translateY(-1px);
}

.wizard-tab.is-current {
  border-color: rgba(96, 165, 250, 0.62);
  background: rgba(16, 39, 68, 0.88);
  color: var(--text);
}

.wizard-tab.is-done {
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(6, 78, 59, 0.18);
  color: #bbf7d0;
}

.wizard-tab.is-locked {
  opacity: 0.48;
  cursor: not-allowed;
}

.wizard-step-grid {
  gap: 16px;
}

.wizard-step {
  display: none;
  opacity: 1;
}

.wizard-step.wizard-visible {
  display: grid;
  animation: wizardFadeIn 0.18s ease-out;
}

.wizard-step.active {
  opacity: 1;
}

.wizard-step .eyebrow {
  margin-bottom: 4px;
}

.family-counter-grid,
.wizard-date-grid {
  margin-top: 14px;
}

.family-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.family-module-note,
.wizard-inline-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.wizard-inline-hint {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(7, 17, 31, 0.36);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wizard-actions .btn {
  min-width: 170px;
}

.wizard-step-message {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(251, 113, 133, 0.35);
  background: rgba(127, 29, 29, 0.20);
  color: #fecaca;
  font-weight: 750;
  line-height: 1.55;
}

.wizard-summary-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(7, 17, 31, 0.38);
}

.wizard-summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.wizard-summary-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .wizard-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #resultView .tool-sidebar {
    display: none;
  }
}

@media (max-width: 560px) {
  .wizard-progress-meta {
    display: grid;
  }

  .wizard-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-tab {
    border-radius: 14px;
    text-align: center;
  }

  .family-counter-grid,
  .wizard-date-grid {
    grid-template-columns: 1fr;
  }

  .wizard-actions,
  .wizard-actions .btn {
    width: 100%;
  }

  .wizard-actions .btn {
    text-align: center;
  }
}
