/*! Vaternam Consent 1.0.2 */
:root {
	--vc-tint: 0.55;
	--vc-blur: 24px;
	--vc-accent: #7B2FBE;
	--vc-focus: #B57BEA;
	--vc-font: inherit;
}

.vc-root,
.vc-root * { box-sizing: border-box; }

.vc-root [hidden] { display: none !important; }

.vc-root {
	font-family: var(--vc-font);
	-webkit-font-smoothing: antialiased;
	color: #ffffff;
	line-height: 1.5;
}

.vc-root button:focus-visible,
.vc-root a:focus-visible,
.vc-ph button:focus-visible,
.vc-ph input:focus-visible {
	outline: 2px solid var(--vc-focus);
	outline-offset: 3px;
}

/* ---------- Glas ---------- */

.vc-banner,
.vc-dialog {
	background: rgba(24, 24, 27, var(--vc-tint));
	-webkit-backdrop-filter: blur(var(--vc-blur)) saturate(150%);
	backdrop-filter: blur(var(--vc-blur)) saturate(150%);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.vc-banner,
	.vc-dialog { background: rgba(24, 24, 27, 0.96); }
}

/* ---------- Erste Ebene: durchgehende Leiste ---------- */

.vc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding: 28px 48px 30px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.3);
	animation: vc-up .35s ease-out both;
}

.vc-banner-copy {
	flex: 1 1 520px;
	min-width: 0;
	max-width: 820px;
}

.vc-title {
	margin: 0;
	font-family: inherit;
	font-size: 19px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: 0;
	color: #ffffff;
	text-transform: none;
}

.vc-title--lg { font-size: 22px; }

.vc-text {
	margin: 10px 0 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.8);
}

.vc-root a {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vc-root a:hover { color: #d9c2f2; }

.vc-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 10px 0 0;
	font-size: 13px;
}

.vc-links a { color: rgba(255, 255, 255, 0.82); }

.vc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* Alle Buttons bewusst gleich gestaltet: kein Nudging. */
.vc-btn {
	height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.14);
	color: #ffffff;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

.vc-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- Zweite Ebene ---------- */

html.vc-lock,
html.vc-lock body { overflow: hidden; }

.vc-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.vc-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.vc-dialog {
	position: relative;
	width: 760px;
	max-width: 100%;
	max-height: min(836px, calc(100vh - 32px));
	max-height: min(836px, calc(100dvh - 32px));
	display: flex;
	flex-direction: column;
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	overflow: hidden;
	outline: none;
	animation: vc-fade .2s ease-out both;
}

.vc-dialog-head {
	padding: 28px 32px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vc-dialog-titlerow {
	display: flex;
	align-items: center;
	gap: 12px;
}

.vc-dialog-titlerow .vc-title { flex: 1 1 auto; }

.vc-mark { width: 26px; height: 20px; flex: none; display: block; }

.vc-close {
	width: 44px;
	height: 44px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: -8px -10px -8px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

.vc-close:hover { background: rgba(255, 255, 255, 0.1); }

.vc-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.vc-dialog-body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 32px;
}

.vc-cat {
	padding: 18px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.vc-cat-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.vc-chev {
	width: 22px;
	height: 22px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .2s ease;
}

.vc-cat-toggle[aria-expanded="true"] .vc-chev { transform: rotate(180deg); }

.vc-cat-title { font-size: 17px; font-weight: 500; }

.vc-cat-count { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

.vc-cat-desc {
	margin: 6px 0 0 34px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.76);
}

.vc-pill {
	flex: none;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
}

.vc-switch {
	position: relative;
	flex: none;
	width: 52px;
	height: 30px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.16);
	cursor: pointer;
	transition: background .2s ease;
}

.vc-switch[aria-checked="true"] { background: var(--vc-accent); }

.vc-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #ffffff;
	transition: left .2s ease;
}

.vc-switch[aria-checked="true"] .vc-knob { left: 25px; }

.vc-services {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 14px 0 0 34px;
}

.vc-service {
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.vc-service-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}

.vc-service-name { font-size: 15px; font-weight: 500; }

.vc-service-provider { font-size: 13px; color: rgba(255, 255, 255, 0.72); }

.vc-service-purpose {
	margin-top: 6px;
	font-size: 13.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.82);
}

.vc-service-meta {
	margin-top: 6px;
	font-size: 12.5px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.7);
}

.vc-legal {
	margin: 16px 0 12px;
	font-size: 12.5px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.7);
}

.vc-legal code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.85);
	background: none;
	padding: 0;
	user-select: all;
}

.vc-dialog-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 32px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vc-dialog-foot .vc-links { margin: 0; }

.vc-dialog-foot .vc-actions { margin-left: auto; }

/* ---------- Platzhalter für blockierte Inhalte ---------- */

.vc-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	background: #111113;
	color: #ffffff;
	border-radius: inherit;
	font-family: var(--vc-font);
	overflow: hidden;
}

.vc-ph:empty,
.vc-ph:not(:has(.vc-ph-box)) { display: none; }

/* Seitenweit eingebundene Skripte (direkt im <body>, z. B. ein Cal.com-Popup) bekommen keinen sichtbaren Platzhalter. */
body > .vc-ph--script { display: none !important; }

/* Platzhalter füllt den Container, in den der Inhalt später geladen wird. */
.vc-ph--fill {
	width: 100%;
	height: 100%;
	min-height: 100%;
}

.vc-ph-box {
	max-width: 520px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.vc-ph-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
}

.vc-ph-text a { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

.vc-ph-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
}

.vc-ph-load {
	height: 46px;
	padding: 0 22px;
	border-radius: 999px;
	border: 0;
	background: #ffffff;
	color: #000000;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
}

.vc-ph-always {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
}

.vc-ph-always input { width: 18px; height: 18px; margin: 0; accent-color: var(--vc-accent); }

/* ---------- Mobil ---------- */

@media (max-width: 767px) {
	.vc-banner {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 22px 20px calc(24px + env(safe-area-inset-bottom));
		max-height: 85vh;
		overflow-y: auto;
	}

	.vc-banner-copy { flex: none; }

	.vc-title { font-size: 17px; }

	.vc-text { font-size: 13.5px; line-height: 1.55; }

	.vc-actions { flex-direction: column; gap: 8px; }

	.vc-actions .vc-btn { width: 100%; }

	/* Auf dem Handy steht "Alle akzeptieren" oben, "Einstellungen" unten: alle gleich groß. */
	.vc-banner .vc-actions { flex-direction: column-reverse; }

	.vc-modal { padding: 0; align-items: flex-end; }

	.vc-dialog {
		width: 100%;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 22px 22px 0 0;
	}

	.vc-dialog-head { padding: 22px 20px 16px; }

	.vc-dialog-body { padding: 4px 20px; }

	.vc-dialog-foot { padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); }

	.vc-dialog-foot .vc-actions { width: 100%; }

	.vc-cat-desc,
	.vc-services { margin-left: 0; }
}

@keyframes vc-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

@keyframes vc-fade { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.vc-banner,
	.vc-dialog { animation: none; }
}
