/* DbE Consent – im Stil des „Shores“-Artworks: dunkel, warmes Gold, Cinzel für Überschriften. */
.dbec,
.dbec-fab,
.dbec-embed {
	--dbec-bg: #12100d;
	--dbec-surface: #1b1813;
	--dbec-line: rgba(172, 155, 113, 0.45);
	--dbec-gold: #ac9b71;
	--dbec-gold-hi: #c9b685;
	--dbec-text: #ede6d6;
	--dbec-muted: #b5ab96;
	--dbec-ink: #12100d;
	--dbec-font: inherit;
	--dbec-head: "DBEC Cinzel", "Cinzel", Georgia, serif;
}

.dbec[hidden],
.dbec-fab[hidden],
.dbec [hidden] { display: none !important; }

.dbec {
	position: fixed;
	z-index: 2147483000;
	left: 50%;
	bottom: 24px;
	width: min(560px, calc(100% - 32px));
	transform: translate(-50%, 16px);
	opacity: 0;
	transition: opacity 0.35s ease, transform 0.35s ease;
	font-family: var(--dbec-font);
	color: var(--dbec-text);
}
.dbec--visible { opacity: 1; transform: translate(-50%, 0); }

.dbec__panel {
	background: linear-gradient(180deg, var(--dbec-surface), var(--dbec-bg));
	border: 1px solid var(--dbec-line);
	border-radius: 6px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
	padding: 22px 24px 16px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

/* Sprachumschalter oben rechts im Banner */
.dbec__panel { position: relative; }
.dbec__lang { position: absolute; top: 12px; right: 18px; }
.dbec__lang .dbe-lang { font-size: 13px; gap: 6px; }
.dbec__lang .dbe-lang__link { padding: 8px 2px; }
.dbec__lang + .dbec__title { padding-right: 84px; }

.dbec__title {
	margin: 0 0 10px !important;
	font-family: var(--dbec-head) !important;
	font-weight: 700 !important;
	font-size: 21px !important;
	line-height: 1.25 !important;
	letter-spacing: 0.03em;
	color: var(--dbec-gold-hi) !important;
	text-transform: none !important;
}

.dbec__text {
	margin: 0 0 16px !important;
	font-size: 15px;
	line-height: 1.55;
	color: var(--dbec-text);
}
.dbec__text strong { color: #fff; }
.dbec label,
.dbec p,
.dbec code { color: inherit; font-family: var(--dbec-font); }

.dbec__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.dbec-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 14px;
	border-radius: 4px;
	border: 1px solid var(--dbec-gold);
	font: 600 16px/1.2 var(--dbec-font);
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* Gegen Theme-Buttonstile absichern (z. B. Hello Elementor: pinker Rahmen) */
.dbec-btn, .dbec-btn:hover, .dbec-btn:focus { border: 1px solid var(--dbec-gold) !important; text-decoration: none !important; box-shadow: none; }
.dbec-btn--primary, .dbec-btn--primary:focus { background: var(--dbec-gold) !important; color: var(--dbec-ink) !important; }
.dbec-btn--primary:hover { background: var(--dbec-gold-hi) !important; border-color: var(--dbec-gold-hi) !important; color: var(--dbec-ink) !important; }
.dbec-btn--secondary, .dbec-btn--secondary:focus { background: transparent !important; color: var(--dbec-text) !important; }
.dbec-btn--secondary:hover { background: rgba(172, 155, 113, 0.14) !important; color: var(--dbec-text) !important; }
.dbec-btn:focus-visible,
.dbec__link:focus-visible,
.dbec__switch input:focus-visible + .dbec__slider { outline: 2px solid var(--dbec-gold-hi); outline-offset: 2px; }

.dbec__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-top: 12px;
	font-size: 13px;
}
.dbec__link {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--dbec-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.dbec__link:hover { color: var(--dbec-text); }
button.dbec__link, button.dbec__link:hover, button.dbec__link:focus { background: none !important; border: 0 !important; padding: 0 !important; border-radius: 0; color: var(--dbec-muted) !important; font: inherit; }
button.dbec__link:hover { color: var(--dbec-text) !important; }

.dbec__note {
	margin: 8px 0 0 !important;
	font-size: 12px;
	color: var(--dbec-muted);
}

/* Details */
.dbec__details {
	border-top: 1px solid var(--dbec-line);
	margin: 0 0 16px;
	padding-top: 12px;
}
.dbec__group { padding: 8px 0; border-bottom: 1px solid rgba(172, 155, 113, 0.18); }
.dbec__group-desc { margin: 6px 0 0 50px !important; font-size: 13px; line-height: 1.45; color: var(--dbec-muted); }
.dbec__group-label { font-weight: 600; font-size: 15px; color: var(--dbec-text) !important; }
.dbec__group-label em { font-weight: 400; color: var(--dbec-muted); }
.dbec__id { margin: 10px 0 0 !important; font-size: 12px; color: var(--dbec-muted); }
.dbec__id code { color: var(--dbec-text); background: none; font-size: 12px; word-break: break-all; }

.dbec__switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.dbec__switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dbec__slider {
	position: relative;
	flex: 0 0 38px;
	height: 22px;
	border-radius: 22px;
	background: #3a352c;
	transition: background-color 0.2s ease;
}
.dbec__slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--dbec-text);
	transition: transform 0.2s ease;
}
.dbec__switch input:checked + .dbec__slider { background: var(--dbec-gold); }
.dbec__switch input:checked + .dbec__slider::after { transform: translateX(16px); background: var(--dbec-ink); }
.dbec__switch input:disabled + .dbec__slider { opacity: 0.6; }

/* Floating-Button für spätere Änderungen */
.dbec-fab {
	position: fixed;
	z-index: 2147482000;
	left: 16px;
	bottom: 16px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--dbec-line);
	background: var(--dbec-bg);
	color: var(--dbec-gold);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0.75;
	transition: opacity 0.2s ease;
}
.dbec-fab:hover,
.dbec-fab:focus-visible { opacity: 1; }
/* Theme-Buttonstile (OceanWP) neutralisieren */
.dbec-fab,
.dbec-fab:hover,
.dbec-fab:focus {
	background: var(--dbec-bg) !important;
	color: var(--dbec-gold) !important;
	border: 1px solid var(--dbec-line) !important;
	padding: 0 !important;
	min-height: 0 !important;
	line-height: 1 !important;
	box-shadow: none !important;
}
.dbec-fab svg { display: block; width: 20px; height: 20px; fill: currentColor; }

/* Platzhalter für Videos */
.dbec-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: var(--dbec-bg) center / cover no-repeat;
	color: var(--dbec-text);
	overflow: hidden;
}
/* Geladener Player: Abdunklung weg, Player ganz oben (sonst liegt die Fläche über dem Player und schluckt Klicks) */
.dbec-embed.dbec-embed--loaded::before { content: none; display: none; }
.dbec-embed__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dbec-embed::before { z-index: 1; }
.dbec-embed__box { z-index: 2; }
.dbec-embed__frame { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border: 0; }
.dbec-embed::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 8, 6, 0.62);
}
.dbec-embed__box {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 20px;
	text-align: center;
}
.dbec-embed__box p { margin: 0 !important; max-width: 460px; font-size: 14px; line-height: 1.45; color: var(--dbec-text); }
.dbec-embed__box .dbec-btn { min-width: 180px; }
.dbec-embed__play { width: 64px; height: 64px; color: var(--dbec-gold-hi); }
.dbec-embed__always { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--dbec-muted); cursor: pointer; }
.dbec-embed__always input { accent-color: var(--dbec-gold); }

/* Kleine Video-Kacheln: kompakter Platzhalter */
.dbec-embed { container-type: inline-size; }
@container (max-width: 520px) {
	.dbec-embed::before { background: rgba(10, 8, 6, 0.72); }
	.dbec-embed__box { gap: 8px; padding: 12px; }
	.dbec-embed__play { display: none; }
	.dbec-embed__box .dbec-btn { min-width: 0; min-height: 44px; padding: 8px 16px; font-size: 14px; }
	.dbec-embed__box p { font-size: 12px; line-height: 1.4; max-width: 300px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.dbec-embed__always { font-size: 12px; }
}
@container (max-width: 340px) {
	.dbec-embed__always { display: none; }
}

@media (max-width: 600px) {
	.dbec {
		left: 0;
		bottom: 0;
		width: 100%;
		transform: translate(0, 16px);
	}
	.dbec--visible { transform: translate(0, 0); }
	.dbec__panel {
		border-radius: 10px 10px 0 0;
		border-left: 0;
		border-right: 0;
		border-bottom: 0;
		padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
		max-height: 85vh;
	}
	.dbec__title { font-size: 18px !important; }
	.dbec__text { font-size: 14px; }
	.dbec__actions { grid-template-columns: 1fr; }
	.dbec-embed__box p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.dbec, .dbec-btn, .dbec__slider, .dbec__slider::after { transition: none; }
}
