/* ── CSS-Variablen ─────────────────────────────────────────── */
:root {
  --primary:       #C8005A;
  --primary-light: #FFF0F5;
  --primary-dark:  #A8004A;
  --text:          #1A1A1A;
  --text-muted:    #666666;
  --border:        #E8E8E8;
  --bg:            #FAFAFA;
  --white:         #FFFFFF;
  --radius:        12px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
}

/* ── Reset + Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
       background: var(--bg); color: var(--text); line-height: 1.5; min-height: 100vh;
       display: flex; flex-direction: column; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; font-size: 1rem; border: none; }

/* ── Layout ────────────────────────────────────────────────── */
.booking-wrap {
  width: 100%; max-width: 600px; margin: 0 auto;
  padding: 16px 16px 40px; flex: 1;
}

/* ── Header ────────────────────────────────────────────────── */
.booking-header { text-align: center; padding: 24px 0 16px; }
.studio-name    { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.studio-sub     { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }

/* ── Fortschrittsanzeige ───────────────────────────────────── */
.progress-bar {
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 28px; padding: 0 8px;
}
.pb-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.pb-step span {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 600; transition: all .2s;
}
.pb-step em { font-size: .7rem; color: var(--text-muted); font-style: normal; }
.pb-step.active span  { background: var(--primary); color: #fff; }
.pb-step.done span    { background: var(--primary-dark); color: #fff; }
.pb-step.done em,
.pb-step.active em    { color: var(--primary); }
.pb-line { flex: 1; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 18px; }

/* ── Step Panels ───────────────────────────────────────────── */
.step-panel { display: none; }
.step-panel.active { display: block; }
.step-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }

/* ── Services ──────────────────────────────────────────────── */
.service-grid { display: flex; flex-direction: column; gap: 12px; }
.service-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 18px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.service-card:hover  { border-color: var(--primary); box-shadow: var(--shadow); }
.service-card.selected { border-color: var(--primary); background: var(--primary-light); }
.sc-name { font-weight: 600; font-size: 1rem; }
.sc-meta { color: var(--text-muted); font-size: .88rem; margin-top: 4px; }
.sc-desc { color: var(--text-muted); font-size: .84rem; margin-top: 6px; }

/* ── Kalender ──────────────────────────────────────────────── */
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cal-nav strong { font-size: 1rem; font-weight: 600; }
.btn-cal {
  background: none; border: 1px solid var(--border); border-radius: 8px;
  width: 36px; height: 36px; font-size: 1.2rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.btn-cal:hover { background: var(--primary-light); border-color: var(--primary); }

.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; margin-bottom: 6px;
}
.cal-weekdays span { text-align: center; font-size: .75rem; color: var(--text-muted); font-weight: 600; }

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1; border-radius: 50%; background: var(--white);
  border: 1px solid transparent; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s; touch-action: manipulation;
}
.cal-day:not(.disabled):not(.blank):hover { background: var(--primary-light); border-color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-day.disabled { color: var(--border); background: none; cursor: default; }
.cal-day.blank    { background: transparent; cursor: default; }

.selected-date-info { font-weight: 600; color: var(--primary); margin-bottom: 16px; font-size: .95rem; }

/* ── Slots ─────────────────────────────────────────────────── */
.slots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.slot {
  background: var(--white); border: 2px solid var(--border); border-radius: 10px;
  padding: 12px 8px; font-size: .9rem; text-align: center;
  transition: all .12s; touch-action: manipulation;
}
.slot:hover    { border-color: var(--primary); background: var(--primary-light); }
.slot.selected { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 600; }
.no-slots      { color: var(--text-muted); font-size: .9rem; grid-column: 1/-1; }

/* ── Formular ──────────────────────────────────────────────── */
.summary-box {
  background: var(--primary-light); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px; border: 1px solid #F0C0D5;
}
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; }
.sum-row span { color: var(--text-muted); }
.sum-row strong { font-weight: 600; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .88rem; font-weight: 500; color: var(--text); }
.form-group input,
.form-group textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
  font-size: 1rem; font-family: inherit; background: var(--white);
  transition: border-color .15s; width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-check label { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; cursor: pointer; }
.form-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--primary); }
.form-error { color: #c00; font-size: .88rem; background: #fff0f0; border: 1px solid #fcc; border-radius: 8px; padding: 10px 14px; margin-top: 4px; }

/* ── Navigation ────────────────────────────────────────────── */
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.btn-back {
  background: none; border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 20px; color: var(--text-muted); font-size: .95rem;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-next, .btn-book {
  background: var(--primary); color: #fff; border-radius: 10px;
  padding: 12px 28px; font-size: 1rem; font-weight: 600;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.btn-next:hover, .btn-book:hover { background: var(--primary-dark); }
.btn-next:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ── Erfolgsbildschirm ─────────────────────────────────────── */
#panel-success { text-align: center; padding: 32px 0; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary);
  color: #fff; font-size: 2rem; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
}
#panel-success h2 { font-size: 1.4rem; margin-bottom: 12px; }
#panel-success p  { color: var(--text-muted); margin-bottom: 16px; }
.success-details  { background: var(--primary-light); border-radius: var(--radius); padding: 16px; margin: 20px 0; text-align: left; }
.success-contact  { font-size: .88rem; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  text-align: center; padding: 20px; font-size: .82rem;
  color: var(--text-muted); border-top: 1px solid var(--border);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 400px) {
  .form-row          { grid-template-columns: 1fr; }
  .slots-grid        { grid-template-columns: repeat(2, 1fr); }
  .pb-step em        { display: none; }
}
