/* MigratorMan Booking Wizard – booking.css */

/* ── Wrapper ────────────────────────────────────────────────────────────── */
#mm-wizard {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a2e;
}

/* ── Sticky Header ──────────────────────────────────────────────────────── */
#mm-wizard-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

/* ── Fortschritt ────────────────────────────────────────────────────────── */
.mm-progress {
  display: flex;
  background: #f8f9fb;
  border-bottom: 1px solid #e8eaf0;
}
.mm-progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #aab0bc;
  border-bottom: 3px solid transparent;
  transition: all .25s;
}
.mm-progress-step .mm-picon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #e8eaf0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all .25s;
}
.mm-progress-step.active { color: #2563eb; border-bottom-color: #2563eb; }
.mm-progress-step.active .mm-picon { background: #dbeafe; }
.mm-progress-step.done   { color: #16a34a; border-bottom-color: #16a34a; }
.mm-progress-step.done   .mm-picon { background: #dcfce7; }

/* ── Abschnitts-Nav ─────────────────────────────────────────────────────── */
.mm-section-nav {
  display: none;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 24px;
  background: #f0f4ff;
  border-bottom: 1px solid #dbeafe;
}
.mm-section-nav.show { display: flex; }
.mm-section-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin-right: 4px;
  white-space: nowrap;
}
.mm-section-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid #bfdbfe;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  cursor: pointer;
  transition: all .2s;
}
.mm-section-pill:hover { background: #dbeafe; border-color: #93c5fd; }
.mm-section-pill.active { background: #2563eb; border-color: #2563eb; color: #fff; }
.mm-section-pill .pill-icon { font-size: 13px; }
.mm-section-pill .pill-num {
  background: #dbeafe;
  color: #2563eb;
  border-radius: 50%;
  width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800;
  flex-shrink: 0;
}
.mm-section-pill.active .pill-num { background: rgba(255,255,255,.35); color: #fff; }

/* ── Schritt-Body ───────────────────────────────────────────────────────── */
.mm-step-body { padding: 36px 40px 40px; }
@media (max-width: 480px) { .mm-step-body { padding: 24px 20px 32px; } }

.mm-step { display: none; }
.mm-step.active { display: block; }

.mm-step-title    { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #0f172a; }
.mm-step-subtitle { font-size: 14px; color: #64748b; margin-bottom: 28px; }

/* ── Ablauf-Box ─────────────────────────────────────────────────────────── */
.mm-ablauf {
  display: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.mm-ablauf.show { display: block; }
.mm-ablauf-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin-bottom: 12px;
}
.mm-ablauf-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.mm-ablauf-step:last-child { border-bottom: none; }
.mm-ablauf-step.inactive   { opacity: .35; }
.mm-ablauf-step.optional   { opacity: .5; }
.mm-ablauf-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.mm-ablauf-step.inactive .mm-ablauf-num { background: #e2e8f0; color: #94a3b8; }
.mm-ablauf-step.optional .mm-ablauf-num { background: #e0e7ff; color: #6366f1; }
.mm-ablauf-step-body strong { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.mm-ablauf-step-body small  { font-size: 12px; color: #64748b; line-height: 1.4; }
.mm-ablauf-step .step-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  align-self: center;
}
.step-badge.selected { background: #dcfce7; color: #15803d; }
.step-badge.not-sel  { background: #f1f5f9; color: #94a3b8; }
.step-badge.opt      { background: #e0e7ff; color: #6366f1; }
.step-badge.always   { background: #dbeafe; color: #1d4ed8; }

/* ── Typ-Karten ─────────────────────────────────────────────────────────── */
.mm-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .mm-type-grid { grid-template-columns: 1fr; } }

.mm-type-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 18px;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.mm-type-card:hover { border-color: #93c5fd; background: #f8fbff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,99,235,.10); }
.mm-type-card.selected { border-color: #2563eb; background: #eff6ff; }
.mm-type-card.selected::after {
  content: "✓";
  position: absolute; top: 12px; right: 14px;
  background: #2563eb; color: #fff;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.mm-type-icon { font-size: 28px; line-height: 1; }
.mm-type-card strong { font-size: 15px; font-weight: 700; color: #0f172a; display: block; }
.mm-type-card small  { font-size: 13px; color: #64748b; line-height: 1.4; }

/* ── Formularfelder ─────────────────────────────────────────────────────── */
.mm-field { margin-bottom: 20px; }
.mm-field label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.mm-required { color: #ef4444; }

.mm-field input[type="text"],
.mm-field input[type="email"],
.mm-field input[type="tel"],
.mm-field input[type="password"],
.mm-field select,
.mm-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.mm-field input:focus, .mm-field select:focus, .mm-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.mm-field textarea { resize: vertical; }

.mm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .mm-two-col { grid-template-columns: 1fr; } }

.mm-radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.mm-radio-group label { display: flex; align-items: center; gap: 7px; font-weight: 400; cursor: pointer; font-size: 14px; }
.mm-radio-group input[type="radio"] { accent-color: #2563eb; width: 16px; height: 16px; cursor: pointer; }

.mm-section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #94a3b8;
  margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 1px solid #f1f5f9;
}

/* Info-Banner */
.mm-info-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}

/* IMAP-Check-Banner */
.mm-imap-check-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
}
.mm-imap-check-banner.warn { background: #fff7ed; border-color: #fed7aa; color: #92400e; }
.mm-imap-check-banner .icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Mailbox-Einträge ───────────────────────────────────────────────────── */
.mm-mailbox-entry {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color .3s, background .3s;
}
.mm-mailbox-entry.imap-testing { border-color: #fbbf24; background: #fffbeb; }
.mm-mailbox-entry.imap-ok      { border-color: #16a34a; background: #f0fdf4; }
.mm-mailbox-entry.imap-fail    { border-color: #ef4444; background: #fef2f2; }

.mm-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.mm-entry-head-left { display: flex; align-items: center; gap: 8px; }
.mm-entry-num       { font-size: 13px; font-weight: 700; color: #475569; }

/* IMAP Status-Badge */
.mm-imap-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  transition: all .3s;
}
.mm-imap-status.idle    { background: #f1f5f9; color: #94a3b8; }
.mm-imap-status.testing { background: #fef9c3; color: #b45309; }
.mm-imap-status.ok      { background: #dcfce7; color: #15803d; }
.mm-imap-status.fail    { background: #fee2e2; color: #dc2626; }
.mm-imap-status .status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.mm-imap-status.testing .status-dot { animation: mmPulse 1s infinite; }

@keyframes mmPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* WP-Check Schritt-Badges */
.mm-wp-steps { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mm-wp-step-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  transition: background .3s, border-color .3s;
}
.mm-wp-step-badge.step-pending { background: #f8fafc; border-color: #e2e8f0; color: #94a3b8; }
.mm-wp-step-badge.step-running { background: #fef9c3; border-color: #fde68a; color: #b45309; }
.mm-wp-step-badge.step-ok      { background: #dcfce7; border-color: #86efac; color: #15803d; }
.mm-wp-step-badge.step-fail    { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.wp-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: .5;
}
.mm-wp-step-badge.step-running .wp-step-dot { animation: mmPulse 1s infinite; opacity: 1; }
.mm-wp-step-badge.step-ok   .wp-step-dot,
.mm-wp-step-badge.step-fail .wp-step-dot    { opacity: 1; }
.wp-step-label  { flex: 1; font-weight: 500; }
.wp-step-status { font-size: 12px; font-weight: 700; }

/* Mailbox-Felder */
.mm-mailbox-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 520px) { .mm-mailbox-fields { grid-template-columns: 1fr; } }
.mm-mailbox-fields .mm-field { margin-bottom: 0; }

/* Passwort-Feld mit Auge */
.mm-pw-wrap { position: relative; }
.mm-pw-wrap input { padding-right: 40px; }
.mm-pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #94a3b8; font-size: 16px; padding: 2px;
  transition: color .2s;
}
.mm-pw-toggle:hover { color: #475569; }

.mm-mailbox-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mm-imap-error-msg, .mm-imap-ok-msg {
  font-size: 13px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 6px;
}
.mm-imap-error-msg { color: #dc2626; border: 1px solid #fecaca; display: none; }
.mm-imap-ok-msg    { color: #15803d; border: 1px solid #bbf7d0; display: none; }

/* Test-Buttons */
.mm-btn-test-imap {
  background: none;
  border: 1.5px solid #cbd5e1;
  color: #475569;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.mm-btn-test-imap:hover    { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.mm-btn-test-imap:disabled { opacity: .5; cursor: not-allowed; }

.mm-remove-mailbox {
  background: none; border: none;
  color: #94a3b8; font-size: 13px; cursor: pointer;
  padding: 4px 8px; border-radius: 4px;
  transition: color .2s, background .2s;
}
.mm-remove-mailbox:hover { color: #ef4444; background: #fee2e2; }

/* Bezahl-Hinweis */
.mm-paid-notice {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 10px;
  line-height: 1.5;
}
.mm-paid-notice.show { display: flex; }
.mm-paid-notice .icon { font-size: 16px; flex-shrink: 0; }

/* Postfach hinzufügen */
.mm-add-mailbox {
  background: none;
  border: 1.5px dashed #93c5fd;
  color: #2563eb;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%;
  transition: background .2s;
  margin-top: 4px;
}
.mm-add-mailbox:hover    { background: #eff6ff; }
.mm-add-mailbox:disabled { opacity: .5; cursor: not-allowed; }

/* Mailbox-Stats nach Test */
.mm-mailbox-stats {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  flex-wrap: wrap;
}
.mm-mailbox-stats.show { display: flex; }
.mm-mailbox-stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; }
.mm-mailbox-stat .stat-icon { font-size: 15px; }
.mm-mailbox-stat strong { color: #0f172a; }
.mm-mailbox-stat .stat-warn { color: #b45309; font-weight: 600; }
.mm-target-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* Spam-Karten */
.mm-spam-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 520px) { .mm-spam-cards { grid-template-columns: 1fr; } }
.mm-spam-card {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
}
.mm-spam-card:hover    { border-color: #93c5fd; background: #f8fbff; }
.mm-spam-card.selected { border-color: #2563eb; background: #eff6ff; }
.mm-spam-card.selected::after {
  content: "✓";
  position: absolute; top: 10px; right: 12px;
  background: #2563eb; color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.mm-spam-card .sc-icon  { font-size: 22px; margin-bottom: 6px; }
.mm-spam-card strong    { display: block; font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 4px; }
.mm-spam-card small     { font-size: 12px; color: #64748b; line-height: 1.4; display: block; }
.mm-spam-card .sc-badge {
  display: inline-block;
  background: #f0fdf4; color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 11px; font-weight: 700;
  border-radius: 4px; padding: 2px 6px;
  margin-top: 6px;
}
.mm-spam-card .sc-badge.pro { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ── Kalender / Slot-Picker ─────────────────────────────────────────────── */
.mm-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mm-cal-nav button {
  background: #f1f5f9; border: none; border-radius: 8px;
  width: 36px; height: 36px; font-size: 18px; cursor: pointer;
  color: #374151; transition: background .2s;
}
.mm-cal-nav button:hover { background: #e2e8f0; }
.mm-cal-nav span { font-size: 17px; font-weight: 700; color: #0f172a; }

.mm-slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.mm-slot {
  background: #f8fbff; border: 1.5px solid #bfdbfe;
  border-radius: 8px; padding: 12px 10px;
  text-align: center; cursor: pointer; transition: all .2s;
}
.mm-slot:hover   { border-color: #2563eb; background: #eff6ff; }
.mm-slot.selected { background: #2563eb; border-color: #2563eb; color: #fff; }
.mm-slot .mm-slot-day  { font-size: 12px; font-weight: 600; opacity: .75; margin-bottom: 4px; }
.mm-slot .mm-slot-time { font-size: 15px; font-weight: 700; }
.mm-slot .mm-slot-dur  { font-size: 11px; opacity: .65; margin-top: 3px; }
.mm-slots-empty { text-align: center; color: #94a3b8; padding: 40px 0; font-size: 15px; }

/* ── Bestätigung ────────────────────────────────────────────────────────── */
.mm-confirm-box  { text-align: center; padding: 20px 0 10px; }
.mm-confirm-icon {
  width: 72px; height: 72px; background: #dcfce7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; margin: 0 auto 20px;
}
.mm-confirm-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: #0f172a; }
.mm-confirm-box p  { color: #475569; font-size: 15px; max-width: 400px; margin: 0 auto 28px; line-height: 1.6; }
.mm-confirm-summary {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 20px 24px; text-align: left; max-width: 420px; margin: 0 auto;
}
.mm-confirm-summary h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: 14px; }
.mm-confirm-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.mm-confirm-row:last-child { border-bottom: none; }
.mm-confirm-row span:first-child { color: #64748b; }
.mm-confirm-row span:last-child  { font-weight: 600; color: #0f172a; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.mm-step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; gap: 12px; }
.mm-step-nav.mm-right { justify-content: flex-end; }
.mm-btn { padding: 11px 24px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.mm-btn-primary   { background: #2563eb; color: #fff; }
.mm-btn-primary:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.mm-btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.mm-btn-secondary { background: #f1f5f9; color: #374151; }
.mm-btn-secondary:hover { background: #e2e8f0; }
.mm-btn-ghost { background: none; color: #2563eb; padding: 11px 8px; }
.mm-btn-ghost:hover { text-decoration: underline; }

/* ── Testtermine (Fallback wenn keine Verfügbarkeitsregeln greifen) ─────── */
.mm-slot-test { opacity: .75; border-style: dashed !important; }
.mm-slot-test-label { font-size: 10px; color: #94a3b8; margin-top: 2px; }

/* ── Fehlermeldung ──────────────────────────────────────────────────────── */
.mm-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-top: 16px; display: none; }
.mm-error.show { display: block; }
