/*
 * Onboarding-Wizard – Mini-CSS für Stepper + Signature-Canvas.
 *
 * Wird zusätzlich zu admin.css in templates/onboarding/layout.twig geladen.
 * Stylestrategie folgt LAYOUT.md (Manrope, Primärfarbe #0e6c59, sanfte Rundungen,
 * shadow-sm). Wir vermeiden hier Tailwind-spezifische Klassen, damit die CSS auch
 * ohne Tailwind-Reload korrekt geladen wird.
 */

.onb-stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}
.onb-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.onb-step .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: #e2e8f0;
  color: #475569;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid #cbd5e1;
}
.onb-step.is-active .badge {
  background: #0e6c59;
  color: #fff;
  border-color: #0e6c59;
  box-shadow: 0 4px 14px rgba(14, 108, 89, 0.3);
}
.onb-step.is-active {
  color: #0e6c59;
}
.onb-step.is-done .badge {
  background: #d1fae5;
  color: #047857;
  border-color: #6ee7b7;
}
.onb-step.is-done {
  color: #047857;
}
.onb-step .sep {
  width: 1.25rem;
  height: 1px;
  background: #cbd5e1;
  margin: 0 0.25rem;
}

@media (max-width: 768px) {
  .onb-stepper-full {
    display: none;
  }
}
@media (min-width: 769px) {
  .onb-stepper-mini {
    display: none;
  }
}
.onb-stepper-mini {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

/* QR im Sign-Schritt: nicht von Tailwind-Arbitrary-Varianten abhängig (CDN). */
.onb-qr-handoff svg {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
}

.signature-pad-wrapper {
  position: relative;
  border: 2px dashed #94a3b8;
  border-radius: 1rem;
  background: #f8fafc;
  padding: 0;
  overflow: hidden;
}
.signature-pad-wrapper canvas {
  display: block;
  width: 100%;
  height: 220px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}
.signature-pad-wrapper .signature-clear {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
  border-radius: 0.5rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
}
.signature-pad-wrapper .signature-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.otp-input {
  letter-spacing: 0.5rem;
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.5rem;
  font-weight: 700;
}

/* Mobilnummer-Hinweis: Button bleibt klickbar (für SweetAlert), wirkt aber „warnend“. */
.onb-mobile-submit-warn {
  opacity: 0.72;
  box-shadow: none;
}
