/* ==========================================================================
   HOBEGE Booking – Suche, Kasse, Zahlung, Meine Buchung, Bestätigung
   ========================================================================== */

body.hobege-booking-page {
	background: var(--color-dark);
	color: var(--color-white);
}

/* ---------- Grundlayout ---------- */
.hobege-booking {
	padding-bottom: 96px;
	font-size: 17px;
	line-height: 1.55;
}

.hobege-booking .container {
	max-width: 1180px;
	padding: 0 24px;
}

.hobege-booking h1,
.hobege-booking h2,
.hobege-booking h3 {
	color: var(--color-white);
	line-height: 1.2;
}

.hobege-booking a {
	color: var(--color-primary);
}

.hobege-booking a:hover {
	text-decoration: underline;
}

.hobege-booking .btn {
	font-size: 19px;
	padding: 13px 30px;
}

.hobege-booking .btn-primary {
	color: #fff;
}

.hobege-booking .btn-primary:hover {
	text-decoration: none;
	color: var(--color-primary);
}

.hobege-booking :focus-visible {
	outline: 3px solid rgba(71, 186, 178, 0.55);
	outline-offset: 2px;
}

/* ---------- Hero ---------- */
.booking-hero {
	padding: 40px 0 8px;
}

.booking-hero h1 {
	font-size: clamp(30px, 4.4vw, 46px);
	font-weight: 700;
	margin: 22px 0 10px;
}

.booking-lead {
	max-width: 760px;
	font-size: 19px;
	color: rgba(255, 255, 255, 0.82);
}

/* ---------- Fortschritt ---------- */
.booking-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.booking-steps li {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 6px 16px 6px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.6);
	font-size: 15px;
	font-weight: 600;
}

.booking-step-num {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	font-size: 14px;
	font-weight: 700;
}

.booking-steps li.is-current {
	background: rgba(71, 186, 178, 0.18);
	color: #fff;
}

.booking-steps li.is-current .booking-step-num {
	background: var(--color-primary);
}

.booking-steps li.is-done {
	color: var(--color-primary);
}

.booking-steps li.is-done .booking-step-num {
	background: var(--color-primary);
	color: #fff;
}

/* ---------- Formularfelder ---------- */
.booking-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	text-align: left;
}

.booking-field > label,
.booking-field > span {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.78);
}

.booking-field em {
	font-style: normal;
	font-weight: 400;
	opacity: 0.7;
}

.hobege-booking input[type="text"],
.hobege-booking input[type="email"],
.hobege-booking input[type="tel"],
.hobege-booking input[type="date"],
.hobege-booking select {
	width: 100%;
	min-height: 50px;
	padding: 11px 14px;
	background: #202225;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	font: inherit;
	font-size: 17px;
	color-scheme: dark;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.hobege-booking input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.hobege-booking input:focus,
.hobege-booking select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(71, 186, 178, 0.25);
}

.hobege-booking input:user-invalid {
	border-color: #ff7b72;
}

.booking-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.booking-check {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 12px;
	align-items: start;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
}

.booking-check input {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	accent-color: var(--color-primary);
}

/* ---------- Suche ---------- */
.booking-section {
	padding-top: 22px;
}

.booking-search-card {
	background: var(--color-dark-light);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 22px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.booking-search-grid {
	display: grid;
	grid-template-columns: 1.1fr 1.1fr 0.9fr 1.2fr auto;
	gap: 14px;
	align-items: end;
}

.booking-submit {
	min-height: 50px;
	padding: 0 28px !important;
	white-space: nowrap;
}

.booking-subnote {
	margin-top: 14px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
}

/* ---------- Ergebnisse ---------- */
.booking-results {
	padding-top: 34px;
}

.booking-results-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 20px;
	margin-bottom: 20px;
}

.booking-results-head h2 {
	font-size: 28px;
}

.booking-results-head p {
	color: rgba(255, 255, 255, 0.72);
}

.booking-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 26px;
}

.booking-card {
	display: flex;
	flex-direction: column;
	background: var(--color-dark-light);
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.booking-card:hover {
	transform: translateY(-3px);
	border-color: rgba(71, 186, 178, 0.5);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.booking-card-image {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #202225;
}

.booking-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.booking-card:hover .booking-card-image img {
	transform: scale(1.04);
}

.booking-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 20px 22px 22px;
}

.booking-card-loc {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-primary);
}

.booking-card h3 {
	font-size: 23px;
	margin: 0 0 6px;
}

.booking-card-meta {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
}

.booking-card-price {
	margin: 16px 0 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
}

.booking-card-total {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
}

.booking-card-hint {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.65);
}

.booking-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: auto;
}

.booking-card-actions .btn {
	flex: 1 1 auto;
	text-align: center;
}

.booking-link {
	font-size: 15px;
	font-weight: 600;
}

.booking-empty-state {
	max-width: 640px;
	padding: 36px 30px;
	background: var(--color-dark-light);
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: 18px;
}

.booking-empty-state h2 {
	font-size: 24px;
	margin-bottom: 8px;
}

.booking-empty-state p {
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- Kasse / Zahlung / Verwalten ---------- */
.booking-checkout {
	padding-top: 30px;
}

.booking-checkout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
	gap: 32px;
	align-items: start;
}

.booking-narrow > * {
	max-width: 620px;
}

.booking-panel {
	background: var(--color-dark-light);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	padding: 30px;
}

.booking-panel-wide {
	grid-column: 1 / -1;
}

.booking-panel h2 {
	font-size: 26px;
	margin-bottom: 6px;
}

.booking-panel-sub {
	margin-bottom: 22px;
	color: rgba(255, 255, 255, 0.78);
}

.booking-guest-form {
	display: grid;
	gap: 18px;
}

.booking-guest-form h2,
.booking-guest-form .booking-panel-sub {
	margin-bottom: 0;
}

.booking-cta {
	width: 100%;
	min-height: 56px;
	font-size: 21px !important;
}

.booking-secure {
	font-size: 14px;
	text-align: center;
	color: rgba(255, 255, 255, 0.68);
}

#hobege-paypal-buttons {
	margin: 8px 0 16px;
	min-height: 60px;
	padding: 18px;
	border-radius: 12px;
	background: #fff;
}

#hobege-paypal-buttons:empty {
	display: grid;
	place-items: center;
	color: #6b7280;
	font-size: 15px;
}

#hobege-paypal-buttons:empty::before {
	content: "Zahlungsarten werden geladen …";
}

#hobege-paypal-buttons[hidden] {
	display: none;
}

/* Zusammenfassung */
.booking-summary {
	position: sticky;
	top: 96px;
	overflow: hidden;
	background: var(--color-dark-light);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
}

.booking-summary > img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.booking-summary-body {
	padding: 22px 24px 24px;
}

.booking-summary h2 {
	font-size: 24px;
	margin: 0 0 8px;
}

.booking-ref {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.75);
}

.booking-facts,
.booking-prices {
	margin: 18px 0 0;
}

.booking-facts > div,
.booking-prices > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.09);
	font-size: 16px;
}

.booking-facts dt,
.booking-prices dt {
	color: rgba(255, 255, 255, 0.72);
}

.booking-facts dd,
.booking-prices dd {
	margin: 0;
	text-align: right;
	font-weight: 600;
}

.booking-prices > .is-total {
	border-bottom: 0;
	padding-top: 14px;
	font-size: 20px;
}

.booking-prices > .is-total dt {
	color: #fff;
	font-weight: 700;
}

.booking-pay-note {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(71, 186, 178, 0.14);
	font-size: 16px;
}

.booking-panel > .booking-prices {
	margin-bottom: 20px;
}

/* Status-Badge */
.booking-status-badge {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.booking-status-badge.is-paid {
	background: rgba(71, 186, 178, 0.2);
	color: #6fe0d6;
}

.booking-status-badge.is-pending {
	background: rgba(255, 193, 7, 0.18);
	color: #ffd45e;
}

.booking-status-badge.is-cancelled {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.78);
}

/* Hinweise */
.booking-alert {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 18px;
	padding: 14px 18px;
	border-radius: 12px;
	border: 1px solid rgba(71, 186, 178, 0.5);
	background: rgba(71, 186, 178, 0.12);
	font-size: 16px;
	line-height: 1.45;
}

.booking-alert[hidden] {
	display: none;
}

.booking-alert.is-error {
	border-color: rgba(255, 123, 114, 0.6);
	background: rgba(255, 123, 114, 0.12);
	color: #ffd6d2;
}

.booking-alert.is-success {
	border-color: rgba(71, 186, 178, 0.6);
	background: rgba(71, 186, 178, 0.14);
}

.booking-alert.is-error a {
	color: #fff;
	text-decoration: underline;
}

.booking-help {
	margin: 20px 0 6px;
	padding: 16px 18px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 16px;
}

.booking-help p,
.booking-help ul {
	margin: 6px 0 0;
}

.booking-help ul {
	padding-left: 20px;
	list-style: disc;
}

.booking-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: 22px;
}

.booking-cancel {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.booking-cancel summary {
	cursor: pointer;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.72);
}

.booking-cancel[open] summary {
	margin-bottom: 14px;
}

.hobege-booking .btn.booking-btn-danger {
	background: transparent;
	border-color: #ff7b72;
	color: #ff9d96;
	justify-self: start;
}

.hobege-booking .btn.booking-btn-danger:hover {
	background: #ff7b72;
	color: #fff;
}

/* Alte Statusbox (Fallback) */
.hobege-booking .hobege-form-status[hidden] {
	display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.booking-search-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.booking-submit {
		grid-column: 1 / -1;
	}

	.booking-checkout-grid {
		grid-template-columns: 1fr;
	}

	.booking-summary {
		position: static;
		order: -1;
	}

	.booking-summary > img {
		aspect-ratio: 21 / 9;
	}
}

@media (max-width: 768px) {
	body.hobege-booking-page .header {
		padding: 8px 0;
	}

	.hobege-booking {
		font-size: 16px;
	}

	.booking-hero {
		padding-top: 28px;
	}

	.booking-lead {
		font-size: 17px;
	}

	.booking-steps li {
		padding: 5px 12px 5px 5px;
		font-size: 13px;
	}

	.booking-step-num {
		width: 22px;
		height: 22px;
		font-size: 12px;
	}

	.booking-panel {
		padding: 22px 18px;
	}

	.booking-search-card {
		padding: 16px;
	}

	.hobege-booking .container {
		padding: 0 16px;
	}
}

@media (max-width: 560px) {
	.booking-search-grid,
	.booking-form-row {
		grid-template-columns: 1fr;
	}

	/* Auf kleinen Displays nur Nummer und aktueller Schritt zeigen */
	.booking-steps li:not(.is-current) .booking-step-label {
		display: none;
	}

	.booking-steps li:not(.is-current) {
		padding-right: 5px;
	}

	.booking-grid {
		grid-template-columns: 1fr;
	}

	.booking-results-head h2 {
		font-size: 24px;
	}
}

/* ===== Alternativen / Kalender ===== */
.booking-alternatives { margin-top: 48px; }
.booking-alternatives h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 0 0 6px; }
.booking-alt-lead { margin: 0 0 18px; color: rgba(255, 255, 255, .72); font-size: 16px; }
.booking-alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}
.booking-alt-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--color-dark-light);
    border: 1px solid rgba(255, 255, 255, .08);
    text-decoration: none;
    color: #fff;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.booking-alt-card:hover { transform: translateY(-2px); border-color: var(--color-primary); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.booking-alt-dates { font-size: 18px; font-weight: 700; }
.booking-alt-meta { font-size: 15px; color: rgba(255, 255, 255, .75); }
.booking-alt-cta { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--color-primary); }
.booking-window-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.booking-window-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--color-dark-light);
    border: 1px solid rgba(255, 255, 255, .08);
}
.booking-window-list li div { display: flex; flex-direction: column; gap: 3px; }
.booking-window-list li strong { font-size: 18px; }
.booking-window-list li span { font-size: 15px; color: rgba(255, 255, 255, .75); }
