/* ===== Wrapper & Reset ===== */
.bf-booking-wrapper {
  font-family: var(--bf-font, inherit);
  background: var(--bf-bg, #fff);
  border-radius: var(--bf-radius, 8px);
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.bf-booking-wrapper *, .bf-booking-wrapper *::before, .bf-booking-wrapper *::after {
  box-sizing: inherit;
}

/* ===== Step-Indikator ===== */
.bf-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  gap: 0;
}

.bf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.bf-step__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #aaa;
  transition: all 0.3s ease;
}

.bf-step--active .bf-step__dot {
  background: var(--bf-primary, #1a1a2e);
  border-color: var(--bf-primary, #1a1a2e);
  color: #fff;
}

.bf-step--done .bf-step__dot {
  background: var(--bf-accent, #e74c3c);
  border-color: var(--bf-accent, #e74c3c);
  color: #fff;
}

.bf-step__label {
  font-size: 12px;
  color: #aaa;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.bf-step--active .bf-step__label,
.bf-step--done .bf-step__label {
  color: var(--bf-primary, #1a1a2e);
  font-weight: 600;
}

.bf-step__connector {
  flex: 1;
  height: 2px;
  background: #eee;
  margin: 0 8px;
  margin-bottom: 1.2rem;
  transition: background 0.3s ease;
  min-width: 40px;
}

.bf-step__connector--done {
  background: var(--bf-accent, #e74c3c);
}

/* ===== Step Panels & Animationen ===== */
.bf-step-panel {
  animation: bf-slide-in 0.35s ease both;
}

@keyframes bf-slide-in {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.bf-step-panel.bf-slide-out {
  animation: bf-slide-out 0.25s ease both;
}

@keyframes bf-slide-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

/* ===== Titles ===== */
.bf-step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bf-primary, #1a1a2e);
  margin: 0 0 1.5rem;
}

.bf-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #444;
  margin: 1.5rem 0 0.75rem;
}

/* ===== Pakete ===== */
.bf-packages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bf-package-card {
  border: 2px solid #e0e0e0;
  border-radius: var(--bf-radius, 8px);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.bf-package-card:hover {
  border-color: var(--bf-primary, #1a1a2e);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.bf-package-card.bf-selected {
  border-color: var(--bf-accent, #e74c3c);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}

.bf-package-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bf-primary, #1a1a2e);
}

.bf-package-card__meta {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

.bf-package-card__price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--bf-primary, #1a1a2e);
  white-space: nowrap;
}

/* ===== Kalender ===== */
.bf-calendar {
  border: 1px solid #e0e0e0;
  border-radius: var(--bf-radius, 8px);
  overflow: hidden;
}

.bf-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bf-primary, #1a1a2e);
  color: #fff;
}

.bf-cal-nav {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.bf-cal-nav:hover { background: rgba(255,255,255,0.15); }
.bf-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.bf-cal-month-name { font-weight: 600; }

.bf-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0.5rem;
  gap: 4px;
}

.bf-cal-day-name {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #999;
  padding: 4px 0;
  text-transform: uppercase;
}

.bf-cal-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: calc(var(--bf-radius, 8px) / 2);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bf-cal-day:hover:not(.bf-cal-day--disabled):not(.bf-cal-day--unavail) {
  background: var(--bf-primary, #1a1a2e);
  color: #fff;
}

.bf-cal-day--selected {
  background: var(--bf-accent, #e74c3c) !important;
  color: #fff !important;
  font-weight: 700;
}

.bf-cal-day--disabled,
.bf-cal-day--unavail {
  color: #ccc;
  cursor: not-allowed;
}

.bf-cal-day--today {
  border: 1px solid var(--bf-primary, #1a1a2e);
}

.bf-cal-day--available {
  background: #f0faf0;
  color: #1a6e1a;
  font-weight: 600;
  cursor: pointer;
}
.bf-cal-day--available:hover {
  background: var(--bf-primary, #1a6e1a);
  color: #fff;
}

.bf-cal-day--loading {
  background: #f5f5f5;
}

/* ===== Slots ===== */
.bf-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.bf-slot {
  padding: 0.5rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: calc(var(--bf-radius, 8px) / 1.5);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
  background: #fff;
}

.bf-slot:hover {
  border-color: var(--bf-primary, #1a1a2e);
  color: var(--bf-primary, #1a1a2e);
}

.bf-slot.bf-selected {
  background: var(--bf-accent, #e74c3c);
  border-color: var(--bf-accent, #e74c3c);
  color: #fff;
}

.bf-slot--unavail {
  color: #ccc;
  border-color: #eee;
  cursor: not-allowed;
}

/* ===== Formular-Felder ===== */
.bf-field {
  margin-bottom: 1.1rem;
}

.bf-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}

.bf-input, .bf-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: var(--bf-radius, 8px);
  font-size: 1rem;
  font-family: var(--bf-font, inherit);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.bf-input:focus, .bf-select:focus {
  outline: none;
  border-color: var(--bf-primary, #1a1a2e);
  box-shadow: 0 0 0 3px rgba(26,26,46,0.1);
}

.bf-input.bf-invalid {
  border-color: #e74c3c;
}

/* ===== Buttons ===== */
.bf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--bf-radius, 8px);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.bf-btn--primary {
  background: var(--bf-primary, #1a1a2e);
  color: #fff;
}

.bf-btn--primary:hover:not(:disabled) {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.bf-btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bf-btn--secondary {
  background: transparent;
  color: #555;
  border: 1.5px solid #ddd;
}

.bf-btn--secondary:hover {
  border-color: #999;
  color: #333;
}

/* ===== Aktions-Reihe ===== */
.bf-actions {
  display: flex;
  margin-top: 2rem;
  gap: 1rem;
}

.bf-actions--right  { justify-content: flex-end; }
.bf-actions--left   { justify-content: flex-start; }
.bf-actions--between { justify-content: space-between; }

/* ===== Zusammenfassung ===== */
.bf-summary {
  background: #f8f8f8;
  border-radius: var(--bf-radius, 8px);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.bf-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.bf-summary-row:last-child { margin-bottom: 0; }
.bf-summary-label { color: #666; }
.bf-summary-value { font-weight: 600; color: #222; }
.bf-summary-total { font-size: 1.05rem; border-top: 1px solid #e0e0e0; padding-top: 0.5rem; margin-top: 0.5rem; }

/* ===== Zahlungsauswahl ===== */
.bf-payment-option {
  border: 1.5px solid #ddd;
  border-radius: var(--bf-radius, 8px);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color 0.2s;
}

.bf-payment-option:hover { border-color: var(--bf-primary, #1a1a2e); }
.bf-payment-option.bf-selected { border-color: var(--bf-accent, #e74c3c); }

.bf-payment-radio {
  width: 18px; height: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}

.bf-payment-option.bf-selected .bf-payment-radio {
  border-color: var(--bf-accent, #e74c3c);
  background: var(--bf-accent, #e74c3c);
}

.bf-payment-option.bf-selected .bf-payment-radio::after {
  content: '';
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
}

/* ===== Loader ===== */
.bf-loading {
  text-align: center;
  color: #aaa;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.bf-loading::after {
  content: '';
  display: inline-block;
  width: 20px; height: 20px;
  border: 2px solid #ddd;
  border-top-color: var(--bf-primary, #1a1a2e);
  border-radius: 50%;
  animation: bf-spin 0.7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

@keyframes bf-spin {
  to { transform: rotate(360deg); }
}

/* ===== Erfolg ===== */
.bf-success {
  text-align: center;
  padding: 2.5rem 1rem;
}

.bf-success__icon {
  width: 64px; height: 64px;
  background: #00a32a;
  color: #fff;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: bf-pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bf-pop-in {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ===== Fehler ===== */
.bf-error-banner {
  background: #fdf0f0;
  border: 1px solid #e74c3c;
  border-radius: var(--bf-radius, 8px);
  padding: 0.9rem 1.1rem;
  color: #c0392b;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
  .bf-booking-wrapper { padding: 1rem; }
  .bf-step__label { display: none; }
  .bf-step__connector { min-width: 20px; }
  .bf-packages { gap: 0.5rem; }
}

/* ===== Extras ===== */
.bf-extras-section {
  margin-top: 1.5rem;
}

.bf-extra-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid #eee;
  border-radius: var(--bf-radius, 8px);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bf-extra-option:hover {
  border-color: var(--bf-primary, #1a1a2e);
  background: #f8f8f8;
}

.bf-extra-option input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--bf-primary, #1a1a2e);
  cursor: pointer;
}

.bf-extra-option:has(input:checked) {
  border-color: var(--bf-primary, #1a1a2e);
  background: rgba(26, 26, 46, 0.04);
}

.bf-extra-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 15px;
  color: #222;
}

.bf-extra-price {
  font-size: 13px;
  color: var(--bf-primary, #1a1a2e);
  font-weight: 600;
  margin-left: 4px;
}

.bf-extra-price--free {
  color: #666;
  font-weight: normal;
}

.bf-extra-description {
  font-size: 12px;
  color: #888;
  display: block;
  margin-top: 2px;
}

.bf-summary-total {
  border-top: 2px solid var(--bf-primary, #1a1a2e);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

@media (max-width: 520px) {
  .bf-extra-option {
    padding: 0.6rem 0.75rem;
  }
}
