/* =====================================================
   LAYOUT
===================================================== */
.booking-wrapper {
  max-width: 860px;
  margin: auto;
  padding: 20px;
}

.booking-header-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

@media (max-width: 576px) {
  .booking-wrapper {
    padding: 12px;
  }
}


/* =====================================================
   PROGRESS BAR
===================================================== */
.booking-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 0 10px;
}

/* Hintergrundlinie */
.booking-progress .progress-line {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #e9ecef;
  z-index: 0;
}

/* Grundpunkt */
.booking-progress .step {
  width: 14px;
  height: 14px;
  background: #ced4da;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.booking-progress .step.clickable {
  cursor: pointer;
}

.booking-progress .step.is-hidden {
  display: none;
}

/* Abgeschlossen */
.booking-progress .step.completed {
  background: #198754;
}

/* Aktiv */
.booking-progress .step.active {
  background: #198754;
  transform: scale(1.5);
}

/* Label */
.booking-progress .step::after {
  content: attr(data-label);
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #6c757d;
  white-space: nowrap;
  opacity: 1;
  transition: color 0.3s ease;
}

.booking-progress .step.active::after {
  opacity: 1;
  color: #198754;
  font-weight: 600;
}

@media (max-width: 576px) {
  .booking-progress {
    margin-bottom: 30px;
  }

  .booking-progress .step::after {
    font-size: 0.7rem;
    top: 22px;
  }
}


/* =====================================================
   STEPS
===================================================== */
.booking-step {
  display: none;
  animation: fade 0.35s ease;
  margin-top: 6em;
}

.booking-step.active {
  display: block;
}

.booking-step.is-hidden {
  display: none !important;
}

.booking-step h4 {
  margin-bottom: 2em;
}

/* =====================================================
   OPTION GRID / CARDS
===================================================== */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 576px) {
  .option-grid {
    grid-template-columns: 1fr;
  }
}

.option-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  border: 1px solid #e9ecef;
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.option-card:hover {
  transform: translateY(-2px);
  border-color: #198754;
  background: #f6fff9;
  box-shadow: 0 8px 22px rgba(25,135,84,0.15);
}

.option-card.selected {
  border-color: #198754;
  background: #e6f4ea;
}

.employee-card {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  text-align: left;
}

.employee-media {
  width: 72px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 72px;
  border: 1px solid #dee2e6;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.employee-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}

.employee-placeholder {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6c757d;
}

.employee-name {
  line-height: 1.2;
}

.employee-subname {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 400;
}

.employee-placeholder-icon {
  font-size: 1.35rem;
}

@media (max-width: 576px) {
  .employee-media {
    width: 60px;
    height: 80px;
    flex-basis: 60px;
  }
}

.option-any {
  background: #f1f3f5;
  border-style: dashed;
  font-weight: 600;
}
.option-group-title {
  grid-column: 1 / -1;
  margin: 16px 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* =====================================================
   CALENDAR HEADER
===================================================== */
#calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 16px;
}

#calendar-header button {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 6px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}


/* =====================================================
   WEEKDAYS
===================================================== */
.calendar-weekdays,
#calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays div {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
}


/* =====================================================
   CALENDAR DAYS
===================================================== */
.day {
  padding: 12px 6px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.day.available {
  background: #e6f4ea;
  color: #198754;
  cursor: pointer;
}

.day.unavailable {
  background: #f1f3f5;
  color: #adb5bd;
}

.day.past {
  opacity: 0.7;
  cursor: not-allowed;
}

.day.empty {
  visibility: hidden;
}


/* =====================================================
   TIME SLOTS
===================================================== */
.time-slots {
  margin-top: 20px;
}

.time-btn {
  margin: 6px 6px 0 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #198754;
  background: #fff;
  cursor: pointer;
}

.time-btn:hover {
  background: #198754;
  color: #fff;
}

.time-btn.selected {
  background: #198754;
  color: #fff;
}

.slot-empty {
  margin-top: 12px;
  color: #6c757d;
}


/* =====================================================
   SUMMARY
===================================================== */
.summary-box {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.summary-box-modern {
  border: 1px solid #e6ece9;
  background: linear-gradient(180deg, #f8fbf9 0%, #f4f7f6 100%);
}

.summary-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2d26;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  font-weight: 700;
}

.summary-value {
  font-size: 0.95rem;
  color: #1f2d26;
  font-weight: 600;
  line-height: 1.3;
}

.employee-preview {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.employee-media-compact {
  width: 56px;
  height: 72px;
  flex-basis: 56px;
}

.employee-preview-text {
  flex: 1;
  min-width: 0;
}

.employee-preview-title {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
  font-weight: 700;
}

.employee-preview-name {
  margin: 2px 0 0;
  font-size: 0.95rem;
  color: #1f2d26;
  font-weight: 600;
}

.step-nav {
  margin-top: 24px;
}

@media (max-width: 576px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .employee-preview {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .employee-preview button {
    width: 100%;
  }
}

.booking-error {
  margin-top: 14px;
  border: 1px solid #dc3545;
  background: #fff5f5;
  color: #842029;
  border-radius: 10px;
  padding: 10px 12px;
}

.confirmation-box p {
  margin-bottom: 10px;
}

.appointment-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0;
}

.appointment-footer a {
  color: #198754;
  text-decoration: none;
  font-weight: 600;
}

.appointment-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 576px) {
  .appointment-footer {
    gap: 12px;
  }
}

.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.d-none {
  display: none !important;
}



/* =====================================================
   LOADER
===================================================== */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.d-none {
  display: none !important;
}

/* =====================================================
   ANIMATION
===================================================== */
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#calendar-grid .day.selected {
  outline: 2px solid #198754;   /* Bootstrap success */
  background: rgba(25, 135, 84, 0.15);
  font-weight: 600;
  border-radius: 10px; /* falls du runde Kacheln willst */
}
#calendar-grid .day.available {
  cursor: pointer;
}

#calendar-grid .day.available:hover {
  background: rgba(25, 135, 84, 0.08);
}
