/* Verhindert, dass die horizontal scrollbare Datumsauswahl die Buchungsspalte verbreitert. */
.shell .booking-layout {
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
}

.booking-layout > *,
.booking-panel,
.booking-form,
.booking-panel .slot-picker,
.booking-panel .date-strip,
.booking-panel .time-groups,
.booking-panel .time-grid,
.booking-panel .field-grid,
.booking-panel .field-grid > label {
  min-width: 0;
  max-width: 100%;
}

.booking-panel .date-strip {
  width: 100%;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}

.booking-panel .time-grid {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-panel .field-grid input,
.booking-panel .field-grid textarea,
.booking-panel .primary {
  min-width: 0;
  max-width: 100%;
}

.booking-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.booking-heading h2 {
  margin-bottom: 0;
}

.duration-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #64748b;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.duration-badge svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-links a {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}

.contact-links svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 850px) {
  .shell .booking-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-panel .time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .booking-panel .time-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.calendar-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 24px;
  align-items: start;
}

.calendar-pane,
.calendar-times {
  min-width: 0;
}

.calendar-nav {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.calendar-nav strong {
  text-align: center;
  font-size: 13px;
  text-transform: capitalize;
}

.calendar-nav button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #475569;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.calendar-nav button:disabled {
  opacity: .28;
  cursor: default;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.calendar-weekdays span {
  padding-bottom: 9px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-day,
.calendar-blank {
  aspect-ratio: 1;
  min-width: 0;
}

.calendar-day {
  width: min(100%, 42px);
  justify-self: center;
  border: 0;
  border-radius: 50%;
  color: #c5c8d0;
  background: transparent;
  font-size: 12px;
}

.calendar-day.available {
  color: #334155;
  background: #f1f0f5;
  cursor: pointer;
}

.calendar-day.available:hover {
  color: #455c7a;
  background: #edf1f5;
}

.calendar-day.selected {
  color: #fff;
  background: linear-gradient(135deg, #455c7a, #66809f);
  box-shadow: 0 7px 18px #455c7a47;
}

.timezone-note {
  margin: 17px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eef0f3;
  color: #64748b;
  font-size: 10px;
}

.calendar-times {
  padding-left: 22px;
  border-left: 1px solid #eef0f3;
}

.calendar-times > strong,
.calendar-times > small {
  display: block;
}

.calendar-times > strong {
  min-height: 34px;
  font-size: 12px;
  line-height: 1.45;
}

.calendar-times > small {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
}

.calendar-time-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 13px;
}

@media (max-width: 620px) {
  .calendar-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-times {
    padding: 18px 0 0;
    border-top: 1px solid #eef0f3;
    border-left: 0;
  }

  .calendar-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
