/* Cookie-Consent – BLUE THE WEB GmbH */
#btw_consent_root[hidden], #btw_consent_widget[hidden], #btw_consent_root [hidden] { display: none !important; }

/*
 * Farben, Schrift und Radius kommen aus den Einstellungen (Variablen --btw-consent-*).
 * Abgeleitete Töne per color-mix(); ältere Browser nutzen die Zeile davor.
 */
/*
 * Themes mit „* { color: … }“ färben sonst jedes Element einzeln ein (z. B. die Beschriftungen der
 * Kategorien) – auf dunklem Grund unsichtbar. Hier erbt jedes Element die Farbe des Fensters;
 * eigene Farben des Plugins (#btw_consent_root + Klasse) haben weiter Vorrang.
 */
#btw_consent_root :where(*),
.btw_consent_blocked :where(*),
.btw_consent_form-gate :where(*) { color: inherit; }

#btw_consent_root {
	/* Fließtext und Nebentexte immer in voller Textfarbe */
	--btw-consent-muted: var(--btw-consent-text);
	--btw-consent-line: #e4e6ea;
	--btw-consent-line: color-mix(in srgb, var(--btw-consent-text) 12%, var(--btw-consent-bg));
	--btw-consent-soft: #f4f5f7;
	--btw-consent-soft: color-mix(in srgb, var(--btw-consent-primary) 6%, var(--btw-consent-bg));
	--btw-consent-tint: #e9ecf1;
	--btw-consent-tint: color-mix(in srgb, var(--btw-consent-primary) 14%, var(--btw-consent-bg));
	/* --btw-consent-box-r gibt es nur bei „Ecken von Fenster und Kacheln: laut Eckenradius“ */
	--btw-consent-r-box: var(--btw-consent-box-r, max(var(--btw-consent-radius), 14px));
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: var(--btw-consent-font);
	color: var(--btw-consent-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
#btw_consent_root *, #btw_consent_root *::before, #btw_consent_root *::after { box-sizing: border-box; }

#btw_consent_root .btw_consent_backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 18, 24, .55);
	animation: btw_consent_fade .2s ease-out;
}

#btw_consent_root .btw_consent_dialog {
	position: relative;
	width: 100%;
	max-width: 600px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--btw-consent-bg);
	border-radius: var(--btw-consent-r-box);
	box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .06);
	padding: 32px 36px 22px;
	outline: none;
	animation: btw_consent_in .24s cubic-bezier(.2, .8, .2, 1);
}

@keyframes btw_consent_fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes btw_consent_in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes btw_consent_up { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }

/* Schließen */
#btw_consent_root .btw_consent_close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--btw-consent-muted);
	cursor: pointer;
	transition: background-color .15s, color .15s;
}
#btw_consent_root .btw_consent_close:hover { background: var(--btw-consent-soft); color: var(--btw-consent-text); }
#btw_consent_root .btw_consent_close svg { width: 20px; height: 20px; max-width: none; }

/* Kopf */
#btw_consent_root .btw_consent_head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 40px 16px 0;
}
#btw_consent_root .btw_consent_icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--btw-consent-tint);
	color: var(--btw-consent-primary);
}
/* Themes ziehen Grafiken sonst mit „svg { width: 100%; height: auto }“ auf die Breite des Kreises */
#btw_consent_root .btw_consent_icon svg { flex: 0 0 auto; width: 22px; height: 22px; max-width: none; }
#btw_consent_root .btw_consent_title {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: inherit;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	text-align: left;
	text-transform: none;
	color: var(--btw-consent-text);
	outline: none;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* Text */
#btw_consent_root .btw_consent_text,
#btw_consent_root .btw_consent_text p {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--btw-consent-muted);
}
#btw_consent_root .btw_consent_text p:last-child { margin-bottom: 0; }
#btw_consent_root a,
#btw_consent_root a:visited,
#btw_consent_root a:focus,
#btw_consent_root a:active {
	color: var(--btw-consent-link, var(--btw-consent-primary));
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
#btw_consent_root a:hover { color: var(--btw-consent-link-hover, var(--btw-consent-primary-hover)); }

/* Kategorien als Chips */
#btw_consent_root .btw_consent_cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 20px;
	padding: 12px;
	border-radius: calc(var(--btw-consent-r-box) - 4px);
	background: var(--btw-consent-soft);
}
#btw_consent_root .btw_consent_check {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 14px 8px 10px;
	border: 1px solid var(--btw-consent-line);
	border-radius: var(--btw-consent-box-r, 999px);
	background: var(--btw-consent-bg);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	user-select: none;
	transition: border-color .15s, background-color .15s;
}
#btw_consent_root .btw_consent_check:hover { border-color: var(--btw-consent-primary); }
#btw_consent_root .btw_consent_check:has(input:checked:not(:disabled)) { border-color: var(--btw-consent-primary); background: var(--btw-consent-tint); }
#btw_consent_root .btw_consent_check input,
#btw_consent_root .btw_consent_switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
#btw_consent_root .btw_consent_box {
	position: relative;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border: 2px solid var(--btw-consent-line);
	border-radius: min(var(--btw-consent-box-r, 6px), 6px);
	background: var(--btw-consent-bg);
	transition: background-color .15s, border-color .15s;
}
#btw_consent_root .btw_consent_check input:checked + .btw_consent_box { background: var(--btw-consent-primary); border-color: var(--btw-consent-primary); }
#btw_consent_root .btw_consent_check input:checked + .btw_consent_box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid var(--btw-consent-on-primary, #fff);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
#btw_consent_root .btw_consent_check:has(input:disabled) { cursor: default; color: var(--btw-consent-muted); }
#btw_consent_root .btw_consent_check:has(input:disabled):hover { border-color: var(--btw-consent-line); }
#btw_consent_root .btw_consent_check input:disabled + .btw_consent_box { background: var(--btw-consent-line); border-color: transparent; }
#btw_consent_root .btw_consent_check input:disabled + .btw_consent_box::after { border-color: var(--btw-consent-muted); }
#btw_consent_root .btw_consent_check input:focus-visible + .btw_consent_box,
#btw_consent_root .btw_consent_switch input:focus-visible + .btw_consent_slider {
	outline: 2px solid var(--btw-consent-primary);
	outline-offset: 2px;
}

/* Buttons: Ablehnen und Alle akzeptieren gleichwertig nebeneinander */
#btw_consent_root .btw_consent_buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
}
#btw_consent_root .btw_consent_btn-reject,
#btw_consent_root .btw_consent_btn-accept { flex: 1 1 calc(50% - 5px); }
#btw_consent_root .btw_consent_btn-save,
#btw_consent_root .btw_consent_btn-link { flex: 1 1 100%; }

#btw_consent_root .btw_consent_btn,
.btw_consent_blocked .btw_consent_btn,
[data-btw-consent-overlay] .btw_consent_btn {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 11px 18px;
	border: 2px solid var(--btw-consent-primary);
	border-radius: var(--btw-consent-btn-r, var(--btw-consent-radius));
	background: var(--btw-consent-primary);
	color: var(--btw-consent-btn-text, #fff);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s, border-color .15s, color .15s;
}
#btw_consent_root .btw_consent_btn:hover,
.btw_consent_blocked .btw_consent_btn:hover,
[data-btw-consent-overlay] .btw_consent_btn:hover {
	background: var(--btw-consent-primary-hover);
	border-color: var(--btw-consent-primary-hover);
	color: var(--btw-consent-btn-text-hover, #fff);
}
/* --btw-consent-ghost(-tint) gibt es nur, wenn im Design eine Farbe für den Outline-Button gesetzt ist */
#btw_consent_root .btw_consent_btn-ghost {
	background: transparent;
	border-color: var(--btw-consent-ghost, var(--btw-consent-primary));
	color: var(--btw-consent-ghost, var(--btw-consent-primary));
}
#btw_consent_root .btw_consent_btn-ghost:hover { background: var(--btw-consent-ghost-tint, var(--btw-consent-tint)); border-color: var(--btw-consent-ghost, var(--btw-consent-primary)); color: var(--btw-consent-ghost, var(--btw-consent-primary)); }
#btw_consent_root .btw_consent_btn-link {
	margin: 2px 0 0;
	padding: 8px;
	border: 0;
	background: none;
	color: var(--btw-consent-link, var(--btw-consent-primary));
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
}
#btw_consent_root .btw_consent_btn-link:hover { color: var(--btw-consent-link-hover, var(--btw-consent-primary-hover)); }
#btw_consent_root .btw_consent_btn:focus-visible,
#btw_consent_root .btw_consent_btn-link:focus-visible,
.btw_consent_blocked .btw_consent_btn:focus-visible,
#btw_consent_root .btw_consent_close:focus-visible,
#btw_consent_root .btw_consent_back:focus-visible {
	outline: 2px solid var(--btw-consent-primary);
	outline-offset: 3px;
}

/* Rechtliche Links */
#btw_consent_root .btw_consent_links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	margin: 18px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--btw-consent-line);
}
#btw_consent_root .btw_consent_links a,
#btw_consent_root .btw_consent_links a:visited,
#btw_consent_root .btw_consent_links a:focus,
#btw_consent_root .btw_consent_links a:active {
	font-size: 13px;
	color: var(--btw-consent-muted);
	text-decoration: none;
}
#btw_consent_root .btw_consent_links a:hover { color: var(--btw-consent-text); text-decoration: underline; }
#btw_consent_root .btw_consent_links a + a::before {
	content: "·";
	display: inline-block;
	margin: 0 10px;
	color: var(--btw-consent-line);
	text-decoration: none;
}

/* Detailansicht */
#btw_consent_root [data-btw-consent-view="details"] > .btw_consent_title { margin: 0 40px 6px 0; }
#btw_consent_root [data-btw-consent-view="details"] > .btw_consent_text { margin-bottom: 18px; }
#btw_consent_root .btw_consent_back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 10px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--btw-consent-link, var(--btw-consent-primary));
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
#btw_consent_root .btw_consent_group {
	margin: 0 0 12px;
	padding: 14px 16px 6px;
	border: 1px solid var(--btw-consent-line);
	border-radius: calc(var(--btw-consent-r-box) - 4px);
}
#btw_consent_root .btw_consent_group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
#btw_consent_root .btw_consent_switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: pointer;
}
#btw_consent_root .btw_consent_slider {
	position: relative;
	flex: 0 0 42px;
	width: 42px;
	height: 24px;
	border-radius: 12px;
	background: var(--btw-consent-line);
	transition: background-color .15s;
}
#btw_consent_root .btw_consent_slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .15s;
}
#btw_consent_root .btw_consent_switch input:checked + .btw_consent_slider { background: var(--btw-consent-primary); }
#btw_consent_root .btw_consent_switch input:checked + .btw_consent_slider::after { transform: translateX(18px); background: var(--btw-consent-on-primary, #fff); }
#btw_consent_root .btw_consent_switch input:disabled + .btw_consent_slider { opacity: .5; }
#btw_consent_root .btw_consent_group-title { font-size: 16px; font-weight: 700; }
#btw_consent_root .btw_consent_count {
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--btw-consent-soft);
	font-size: 12px;
	color: var(--btw-consent-muted);
	white-space: nowrap;
}
#btw_consent_root .btw_consent_group-desc { margin: 8px 0 10px; font-size: 14px; line-height: 1.55; color: var(--btw-consent-muted); }
/* Dienst-Zeile: Schalter oben rechts neben dem Namen, die Angaben darunter über die volle Breite
   (sonst endet die Box vor der Schalter-Spalte und rechts bleibt mehr Abstand als links). */
#btw_consent_root .btw_consent_service-row {
	position: relative;
	display: block;
	margin: 0;
	border-top: 1px solid var(--btw-consent-line);
}
#btw_consent_root .btw_consent_service-row .btw_consent_service { width: 100%; min-width: 0; margin: 0; }
#btw_consent_root .btw_consent_service-row .btw_consent_service summary { padding-right: 54px; }
#btw_consent_root .btw_consent_switch-svc { position: absolute; top: 11px; right: 0; margin: 0; }
#btw_consent_root .btw_consent_sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
#btw_consent_root .btw_consent_service {
	margin: 0;
	border: 0;
	background: none;
}
#btw_consent_root .btw_consent_service summary {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
#btw_consent_root .btw_consent_service summary::-webkit-details-marker { display: none; }
#btw_consent_root .btw_consent_service summary::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border: solid var(--btw-consent-muted);
	border-width: 0 2px 2px 0;
	transform: rotate(-45deg);
	transition: transform .15s;
}
#btw_consent_root .btw_consent_service[open] summary::before { transform: rotate(45deg); }
#btw_consent_root .btw_consent_service dl {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: var(--btw-consent-box-r, 8px);
	background: var(--btw-consent-soft);
	font-size: 13px;
}
#btw_consent_root .btw_consent_service dt { flex: 0 0 calc(30% - 8px); min-width: 120px; font-weight: 600; margin: 0; }
#btw_consent_root .btw_consent_service dd { flex: 1 1 calc(70% - 24px); min-width: 0; margin: 0; color: var(--btw-consent-muted); overflow-wrap: anywhere; }
#btw_consent_root [data-btw-consent-view="details"] .btw_consent_buttons { margin-top: 18px; }
#btw_consent_root .btw_consent_meta { margin: 14px 0 0; font-size: 12px; color: var(--btw-consent-muted); }
#btw_consent_root .btw_consent_meta code { font-size: 12px; background: none; padding: 0; color: inherit; }

/* Leiste unten */
#btw_consent_root.btw_consent_layout-bar { align-items: flex-end; padding: 0; }
#btw_consent_root.btw_consent_layout-bar .btw_consent_backdrop { background: rgba(15, 18, 24, .3); }
#btw_consent_root.btw_consent_layout-bar .btw_consent_dialog {
	max-width: none;
	max-height: 85vh;
	border-radius: var(--btw-consent-r-box) var(--btw-consent-r-box) 0 0;
	padding: 24px max(24px, calc((100vw - 1140px) / 2)) 16px;
	animation-name: btw_consent_up;
}

/* Link „Cookie-Einstellungen“ im Rechtliches-Menü: nur auf Smartphones, wenn so eingestellt */
@media (min-width: 576px) {
	.btw_consent_menu-link--mobile { display: none !important; }
}

/* Einstellungs-Button */
#btw_consent_widget {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482000;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--btw-consent-primary) !important;
	color: var(--btw-consent-on-primary, #fff) !important;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	cursor: pointer;
	opacity: .9;
	transition: opacity .15s, background-color .15s, transform .15s;
}
#btw_consent_widget:focus, #btw_consent_widget:active, #btw_consent_widget:visited { color: var(--btw-consent-on-primary, #fff) !important; }
#btw_consent_widget:hover, #btw_consent_widget:focus-visible { opacity: 1; background: var(--btw-consent-primary-hover) !important; color: var(--btw-consent-on-primary-hover, #fff) !important; transform: scale(1.06); }
/*
 * Themes färben Buttons/SVGs oft global um (z. B. button { color: … }, * { color: … }, svg path { fill: … }) – das Icon
 * folgt immer der Schriftfarbe des Buttons. „svg { width: 100% }“ würde es auf die Größe des Kreises ziehen.
 */
#btw_consent_widget svg, #btw_consent_widget svg * { color: inherit !important; fill: currentColor !important; stroke: none !important; opacity: 1 !important; filter: none !important; }
#btw_consent_widget svg { flex: 0 0 auto; width: 22px !important; height: 22px !important; max-width: none !important; }

html.btw_consent_open, html.btw_consent_open body { overflow: hidden; }

/* Platzhalter für blockierte Inhalte */
.btw_consent_blocked { position: relative; width: 100%; }
.btw_consent_blocked:not(.btw_consent_unblocked) { min-height: 240px; }
.btw_consent_blocked:not(.btw_consent_unblocked) > iframe { display: none; }
.btw_consent_blocked.btw_consent_has-preview:not(.btw_consent_unblocked) {
	background-color: #111;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}
.btw_consent_placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: inherit;
	padding: 24px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: var(--btw-consent-radius);
	color: var(--btw-consent-text);
	font-family: var(--btw-consent-font);
	text-align: center;
}
.btw_consent_blocked .btw_consent_placeholder { position: relative; }
.btw_consent_blocked:not(.btw_consent_unblocked) > .btw_consent_placeholder { min-height: 240px; }
.btw_consent_blocked[style*="min-height"]:not(.btw_consent_unblocked) > .btw_consent_placeholder { min-height: inherit; }
.btw_consent_has-preview .btw_consent_placeholder { background: rgba(0, 0, 0, .45); border-color: transparent; }
.btw_consent_placeholder-box {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 560px;
}
.btw_consent_has-preview .btw_consent_placeholder-box {
	padding: 18px 20px;
	background: rgba(255, 255, 255, .94);
	border-radius: var(--btw-consent-radius);
}
.btw_consent_placeholder p { margin: 0; font-size: 15px; line-height: 1.45; }
.btw_consent_placeholder a,
.btw_consent_placeholder a:visited,
.btw_consent_placeholder a:focus,
.btw_consent_placeholder a:active { color: var(--btw-consent-link, var(--btw-consent-primary)); }
.btw_consent_placeholder a:hover { color: var(--btw-consent-link-hover, var(--btw-consent-primary-hover)); }
.btw_consent_placeholder-title { font-size: 18px !important; font-weight: 600; }
.btw_consent_placeholder-privacy { font-size: 14px !important; }
.btw_consent_placeholder-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}
.btw_consent_placeholder-actions .btw_consent_btn { width: auto !important; min-height: 44px !important; font-size: 15px !important; padding: 8px 16px !important; }
.btw_consent_blocked .btw_consent_btn-ghost,
[data-btw-consent-overlay] .btw_consent_btn-ghost { background: #fff; color: var(--btw-consent-primary); }
.btw_consent_blocked .btw_consent_btn-ghost:hover,
[data-btw-consent-overlay] .btw_consent_btn-ghost:hover { color: var(--btw-consent-btn-text-hover, #fff); }

/* [btw_consent_services] – Dienste-Liste für die Datenschutzerklärung (übernimmt Schrift und Farben des Themes) */
.btw_consent_service-list { margin: 1.5em 0; }
.btw_consent_service-list .btw_consent_sl-cat { margin: 0 0 2em; }
.btw_consent_service-list .btw_consent_sl-title { margin: 0 0 .4em; }
.btw_consent_service-list .btw_consent_sl-desc { margin: 0 0 1em; opacity: .85; }
.btw_consent_service-list .btw_consent_sl-item { margin: 0 0 1em; padding: 1em 1.2em; border: 1px solid rgba(0, 0, 0, .12); border-radius: 8px; }
.btw_consent_service-list .btw_consent_sl-name { margin: 0 0 .6em; font-size: 1.05em; }
.btw_consent_service-list .btw_consent_sl-dl { display: flex; flex-wrap: wrap; gap: .35em 1em; margin: 0; font-size: .92em; }
.btw_consent_service-list .btw_consent_sl-dl dt { flex: 0 0 calc(28% - .5em); min-width: 140px; margin: 0; font-weight: 600; }
.btw_consent_service-list .btw_consent_sl-dl dd { flex: 1 1 calc(72% - .5em); min-width: 0; margin: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
	.btw_consent_service-list .btw_consent_sl-item { padding: .8em .9em; }
	.btw_consent_service-list .btw_consent_sl-dl dt,
	.btw_consent_service-list .btw_consent_sl-dl dd { flex: 0 0 100%; }
	.btw_consent_service-list .btw_consent_sl-dl dd { margin-bottom: .4em; }
}

/* Blockierte Bilder (z. B. Gravatar): neutrale Fläche statt des Bildes */
img.btw_consent_blocked-img { background: #e5e7eb; }

/* Elementor-Video-Widget */
[data-btw-consent-overlay]:not(.btw_consent_unblocked) > .btw_consent_placeholder { position: relative; z-index: 2; min-height: 240px; }
[data-btw-consent-overlay] .btw_consent_btn { display: block; border: 2px solid var(--btw-consent-primary); border-radius: var(--btw-consent-btn-r, var(--btw-consent-radius)); background: var(--btw-consent-primary); color: var(--btw-consent-btn-text, #fff); font-family: inherit; font-weight: 600; cursor: pointer; }

/* WordPress-Einbettungen mit festem Seitenverhältnis: solange blockiert, Höhe aus dem Platzhalter */
.wp-has-aspect-ratio .wp-block-embed__wrapper:has(> .btw_consent_blocked:not(.btw_consent_unblocked))::before { display: none; }
.wp-has-aspect-ratio .wp-block-embed__wrapper > .btw_consent_blocked.btw_consent_unblocked { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* Hinweis an Formularen mit reCAPTCHA */
.btw_consent_form-gate {
	margin: 12px 0;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-left: 4px solid var(--btw-consent-primary, #1f2937);
	border-radius: 4px;
	background: #f6f7f8;
	font-size: 14px;
	line-height: 1.45;
	color: #212529;
}
.btw_consent_form-gate p { margin: 0 0 10px; }
.btw_consent_form-gate a,
.btw_consent_form-gate a:visited,
.btw_consent_form-gate a:focus,
.btw_consent_form-gate a:active { color: var(--btw-consent-link, var(--btw-consent-primary, #1f2937)); }
.btw_consent_form-gate .btw_consent_btn {
	display: inline-block;
	width: auto;
	min-height: 40px;
	padding: 8px 16px;
	border: 2px solid var(--btw-consent-primary, #1f2937);
	border-radius: var(--btw-consent-btn-r, 4px);
	background: var(--btw-consent-primary, #1f2937);
	color: var(--btw-consent-btn-text, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.btw_consent_form-gate .btw_consent_btn:hover { background: var(--btw-consent-primary-hover, #374151); border-color: var(--btw-consent-primary-hover, #374151); }
.btw_consent_form-gate .btw_consent_btn:disabled { opacity: .7; cursor: wait; }
.btw_consent_form-gate-alert { border-color: var(--btw-consent-primary, #1f2937); box-shadow: 0 0 0 2px rgba(0, 0, 0, .15); }

/* Leiste: ab lg Text links, Buttons rechts */
@media (min-width: 992px) {
	#btw_consent_root.btw_consent_layout-bar [data-btw-consent-view="main"] { display: flex; align-items: center; gap: 40px; }
	#btw_consent_root.btw_consent_layout-bar .btw_consent_main-content { flex: 1 1 auto; min-width: 0; }
	#btw_consent_root.btw_consent_layout-bar [data-btw-consent-view="main"] .btw_consent_cats { margin-bottom: 0; }
	#btw_consent_root.btw_consent_layout-bar [data-btw-consent-view="main"] .btw_consent_buttons { flex: 0 0 360px; }
	#btw_consent_root.btw_consent_layout-bar .btw_consent_links { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
	/* Auf Smartphones liegt der runde Button sonst immer über Inhalten – Widerruf dort über [btw_consent_link] */
	#btw_consent_widget { display: none !important; }
	#btw_consent_root { padding: 8px; align-items: flex-end; }
	#btw_consent_root .btw_consent_dialog { padding: 22px 18px 14px; max-height: calc(100dvh - 16px); }
	#btw_consent_root .btw_consent_head { gap: 12px; margin-bottom: 12px; }
	#btw_consent_root .btw_consent_icon { flex-basis: 36px; width: 36px; height: 36px; }
	#btw_consent_root .btw_consent_icon svg { width: 18px; height: 18px; }
	#btw_consent_root .btw_consent_title { font-size: 19px; }
	#btw_consent_root .btw_consent_text, #btw_consent_root .btw_consent_text p { font-size: 14px; line-height: 1.55; }
	#btw_consent_root .btw_consent_cats { padding: 10px; margin: 14px 0 16px; }
	#btw_consent_root .btw_consent_check { font-size: 14px; padding: 7px 12px 7px 8px; }
	#btw_consent_root .btw_consent_btn-reject,
	#btw_consent_root .btw_consent_btn-accept { flex-basis: 100%; }
	#btw_consent_root .btw_consent_btn-accept { order: -1; }
	#btw_consent_root .btw_consent_btn { min-height: 46px; font-size: 15px; }
	#btw_consent_root .btw_consent_group { padding: 12px 12px 4px; }
	#btw_consent_root .btw_consent_service dl { gap: 2px; }
	#btw_consent_root .btw_consent_service dt,
	#btw_consent_root .btw_consent_service dd { flex: 0 0 100%; }
	#btw_consent_root .btw_consent_service dd { margin-bottom: 6px; }
	.btw_consent_placeholder { padding: 16px 12px; }
	.btw_consent_has-preview .btw_consent_placeholder-box { padding: 14px 12px; }
	.btw_consent_placeholder-actions .btw_consent_btn { flex: 1 1 100%; }
}

@media (max-width: 374.98px) {
	#btw_consent_root .btw_consent_dialog { padding: 18px 14px 12px; }
	#btw_consent_root .btw_consent_icon { display: none; }
	#btw_consent_root .btw_consent_title { font-size: 18px; }
	#btw_consent_root .btw_consent_check { flex: 1 1 100%; }
	#btw_consent_root .btw_consent_links a + a::before { margin: 0 6px; }
}

@media (prefers-reduced-motion: reduce) {
	#btw_consent_root *, #btw_consent_widget { transition: none !important; animation: none !important; }
}
