/* BlueBox-PopUp 1.0.0 */
html.bbpu-lock,
html.bbpu-lock body {
	overflow: hidden !important;
}

.bbpu {
	position: fixed;
	inset: 0;
	z-index: 2147483000; /* über Salient-Header, Off-Canvas und Sticky-Elementen */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
	outline: none;
}

.bbpu.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .25s ease, visibility 0s;
}

.bbpu__backdrop {
	position: absolute;
	inset: 0;
	background: var(--bbpu-overlay);
	-webkit-backdrop-filter: var(--bbpu-bf);
	backdrop-filter: var(--bbpu-bf);
}

.bbpu__box {
	position: relative;
	box-sizing: border-box;
	max-width: 100%;
	padding: var(--bbpu-pad);
	background: var(--bbpu-pad-color);
	line-height: 0;
	transform: scale(.96);
	transition: transform .25s ease;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}

.bbpu.is-open .bbpu__box {
	transform: none;
}

.bbpu .bbpu__img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(var(--bbpu-max), calc(100vw - 32px - 2 * var(--bbpu-pad)));
	max-height: calc(100vh - 32px - 2 * var(--bbpu-pad));
	max-height: calc(100dvh - 32px - 2 * var(--bbpu-pad));
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.bbpu .bbpu__link {
	display: block;
	border: 0;
	box-shadow: none;
}

/* Kreuz: Theme-Button-Styles (Salient) gezielt neutralisieren */
.bbpu .bbpu__close {
	position: absolute;
	top: max(2px, calc((var(--bbpu-pad) - 24px) / 2));
	right: max(2px, calc((var(--bbpu-pad) - 24px) / 2));
	z-index: 2;
	width: 24px;
	height: 24px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--bbpu-x);
	font-size: 0;
	line-height: 0;
	text-transform: none;
	cursor: pointer;
	opacity: .85;
	transition: opacity .15s ease, transform .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bbpu .bbpu__close:hover {
	opacity: 1;
	transform: rotate(90deg);
}

.bbpu .bbpu__close:focus {
	outline: none;
}

.bbpu .bbpu__close:focus-visible {
	outline: 2px solid var(--bbpu-x);
	outline-offset: 2px;
}

.bbpu .bbpu__close::before,
.bbpu .bbpu__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
}

.bbpu .bbpu__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.bbpu .bbpu__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
	.bbpu,
	.bbpu__box,
	.bbpu .bbpu__close {
		transition: none !important;
	}
	.bbpu .bbpu__close:hover {
		transform: none;
	}
}
