/* ══════════════════════════════════════════════════════
   SK-Beauty — Design System
   Genehmigt Mai 2026
   ══════════════════════════════════════════════════════ */

:root {
  --pink:        #C8005A;
  --pink-hover:  #A80049;
  --pink-light:  #FFF0F5;
  --pink-mid:    #F7C5DC;
  --pink-border: #F0A0C8;
  --white:       #FFFFFF;
  --bg:          #FAFAFA;
  --gray-50:     #F7F5F6;
  --gray-100:    #F0EAED;
  --gray-200:    #E2D4DA;
  --gray-400:    #B09AA5;
  --gray-500:    #8C7480;
  --gray-700:    #4A3540;
  --gray-900:    #2A1520;
  --green:       #27AE60;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(200,0,90,0.08);
  --shadow-sm:   0 1px 6px rgba(200,0,90,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--gray-900); font-size: 14px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--pink); }

/* ── Header ─────────────────────────────────────────── */
.app-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.logo { font-size: 20px; font-weight: 800; color: var(--pink); text-decoration: none; }
.help-link { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.help-circle { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--gray-400); }
.help-text { display: flex; flex-direction: column; }
.help-title { font-size: 12px; font-weight: 700; color: var(--gray-700); line-height: 1; }
.help-sub { font-size: 10px; color: var(--gray-400); }

/* ── Step-Bar ────────────────────────────────────────── */
.step-bar { background: var(--white); border-bottom: 1px solid var(--gray-100); padding: 0 28px; }
.step-track { display: flex; align-items: center; height: 52px; max-width: 700px; margin: 0 auto; position: relative; }
.step { display: flex; align-items: center; gap: 7px; flex: 1; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; left: calc(14px + 7px); right: 0; top: 50%; transform: translateY(-50%); height: 1.5px; background: var(--gray-200); z-index: 0; }
.step.done:not(:last-child)::after { background: var(--pink-border); }
.step-circle { width: 26px; height: 26px; border-radius: 50%; background: var(--gray-200); color: var(--gray-400); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; transition: all 0.2s; }
.step.active .step-circle { background: var(--pink); color: #fff; box-shadow: 0 2px 8px rgba(200,0,90,0.3); }
.step.done .step-circle { background: var(--pink-light); color: var(--pink); border: 1.5px solid var(--pink-border); font-size: 0; }
.step.done .step-circle::after { content: '✓'; font-size: 11px; }
.step-label { font-size: 11px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.step.active .step-label { color: var(--pink); font-weight: 700; }
.step.done .step-label { color: var(--gray-500); }

/* ── Panels ──────────────────────────────────────────── */
.panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-header { padding: 14px 20px 12px; border-bottom: 1px solid var(--gray-100); }
.panel-title { font-size: 14px; font-weight: 800; color: var(--gray-900); }
.panel-sub { font-size: 12px; color: var(--gray-400); margin-top: 3px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 50px; background: var(--pink); color: #fff; font-size: 14px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 3px 12px rgba(200,0,90,0.3); transition: all 0.15s; width: 100%; }
.btn-primary:hover { background: var(--pink-hover); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--gray-200); color: var(--gray-400); box-shadow: none; cursor: not-allowed; transform: none; }
.back-btn { background: none; border: none; color: var(--gray-500); font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; margin-right: 12px; }
.back-btn:hover { color: var(--pink); }

/* ══ DESKTOP LAYOUT ══════════════════════════════════════ */
@media (min-width: 1024px) {

  .booking-ui { padding: 24px 28px; max-width: 1200px; margin: 0 auto; }
  .booking-layout { display: grid; grid-template-columns: 330px 1fr 290px; gap: 18px; align-items: start; }
  .panel-middle { display: flex; flex-direction: column; gap: 16px; }
  .mobile-footer { display: none; }
  .panel-summary { position: sticky; top: 82px; }

  .form-ui { padding: 24px 28px; max-width: 900px; margin: 0 auto; }
  .form-layout { display: grid; grid-template-columns: 1fr 280px; gap: 18px; align-items: start; }
  .form-summary { position: sticky; top: 82px; }

  .confirm-ui { padding: 48px 28px; display: flex; justify-content: center; }
  .confirm-card { max-width: 480px; width: 100%; }
}

/* ══ MOBILE / TABLET LAYOUT ══════════════════════════════ */
@media (max-width: 1023px) {

  .booking-ui { padding: 16px; }
  .booking-layout { display: flex; flex-direction: column; gap: 0; }

  /* Nur aktives Panel sichtbar */
  .panel-services,
  .panel-calendar,
  .panel-slots,
  .panel-summary { display: none; }

  .panel-services.mobile-active,
  .panel-calendar.mobile-active,
  .panel-slots.mobile-active,
  .panel-summary.mobile-active { display: block; }

  .panel-middle { display: contents; }

  .mobile-footer { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-100); }

  .form-ui { padding: 16px; }
  .form-layout { display: block; }
  .form-summary { display: none; }

  .confirm-ui { padding: 24px 16px; }

  /* Step-Bar kompakter */
  .step-label { display: none; }
  .step-bar { padding: 0 16px; }
}

/* ── Service Cards ────────────────────────────────────── */
.service-list { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.service-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1.5px solid var(--gray-100); cursor: pointer; background: var(--white); transition: all 0.15s; }
.service-card:hover { border-color: var(--pink-border); background: var(--pink-light); }
.service-card.selected { border-color: var(--pink); background: var(--pink-light); }
.service-thumb { width: 50px; height: 50px; border-radius: 10px; background: var(--pink-light); border: 1.5px solid var(--pink-border); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.service-info { flex: 1; min-width: 0; }
.service-top { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.service-name { font-size: 13px; font-weight: 700; color: var(--gray-900); }
.dur-badge { font-size: 10px; font-weight: 700; background: var(--pink); color: #fff; padding: 2px 7px; border-radius: 20px; flex-shrink: 0; white-space: nowrap; }
.service-desc { font-size: 11px; color: var(--gray-400); margin-bottom: 4px; }
.service-price { font-size: 14px; font-weight: 800; color: var(--gray-900); }
.service-card.selected .service-price { color: var(--pink); }
.radio-btn { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gray-300); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.radio-btn.checked { border-color: var(--pink); background: var(--pink); }
.radio-btn.checked::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hinweis { margin: 0 10px 12px; background: var(--pink-light); border: 1px solid var(--pink-border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--gray-700); line-height: 1.5; }
.hinweis-icon { color: var(--pink); font-weight: 800; flex-shrink: 0; font-size: 13px; }
.hinweis strong { color: var(--pink); display: block; margin-bottom: 2px; }

/* ── Kalender ────────────────────────────────────────── */
.calendar-wrap { padding: 16px 20px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-nav-btn { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--gray-200); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--gray-500); transition: all 0.12s; }
.cal-nav-btn:hover { border-color: var(--pink-border); color: var(--pink); background: var(--pink-light); }
.cal-month { font-size: 15px; font-weight: 800; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-head { text-align: center; font-size: 11px; font-weight: 700; color: var(--gray-400); padding: 4px 0; }
.cal-head.weekend { color: var(--pink); }
.cal-day { text-align: center; padding: 7px 0; border-radius: 50%; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--gray-700); transition: all 0.12s; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.cal-day:hover:not(.off):not(.past):not(.closed) { background: var(--pink-light); color: var(--pink); }
.cal-day.weekend { color: var(--pink); }
.cal-day.today { background: var(--pink-light); color: var(--pink); font-weight: 800; }
.cal-day.selected { background: var(--pink); color: #fff; font-weight: 800; box-shadow: 0 2px 8px rgba(200,0,90,0.3); }
.cal-day.off, .cal-day.past, .cal-day.closed { color: var(--gray-200); cursor: default; }

/* ── Zeitslots ───────────────────────────────────────── */
.slots-wrap { padding: 14px 20px 18px; }
.slots-placeholder { color: var(--gray-400); font-size: 13px; padding: 20px 0; text-align: center; font-style: italic; }
.slots-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 1023px) { .slots-grid { grid-template-columns: repeat(3, 1fr); } }
.slot { padding: 11px 6px; border-radius: 10px; border: 1.5px solid var(--gray-200); text-align: center; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--gray-700); background: var(--white); transition: all 0.15s; min-height: 44px; }
.slot:hover:not(.unavail) { border-color: var(--pink-border); color: var(--pink); background: var(--pink-light); }
.slot.selected { background: var(--pink); color: #fff; border-color: var(--pink); box-shadow: 0 2px 8px rgba(200,0,90,0.25); }
.slot.unavail { color: var(--gray-200); background: var(--gray-50); border-color: var(--gray-100); cursor: not-allowed; font-size: 11px; }
.slots-legend { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--gray-400); }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; }
.legend-dot.avail { border: 1.5px solid var(--gray-200); background: var(--white); }
.legend-dot.sel { background: var(--pink); }
.legend-dot.na { background: var(--gray-50); border: 1.5px solid var(--gray-100); }

/* ── Summary ─────────────────────────────────────────── */
.summary-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.summary-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0; color: var(--gray-400); }
.summary-empty-icon { font-size: 32px; }
.summary-empty-text { font-size: 13px; text-align: center; line-height: 1.5; }
.summary-service-row { display: flex; gap: 12px; align-items: flex-start; }
.summary-thumb { width: 50px; height: 50px; border-radius: 10px; background: var(--pink-light); border: 1.5px solid var(--pink-border); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.summary-service-name { font-size: 14px; font-weight: 800; line-height: 1.3; margin-bottom: 5px; }
.divider { border: none; border-top: 1px solid var(--gray-100); }
.summary-details { display: flex; flex-direction: column; gap: 7px; }
.summary-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-700); }
.srow-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.summary-price-row { display: flex; justify-content: space-between; align-items: center; }
.summary-price-label { font-size: 13px; color: var(--gray-500); font-weight: 600; }
.summary-price-val { font-size: 22px; font-weight: 800; color: var(--pink); }
.btn-book { margin-top: 4px; }
.why-box { padding: 14px 18px; border-top: 1px solid var(--gray-100); }
.why-title { font-size: 12px; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.why-list { display: flex; flex-direction: column; gap: 6px; }
.why-item { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--gray-500); }

/* ── Formular ────────────────────────────────────────── */
.form-panel .panel-header { display: flex; align-items: center; }
.booking-form { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 12px; font-weight: 700; color: var(--gray-700); }
.req { color: var(--pink); }
.form-input { padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200); font-size: 14px; color: var(--gray-900); background: var(--white); outline: none; transition: border-color 0.15s; font-family: inherit; width: 100%; }
.form-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(200,0,90,0.07); }
.form-input::placeholder { color: var(--gray-300); }
textarea.form-input { resize: none; }
.dsgvo-note { font-size: 11px; color: var(--gray-400); line-height: 1.6; text-align: center; }
.form-note { font-size: 11px; color: var(--gray-400); text-align: center; margin-top: 4px; }
.form-error { background: #FDEDEC; border: 1px solid #E74C3C; border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; color: #C0392B; }

/* ── Bestätigung ─────────────────────────────────────── */
.confirm-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-100); box-shadow: var(--shadow); padding: 32px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; box-shadow: 0 4px 20px rgba(39,174,96,0.3); }
.confirm-title { font-size: 22px; font-weight: 800; }
.confirm-sub { font-size: 14px; color: var(--gray-500); text-align: center; line-height: 1.6; }
.confirm-details { width: 100%; background: var(--pink-light); border: 1.5px solid var(--pink-border); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--gray-700); }
.confirm-details .summary-row { gap: 10px; }
.confirm-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.btn-action { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px; border-radius: 50px; font-size: 13px; font-weight: 600; border: 1.5px solid var(--gray-200); color: var(--gray-700); text-decoration: none; transition: all 0.12s; }
.btn-action:hover { border-color: var(--pink-border); color: var(--pink); background: var(--pink-light); }

/* ── Footer ──────────────────────────────────────────── */
.app-footer { background: var(--white); border-top: 1px solid var(--gray-100); padding: 16px 28px; margin-top: auto; }
.footer-trust { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.ft-item { display: flex; align-items: center; gap: 10px; }
.ft-icon { font-size: 20px; }
.ft-item div { display: flex; flex-direction: column; }
.ft-item strong { font-size: 12px; font-weight: 700; color: var(--gray-900); }
.ft-item span { font-size: 11px; color: var(--gray-400); }
@media (max-width: 700px) { .footer-trust { gap: 14px; } .ft-item div { display: none; } }

/* ── Payment Step ────────────────────────────────────────── */
.pay-section { padding: 18px 20px; border-bottom: 1px solid var(--gray-100); }
.pay-section:last-of-type { border-bottom: none; }
.pay-section-title { font-size: 12px; font-weight: 800; color: var(--gray-700); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }

.pay-amount-opts { display: flex; flex-direction: column; gap: 8px; }
.pay-amount-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--gray-200); cursor: pointer; transition: all 0.12s; flex-wrap: wrap; }
.pay-amount-opt:hover { border-color: var(--pink-border); background: var(--pink-light); }
.pay-amount-opt.selected { border-color: var(--pink); background: var(--pink-light); }
.pay-amount-opt input[type="radio"] { accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; }
.pay-opt-label { font-size: 13px; font-weight: 700; color: var(--gray-900); flex: 1; }
.pay-opt-price { font-size: 15px; font-weight: 800; color: var(--pink); }
.pay-opt-sub { width: 100%; font-size: 11px; color: var(--gray-400); padding-left: 26px; margin-top: -4px; }

.pay-method-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.pay-tab { flex: 1; min-width: 80px; padding: 10px 8px; border-radius: 10px; border: 1.5px solid var(--gray-200); background: var(--white); font-size: 13px; font-weight: 600; color: var(--gray-500); cursor: pointer; transition: all 0.12s; }
.pay-tab:hover { border-color: var(--pink-border); color: var(--pink); }
.pay-tab.active { border-color: var(--pink); background: var(--pink-light); color: var(--pink); }

.stripe-card-el { padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200); background: var(--white); transition: border-color 0.15s; }

.vorkasse-box { background: var(--pink-light); border: 1px solid var(--pink-border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; color: var(--gray-700); }
.bank-detail { display: flex; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--pink-border); }
.bank-detail:last-child { border-bottom: none; }
.bank-detail span { color: var(--gray-400); min-width: 130px; }
.bank-detail strong { word-break: break-all; }
.vorkasse-note { font-size: 12px; color: var(--gray-400); margin-top: 12px; line-height: 1.5; }

/* ── Ladeindikator ───────────────────────────────────── */
.slots-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 0; color: var(--gray-400); font-size: 13px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--gray-200); border-top-color: var(--pink); border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
