/* Partner-Onboarding-Wizard — Split-Rail Design-System (Stripe/Airbnb-Feel).
   Eigenständig, NICHT die Admin-base.html-Styles. Akzentfarbe kommt per
   inline --accent auf .ob-root (Vereinity-Lila im Admin, Partnerfarbe public). */

:root {
  --ob-accent: #5A32DC;
  --ob-accent-ink: #ffffff;
  --ob-bg: #f7f7f8;
  --ob-surface: #ffffff;
  --ob-border: #e6e7eb;
  --ob-text: #1f2430;
  --ob-muted: #6b7280;
  --ob-danger: #dc2626;
  --ob-success: #16a34a;
  --ob-radius: 16px;
  --ob-radius-sm: 10px;
  --ob-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body.ob-body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ob-bg);
  color: var(--ob-text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ob-root { min-height: 100vh; }

/* ── Layout: rail + pane ─────────────────────────────────────────────────── */
.ob-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
}

.ob-rail {
  position: relative;
  color: var(--ob-accent-ink);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .22)),
    linear-gradient(155deg, var(--ob-accent) 0%, color-mix(in srgb, var(--ob-accent) 70%, #000) 100%);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
/* Fallback wenn color-mix nicht unterstützt wird */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .ob-rail { background: linear-gradient(160deg, var(--ob-accent), #2b1a6e); }
}

.ob-rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.ob-rail-brand img { max-height: 34px; max-width: 150px; border-radius: 6px; background: #fff; padding: 4px; }
.ob-rail-eyebrow {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: .8;
  font-weight: 600;
}

/* Step-Liste */
.ob-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ob-step {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border-radius: var(--ob-radius-sm);
  transition: background .15s ease;
}
.ob-step-dot {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, .45);
  color: var(--ob-accent-ink);
}
.ob-step-label { font-size: .92rem; font-weight: 500; opacity: .85; }
.ob-step.is-current { background: rgba(255, 255, 255, .14); }
.ob-step.is-current .ob-step-label { opacity: 1; font-weight: 700; }
.ob-step.is-current .ob-step-dot { background: #fff; color: var(--ob-accent); border-color: #fff; }
.ob-step.is-done .ob-step-dot { background: rgba(255, 255, 255, .92); color: var(--ob-accent); border-color: transparent; }
.ob-step.is-upcoming { opacity: .65; }

.ob-rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.ob-progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.ob-progress-fill { height: 100%; background: #fff; border-radius: 99px; transition: width .4s ease; }
.ob-progress-text { font-size: .78rem; opacity: .85; }
.ob-rail-link { color: rgba(255,255,255,.85); font-size: .8rem; text-decoration: underline; }
.ob-rail-link:hover { color: #fff; }

/* ── Pane ────────────────────────────────────────────────────────────────── */
.ob-pane { display: flex; align-items: flex-start; justify-content: center; padding: 56px 32px; }
.ob-pane-inner { width: 100%; max-width: 560px; animation: ob-fade-up .4s ease both; }

.ob-head { margin-bottom: 24px; }
.ob-head h1 { font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.ob-sub { color: var(--ob-muted); margin: 0; font-size: 1rem; }

.ob-card {
  background: var(--ob-surface);
  border: 1px solid var(--ob-border);
  border-radius: var(--ob-radius);
  box-shadow: var(--ob-shadow);
  padding: 26px;
}

/* Felder */
.ob-field { display: grid; gap: 6px; margin-bottom: 18px; }
.ob-field > label { font-size: .9rem; font-weight: 600; }
.ob-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ob-border);
  border-radius: var(--ob-radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ob-text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ob-input:focus {
  outline: none;
  border-color: var(--ob-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ob-accent) 22%, transparent);
}
.ob-input.has-error { border-color: var(--ob-danger); }
.ob-hint { font-size: .82rem; color: var(--ob-muted); }
.ob-field-error { font-size: .82rem; color: var(--ob-danger); }
.ob-prefix-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; color: var(--ob-muted); }

/* Logo-Dropzone */
.ob-dropzone {
  border: 1.5px dashed var(--ob-border);
  border-radius: var(--ob-radius);
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  background: #fcfcfd;
}
.ob-dropzone:hover, .ob-dropzone.is-dragover { border-color: var(--ob-accent); background: color-mix(in srgb, var(--ob-accent) 5%, #fff); }
.ob-dropzone input[type="file"] { display: none; }
.ob-dropzone-icon { font-size: 1.6rem; }
.ob-dropzone-text { font-weight: 600; margin: 8px 0 2px; }
.ob-dropzone-hint { font-size: .8rem; color: var(--ob-muted); }
.ob-logo-preview { display: none; align-items: center; gap: 14px; margin-top: 14px; }
.ob-logo-preview.is-visible { display: flex; }
.ob-logo-preview img { max-height: 56px; max-width: 160px; border: 1px solid var(--ob-border); border-radius: 8px; padding: 4px; background: #fff; }
.ob-logo-remove { background: none; border: none; color: var(--ob-danger); cursor: pointer; font-size: .85rem; font-family: inherit; text-decoration: underline; padding: 0; }

/* Color picker */
.ob-color-row { display: flex; align-items: center; gap: 12px; }
.ob-color-swatch { width: 46px; height: 46px; border-radius: var(--ob-radius-sm); border: 1px solid var(--ob-border); padding: 0; cursor: pointer; background: none; }
.ob-color-swatch::-webkit-color-swatch-wrapper { padding: 4px; }
.ob-color-swatch::-webkit-color-swatch { border: none; border-radius: 6px; }
.ob-color-hex { max-width: 140px; }
.ob-color-preview {
  margin-left: auto; padding: 8px 14px; border-radius: 99px; color: #fff;
  font-size: .8rem; font-weight: 700; background: var(--ob-accent);
}

/* Domain chips */
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.ob-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ob-accent) 10%, #fff);
  color: color-mix(in srgb, var(--ob-accent) 75%, #000);
  border: 1px solid color-mix(in srgb, var(--ob-accent) 25%, #fff);
  font-size: .85rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ob-chip-remove { border: none; background: rgba(0,0,0,.06); width: 18px; height: 18px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: .8rem; color: inherit; display: grid; place-items: center; }
.ob-chip-remove:hover { background: rgba(0,0,0,.14); }
.ob-chips-empty { font-size: .85rem; color: var(--ob-muted); }

/* Actions */
.ob-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; margin-top: 26px; }
.ob-actions .ob-spacer { margin-right: auto; }
.ob-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--ob-radius-sm);
  font-size: .95rem; font-weight: 600; font-family: inherit;
  cursor: pointer; text-decoration: none; border: 1px solid var(--ob-border);
  background: #fff; color: var(--ob-text);
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.ob-btn:hover { background: #f3f4f6; }
.ob-btn:active { transform: translateY(1px); }
.ob-btn-primary {
  background: var(--ob-accent); color: var(--ob-accent-ink); border-color: var(--ob-accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ob-accent) 28%, transparent);
}
.ob-btn-primary:hover { background: color-mix(in srgb, var(--ob-accent) 88%, #000); }
.ob-btn-ghost { background: transparent; border-color: transparent; color: var(--ob-muted); }
.ob-btn-ghost:hover { background: rgba(0,0,0,.04); }

/* Alerts */
.ob-alert { border-radius: var(--ob-radius-sm); padding: 12px 16px; margin-bottom: 18px; font-size: .9rem; }
.ob-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.ob-alert-success { background: #f0fdf4; color: #065f46; border: 1px solid #bbf7d0; }
.ob-alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Review (final/admin) Zusammenfassung */
.ob-summary { display: grid; gap: 12px; margin: 4px 0 8px; }
.ob-summary-row { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--ob-border); }
.ob-summary-row:last-child { border-bottom: none; }
.ob-summary-key { color: var(--ob-muted); font-size: .85rem; font-weight: 600; }
.ob-summary-val { font-size: .95rem; overflow-wrap: anywhere; }
.ob-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: .9rem; }

/* Standalone (Danke / abgelaufen) */
.ob-centered { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.ob-centered .ob-card { max-width: 480px; text-align: center; }
.ob-centered h1 { font-size: 1.5rem; margin: 14px 0 8px; }
.ob-emoji { font-size: 2.4rem; }

/* ── Motion ──────────────────────────────────────────────────────────────── */
@keyframes ob-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  .ob-pane-inner { animation: none; }
  .ob-progress-fill, .ob-btn, .ob-input, .ob-step { transition: none; }
}

/* ── Responsive: Rail klappt zu Top-Stepper ──────────────────────────────── */
@media (max-width: 768px) {
  .ob-layout { grid-template-columns: 1fr; }
  .ob-rail { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px 18px; }
  .ob-rail-brand { font-size: .95rem; }
  .ob-rail-eyebrow { display: none; }
  .ob-steps { flex-direction: row; flex: 1 1 100%; order: 3; gap: 2px; overflow-x: auto; }
  .ob-step { padding: 6px 8px; gap: 8px; }
  .ob-step-label { display: none; }
  .ob-step.is-current .ob-step-label { display: inline; }
  .ob-rail-foot { margin: 0; flex: 1 1 100%; order: 4; }
  .ob-pane { padding: 28px 18px; }
  .ob-head h1 { font-size: 1.5rem; }
  .ob-card { padding: 20px; }
  .ob-actions { flex-direction: column-reverse; align-items: stretch; }
  .ob-actions .ob-btn { width: 100%; justify-content: center; }
  .ob-actions .ob-spacer { display: none; }
}
