/* BG Rein – Einwilligungs-Banner & 2-Klick-Platzhalter (inc/datenschutz.php)
   Alle drei Hauptschaltflächen sind bewusst gleich gestaltet
   (gleichwertige Wahl, keine „Dark Patterns"). */

.bgc[hidden], .bgc [hidden] { display: none !important; }

.bgc {
	position: fixed;
	z-index: 10000;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 12px;
	pointer-events: none;
	font-family: var(--font-ui, Arial, Helvetica, sans-serif);
}
.bgc__box {
	pointer-events: auto;
	max-width: 760px;
	margin: 0 auto;
	max-height: calc(100vh - 24px);
	overflow-y: auto;
	background: #fff;
	color: #000;
	border-top: 4px solid var(--color-accent-green, #005959);
	border-radius: 6px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, .25);
	padding: 20px 22px;
	font-size: .9375rem;
	line-height: 1.5;
}
.bgc__title {
	margin: 0 0 .4em;
	font-family: var(--font-display, Georgia, serif);
	font-size: 1.5rem;
	font-weight: 600;
	color: #000;
}
.bgc__title:focus { outline: none; }
.bgc__text { margin: 0 0 1em; }
.bgc a { color: #005959; text-decoration: underline; }
.bgc a:hover { color: #003b3b; }

.bgc__prefs fieldset { border: 0; margin: 0 0 1em; padding: 0; }
.bgc__opt {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 0;
	border-top: 1px solid #E0E0E0;
}
.bgc__opt input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: #005959; }
.bgc__opt label { cursor: pointer; }
.bgc__opt input:disabled + label { cursor: default; }
.bgc__opt label span { display: block; color: #000; font-size: .875rem; }

.bgc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bgc__btn {
	flex: 1 1 160px;
	min-height: 44px;
	padding: 10px 16px;
	border: 2px solid #005959 !important;
	border-radius: 4px;
	background: #005959 !important;
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.bgc__btn:hover { background: #003b3b !important; border-color: #003b3b !important; }
.bgc__btn:focus-visible,
.bgc-embed__btn:focus-visible,
.bgc-footer-link:focus-visible,
.bgc-open-btn:focus-visible { outline: 3px solid #E67E22; outline-offset: 2px; }

/* Footer-Link (wird von consent.js in .bgr-footer__legal eingefügt) */
.bgc-footer-link {
	background: none !important;
	border: 0;
	padding: 0;
	color: inherit !important;
	font: inherit;
	cursor: pointer;
	text-decoration: none;
}
.bgc-footer-link:hover { color: var(--bgr-f-accent, #8fe3b5) !important; }

/* ── 2-Klick-Platzhalter ───────────────────────── */
.bgc-embed {
	margin: 1.5em 0;
	min-height: 200px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EEF2F2;
	border: 1px solid #C9D6D6;
	border-radius: 6px;
	color: #000;
	font-family: var(--font-ui, Arial, Helvetica, sans-serif);
	font-size: .9375rem;
	line-height: 1.5;
	text-align: center;
}
.bgc-embed__ph { max-width: 460px; padding: 20px; }
.bgc-embed__ph p { margin: 0 0 .75em; }
.bgc-embed__title { font-weight: 700; font-size: 1.05rem; }
.bgc-embed__ph a { color: #005959 !important; text-decoration: underline; }
.bgc-embed__actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; }
.bgc-embed__btn {
	min-height: 44px;
	padding: 8px 18px;
	border: 0;
	border-radius: 4px;
	background: #005959 !important;
	color: #fff !important;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.bgc-embed__btn:hover { background: #003b3b !important; }
.bgc-embed__always { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; cursor: pointer; }
.bgc-embed__always input { width: 18px; height: 18px; margin: 0; accent-color: #005959; }
.bgc-embed__open { font-size: .875rem; }

/* In WordPress-Einbettungen mit festem Seitenverhältnis die Fläche füllen */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .bgc-embed {
	position: absolute;
	inset: 0;
	margin: 0;
	min-height: 0;
}
.ig-embed .bgc-embed { margin: 0; min-height: 260px; }
.bgc-embed__loaded:focus { outline: none; }

@media (max-width: 600px) {
	.bgc { padding: 0; }
	.bgc__box { border-radius: 0; padding: 16px; max-height: 85vh; }
	.bgc__title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: no-preference) {
	.bgc__box { animation: bgc-in .25s ease-out; }
	@keyframes bgc-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media print { .bgc, .bgc-embed__actions { display: none !important; } }
