#calendar {
    max-width: 600px;
    margin: 0px;
    position: relative;
    height: fit-content;
    margin-bottom: 20px;    
}
#day-grid {
    position: relative;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
#weekday-grid {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}
#reservation-grid {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(21, 1fr);
    column-gap: 2px;
    row-gap: 6px;
    pointer-events: none;
}
.day {
    border: 1px solid #ddd;
    padding: 10px;
    position: relative;
    height: 100px;
    overflow: hidden;
    white-space: nowrap; /* Kein automatischer Zeilenumbruch */
    text-overflow: ellipsis; /* Text am Rand abschneiden */
}
.today {
	background-color: lightgrey;
}
.weekday {
    text-align: center;
    font-weight: bold;
}
.reservation-grid-block {
    border: 0px;
    padding-bottom: 11px;
    padding-top: 11px;
    position: relative;
    height: 100px;
    overflow: hidden;
    white-space: nowrap; /* Kein automatischer Zeilenumbruch */
    text-overflow: ellipsis; /* Text am Rand abschneiden */
    pointer-events: none;
}
.day-number {
    position: absolute;
    top: 5px;
    right: 5px;
    font-weight: bold;
}
.reservation {
    background-color: #4682B4;
    color: white;
    text-align: center;
    padding: 4px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10px;
    position: absolute;
    left: 0;
    right: 0;
}
.reservation.highlighted {
box-shadow: 0 0 8px 4px rgba(255, 255, 0, 0.6);
}
/*.reservation {
    margin-top: 5px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.8em;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
*/
.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.nav-button {
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #0056b3;
}

#current-date {
    font-size: 1.2em;
    font-weight: bold;
    white-space: nowrap;
}

.legende {
  font-family: Arial, sans-serif;
}

.legenden-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px; /* Abstand zwischen Items */
}

.farbe {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px; /* Abstand zur Beschreibung */
  border: 1px solid #000; /* Optionale Grenze */
}

.beschreibung {
  font-size: 14px;
}

.selected {
    background-color: lightblue;
}
