/* First-party privacy consent and protected external-content placeholders. */

.reimchen-consent [hidden],
[data-consent-map] [hidden],
[data-consent-reviews-widget] [hidden] {
	display: none !important;
}

.reimchen-consent {
	position: fixed;
	inset: auto 1rem 1.1rem;
	z-index: 1200;
	width: min(calc(100% - 2rem), 49rem);
	max-width: none;
	max-height: min(48rem, calc(100dvh - 2.2rem));
	padding: 0;
	margin: auto;
	overflow: hidden;
	border: 0;
	border-top: 0.25rem solid var(--accent-primary);
	border-radius: 1rem;
	background: transparent;
	box-shadow: 0 1.5rem 4.5rem rgba(15, 23, 42, 0.28);
	color: var(--text-main);
	font-family: var(--font-sans);
}

[data-theme="dark"] .reimchen-consent {
	box-shadow: 0 1.5rem 4.5rem rgba(0, 0, 0, 0.52);
}

.reimchen-consent::backdrop {
	background: transparent;
}

.reimchen-consent__panel {
	max-height: min(47.75rem, calc(100dvh - 2.45rem));
	padding: 1.4rem 1.5rem 1rem;
	overflow-y: auto;
	border: 1px solid var(--border-color);
	border-top: 0;
	border-radius: 0.75rem 0.75rem 1rem 1rem;
	background: var(--bg-surface);
	overscroll-behavior: contain;
}

.reimchen-consent__header {
	position: relative;
	display: grid;
	grid-template-columns: 2.7rem minmax(0, 1fr);
	gap: 0.9rem;
	padding-right: 2.2rem;
}

.reimchen-consent__header > div,
.external-content-placeholder__copy {
	min-width: 0;
}

.reimchen-consent__shield {
	display: grid;
	width: 2.7rem;
	height: 2.7rem;
	place-items: center;
	border: 1px solid rgba(var(--accent-rgb) / 0.18);
	border-radius: 50%;
	background: var(--accent-light);
	color: var(--accent-primary);
}

.reimchen-consent__shield svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.reimchen-consent h2 {
	margin: 0 0 0.15rem;
	color: var(--text-main);
	font-size: clamp(1.08rem, 2vw, 1.28rem);
	font-weight: 780;
	letter-spacing: -0.025em;
	line-height: 1.35;
}

.reimchen-consent__header p {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.86rem;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.reimchen-consent__close {
	position: absolute;
	top: -0.2rem;
	right: -0.2rem;
	display: grid;
	width: 2rem;
	height: 2rem;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--text-muted);
	cursor: pointer;
}

.reimchen-consent__close:hover {
	border: 0;
	background: var(--bg-primary);
	box-shadow: none;
	color: var(--text-main);
}

.reimchen-consent__close svg {
	width: 1.05rem;
	height: 1.05rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.reimchen-consent__summary,
.reimchen-consent__details {
	padding-top: 0.9rem;
	margin-top: 0.9rem;
	border-top: 1px solid var(--border-color);
}

.reimchen-consent__actions {
	display: grid;
	gap: 0.65rem;
}

.reimchen-consent__actions--summary {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reimchen-consent__actions--details {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding-top: 0.9rem;
	margin-top: 0.9rem;
	border-top: 1px solid var(--border-color);
}

.reimchen-consent__button {
	min-height: 2.8rem;
	padding: 0.65rem 1rem;
	border: 1px solid transparent;
	border-radius: 0.65rem;
	box-shadow: none;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 760;
	line-height: 1.25;
	cursor: pointer;
	transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.reimchen-consent__button:hover {
	transform: translateY(-0.0625rem);
}

.reimchen-consent__button--primary,
.reimchen-consent__button--primary:hover {
	color: #FFFFFF;
}

.reimchen-consent__button--primary {
	border-color: var(--accent-action);
	background: var(--accent-action);
}

.reimchen-consent__button--primary:hover {
	border-color: var(--accent-action-hover);
	background: var(--accent-action-hover);
}

.reimchen-consent__button--secondary {
	border-color: var(--border-color);
	background: var(--bg-surface);
	color: var(--text-main);
}

.reimchen-consent__button--secondary:hover {
	border-color: var(--accent-primary);
	background: var(--bg-primary);
	color: var(--text-main);
}

[data-theme="dark"] .reimchen-consent__button--secondary {
	border-color: #475569;
	background: #1E293B;
	color: #F8FAFC;
}

[data-theme="dark"] .reimchen-consent__button--secondary:hover {
	border-color: #0284C7;
	background: #0F172A;
	color: #FFFFFF;
}

.reimchen-consent__customize {
	display: block;
	padding: 0.2rem 0.5rem;
	margin: 0.55rem auto 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--text-main);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 760;
	text-decoration: underline;
	text-decoration-color: var(--accent-primary);
	text-underline-offset: 0.2rem;
	cursor: pointer;
}

.reimchen-consent__customize:hover {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--accent-text);
}

.reimchen-consent__service {
	display: flex;
	min-height: 3.75rem;
	align-items: center;
	justify-content: space-between;
	gap: 1.1rem;
	padding: 0.7rem 0.85rem;
	border-radius: 0.7rem;
	font-size: 0.8rem;
}

.reimchen-consent__service + .reimchen-consent__service {
	margin-top: 0.55rem;
}

.reimchen-consent__service--necessary {
	background: var(--bg-primary);
}

.reimchen-consent__service--toggle {
	position: relative;
	padding-right: 4.4rem;
	border: 1px solid var(--border-color);
	cursor: pointer;
}

.reimchen-consent__service strong,
.reimchen-consent__service small {
	display: block;
}

.reimchen-consent__service strong {
	color: var(--text-main);
}

.reimchen-consent__service small {
	margin-top: 0.1rem;
	color: var(--text-muted);
	font-size: 0.71rem;
	line-height: 1.45;
}

.reimchen-consent__always {
	flex: 0 0 auto;
	color: var(--accent-text) !important;
	font-size: 0.73rem;
}

.reimchen-consent__service input {
	position: absolute;
	right: 0.9rem;
	width: 2.9rem;
	height: 1.65rem;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.reimchen-consent__switch {
	position: absolute;
	right: 0.9rem;
	width: 2.9rem;
	height: 1.65rem;
	border: 2px solid var(--border-color);
	border-radius: 999px;
	background: var(--bg-primary);
	pointer-events: none;
	transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.reimchen-consent__switch::after {
	position: absolute;
	top: 0.1875rem;
	left: 0.1875rem;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.28);
	content: "";
	transition: transform var(--transition-fast);
}

.reimchen-consent__service input:checked + .reimchen-consent__switch {
	border-color: var(--accent-primary);
	background: var(--accent-primary);
}

.reimchen-consent__service input:checked + .reimchen-consent__switch::after {
	transform: translateX(1.25rem);
}

.reimchen-consent__service input:focus-visible + .reimchen-consent__switch,
.reimchen-consent :is(button, a):focus-visible,
.site-footer__consent:focus-visible,
.external-content-placeholder__button:focus-visible {
	outline: 0.1875rem solid rgba(var(--accent-rgb) / 0.42);
	outline-offset: 0.1875rem;
}

.reimchen-consent__legal {
	display: flex;
	justify-content: center;
	gap: 1.4rem;
	padding-top: 0.65rem;
	margin-top: 0.65rem;
	border-top: 1px solid var(--border-color);
	font-size: 0.71rem;
	font-weight: 650;
}

.reimchen-consent__legal a {
	color: var(--text-muted);
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.reimchen-consent__legal a:hover {
	color: var(--text-main);
}

[data-theme="dark"] .reimchen-consent__legal a {
	color: #CBD5E1;
}

[data-theme="dark"] .reimchen-consent__legal a:hover {
	color: #FFFFFF;
}

.site-footer__consent {
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #AEB8C7;
	font: inherit;
	font-size: 0.72rem;
	cursor: pointer;
	transition: color var(--transition-fast);
}

.site-footer__consent:hover {
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #FFFFFF;
}

/* Neither iframe nor widget is present before optional consent is granted. */
.external-content-placeholder {
	position: relative;
	display: flex;
	min-height: inherit;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	padding: clamp(2rem, 5vw, 3.5rem) 1.5rem;
	overflow: hidden;
	background:
		radial-gradient(circle at 18% 22%, rgba(var(--accent-rgb) / 0.12), transparent 34%),
		linear-gradient(135deg, var(--bg-surface), var(--bg-primary));
}

.external-content-placeholder::before,
.external-content-placeholder::after {
	position: absolute;
	border: 1px solid rgba(var(--accent-rgb) / 0.12);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.external-content-placeholder::before {
	top: -12rem;
	right: 8%;
	width: 20rem;
	height: 20rem;
}

.external-content-placeholder::after {
	bottom: -9rem;
	left: 12%;
	width: 14rem;
	height: 14rem;
}

.external-content-placeholder__icon {
	position: relative;
	z-index: 1;
	display: grid;
	width: 3.75rem;
	height: 3.75rem;
	flex: 0 0 auto;
	place-items: center;
	border: 1px solid rgba(var(--accent-rgb) / 0.22);
	border-radius: 50%;
	background: var(--bg-surface);
	box-shadow: var(--shadow-subtle);
	color: var(--accent-primary);
}

.external-content-placeholder__icon svg {
	width: 1.7rem;
	height: 1.7rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
}

.external-content-placeholder__copy {
	position: relative;
	z-index: 1;
	max-width: 36rem;
}

.external-content-placeholder__kicker {
	margin: 0 0 0.3rem !important;
	color: var(--accent-text) !important;
	font-size: 0.7rem;
	font-weight: 780;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.external-content-placeholder h2 {
	margin: 0 0 0.35rem;
	color: var(--text-main);
	font-size: clamp(1.15rem, 2.3vw, 1.5rem);
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.external-content-placeholder__copy > p:not(.external-content-placeholder__kicker) {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.86rem;
	overflow-wrap: anywhere;
}

.external-content-placeholder__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}

.external-content-placeholder__button {
	min-height: 2.65rem;
	padding: 0.55rem 1.1rem;
	border: 1px solid var(--accent-action);
	border-radius: var(--radius-pill);
	background: var(--accent-action);
	box-shadow: none;
	color: #FFFFFF;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 760;
	cursor: pointer;
}

.external-content-placeholder__button:hover {
	border-color: var(--accent-action-hover);
	background: var(--accent-action-hover);
	box-shadow: none;
	color: #FFFFFF;
}

.external-content-placeholder__actions a {
	color: var(--text-main);
	font-size: 0.75rem;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 0.2rem;
}

.location-section__map[data-consent-map] {
	display: block;
}

.location-section__map[data-consent-map] .external-content-placeholder,
.location-section__map[data-consent-map].is-enabled iframe {
	min-height: inherit;
}

.reviews-consent {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 28rem;
	overflow: hidden;
	border: 1px solid var(--border-color);
	border-radius: clamp(1rem, 2vw, 1.5rem);
	background: var(--bg-surface);
	box-shadow: var(--shadow-subtle);
}

.reviews-consent .external-content-placeholder {
	min-height: 28rem;
}

.reviews-consent.is-enabled {
	overflow: visible;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.reviews-consent.is-enabled [data-reviews-widget] {
	min-height: 22rem;
}

.external-content-noscript {
	margin: 0;
	padding: 0.75rem 1.25rem;
	background: var(--bg-primary);
	color: var(--text-muted);
	font-size: 0.78rem;
	text-align: center;
}

@media (max-width: 42.5rem) {
	.reimchen-consent {
		inset: auto auto 0.5rem 0.5rem;
		width: calc(100vw - 1rem);
		max-width: calc(100vw - 1rem);
		max-height: calc(100dvh - 1rem);
		border-radius: 1rem 1rem 0.7rem 0.7rem;
	}

	.reimchen-consent__panel {
		max-height: calc(100dvh - 1.25rem);
		padding: 1.1rem 1rem 0.8rem;
	}

	.reimchen-consent__header {
		grid-template-columns: 2.3rem minmax(0, 1fr);
		gap: 0.7rem;
		padding-right: 1.75rem;
	}

	.reimchen-consent__shield {
		width: 2.3rem;
		height: 2.3rem;
	}

	.reimchen-consent__header p {
		font-size: 0.78rem;
	}

	.reimchen-consent__actions--summary,
	.reimchen-consent__actions--details {
		grid-template-columns: minmax(0, 1fr);
	}

	.reimchen-consent__actions--details .reimchen-consent__button--primary {
		grid-row: 1;
	}

	.reimchen-consent__service {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.25rem;
	}

	.reimchen-consent__service--toggle {
		padding-right: 4.25rem;
	}

	.reimchen-consent__always {
		align-self: flex-end;
	}

	.reimchen-consent__legal {
		gap: 0.9rem;
		font-size: 0.67rem;
	}

	.external-content-placeholder {
		align-items: center;
		flex-direction: column;
		gap: 0.9rem;
		padding: 2.25rem 1.25rem;
		text-align: center;
	}

	.external-content-placeholder__icon {
		width: 3.3rem;
		height: 3.3rem;
	}

	.external-content-placeholder__actions {
		flex-direction: column;
		gap: 0.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.reimchen-consent__button,
	.reimchen-consent__switch,
	.reimchen-consent__switch::after {
		transition: none;
	}
}
