/* ============================================================
   domoXio – onboarding.css
   Onboarding-Flow-spezifische Styles: Schritt-Fortschritt,
   Plan-Cards, Warte-Animation, Passwort-Stärke.
   Setzt base.css voraus.
   ============================================================ */

body {
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(0,119,182,0.16), rgba(0,119,182,0) 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(91,184,245,0.16), rgba(91,184,245,0) 60%),
    radial-gradient(900px 500px at 55% 95%, rgba(35,45,56,0.10), rgba(35,45,56,0) 60%),
    #f4f6f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── 1. WRAPPER & CARD ────────────────────────────────────── */
/* Entscheidung: Onboarding nutzt eine schmalere .wrap-Klasse
   als das Portal — zentriert, max 980px, für Fokus. */

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
  flex: 1;
}

.logo {
  text-align: center;
  margin-bottom: 28px;
  margin-top: 16px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo p, .logo span {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
  display: block;
  line-height: 1.5;
}

.card-onboarding {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(35,45,56,0.10);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background-image: var(--onboarding-card-header-fade), var(--onboarding-card-header-stripe);
  background-size: 100% 100%, 100% 4px;
  background-repeat: no-repeat;
  background-position: top, top;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(35,45,56,0.10);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  background-image: var(--onboarding-card-header-fade), var(--onboarding-card-header-stripe);
  background-size: 100% 100%, 100% 4px;
  background-repeat: no-repeat;
  background-position: top, top;
}

.subtitle {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer {
  background: #f0f2f4;
  border-top: 1px solid var(--border);
  padding: 16px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  width: 100%;
}

.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--blue); }
.footer strong { color: var(--text); }

/* ── 2. FORTSCHRITTS-PILLS ────────────────────────────────── */
/* Zeigt den aktuellen Schritt im Onboarding-Wizard.
   Entscheidung: <a>-Tags statt reiner Anzeige damit der
   User bei Bedarf zurücknavigieren kann. */

.progress {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 6px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.step-pill {
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text-muted);
  background: white;
  text-decoration: none;
}

.step-pill.active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0,119,182,0.06);
  font-weight: 600;
}

.step-pill.done {
  border-color: var(--success);
  color: var(--success);
  background: var(--success-bg);
}

/* ── 3. WARTE-ANIMATION (E-Mail versendet) ────────────────── */
/* Sanduhren-Animation während der User auf den
   Bestätigungs-Link wartet. */

@keyframes onb-hourglass-spin {
  0%   { transform: rotate(0deg); }
  42%  { transform: rotate(0deg); }
  50%  { transform: rotate(180deg); }
  92%  { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

.onb-waiting-box {
  text-align: center;
  padding: 28px 20px 12px;
  margin-top: 4px;
}

/* Sanduhr-Animation während der User auf den Bestätigungs-Link wartet.
   Größe und Farbe kommen aus .fa-icon-large in base.css; hier nur
   die spezifische Animation. */
.onb-hourglass {
  animation: onb-hourglass-spin 2.6s ease-in-out infinite;
}

.onb-waiting-text {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--anthrazit);
  letter-spacing: 0.02em;
}

.onb-waiting-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── 4. PASSWORT-STÄRKE ───────────────────────────────────── */

.pw-wrap {
  position: relative;
  margin-bottom: 4px;
}

.pw-wrap input { margin-bottom: 0; }

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  font-size: 14px;
}

.strength-wrap {
  margin-bottom: 14px;
}

.strength-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 4px;
  margin-bottom: 4px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.strength-label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

/* ── 5. PLAN-CARDS (Paket-Auswahl) ───────────────────────── */
/* Entscheidung: Gleiche Logik wie shop-plan-card in portal.css
   aber eigenständige Klasse damit Onboarding und Shop
   unabhängig voneinander geändert werden können. */

.plan-card {
  display: block;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 6px;
  padding: 14px 14px 14px 12px;
  background: white;
  box-shadow: 0 2px 10px rgba(35,45,56,0.05);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.12s, background 0.15s, transform 0.12s;
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(35,45,56,0.1);
}

.plan-card--selected {
  border-left-color: var(--blue);
  background: rgba(0,119,182,0.06);
  border-color: rgba(0,119,182,0.22);
}

/* ── 6. MINI-CARDS (Schritt 1b) ───────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

.mini-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 18px 18px;
  box-shadow: 0 2px 8px rgba(35,45,56,0.06);
}

.mini-card h3 {
  font-size: 14px;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--anthrazit);
}

.mini-card p {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* ── 7. HINWEIS-BOX (Locale-Guess) ───────────────────────── */

.hint { font-size: 12px; color: var(--text-muted); margin-top: -8px; margin-bottom: 12px; }
.email-hint { margin-top: 8px; position: relative; z-index: 1; }
#email-error { position: relative; z-index: 2; }

/* ── PASSWORT-REGELN ──────────────────────────────────────── */
/* Gleiche Regel wie in auth.css — wird auch im Onboarding
   Schritt 1a für die Passwort-Anforderungen genutzt. */

.rules {
  background: var(--warning-bg);
  border: 1px solid #f0d080;
  border-left: 3px solid #e8a800;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--warning);
  line-height: 1.6;
}

.rules ul {
  padding-left: 16px;
  margin-top: 4px;
}

.rules strong {
  font-weight: 600;
}
