/* ================================   📅 Kalender-Container   ================================ */

#kalender {
  position: relative;
}

/* ================================   🕒 Timeslot-Overlay (Hover-Fenster)   ================================ */

#slotOverlay {
  position: absolute;
  z-index: 1000;
  background: #222;
  color: white;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  display: none;
  transition: opacity 0.2s ease;
  opacity: 0;
  min-width: 120px;
  width: 176px;
  text-align: center;
  pointer-events: none;
}

#slotOverlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ================================   🔘 Einzelne Timeslots im Overlay   ================================ */

#slotOverlay .slot {
  display: inline-block;
  margin: 4px;
  padding: 6px 10px;
  border: 1px solid #4caf50;
  border-radius: 6px;
  background-color: transparent;
  color: #4caf50;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#slotOverlay .slot:hover {
  background: rgba(76, 175, 80, 0.1);
}

/* Deaktivierte Slots */

.slot.disabled {
  border: 1px solid #aaa;
  color: #aaa;
  cursor: not-allowed;
  pointer-events: none;
  background-color: transparent;
}

/* Belegte Slots (nicht buchbar) */

#slotOverlay .belegt {
  background: #999;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ================================   📱 Responsive Verhalten   ================================ */

@media (max-width: 768px) {
  #slotOverlay {
    left: auto !important;
    right: 10px;
    top: auto !important;
    bottom: 10px;
    max-width: 90vw;
  }
}

/* ================================   📊 Tagesstatus im Kalender   ================================ */

/* Voll frei */

.frei {
  border: 1px solid #4caf50;
  border-radius: 6px;
  padding: 2px;
  color: #4caf50;
}

/* Teilweise belegt */

.teilweise {
  border: 1px solid #ff9800;
  border-radius: 6px;
  padding: 2px;
  color: #ff9800;
}

/* Wenige Slots frei */

.knapp {
  border: 1px solid #f4d636;
  border-radius: 6px;
  padding: 2px;
  color: #f4d636;
}

/* Komplett ausgebucht */

.ausgebucht {
  border: 1px solid #d02020;
  border-radius: 6px;
  padding: 2px;
  color: #d02020;
  pointer-events: none;
  cursor: default;
}

/* Hover-Effekt für freie Tage */

.frei:hover, .teilweise:hover, .knapp:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 🛑 Gesperrte Tage (Feiertage, Urlaub etc.) */

.gesperrt {
  background-color: rgba(55,60,177,0.34);
  border-radius: 6px;
  border: 1px solid #2909eb;
  color: rgba(72,71,71,0.45);
  cursor: not-allowed;
  pointer-events: none;
  padding: 2px;
}

/* ================================   🗓️ Schriftgröße für Wochenende   ================================ */

.col:nth-child(7) h6, .col:nth-child(8) h6 {
  font-size: 12px;
}

