/* ══════════════════════════════════════════════════════════════
   MODULE: onboarding – Willkommens-Wizard (Modal) fuer Neumitglieder
   Light Theme · 5 Steps · Fortschrittsbalken · Skip-Button
══════════════════════════════════════════════════════════════ */

.ob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 20, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: ob-fade-in 0.25s ease;
}

@keyframes ob-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ob-modal {
  background: var(--bg-card, #FFFFFF);
  color: var(--text, #1A1A2E);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border, rgba(0,0,0,0.07));
  animation: ob-slide-up 0.28s ease;
}

@keyframes ob-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Header / Progress ───────────────────────────────────── */
.ob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 10px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.07));
}

.ob-step-indicator {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted, #6B6B80);
}

.ob-skip-btn {
  background: none;
  border: none;
  color: var(--text-muted, #6B6B80);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.ob-skip-btn:hover {
  background: var(--bg-2, #F7F7F9);
  color: var(--text, #1A1A2E);
}

.ob-progress {
  height: 4px;
  background: var(--bg-3, #EFEFF2);
  position: relative;
  overflow: hidden;
}
.ob-progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--accent, #FF6B00);
  transition: width 0.3s ease;
  border-radius: 0 2px 2px 0;
}

/* ── Body ──────────────────────────────────────────────── */
.ob-body {
  padding: 28px 28px 8px;
  overflow-y: auto;
  flex: 1;
}

.ob-step {
  display: none;
}
.ob-step.ob-active {
  display: block;
  animation: ob-step-in 0.25s ease;
}
@keyframes ob-step-in {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ob-title {
  font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
  color: var(--text, #1A1A2E);
}
.ob-subtitle {
  font-size: 15px;
  color: var(--text-muted, #6B6B80);
  margin: 0 0 22px;
  line-height: 1.5;
}

/* Fields */
.ob-field {
  display: block;
  margin-bottom: 14px;
}
.ob-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #1A1A2E);
  margin-bottom: 6px;
}
.ob-field input,
.ob-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--text, #1A1A2E);
  background: var(--bg-2, #F7F7F9);
  border: 1.5px solid var(--border, rgba(0,0,0,0.07));
  border-radius: 10px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.ob-field input:focus,
.ob-field textarea:focus {
  outline: none;
  border-color: var(--accent, #FF6B00);
  background: var(--bg-card, #FFFFFF);
}
.ob-field textarea {
  resize: vertical;
  min-height: 70px;
}

/* ── Avatar-Step ─────────────────────────────────────────── */
.ob-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0 4px;
}
.ob-avatar-preview {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3, #EFEFF2);
  border: 2px dashed var(--border, rgba(0,0,0,0.18));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #6B6B80);
  font-size: 48px;
  font-weight: 700;
  font-family: var(--font-display, 'Bebas Neue', Impact, sans-serif);
  position: relative;
}
.ob-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ob-avatar-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--accent, #FF6B00);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.ob-avatar-label:hover { background: var(--accent-light, #FF8C3A); }
.ob-avatar-label input { display: none; }
.ob-avatar-hint {
  font-size: 12px;
  color: var(--text-faint, #ABABBA);
  margin: 2px 0 0;
}

/* ── Strava-Step ─────────────────────────────────────────── */
.ob-strava-card {
  background: linear-gradient(135deg, #FC5200 0%, #FF8C3A 100%);
  color: #FFFFFF;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.ob-strava-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.ob-strava-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}
.ob-strava-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #FC5200;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s;
}
.ob-strava-cta:hover { transform: translateY(-1px); }
.ob-strava-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* ── Done-Step ───────────────────────────────────────────── */
.ob-done {
  text-align: center;
  padding: 12px 0 8px;
}
.ob-done-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-glow, rgba(255,107,0,0.12));
  color: var(--accent, #FF6B00);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 14px;
}

/* ── Status ──────────────────────────────────────────────── */
.ob-status {
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 18px;
}
.ob-status--err { color: #B00020; }
.ob-status--ok  { color: #1f8f3f; }
.ob-status--info{ color: var(--text-muted, #6B6B80); }

/* ── Footer / Actions ────────────────────────────────────── */
.ob-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border, rgba(0,0,0,0.07));
  background: var(--bg-2, #F7F7F9);
}

.ob-btn {
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  font-family: inherit;
}
.ob-btn:active { transform: translateY(1px); }

.ob-btn-primary {
  background: var(--accent, #FF6B00);
  color: #FFFFFF;
}
.ob-btn-primary:hover { background: var(--accent-light, #FF8C3A); }
.ob-btn-primary:disabled {
  background: var(--bg-3, #EFEFF2);
  color: var(--text-faint, #ABABBA);
  cursor: not-allowed;
}

.ob-btn-ghost {
  background: transparent;
  color: var(--text, #1A1A2E);
  border: 1.5px solid rgba(0,0,0,0.18);
}
.ob-btn-ghost:hover { background: var(--bg-card, #FFFFFF); }

/* ── Responsive: Full-Screen auf Mobile ─────────────────── */
@media (max-width: 600px) {
  .ob-overlay { padding: 0; }
  .ob-modal {
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
    max-width: 100%;
  }
  .ob-body { padding: 22px 20px 8px; }
  .ob-footer { padding: 14px 16px 18px; }
  .ob-title { font-size: 26px; }
}
