/* ── Variablen ───────────────────────────────────────────────── */
:root {
  --primary:       #D4006B;
  --primary-light: #FFF0F7;
  --primary-dark:  #AA0055;
  --weekend:       #D4006B;
  --text:          #1A1A1A;
  --text-muted:    #666;
  --border:        #E8E8E8;
  --bg:            #F8F8FA;
  --white:         #FFFFFF;
  --radius:        12px;
  --shadow:        0 2px 10px rgba(0,0,0,.07);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::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; border: none; }
ul { list-style: none; }

/* ── Header ──────────────────────────────────────────────────── */
.bk-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  align-items: center;
  gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* Logo */
.bk-logo { display: flex; align-items: center; }
.logo-img {
  height: 64px; width: auto;
  object-fit: contain; display: block;
}

/* Progress Steps */
.bk-steps {
  display: flex; align-items: flex-start; justify-content: center;
}
.bk-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0;
}
.bk-step span {
  width: 34px; height: 34px; border-radius: 50%;
  background: #E0E0E0; color: #999;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 700; transition: background .2s, color .2s;
}
.bk-step em { font-size: .68rem; font-style: normal; color: #aaa; white-space: nowrap; text-align: center; }
.bk-step.active span    { background: var(--primary); color: #fff; }
.bk-step.active em      { color: var(--primary); font-weight: 600; }
.bk-step.done span      { background: var(--primary-dark); color: #fff; }
.bk-line {
  flex: 1; height: 2px; background: #E0E0E0;
  margin-top: 17px; min-width: 16px; max-width: 48px;
}

/* Help */
.bk-help {
  display: flex; align-items: center; gap: 10px; justify-content: flex-end;
}
.help-icon {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--primary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; font-weight: 700; flex-shrink: 0;
}
.help-text { display: flex; flex-direction: column; font-size: .75rem; color: var(--text-muted); }
.help-text strong { font-size: .82rem; color: var(--text); }

/* ── Hauptbereich: 3 Spalten ────────────────────────────────── */
.bk-main {
  display: grid;
  grid-template-columns: 300px 1fr 290px;
  gap: 20px;
  max-width: 1220px;
  margin: 24px auto;
  padding: 0 24px;
  width: 100%;
  align-items: start;
}

.bk-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.panel-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.panel-sub   { font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; }

/* ── Leistungs-Cards ─────────────────────────────────────────── */
#service-list { display: flex; flex-direction: column; gap: 10px; }

.sc-card {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--border); border-radius: 10px;
  padding: 12px; cursor: pointer;
  transition: border-color .15s, background .15s;
  touch-action: manipulation;
}
.sc-card:hover  { border-color: var(--primary); background: var(--primary-light); }
.sc-card.selected { border-color: var(--primary); background: var(--primary-light); }

.sc-img {
  width: 68px; height: 68px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.sc-img-ph {
  width: 68px; height: 68px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #FDE8F0, #F5C0D8);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.sc-body { flex: 1; min-width: 0; }
.sc-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.sc-name { font-weight: 700; font-size: .92rem; }
.sc-badge {
  background: var(--primary); color: #fff;
  font-size: .68rem; font-weight: 700; padding: 2px 8px;
  border-radius: 99px; white-space: nowrap;
}
.sc-desc  { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.sc-price { font-size: .92rem; font-weight: 700; }

.sc-radio {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; font-size: .75rem;
}
.sc-card.selected .sc-radio {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Hinweis-Box */
.bk-hint {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--primary-light); border: 1px solid #F0C0D8;
  border-radius: 10px; padding: 12px 14px; margin-top: 16px;
  font-size: .82rem; color: var(--text);
}
.hint-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-style: normal; flex-shrink: 0;
  margin-top: 1px; font-weight: 700;
}

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

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

.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-day {
  aspect-ratio: 1; border-radius: 50%; border: none; background: none;
  font-size: .88rem; display: flex; align-items: center; justify-content: center;
  transition: all .12s; font-family: inherit;
}
.cal-day:not(.disabled):not(.blank) { cursor: pointer; }
.cal-day:not(.disabled):not(.blank):hover { background: var(--primary-light); color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; font-weight: 700; }
.cal-day.disabled { color: #D0D0D0; cursor: default; }
.cal-day.blank    { background: transparent; cursor: default; }
.cal-day.weekend:not(.disabled):not(.selected) { color: var(--weekend); }

/* ── Zeitslots ───────────────────────────────────────────────── */
.slots-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px;
}
.slot {
  background: var(--white); border: 1.5px solid var(--primary);
  border-radius: 8px; padding: 10px 4px; font-size: .82rem;
  text-align: center; cursor: pointer; font-family: inherit;
  transition: all .12s; color: var(--text);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  touch-action: manipulation;
}
.slot:hover    { background: var(--primary-light); }
.slot.selected { background: var(--primary); color: #fff; font-weight: 700; border-color: var(--primary); }
.slot.unavail  { background: #F5F5F5; border-color: #E0E0E0; color: #BBB; cursor: default; }
.slot.unavail small { font-size: .65rem; color: #BBB; display: block; }

.slots-hint { color: var(--text-muted); font-size: .85rem; grid-column: 1/-1; padding: 12px 0; }

.slots-legend {
  display: flex; gap: 16px; align-items: center; margin-top: 4px;
}
.leg-item { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--text-muted); }
.leg-dot {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
}
.leg-dot.avail { background: var(--white); border: 1.5px solid var(--primary); }
.leg-dot.sel   { background: var(--primary); }
.leg-dot.dis   { background: #F5F5F5; border: 1.5px solid #E0E0E0; }

/* ── Rechte Spalte: Zusammenfassung ─────────────────────────── */
.bk-right { padding: 0; background: none; box-shadow: none; display: flex; flex-direction: column; gap: 16px; }

.bk-summary-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.summary-title { font-size: .95rem; font-weight: 700; }

.summary-empty { font-size: .85rem; color: var(--text-muted); text-align: center; padding: 12px 0; }

.summary-svc {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.sum-svc-img {
  width: 60px; height: 50px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.sum-svc-ph {
  width: 60px; height: 50px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, #FDE8F0, #F5C0D8);
}
.sum-svc-info { flex: 1; }
.sum-svc-name { font-weight: 700; font-size: .88rem; line-height: 1.3; }

.summary-rows { display: flex; flex-direction: column; gap: 8px; }
.sum-row {
  display: flex; align-items: center; gap: 8px; font-size: .84rem;
}
.sum-icon { font-size: 1rem; width: 20px; flex-shrink: 0; }
.sum-label { color: var(--text-muted); }
.sum-val   { font-weight: 600; color: var(--text); }

.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: .88rem; color: var(--text-muted);
}
.summary-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }

.btn-weiter {
  background: var(--primary); color: #fff;
  border-radius: 10px; padding: 13px 20px;
  font-size: .95rem; font-weight: 700;
  width: 100%; text-align: center;
  transition: background .15s; letter-spacing: .01em;
}
.btn-weiter:hover    { background: var(--primary-dark); }
.btn-weiter:disabled { background: #D0D0D0; color: #999; cursor: not-allowed; }

/* Warum-Box */
.bk-why {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.why-title { font-size: .92rem; font-weight: 700; margin-bottom: 12px; }
.why-list  { display: flex; flex-direction: column; gap: 9px; }
.why-item  { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text); }
.why-icon  { font-size: 1rem; width: 22px; flex-shrink: 0; text-align: center; color: var(--primary); }

/* ── View: Formular / Erfolg ─────────────────────────────────── */
.bk-view { flex: 1; display: flex; justify-content: center; padding: 40px 24px; }

.form-wrap {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 36px; width: 100%; max-width: 680px;
}
.form-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }

.form-summary {
  background: var(--primary-light); border: 1px solid #F0C0D8;
  border-radius: 10px; padding: 14px 18px; margin-bottom: 24px;
  display: flex; gap: 20px; flex-wrap: wrap;
}
.form-summary-item { font-size: .88rem; }
.form-summary-item span { color: var(--text-muted); display: block; font-size: .78rem; }
.form-summary-item strong { color: var(--text); }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: .85rem; font-weight: 600; }
.form-group input, .form-group textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
  font-size: .95rem; font-family: inherit; background: var(--white); width: 100%;
  transition: border-color .15s;
}
.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: .86rem; cursor: pointer; }
.form-check input  { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.form-error {
  color: #c00; font-size: .86rem; background: #fff0f0;
  border: 1px solid #fcc; border-radius: 8px; padding: 10px 14px; margin-top: 4px;
}
.form-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: 11px 22px; font-size: .92rem; color: var(--text-muted);
  transition: all .12s;
}
.btn-back:hover { border-color: var(--primary); color: var(--primary); }
.btn-book {
  background: var(--primary); color: #fff; border-radius: 10px;
  padding: 12px 28px; font-size: .95rem; font-weight: 700;
  transition: background .15s;
}
.btn-book:hover    { background: var(--primary-dark); }
.btn-book:disabled { background: #D0D0D0; color: #999; cursor: not-allowed; }

/* Erfolg */
.success-wrap { text-align: center; max-width: 520px; }
.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;
}
.success-wrap h2  { font-size: 1.5rem; margin-bottom: 10px; }
.success-wrap p   { color: var(--text-muted); margin-bottom: 16px; }
.success-details  {
  background: var(--primary-light); border-radius: var(--radius);
  padding: 18px 20px; margin: 20px 0; text-align: left;
  display: flex; flex-direction: column; gap: 8px;
}
.success-contact  { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

/* ── Footer USPs ─────────────────────────────────────────────── */
.bk-footer {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white); border-top: 1px solid var(--border);
  padding: 20px 32px; gap: 16px; margin-top: auto;
}
.footer-usp {
  display: flex; align-items: center; gap: 12px;
}
.footer-usp-icon {
  font-size: 1.4rem; flex-shrink: 0; color: var(--primary);
}
.footer-usp strong { font-size: .82rem; display: block; color: var(--text); }
.footer-usp span   { font-size: .76rem; color: var(--text-muted); }

/* Rechtlicher Footer */
.bk-legal {
  text-align: center; padding: 12px; font-size: .78rem;
  color: var(--text-muted); background: var(--white);
  border-top: 1px solid var(--border);
}

/* ── iOS / Touch global ──────────────────────────────────────── */
* { -webkit-tap-highlight-color: transparent; }
input, textarea, select, button {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
input[type="checkbox"] { -webkit-appearance: checkbox; }

/* ── Utility ─────────────────────────────────────────────────── */
.mob-only  { display: none !important; }
.desk-only { display: block; }

/* ── Desktop Responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .bk-main { grid-template-columns: 280px 1fr 270px; }
}

/* ── Mobile Layout (≤ 768px) ─────────────────────────────────── */
@media (max-width: 768px) {

  /* Utility-Klassen umschalten */
  .mob-only  { display: block !important; }
  .desk-only { display: none !important; }

  /* Seitenstruktur */
  body {
    background: #F0EDF2;
    /* iOS-Scroll-Bounce verhindern, aber weicher Scroll beibehalten */
    overscroll-behavior-y: none;
  }

  /* ── iOS: Input-Zoom verhindern (< 16px löst Auto-Zoom aus) ──── */
  input, textarea, select {
    font-size: 16px !important;
  }

  /* ── iOS: sichere Abstände für Notch + Home Indicator ─────────── */
  .mob-header {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  /* ── Mobile Header ──────────────────────────────────────────── */
  .mob-header {
    display: flex; align-items: center; justify-content: space-between;
    background: #fff; padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
  }
  .mob-back {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--border); background: #fff;
    font-size: 1rem; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .mob-title { font-size: 1rem; font-weight: 700; color: var(--primary); }
  .mob-help-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid var(--border); background: #fff;
    font-size: .9rem; font-weight: 700; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
  }

  /* ── Fortschrittsbalken ────────────────────────────────────── */
  .mob-progress-wrap {
    height: 3px; background: #E8E8E8; width: 100%; position: sticky; top: 65px; z-index: 99;
  }
  .mob-progress-bar {
    height: 100%; background: var(--primary); width: 20%;
    transition: width .3s ease;
  }

  /* ── Schritt-Label ─────────────────────────────────────────── */
  .mob-step-label {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px 4px; background: #F0EDF2;
  }
  .mob-step-num  { font-size: .78rem; font-weight: 700; color: var(--primary); }
  .mob-step-name { font-size: .78rem; color: var(--text-muted); }

  /* ── Booking Main: single column ───────────────────────────── */
  .bk-main {
    display: block; margin: 0; padding: 12px; max-width: none;
  }
  .bk-panel {
    border-radius: 14px; padding: 20px; margin-bottom: 0; box-shadow: var(--shadow);
  }
  .bk-right { display: none !important; }
  .bk-middle { padding: 0; background: none; box-shadow: none; }

  /* Mob-Steps: only active section visible */
  #mob-s1, #mob-s2, #mob-s3 { display: none; }
  #mob-s1.mob-active { display: block; }
  #mob-s2.mob-active { display: block; background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
  #mob-s3.mob-active { display: block; background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }

  /* Mobile Headings & Subs */
  .mob-h1  { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
  .mob-sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 14px; }

  /* ── Service Cards: gleich, aber etwas kompakter ─────────────  */
  .sc-img, .sc-img-ph { width: 58px; height: 58px; }

  /* Preis + Badge in mobile nebeneinander (unten) */
  .sc-price { display: inline; }
  .sc-badge { float: right; }

  /* ── Kalender: kompakter ────────────────────────────────────── */
  .cal-nav { margin-bottom: 10px; }
  .calendar { gap: 2px; }
  .cal-day  { font-size: .82rem; }

  /* Mobile: gewähltes Datum/Zeit Box */
  .mob-selected-box {
    display: flex; align-items: center; gap: 10px;
    background: var(--primary-light); border: 1px solid #F0C0D8;
    border-radius: 10px; padding: 12px 14px; margin-top: 14px;
  }
  .mob-sel-icon { font-size: 1.2rem; flex-shrink: 0; }
  .mob-sel-text { font-size: .9rem; font-weight: 600; color: var(--primary); }

  /* ── Zeitslots: 3 Spalten auf Mobile ───────────────────────── */
  .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot { padding: 12px 4px; font-size: .88rem; border-radius: 10px; }

  /* ── View Form ─────────────────────────────────────────────── */
  .bk-view { padding: 12px; }
  .form-wrap { border-radius: 14px; padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Mobile Buchungs-Überblick-Box */
  .mob-booking-box {
    background: var(--primary-light); border: 1px solid #F0C0D8;
    border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
  }
  .mob-booking-label {
    font-size: .65rem; font-weight: 700; color: var(--primary);
    letter-spacing: .08em; margin-bottom: 10px;
  }
  .mob-booking-box .sum-row {
    font-size: .85rem; gap: 8px; margin-bottom: 6px;
  }
  .mob-booking-price {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #F0C0D8; margin-top: 10px; padding-top: 10px;
    font-size: .84rem; color: var(--text-muted);
  }
  .mob-booking-price strong { font-size: 1.1rem; font-weight: 700; color: var(--primary); }

  /* ── Mobile Erfolg ─────────────────────────────────────────── */
  .success-wrap { max-width: none; padding: 0; }
  .success-icon { width: 64px; height: 64px; font-size: 1.8rem; background: #3DBD6E; }

  .mob-overview {
    background: var(--white); border-radius: 12px;
    overflow: hidden; margin: 16px 0 0;
  }
  .mob-overview-header {
    background: var(--primary); color: #fff;
    padding: 12px 16px; font-size: .88rem; font-weight: 700;
  }
  .mob-overview-details { padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
  .mob-overview-details .sum-row { font-size: .88rem; }

  .mob-action-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .mob-action-btn {
    display: block; width: 100%; text-align: center;
    background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
    padding: 13px 16px; font-size: .9rem; font-family: inherit;
    color: var(--text); text-decoration: none; cursor: pointer;
  }

  /* ── Mobile Bottom Button ──────────────────────────────────── */
  .mob-btn-wrap {
    position: fixed; bottom: 0; left: 0; right: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(transparent, #F0EDF2 30%);
    z-index: 90;
  }
  .mob-btn-action {
    display: block; width: 100%; padding: 16px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 14px;
    font-size: 1rem; font-weight: 700; font-family: inherit;
    transition: background .15s;
    /* iOS: verhindert Button-Flimmern bei Touch */
    -webkit-transform: translateZ(0);
    touch-action: manipulation;
  }
  .mob-btn-action:disabled { background: #D0D0D0; color: #999; cursor: not-allowed; }
  .mob-btn-action:not(:disabled):active { background: var(--primary-dark); }

  /* Platz für Fixed Button + Safe Area */
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

  /* Footer + legal auf mobile */
  .bk-legal { font-size: .72rem; padding: 10px; }
}
