/**
 * tb-wizard.css — Styles für den Buchungs-Wizard auf der Produktseite
 * (turkboss-booking, Spec §5). Passend zu tb-calendar.css:
 * CI #CC0000, schlichte Chips, Fußleiste mit Zusammenfassung.
 */

/* ---------------- Container ---------------- */

.tb-wizard {
	margin: 16px 0 24px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	background: #fff;
	color: #1f2328;
	font-size: 15px;
	line-height: 1.4;
	overflow: hidden;
}

.tb-wiz-schritt {
	padding: 14px 16px;
	border-bottom: 1px solid #ececec;
}

.tb-wiz-titel {
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #5f6368;
	margin-bottom: 10px;
}

/* ---------------- Schritt 1: Zeitraum-Button ---------------- */

.tb-wiz-zeitraum-btn {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	border: 2px solid #CC0000;
	border-radius: 8px;
	background: #fff;
	color: #CC0000;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	padding: 12px 16px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.tb-wiz-zeitraum-btn:hover {
	background: #CC0000;
	color: #fff;
}

/* Zeitraum gewählt: dezenter, zeigt die Daten an */
.tb-wiz-zeitraum-btn.tb-wiz-zeitraum-gesetzt {
	border-color: #1a7f37;
	color: #1a7f37;
	background: #e7f6ec;
}

.tb-wiz-zeitraum-btn.tb-wiz-zeitraum-gesetzt:hover {
	background: #d8f0e0;
	color: #14602a;
}

/* ---------------- Schritt 2: Slot-Chips ---------------- */

.tb-wiz-slot-gruppe {
	margin-bottom: 12px;
}

.tb-wiz-slot-gruppe:last-child {
	margin-bottom: 0;
}

.tb-wiz-label {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 6px;
}

.tb-wiz-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tb-chip {
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
	background: #fff;
	color: #1f2328;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 14px;
	cursor: pointer;
	transition: border-color 0.1s ease, background-color 0.1s ease;
}

.tb-chip:hover {
	border-color: #CC0000;
	color: #CC0000;
}

.tb-chip.tb-chip-aktiv {
	background: #CC0000;
	border-color: #CC0000;
	color: #fff;
}

.tb-wiz-laden,
.tb-wiz-leer {
	font-size: 14px;
	color: #8b9096;
}

/* ---------------- Schritt 3 (optional): Anbaugeräte ---------------- */

.tb-wiz-anbau {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 8px;
	font-weight: 600;
	cursor: pointer;
}

.tb-wiz-anbau:last-child {
	margin-bottom: 0;
}

.tb-wiz-anbau input[type="checkbox"] {
	accent-color: #CC0000;
	margin: 0;
	flex: 0 0 auto;
	transform: translateY(1px);
}

.tb-wiz-anbau-name {
	flex: 1 1 auto;
}

.tb-wiz-anbau-preis {
	font-weight: 400;
	font-style: normal;
	color: #1a7f37;
	white-space: nowrap;
}

/* Im Zeitraum nicht verfügbar: ausgegraut, nicht wählbar */
.tb-wiz-anbau.tb-wiz-anbau-inaktiv {
	color: #9a9a9a;
	cursor: not-allowed;
}

.tb-wiz-anbau.tb-wiz-anbau-inaktiv .tb-wiz-anbau-preis {
	color: #9a9a9a;
}

/* ---------------- Schritt Übergabe: Transport ---------------- */

.tb-wiz-radio {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 8px;
	font-weight: 600;
	cursor: pointer;
}

.tb-wiz-radio input[type="radio"] {
	accent-color: #CC0000;
	margin: 0;
	flex: 0 0 auto;
	transform: translateY(1px);
}

.tb-wiz-hinweis {
	font-weight: 400;
	font-style: normal;
	color: #1a7f37;
}

.tb-wiz-lieferung {
	margin: 4px 0 0 26px;
}

.tb-wiz-ziel {
	width: 100%;
	max-width: 340px;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	background: #fff;
	color: #1f2328;
	font: inherit;
	font-size: 15px;
	padding: 8px 12px;
}

.tb-wiz-ziel:focus {
	outline: none;
	border-color: #CC0000;
	box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.15);
}

.tb-wiz-transport-info {
	margin-top: 6px;
	font-size: 14px;
	color: #1a7f37;
	min-height: 1.4em;
}

.tb-wiz-transport-info.tb-wiz-warnung {
	color: #c0392b;
}

/* ---------------- Fehlermeldungen ---------------- */

.tb-wiz-fehler {
	margin: 12px 16px 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fdeaea;
	color: #c0392b;
	font-size: 14px;
}

.tb-wiz-fehler[hidden] {
	display: none;
}

/* ---------------- Fußleiste ---------------- */

.tb-wiz-fuss {
	padding: 14px 16px;
	background: #fafafa;
	border-top: 1px solid #ececec;
}

.tb-wiz-zusammenfassung {
	margin-bottom: 12px;
}

.tb-wiz-zeile {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 14px;
}

.tb-wiz-zeile.tb-wiz-gesamt {
	border-top: 1px solid #e3e3e3;
	margin-top: 6px;
	padding-top: 8px;
	font-weight: 700;
	font-size: 16px;
}

.tb-wiz-kaufen {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	border: 0;
	border-radius: 8px;
	background: #CC0000;
	color: #fff;
	font: inherit;
	font-weight: 700;
	font-size: 16px;
	padding: 12px 24px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.tb-wiz-kaufen:hover:not(:disabled) {
	background: #a80000;
}

.tb-wiz-kaufen:disabled {
	background: #dcdcdc;
	color: #9a9a9a;
	cursor: not-allowed;
}

/* ---------------- Verstecktes Formular ---------------- */

.tb-wiz-form[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Infoblock neben der Galerie (füllt die Summary vor der Buchung)     */
/* ------------------------------------------------------------------ */
.tb-wiz-info {
	margin-top: 18px;
	padding: 18px 20px;
	background: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
}
.tb-wiz-info-text {
	margin: 0 0 12px;
	color: #333;
	line-height: 1.6;
}
.tb-wiz-info-liste {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}
.tb-wiz-info-liste li {
	position: relative;
	padding: 4px 0 4px 30px;
	line-height: 1.5;
	color: #1a1a1a;
}
.tb-wiz-info-liste li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #e7f6ec;
	color: #2e9e4f;
	font-weight: 700;
	font-size: 13px;
	text-align: center;
	line-height: 20px;
}
.tb-wiz-info-kontakt {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #e5e5e5;
	color: #555;
	font-size: 14px;
}
.tb-wiz-info-kontakt a {
	color: #CC0000;
	font-weight: 700;
	text-decoration: none;
}

/* Buchungsmodus: Wizard tritt in den Vordergrund, Infoblock ist per
   [hidden] ausgeblendet (tb-wizard.js setzt .tb-wiz-aktiv + hidden). */
.tb-wizard.tb-wiz-aktiv {
	border: 2px solid #CC0000;
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.10);
	padding: 6px 10px 10px;
	background: #fff;
}

/* ------------------------------------------------------------------ */
/* Linkfarbe auf Miet-Produktseiten: Theme-Pink -> CI-Rot              */
/* ------------------------------------------------------------------ */
.single-product .woocommerce-Tabs-panel a,
.single-product .woocommerce-product-details__short-description a,
.single-product .summary a:not(.tb-wiz-kaufen):not(.tb-wiz-zeitraum-btn) {
	color: #CC0000;
	text-decoration: none;
}
.single-product .woocommerce-Tabs-panel a:hover,
.single-product .woocommerce-product-details__short-description a:hover,
.single-product .summary a:not(.tb-wiz-kaufen):not(.tb-wiz-zeitraum-btn):hover {
	color: #8f0000;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Adblocker-Hinweis (erscheint nur, wenn Requests wirklich blockiert) */
/* ------------------------------------------------------------------ */
.tb-wiz-blocker {
	background: #fff3f3;
	border: 1px solid #CC0000;
	border-left: 4px solid #CC0000;
	border-radius: 6px;
	padding: 12px 14px;
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
	color: #8f0000;
}
.tb-wiz-blocker strong { color: #CC0000; }
