/**
 * Resilient base presentation for Wittinghof's dynamic blocks.
 *
 * Responsibility: keeps booking fallbacks, the central map and the footer usable
 * even when the companion theme is temporarily inactive.
 *
 * Gotcha: the Wittinghof theme intentionally overrides these low-specificity
 * rules for the final visual design.
 */

.wth-booking {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: 1180px;
	padding: clamp(1rem, 3vw, 2.5rem);
}

.wth-booking__consent,
.wth-booking__fallback,
.wth-booking__error,
.wth-booking__status {
	padding: 1rem;
	text-align: center;
}

.wth-booking__consent,
.wth-booking__fallback {
	background: rgba(0, 0, 0, 0.045);
}

.wth-booking__load-button {
	background: var(--wp--preset--color--accent, #ba5527);
	border: 0;
	border-radius: 0;
	color: #fff;
	cursor: pointer;
	font: inherit;
	padding: 0.75rem 1.25rem;
}

.wth-booking__load-button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.wth-booking__widget {
	min-height: 12rem;
}

.wth-booking__error {
	color: #8a2424;
	font-weight: 600;
}

.wth-booking [hidden] {
	display: none !important;
}

.wth-location-map iframe,
.anfahrt-map-wrap iframe {
	border: 0;
	display: block;
	min-height: 24rem;
	width: 100%;
}

.wth-site-footer {
	background: var(--wp--preset--color--contrast, #26362d);
	box-sizing: border-box;
	color: var(--wp--preset--color--base, #fff);
	padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) 1.5rem;
}

.wth-site-footer a {
	color: inherit;
}

.wth-site-footer__inner {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	margin-inline: auto;
	max-width: 1180px;
}

.wth-site-footer h2,
.wth-site-footer__title {
	font-size: 1rem;
	font-weight: 700;
	margin-top: 0;
}

.wth-site-footer__title {
	font-size: 1.5rem;
}

.wth-site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wth-site-footer address {
	font-style: normal;
}

.wth-site-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.22);
	margin: 2rem auto 0;
	max-width: 1180px;
	padding-top: 1rem;
}

.wth-booking-editor {
	min-height: 10rem;
}
