/* ----- Grundlayout mit violettem Hintergrund ----- */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #4B6AE7 0%, #665AEF 100%);
  color: #333;
  height: 100%;
}

.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

/* ----- zentrales Panel (max. Höhe 600px) ----- */
.booking-wrapper {
  background: #fff;
  border-radius: 12px;
  display: flex;
  overflow-y: auto;
  /* Höhe bleibt auf 600px beschränkt, wie gewünscht: */
  max-height: 600px;
  /* Breite: Füllt bis zu 900px aus, kann aber kleiner werden */
  width: 100%;
  max-width: 900px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ----- Linke Spalte (Logo + Info) ----- */
.booking-sidebar {
  width: 280px;
  background: #f7f8fc;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.logo-container {
  text-align: left;
  margin-bottom: 20px;
}

.logo-container img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* Titel in der Sidebar größer machen */
.profile-info h2 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #222;
  font-weight: 600;
}

.duration {
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.description {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
}

/* ----- Mittlere Spalte (Kalender) ----- */
.calendar-area {
  flex: 1;
  padding: 24px;
  border-right: 1px solid #ececec;
  box-sizing: border-box;
}

.heading {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.month-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
}

.month-year {
  font-weight: 600;
  color: #333;
}

/* Monatsübersicht */
.calendar-month {
  display: flex;
  flex-direction: column;
  border-width: 1px;
  border-style: solid;
  border-color: rgb(204, 204, 204);
  border-image: initial;
  border-radius: 4px;
  padding: 8px;
  flex: 1 1 0%;
  gap: 8px;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-bottom: 4px;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 8px;
  text-align: center;
}

.days span {
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
}

.days span:hover {
  background: #f0f0f0;
}

.days .disabled {
  color: #ccc;
  cursor: not-allowed;
  background: transparent;
}

.days .selected {
  background: #4B6AE7;
  color: #fff;
}

/* ----- Rechte Spalte (Zeitslots) ----- */
.times-area {
  width: 280px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.selected-date {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #222;
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.time-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f8fc;
  padding: 8px 12px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.time-slot:hover {
  transform: translateX(5px);
}

.time-slot button {
  background: #4B6AE7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
}

.time-text {
  font-size: 14px;
  color: #333;
}

/* ----- Buchungsdetails (Formular) ----- */
.booking-details {
  flex-direction: column;
  gap: 10px;
  display: none; /* per JS auf display: flex; umgeschaltet */
}

.booking-details label {
  font-size: 14px;
  margin-bottom: 4px;
  color: #333;
}

.booking-details input {
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

#confirmBtn {
  background: #4B6AE7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

#confirmBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ----- RESPONSIVE: Breite < 600px -> Hochkant Layout ----- */
@media (max-width: 800px) {
  .page-container {
    padding: 10px;
  }
  .booking-wrapper {
    flex-direction: column;
    /* Für schmale Viewports: Keine feste max-height,
       falls Du das Scrolling anders handhaben willst. 
       Wenn Du aber weiterhin max-height 600px möchtest,
       kannst Du es hier belassen. */
    max-height: none;
    max-width: 500px;
    height: auto;
  }
  .booking-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ececec;
  }
  .calendar-area {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ececec;
  }
  .times-area {
    width: 100%;
  }
}
