/* Buchungsbaustein (includes/com_platzbuchung.php): Hinweise, Legende, Tagesnavigation, Raster, Dialog-Teile.
   Webseite und App laden diese Datei; App-Abweichungen gehoeren in eine eigene App-Ergaenzung. */

.tsv-res-info {
	background: linear-gradient(135deg, rgba(24,141,203,0.06), rgba(37,92,182,0.06));
	border-left: 3px solid #188dcb;
	border-radius: 10px;
	padding: 16px 20px;
	font-size: 13px;
	color: #1a2a4a;
	line-height: 1.6;
	margin-bottom: 14px;
}
.tsv-res-warning {
	background: linear-gradient(135deg, rgba(203,24,24,0.08), rgba(182,37,37,0.08));
	border-left: 3px solid #cb1818;
	border-radius: 10px;
	padding: 16px 20px;
	font-size: 13px;
	color: #4a1a1a;
	line-height: 1.6;
	margin-bottom: 14px;
}

/* Legende */
.tsv-res-legend {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 12px;
	color: #555;
	margin-bottom: 14px;
}
.tsv-res-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px 5px 6px;
	border-radius: 8px;
	font-weight: 600;
}
.tsv-res-legend-dot {
	min-width: 26px;
	padding: 0 5px;
	gap: 5px;
	box-sizing: border-box;
	height: 26px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	flex-shrink: 0;
}
.pb-l-frei { background: #e8f5e9; color: #2e7d32; }
.pb-l-frei .tsv-res-legend-dot { background: #43a047; color: #fff; }
.pb-l-gebucht { background: #e3f2fd; color: #1565c0; }
.pb-l-gebucht .tsv-res-legend-dot { background: #1565c0; color: #fff; }
.pb-l-eigene { background: #fff3e0; color: #e65100; }
.pb-l-eigene .tsv-res-legend-dot { background: #ef6c00; color: #fff; }
.pb-l-belegt { background: #ffeef0; color: #c62828; }
.pb-l-belegt .tsv-res-legend-dot { background: #c62828; color: #fff; }
.pb-l-grau { background: #f5f5f5; color: #888; }
.pb-l-grau .tsv-res-legend-dot { background: #ccc; color: #fff; }
.pb-l-kosten { background: #fffde7; color: #8d6e00; }
.pb-l-kosten .tsv-res-legend-dot { background: #f9a825; color: #fff; font-weight: 700; }

/* Tagesnavigation */
.tsv-res-daynav {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}
.tsv-res-daynav.pb-viele-tage {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}
.tsv-res-daybtn {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 14px 10px;
	border: 2px solid #d0d8e0 !important;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: all 0.25s;
	outline: none;
	font-family: inherit;
	box-sizing: border-box;
	box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.pb-viele-tage .tsv-res-daybtn {
	flex: 0 0 auto;
	min-width: 92px;
}
.tsv-res-daybtn:hover {
	border-color: #188dcb !important;
	box-shadow: 0 2px 8px rgba(37,92,182,0.12);
}
.tsv-res-daybtn.active {
	background: #255cb6 !important;
	border-color: #255cb6 !important;
	box-shadow: 0 4px 14px rgba(26,42,74,0.3);
}
.tsv-res-daybtn-label {
	font-size: 16px;
	font-weight: 700;
	line-height: 2;
	color: #1a2a4a;
	white-space: nowrap;
}
.tsv-res-daybtn-date {
	font-size: 14px;
	color: #8a95a3;
	margin-top: 2px;
	line-height: 2;
}
.tsv-res-daybtn.active .tsv-res-daybtn-label { color: #ffea00 !important; }
.tsv-res-daybtn.active .tsv-res-daybtn-date { color: rgba(255,234,0,0.7) !important; }

/* Raster */
.tsv-res-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	overflow: hidden;
	margin-bottom: 20px;
	padding: 12px;
}
.pb-tabelle {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate !important;
	border-spacing: 5px !important;
	font-size: 13px;
}
.pb-tabelle th:first-child { width: 110px; }
.pb-tabelle th {
	background: #255cb6;
	color: #ffffff;
	font-weight: 700;
	padding: 14px 8px;
	text-align: center;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.pb-euro {
	display: inline-block;
	background: #f9a825;
	color: #fff;
	border-radius: 4px;
	padding: 0 5px;
	margin-left: 2px;
	font-size: 11px;
	line-height: 16px;
}
.pb-tabelle td {
	padding: 0;
	text-align: center;
	vertical-align: middle;
	border-radius: 10px;
	height: 48px;
	min-width: 80px;
	background: #f5f5f5;
}
.pb-tabelle td.pb-zeit {
	font-weight: 700;
	color: #255cb6;
	white-space: nowrap;
	background: #eef2fc;
	font-size: 11px;
	min-width: 90px;
	padding: 8px 6px;
	border-radius: 0;
}
.pb-knopf,
.pb-inhalt {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 48px;
	border: 0;
	padding: 2px;
	border-radius: 10px;
	background: transparent;
	font: inherit;
	color: inherit !important;
}
.pb-knopf {
	cursor: pointer;
	border: 0 !important;
	box-shadow: none !important;
	outline: none;
	text-transform: inherit !important;
	transition: background 0.2s, color 0.2s, transform 0.15s;
}
.pb-knopf:focus-visible { outline: 2px solid #188dcb; outline-offset: 1px; }

.pb-tabelle td.pb-frei { background: #e8f5e9; color: #2e7d32; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.pb-tabelle td.pb-frei .pb-knopf:hover { background: #43a047; color: #fff; transform: scale(1.04); }
.pb-tabelle td.pb-kosten { background: #fffde7; color: #6d5600; text-transform: none; letter-spacing: 0; }
.pb-tabelle td.pb-kosten .pb-knopf:hover { background: #f9a825; color: #fff; }
.pb-tabelle td.pb-kosten .pb-knopf { text-transform: none !important; }
.pb-knopf .fa + .pb-preis { margin-top: 2px; }
.pb-preis { font-size: 11px; font-weight: 600; line-height: 1.3; }
.pb-preis-kurz { display: none; font-weight: 700; }
.pb-tabelle td.pb-gebucht { background: #e3f2fd; color: #1565c0; font-size: 18px; }
.pb-tabelle td.pb-gebucht .pb-knopf:hover { background: #bbdefb; }
.pb-tabelle td.pb-eigene { background: #fff3e0; color: #ef6c00; }
.pb-tabelle td.pb-eigene .pb-knopf:hover { background: #ffe0b2; }
.pb-tabelle td.pb-belegt { background: #ffeef0; color: #c62828; font-size: 18px; }
.pb-tabelle td.pb-belegt .pb-knopf:hover { background: #ffcdd2; }
.pb-tabelle td.pb-gesperrt,
.pb-tabelle td.pb-noch-nicht,
.pb-tabelle td.pb-kein-preis { background: #f5f5f5; color: #bbb; font-size: 16px; }
.pb-tabelle td.pb-geschlossen { background: #ececec; }

/* Vergangene Zeitslots am heutigen Tag */
.pb-tabelle tr.pb-vergangen td {
	opacity: 0.45;
	filter: grayscale(75%);
	background: #e8e8e8 !important;
}
.pb-tabelle tr.pb-vergangen td.pb-zeit {
	background: #dcdcdc !important;
	color: #888 !important;
}

/* Dialog-Teile */
.pb-kopf { font-weight: 700; color: #255cb6; }
.pb-preiszeile { font-weight: 700; color: #1a2a4a; margin: 10px 0; }
.pb-fest { font-weight: 600; margin: 0 0 10px 0; }
.pb-haken { display: block; font-weight: normal; margin: 6px 0 12px 0; }
.pb-kostenblock { background: #fffde7; border-left: 3px solid #f9a825; border-radius: 8px; padding: 8px 12px; margin: 10px 0; }
.pb-fussnote { font-size: 0.8em; margin-top: 10px; }

@media only screen and (max-width: 767px) {
	.tsv-res-card { overflow-x: hidden; padding: 6px; }
	.pb-tabelle { border-spacing: 3px !important; }
	.pb-tabelle th:first-child { width: 17%; }
	.pb-tabelle td { min-width: 0; height: 38px; font-size: 10px; }
	.pb-tabelle th { font-size: 9px; padding: 8px 2px; letter-spacing: 0; word-wrap: break-word; }
	.pb-tabelle td.pb-zeit { font-size: 8px !important; min-width: 0; padding: 4px 1px; white-space: normal; }
	.pb-knopf, .pb-inhalt { min-height: 38px; }
	.pb-text, .pb-preis { display: none; }
	.pb-preis-kurz { display: inline; font-size: 13px; }
	.tsv-res-legend { gap: 4px; }
	.tsv-res-legend-item { padding: 3px 6px 3px 3px; font-size: 10px; gap: 4px; }
	.tsv-res-legend-dot { min-width: 20px; padding: 0 3px; gap: 3px; height: 20px; font-size: 11px; }
	.tsv-res-daybtn { padding: 10px 4px; }
	.tsv-res-daybtn-label { font-size: 13px; }
	.tsv-res-daybtn-date { font-size: 12px; }
	.pb-viele-tage .tsv-res-daybtn { min-width: 76px; }
}
