/* CSS Document */

#calendar-container {
	display: none;
	position: fixed;
	z-index: 9999;
	background-color: white;
	width: 90%;
	margin: 5%;
	height: 76%;
	top: 0px;
	max-width: 1000px;
	overflow-y: auto;
}

.calendar-product-title {
	margin-bottom: 12px;
	font-size: 18px;
	color: #136ca2;
	text-align: center;
}

.calendar-close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #333;
	z-index: 10000;
}
.calendar-close-btn:hover {
	color: #d00;
}

/* ------------------ Kalender Struktur ------------------ */
.calendar-wrapper {
	margin: auto;
	text-align: center;
}

.calendar-wrapper h1 {
	font-size: 1.5em;
	margin-bottom: 10px;
}

.controls {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 10px;
	gap: 5px;
}

#prev-month, #next-month {
	padding: 10px 20px;
	font-size: 1.2em;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
}
#prev-month:hover, #next-month:hover {
	background-color: #45a049;
}
#prev-month:active, #next-month:active {
	background-color: #3e8e41;
}

#month-select, #year-select {
	font-size: 1.1em;
	padding: 10px;
}

/* ------------------ Kalender Grid ------------------ */
.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
	margin: 20px;
	font-size: 0.9em;
}

/* ------------------ Wochentage ------------------ */
.weekday {
	font-weight: bold;
	color: #666;
	text-align: center;
}

/* ------------------ Kalendertage ------------------ */
#calendar .day {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 40px;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s;
	font-weight: bold;
}

#calendar .day.marked {
	background-color: #4CAF50;
	color: white;
}
#calendar .day:hover {
	background-color: #e0e0e0;
}

/* Zustände */
.day.blocked {
	background-color: #ff6b6b;
	color: white;
}
.day.block-deadline {
	background-color: #ff6b6b;
	cursor: not-allowed;
	opacity: 0.6;
}
.day.limited {
	background: repeating-linear-gradient(
		45deg,
		#f8c3d9,
		#f8c3d9 5px,
		#fff 5px,
		#fff 10px
	);
}
.day.low-availability {
	background-color: #ffd54f;
}

/* ------------------ Zeiten ------------------ */
.times-wrapper {
	margin: 20px auto 0;
	text-align: center;
}

.selected-info {
	font-size: 1.1em;
	font-weight: bold;
	margin-bottom: 10px;
}

.times-list ul {
	list-style-type: none;
	padding: 0;
}

.times-list li {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 10px 15px;
	margin-bottom: 5px;
	border-bottom: 1px solid #ddd;
	gap: 10px;
}
.times-list li span:first-child {
	font-weight: bold;
	margin-right: 10px;
}

.time-option {
	cursor: pointer;
	padding: 5px;
	border-radius: 4px;
}
.time-option:hover {
	background-color: #e0e0e0;
}
.selected-time {
	background-color: #4CAF50;
	color: white;
}

/* ------------------ Zeitstati ------------------ */
.time-entry {
	padding: 4px 6px;
	margin: 2px 0;
	border-radius: 4px;
	text-align: center;
	font-size: 12px;
	display: block;
}
.available-time {
	border: 1px solid green;
	color: green;
}
.blocked-time {
	border: 1px solid red;
	color: red;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* ------------------ Zusatzinfos ------------------ */
.block-reason {
	font-size: 10px;
	color: #fff;
	background-color: #d9534f;
	padding: 2px 4px;
	margin-top: 4px;
	border-radius: 3px;
	text-align: center;
}

.non-clickable {
	pointer-events: none;
	opacity: 0.5;
}

/* ------------------ Verfügbarkeit ------------------ */
.availability-left-input {
	width: 100px;
	padding: 5px;
	margin: 0 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	transition: border-color 0.3s;
}
.availability-left-input:focus {
	border-color: #4CAF50;
	outline: none;
}
.availability-label {
	margin: 0 5px;
	font-size: 0.9em;
	color: #666;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 4px;
	transition: background-color 0.3s;
}
.availability-label:hover {
	background-color: #f0f0f0;
}
.selected .availability-label {
	background-color: red;
	color: white;
}

/* ------------------ Tooltip ------------------ */
.info-icon {
	font-weight: bold;
	color: #4CAF50;
	margin-left: 5px;
	cursor: pointer;
	position: relative;
}
.tooltip {
	display: none;
	position: absolute;
	background-color: #333;
	color: white;
	font-size: 0.8em;
	padding: 5px;
	border-radius: 4px;
	top: 100%;
	left: 0;
	white-space: nowrap;
}
.info-icon:hover .tooltip {
	display: block;
}




.event-day {
	background-color: transparent;
	cursor: pointer;
}

.fully-blocked-day {
	background-color: #ff6b6b;
	opacity: 0.6;
	pointer-events: none;
}

.block-deadline {
	background-color: #ff6b6b;
	opacity: 0.6;
	pointer-events: none;
}

.limited {
	background-color: #ff9800;
}

.low-availability {
	background-color: #fbc02d;
}

.available {
	background-color: #4CAF50;
	color: white;
}

/* Legend Style */
.calendar-legend {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    padding: 9px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid #ccc;
}

/* Farben aus den tatsächlichen Klassen */
.legend-color.fully-blocked {
    background-color: #ff6b6b;
}

.legend-color.block-deadline {
    background-color: #ff6b6b;
}

.legend-color.limited {
    background-color: #ff9800;
}

.legend-color.low-availability {
    background-color: #ffeb3b;
}

.legend-color.available {
    background-color: #4caf50;
}

li.time-option.not-enough {
	background-color: #ffcdd2; /* zartrot */
	color: #b71c1c;
	cursor: not-allowed;
}
.modal-buttons.hidden {
	display: none !important;
}


.group-booking-warning {
	background: #ffe9e9;
	border-left: 4px solid #cc0000;
	padding: 12px;
	border-radius: 4px;
	font-size: 14px;
}

.group-booking-warning p{
	color: #136ca2;
    font-weight: bold;
    text-align: center;
}

.availability-hint-box {
    margin-top: 10px;
    padding: 12px;
    background-color: #f9f9f9;
    border-left: 4px solid #4CAF50;
    font-size: 0.95em;
    line-height: 1.5;
}

.availability-hint-box.is-collapsed {
    display: none;
}


