/* ==================================================
   ONBOARDING WIZARD (Setup-Assistent Modal)
   Nur Styles für den Wizard-Modal, nicht für Welcome!
   ================================================== */

/* Wizard Modal (Vollbild-Overlay) */
.onb-wizard-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  padding: 20px;
}

.onb-wizard-modal:not([aria-hidden="true"]) {
  display: flex;
}

.onb-wizard-card {
  background: var(--bg-modal);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  box-shadow: var(--s-xl);
  max-width: 580px;
  width: 100%;
  max-height: min(92vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Progress Bar */
.onb-wizard-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 0;
}

.onb-wizard-progress-bar {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 3px;
  overflow: hidden;
}

.onb-wizard-progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width .4s var(--smooth);
  width: 33.3333%;
}

.onb-wizard-progress-text {
  font-size: 12px;
  color: var(--t3);
  font-weight: 700;
  text-align: center;
  letter-spacing: .04em;
}

/* Screens Container */
.onb-wizard-screens {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.onb-wizard-screen {
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 18px 0;
}

.onb-wizard-screen.completed {
  background: var(--ok-bg);
  border: 1px solid var(--ok);
  border-radius: var(--r-lg);
  padding: 18px;
}

.onb-wizard-screen.completed .onb-wizard-title {
  color: var(--ok);
}

.onb-wizard-screen[data-step="1"] {
  display: flex;
}

/* Icon */
.onb-wizard-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
}

.onb-wizard-icon.success {
  background: var(--ok-bg);
  color: var(--ok);
}

.onb-wizard-icon svg {
  width: 28px;
  height: 28px;
}

/* Title & Text */
.onb-wizard-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--t1);
  text-align: center;
  letter-spacing: -.02em;
}

.onb-wizard-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--t2);
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}

/* Fields */
.onb-wizard-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin: 20px auto 0;
  width: 100%;
}

.onb-wizard-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
  letter-spacing: .02em;
}

.onb-wizard-field input {
  padding: 14px 16px;
  font-size: 15px;
  border: 1.5px solid var(--b1);
  border-radius: var(--r-lg);
  background: var(--bg-input);
  color: var(--t1);
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.onb-wizard-field input:focus {
  border-color: var(--brand);
  background: var(--bg-input);
  box-shadow: 0 0 0 4px var(--brand-ring);
  outline: none;
}

.onb-wizard-hint {
  font-size: 11px;
  color: var(--t3);
  line-height: 1.4;
}

.onb-wizard-help {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

/* Demo Section */
.onb-wizard-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-modal);
  border: 1px solid var(--b1);
  border-radius: 16px;
  max-width: 400px;
  margin: 20px auto 0;
}

.onb-wizard-demo-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-wash);
  color: var(--brand);
}

.onb-wizard-demo-icon svg {
  width: 32px;
  height: 32px;
}

/* Status */
.onb-wizard-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--ok-bg);
  border: 1px solid var(--ok);
  border-radius: var(--r-lg);
  max-width: 400px;
  margin: 20px auto 0;
}

.onb-wizard-status-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ok);
  color: white;
}

.onb-wizard-status-icon svg {
  width: 18px;
  height: 18px;
}

.onb-wizard-status-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--ok);
}

/* Summary */
.onb-wizard-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 20px auto 0;
}

.onb-wizard-summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-modal);
  border: 1px solid var(--b1);
  border-radius: 12px;
}

.onb-wizard-summary-item svg {
  width: 20px;
  height: 20px;
  color: var(--ok);
  flex-shrink: 0;
}

.onb-wizard-summary-item span {
  font-size: 13px;
  color: var(--t1);
  font-weight: 600;
}

.onb-wizard-tip {
  padding: 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn);
  border-radius: var(--r-lg);
  font-size: 13px;
  line-height: 1.5;
  color: var(--t2);
  max-width: 400px;
  margin: 20px auto 0;
}

.onb-wizard-bonus {
  padding: 16px;
  background: var(--bg-modal);
  border: 1px solid var(--b1);
  border-radius: 12px;
  max-width: 400px;
  margin: 20px auto 0;
}

.onb-wizard-bonus-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--brand);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.onb-wizard-bonus-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--t2);
}

/* Navigation */
.onb-wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
  border-top: 1px solid var(--b1);
}

.onb-wizard-nav .btn-brand,
.onb-wizard-nav .btn-ghost {
  flex: 1;
  width: auto;
  margin-top: 0;
}

.onb-wizard-cancel {
  text-align: center;
  padding: 12px 20px;
}

/* Abbrechen-Dialog */
.onb-cancel-dialog {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2001;
  padding: 20px;
}

.onb-cancel-dialog:not([aria-hidden="true"]) {
  display: flex;
}

.onb-cancel-card {
  background: var(--bg-modal);
  border: 1px solid var(--b1);
  border-radius: var(--r-xl);
  box-shadow: var(--s-xl);
  padding: 22px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.onb-cancel-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--t1);
  text-align: center;
  letter-spacing: -.01em;
}

.onb-cancel-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--t2);
  text-align: center;
}

.onb-cancel-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Responsive */
@media (min-width: 768px) {
  .onb-wizard-screens {
    padding: 32px;
  }
  
  .onb-wizard-nav {
    padding: 24px 32px;
  }
  
  .onb-wizard-progress {
    padding: 24px 32px 0;
  }
}
