/* BF Produktvideos – Produktseite */
.bfpv {
	--bfpv-max: 380px;
	--bfpv-accent: #e5642b;
	max-width: var(--bfpv-max);
	margin: 18px auto 10px;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
	clear: both;
}
.bfpv *,
.bfpv *::before,
.bfpv *::after {
	box-sizing: border-box;
}
.bfpv__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	overflow: hidden;
	background: #0d1b1e;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
	isolation: isolate;
}
@supports not (aspect-ratio: 4 / 5) {
	.bfpv__frame { height: 0; padding-top: 125%; }
}
.bfpv .bfpv__poster,
.bfpv .bfpv__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	display: block;
	background: transparent;
}
.bfpv__video {
	z-index: 1;
	opacity: 0;
	transition: opacity .2s ease;
}
.bfpv.is-playing .bfpv__video,
.bfpv.is-paused .bfpv__video,
.bfpv.is-ended .bfpv__video {
	opacity: 1;
}
.bfpv .bfpv__play {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .5));
	color: #fff;
	font: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.bfpv .bfpv__play:hover,
.bfpv .bfpv__play:focus {
	background: linear-gradient(180deg, rgba(0, 0, 0, .04) 40%, rgba(0, 0, 0, .55));
}
.bfpv .bfpv__play:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -6px;
}
.bfpv__playicon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
	transition: transform .15s ease;
}
.bfpv__playicon::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin-left: 7px;
	border-style: solid;
	border-width: 16px 0 16px 26px;
	border-color: transparent transparent transparent #111;
}
.bfpv__playicon svg,
.bfpv__paused svg,
.bfpv__mute svg {
	display: none !important;
}
.bfpv .bfpv__play:hover .bfpv__playicon,
.bfpv .bfpv__play:focus-visible .bfpv__playicon {
	transform: scale(1.07);
}
.bfpv__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 6px 11px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .62);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1.2;
}
.bfpv.is-playing .bfpv__play,
.bfpv.is-paused .bfpv__play,
.bfpv.is-ended .bfpv__play {
	display: none;
}
.bfpv.is-loading .bfpv__playicon {
	animation: bfpv-pulse 1s ease-in-out infinite;
}
@keyframes bfpv-pulse {
	50% { transform: scale(.9); opacity: .75; }
}
.bfpv .bfpv__mute {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .55);
	box-shadow: none;
	cursor: pointer;
}
.bfpv.is-playing .bfpv__mute,
.bfpv.is-paused .bfpv__mute {
	display: flex;
}
.bfpv__mute::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4zm12.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4zm12.5 3a4.5 4.5 0 0 0-2.5-4v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bfpv.is-muted .bfpv__mute::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4zm12.6 3 2.4-2.4-1.1-1.1-2.4 2.4-2.4-2.4-1.1 1.1 2.4 2.4-2.4 2.4 1.1 1.1 2.4-2.4 2.4 2.4 1.1-1.1z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4zm12.6 3 2.4-2.4-1.1-1.1-2.4 2.4-2.4-2.4-1.1 1.1 2.4 2.4-2.4 2.4 1.1 1.1 2.4-2.4 2.4 2.4 1.1-1.1z'/%3E%3C/svg%3E");
}
.bfpv__paused {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	display: none;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: -32px 0 0 -32px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .5);
	pointer-events: none;
}
.bfpv.is-paused .bfpv__paused {
	display: flex;
}
.bfpv__paused::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin-left: 6px;
	border-style: solid;
	border-width: 13px 0 13px 21px;
	border-color: transparent transparent transparent #fff;
}
.bfpv__bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: none;
	height: 4px;
	background: rgba(255, 255, 255, .25);
	pointer-events: none;
}
.bfpv.is-playing .bfpv__bar,
.bfpv.is-paused .bfpv__bar {
	display: block;
}
.bfpv__bar span {
	display: block;
	width: 0;
	height: 100%;
	background: #fff;
}
.bfpv__end {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	padding: 24px;
	background: rgba(8, 18, 20, .74);
	color: #fff;
	text-align: center;
}
.bfpv.is-ended .bfpv__end {
	display: flex;
}
.bfpv .bfpv__end-title {
	margin: 0;
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}
.bfpv .bfpv__replay {
	margin: 0;
	padding: 6px 8px;
	border: 0;
	background: none;
	box-shadow: none;
	color: #fff;
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.bfpv__cta {
	margin-top: 12px;
	text-align: center;
}
.bfpv .bfpv__btn {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 54px;
	margin: 0;
	padding: 10px 16px !important;
	line-height: 1.25 !important;
	text-align: center;
	white-space: normal;
	cursor: pointer;
}
.bfpv .bfpv__btn--end {
	width: auto;
	min-width: 220px;
}
.bfpv__btn-main {
	font-size: 17px;
	font-weight: 700;
}
.bfpv__btn-sub {
	margin-top: 2px;
	font-size: 13px;
	font-weight: 500;
	opacity: .92;
}
.bfpv__btn-sub:empty {
	display: none;
}
.bfpv .bfpv__change {
	display: inline-block;
	margin-top: 8px;
	font-size: 14px;
	text-decoration: underline;
}
.bfpv .bfpv__hint {
	display: none;
	margin: 8px 0 0;
	color: #b3261e;
	font-size: 14px;
	font-weight: 600;
}
.bfpv.has-hint .bfpv__hint {
	display: block;
}
/* Rückfall: Browser-eigene Steuerung, falls die eigene Wiedergabe scheitert */
.bfpv.is-native .bfpv__play,
.bfpv.is-native .bfpv__mute,
.bfpv.is-native .bfpv__paused,
.bfpv.is-native .bfpv__bar,
.bfpv.is-native .bfpv__end {
	display: none !important;
}
.bfpv.is-native .bfpv__video {
	z-index: 6;
	opacity: 1;
}
/* Diagnose (?bfpv_debug=1) */
.bfpv__nojs {
	margin: 8px 0 0;
	padding: 8px 10px;
	border-radius: 6px;
	background: #b3261e;
	color: #fff;
	font: 600 13px/1.4 system-ui, sans-serif;
}
#bfpv-debug {
	position: fixed;
	left: 8px;
	right: 8px;
	bottom: 8px;
	z-index: 2147483647;
	max-height: 46vh;
	overflow: auto;
	padding: 8px 10px 10px;
	border-radius: 8px;
	background: rgba(12, 16, 18, .94);
	color: #e8f0f0;
	font: 11.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .4);
	text-align: left;
	white-space: pre-wrap;
	word-break: break-all;
}
#bfpv-debug b { color: #ffd166; }
#bfpv-debug .bad { color: #ff8a80; }
#bfpv-debug .ok { color: #9be7a3; }
#bfpv-debug button {
	margin: 0 6px 6px 0;
	padding: 3px 8px;
	border: 1px solid #556;
	border-radius: 4px;
	background: #223;
	color: #fff;
	font: inherit;
	cursor: pointer;
}
.bfpv-highlight {
	border-radius: 8px;
	animation: bfpv-hl 1.6s ease;
}
@keyframes bfpv-hl {
	0%, 100% { box-shadow: 0 0 0 0 rgba(229, 100, 43, 0); }
	20%, 60% { box-shadow: 0 0 0 4px rgba(229, 100, 43, .55); }
}
@media (prefers-reduced-motion: reduce) {
	.bfpv__video,
	.bfpv__playicon { transition: none; }
	.bfpv.is-loading .bfpv__playicon,
	.bfpv-highlight { animation: none; }
}
