/* ==========================================================================
   Online-Terminbuchung (buchung.php, booking-cancel.php)
   Nutzt die Farb-/Schrift-Tokens aus style.css
   ========================================================================== */

.booking-section {
  padding: 60px 0 90px;
  background: var(--color-cream);
}

.booking-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

/* ---------- Wizard layout (sidebar + content) ---------- */
.booking-wizard {
  display: flex;
  align-items: stretch;
}

.wizard-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--color-dark);
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wizard-step-item {
  border-radius: 12px;
  padding: 12px 14px;
  transition: background 0.2s ease;
}
.wizard-step-item.is-done { background: rgba(255,255,255,0.08); }

.wizard-step-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.wizard-step-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.65);
  background: transparent;
  transition: all 0.2s ease;
}
.wizard-step-badge svg { width: 15px; height: 15px; }

.wizard-step-item.is-active .wizard-step-badge {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.14);
}

.wizard-step-item.is-done .wizard-step-badge {
  background: var(--color-gold, #a9814f);
  border-color: var(--color-gold, #a9814f);
  color: #fff;
}

.wizard-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 3px;
  min-width: 0;
}

.wizard-step-title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.wizard-step-item.is-active .wizard-step-title,
.wizard-step-item.is-done .wizard-step-title { color: #fff; }

.wizard-step-summary {
  font-size: 12.5px;
  color: rgba(255,255,255,0.78);
  display: none;
  line-height: 1.4;
}
.wizard-step-item.is-done .wizard-step-summary { display: block; }

.wizard-content {
  flex: 1;
  min-width: 0;
  padding: 36px 40px;
}

.wizard-panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.wizard-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-dark);
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}
.wizard-back:hover { border-color: var(--color-dark); }
.wizard-back svg { width: 16px; height: 16px; }

.wizard-panel-header h2 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 500;
  color: var(--color-dark);
  margin: 0;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.wizard-nav .btn { min-width: 130px; }
.wizard-nav .btn:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 820px) {
  .booking-card { max-width: 540px; }
  .booking-wizard { flex-direction: column; }
  .wizard-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 18px 16px;
    gap: 6px;
  }
  .wizard-step-item { flex: 1 1 130px; padding: 8px 8px; }
  .wizard-step-summary { font-size: 11.5px; }
  .wizard-content { padding: 26px 22px; }
}

@media (max-width: 480px) {
  .wizard-step-title { font-size: 12.5px; }
  .wizard-step-badge { width: 26px; height: 26px; font-size: 11px; }
}

/* ---------- Step 4: thank you ---------- */
.booking-thankyou {
  text-align: center;
  padding: 20px 10px 10px;
}

.booking-thankyou-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--color-green);
}
.booking-thankyou-icon svg { width: 100%; height: 100%; }

.booking-thankyou h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.booking-thankyou p {
  color: var(--color-text);
  font-size: 15px;
  margin-bottom: 10px;
}

.booking-thankyou-hint {
  color: var(--color-text-muted);
  font-size: 13.5px;
  max-width: 48ch;
  margin: 0 auto 26px;
}

.booking-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.booking-pill:hover:not(:disabled) {
  border-color: var(--color-dark);
}

.booking-pill.is-active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
}

.booking-pill.is-full,
.booking-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-full-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.booking-time-empty {
  color: var(--color-text-muted);
  font-size: 14.5px;
}

.booking-empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.booking-empty-state a { color: var(--color-green); font-weight: 600; text-decoration: underline; }

.booking-manage-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-muted);
}
.booking-manage-link a { color: var(--color-green); font-weight: 600; text-decoration: underline; }

.booking-cancel-result,
.booking-cancel-details {
  text-align: center;
  padding: 40px;
}

.booking-cancel-result h2,
.booking-cancel-details h2 {
  font-size: 22px;
  margin-bottom: 14px;
}

.booking-detail-row {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.booking-fee-warning {
  background: #fbeae7;
  color: #a93b2c;
  border: 1px solid #f3cec6;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  margin: 18px 0;
  text-align: left;
}

.booking-btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid #e3b3ab;
  background: #fff;
  color: #b4392c;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
}
.booking-btn-danger:hover { background: #fdf1ef; }

@media (max-width: 640px) {
  .booking-cancel-result,
  .booking-cancel-details { padding: 28px 22px; }
  .booking-pill { padding: 9px 14px; font-size: 13px; }
  .booking-time-row { grid-template-columns: 1fr; }
}
