/* Plaza-Kalender (Anfrageseite und Backend) */

.cal { --cal-months: 1; user-select: none; -webkit-user-select: none; }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cal-titles {
  flex: 1; display: grid; grid-template-columns: repeat(var(--cal-months), minmax(0, 1fr)); gap: 20px;
  text-align: center; font: 800 16px/1.2 "Montserrat", system-ui, sans-serif;
}
.cal-nav {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; padding: 0 0 3px;
  border: 0; border-radius: 11px; background: #f1f1f3; color: #141417; font: 400 26px/1 system-ui, sans-serif; cursor: pointer;
}
.cal-nav:hover:not(:disabled) { background: #e4e4e7; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-months { display: grid; grid-template-columns: repeat(var(--cal-months), minmax(0, 1fr)); gap: 20px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { padding: 4px 0; text-align: center; font: 700 11.5px/1 system-ui, sans-serif; color: #8a8a93; }

.cal-day {
  position: relative; aspect-ratio: 1 / 1; min-height: 38px; padding: 0;
  border: 0; border-radius: 10px; background: #fff; color: #141417; cursor: pointer;
  box-shadow: inset 0 0 0 1px #e3e3e7; font: 600 15px/1 system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.cal-day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px #141417; }
.cal-day:disabled { background: transparent; box-shadow: none; color: #c4c4ca; cursor: default; }
.cal-day.is-today::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; border-radius: 50%;
  background: #e1121b; transform: translateX(-50%);
}

/* belegt */
.cal-day.is-busy, .cal-day.is-busy:disabled {
  background: repeating-linear-gradient(135deg, #f6d5d7 0 4px, #fdeced 4px 8px);
  color: #a3161d; text-decoration: line-through; box-shadow: none;
}
.cal-day.is-block { background: repeating-linear-gradient(135deg, #dcdce0 0 4px, #efeff1 4px 8px); color: #4a4a52; }
.cal-day.is-reservation { background: #fbd9db; color: #8f0b11; text-decoration: none; }
.cal-day.is-pending { background: #fff; color: #141417; text-decoration: none; box-shadow: inset 0 0 0 2px #e8a600; }
.cal-day.is-vacation, .cal-day.is-vacation:disabled { background: repeating-linear-gradient(135deg, #d6e2f3 0 4px, #edf2fa 4px 8px); color: #2c4a73; text-decoration: none; }

/* Auswahl */
.cal-day.is-range { background: #2a2a30; color: #fff; box-shadow: none; text-decoration: none; }
.cal-day.is-start, .cal-day.is-end { background: #e1121b; color: #fff; box-shadow: none; text-decoration: none; }
.cal-day.is-conflict { background: #fff; color: #b90d15; box-shadow: inset 0 0 0 3px #e1121b; text-decoration: line-through; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: #5f5f68; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.cal-legend .lg-free { background: #fff; box-shadow: inset 0 0 0 1px #d4d4d8; }
.cal-legend .lg-busy { background: repeating-linear-gradient(135deg, #f6d5d7 0 3px, #fdeced 3px 6px); }
.cal-legend .lg-sel { background: #e1121b; }
.cal-legend .lg-reservation { background: #fbd9db; }
.cal-legend .lg-block { background: repeating-linear-gradient(135deg, #dcdce0 0 3px, #efeff1 3px 6px); }
.cal-legend .lg-pending { background: #fff; box-shadow: inset 0 0 0 2px #e8a600; }
.cal-legend .lg-vacation { background: repeating-linear-gradient(135deg, #d6e2f3 0 3px, #edf2fa 3px 6px); }

@media (min-width: 640px) {
  .cal-day { font-size: 15.5px; border-radius: 11px; }
}
