/* Black-Friday-Aktion (inc/black-friday.php) – wird nur geladen, solange die Aktion läuft.
   Schwarz = Textfarbe der Website als Fläche. Orange nur für den Ring, die Durchstreichung und den Button.
   Das eine laute Element ist der angeschnittene Ring im Startseiten-Band (Kreismotiv der Website),
   alles andere bleibt ruhig. Keine Versalien, kein Braun. */

:root {
	--bf-black: #1C1E21;
	--bf-orange: #F39200;
	--bf-white: #fff;
	--bf-muted: rgba(255, 255, 255, .72);
	--bf-line: rgba(255, 255, 255, .16);
	--bf-bar-h: 38px;
}

/* --- Was wegfällt (eine Zeile, durchgestrichen) und klein darunter, was bleibt --- */
.bf-costs { margin: 0 0 20px; }

.bf-dropped {
	list-style: none;
	margin: 0 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

.bf-dropped li {
	margin: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.4;
}

.bf-dropped li::before { display: none; }

/* Durchgestrichen wie ein alter Preis – die Linie in Orange */
.bf-dropped s {
	text-decoration: line-through;
	text-decoration-color: var(--bf-orange);
	text-decoration-thickness: 2px;
}

.bf-remaining {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bf-muted);
}

.bf-note {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bf-muted);
	max-width: 62ch;
}

/* Timer: Ziffern gleich breit, damit nichts springt */
.bf-timer {
	margin: 0;
	font-family: var(--body-font-bold);
	font-size: 17px;
	line-height: 1.4;
	color: var(--bf-orange);
	font-variant-numeric: tabular-nums;
}

.bf-timer.is-large {
	margin-top: 28px;
	font-family: var(--heading-font);
	font-size: 34px;
	line-height: 1.1;
}

.bf-timer.is-bar {
	flex: 0 0 auto;
	font-size: 15px;
}

.bf-intro {
	margin: 0 0 24px;
	font-size: 19px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .88);
	max-width: 52ch;
}

/* --- Ring: Kreismotiv der Website, hier mit „0 €“ --- */
.bf-ring {
	border-radius: 50%;
	border: 20px solid var(--bf-orange);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--bf-white);
	pointer-events: none;
}

.bf-ring-value {
	font-family: var(--heading-font);
	line-height: .9;
	white-space: nowrap;
}

.bf-ring-euro { margin-left: .06em; }

.bf-ring-unit {
	font-family: var(--body-font-bold);
	margin-top: .4em;
}

/* --- Leiste über dem Header --- */
.has-bf-topbar #page { padding-top: var(--bf-bar-h); }
.has-bf-topbar .site-header { top: var(--wp-admin--admin-bar--height, 0px); }

.bf-topbar {
	/* Sitzt oben im fixierten Header (padding-top 15px); #page rückt um die Leistenhöhe nach unten. */
	margin: -15px 0 15px;
	background: var(--bf-black);
	height: var(--bf-bar-h);
}

.bf-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 100%;
	margin: 0;
	padding: 0 16px;
	color: var(--bf-white);
	font-size: 15px;
	line-height: 1;
	white-space: nowrap;
}

.bf-topbar-text {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bf-topbar a,
.bf-topbar a:visited {
	flex: 0 0 auto;
	color: var(--bf-white);
	font-family: var(--body-font-bold);
	text-decoration: underline;
	text-decoration-color: var(--bf-orange);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.bf-topbar a:hover { color: var(--bf-orange); }

/* --- Produktkarte: Badge in der Form von .product-tags.normal --- */
.product-card .product-tags.bf-badge {
	position: absolute;
	top: 20px;
	left: 15px;
	z-index: 4;
	background: var(--bf-black);
	color: var(--bf-white);
	border-radius: 12px;
	padding: 4px 16px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
	text-transform: none;
}

.product-card a .product-tags.bf-badge,
.product-card a:visited .product-tags.bf-badge { color: var(--bf-white); }

.product-card .bf-card-note {
	margin: -4px 0 12px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--body-font-color);
}

.product-card .bf-card-note small {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #646a73;
}

/* Kurzen Aktionsbetrag optisch an die längeren regulären Preise angleichen.
   Nur der Betrag wächst; die Einheit behält ihre vorhandene Schriftgröße. */
.product-card.is-bf .bf-card-amount {
	font-size: 1.25em;
	line-height: 1.1;
}

/* --- Produktseite: Kasten unter dem Titel (Radius wie .data-card) --- */
.bf-product {
	background: var(--bf-black);
	color: var(--bf-white);
	border-radius: 12px;
	padding: 22px 24px 20px;
	margin: 0 0 24px;
}

@media (max-width: 767px) {
	.single-product .product-info .bf-product {
		order: 3;
	}
}

.bf-product-title {
	font-family: var(--heading-font);
	font-size: 24px;
	line-height: 1.25;
	margin: 0 0 16px;
}

.bf-product .bf-costs { margin-bottom: 12px; }
.bf-product .bf-dropped li { font-size: 18px; }

.bf-price-note p {
	border-left: 3px solid var(--bf-orange);
	padding: 2px 0 2px 12px;
}

.price-summary-line.bf-price-summary strong { color: var(--bf-black); }

.bf-checkout-row th,
.bf-checkout-row td { background: #fbeeda; }
.bf-checkout-note { font-size: 14px; }

/* --- Startseite: schwarzes Band über die volle Breite, Ring rechts angeschnitten --- */
.bf-section { scroll-margin-top: 120px; }

.bf-band {
	position: relative;
	overflow: hidden;
	background: var(--bf-black);
	color: var(--bf-white);
	padding: 96px 0 88px;
}

.bf-band-text {
	position: relative;
	z-index: 2;
	max-width: 640px;
}

.bf-band h2 {
	color: var(--bf-white);
	margin: 0 0 28px;
}

.bf-ring.is-band {
	position: absolute;
	top: 50%;
	right: -90px;
	width: 560px;
	aspect-ratio: 1;
	transform: translateY(-50%);
	border-width: 26px;
	z-index: 1;
}

.bf-ring.is-band .bf-ring-value { font-size: 168px; }
.bf-ring.is-band .bf-ring-unit { font-size: 24px; }

.bf-section .bf-products { padding: 64px 0 24px; }
.bf-products { scroll-margin-top: 120px; }

/* --- Startseite: Hero im vorhandenen hellen Design --- */
.bf-hero .bf-hero-label {
	background: var(--bf-black);
	color: var(--bf-white);
}

.bf-hero h1 { text-wrap: balance; }
.bf-hero-body { padding: 28px 0 32px; max-width: 48ch; }
.main-slider .bf-hero p { padding: 0; }
.main-slider .bf-hero .bf-hero-benefits {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.45;
	color: var(--body-font-color);
}
.bf-hero .bf-dropped { margin: 0; gap: 6px 24px; }
.bf-hero .bf-dropped li { font-size: 20px; color: var(--body-font-color); }

.main-slider .bf-hero .bf-timer.is-hero {
	margin: 28px 0 0;
	font-family: var(--body-font);
	font-size: 16px;
	line-height: 1.3;
	color: var(--body-font-color);
}
.bf-countdown-caption {
	display: block;
	margin-bottom: 12px;
	font-size: 14px;
	color: #646a73;
}
.bf-countdown-units { display: inline-flex; }
.bf-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	padding: 0 18px;
	border-right: 1px solid #f3d7ad;
}
.bf-countdown-unit:first-child { padding-left: 0; }
.bf-countdown-unit:last-child { border-right: 0; }
.bf-countdown-value {
	font-family: var(--heading-font);
	font-size: 36px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--second-font-color);
}
.bf-countdown-label { margin-top: 6px; font-size: 13px; color: #646a73; }

/* --- Popup beim Verlassen --- */
.bf-popup {
	border: 0;
	padding: 40px 40px 32px;
	border-radius: 12px;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: hidden auto;
	background: var(--bf-black);
	color: var(--bf-white);
}

.bf-popup::backdrop { background: rgba(28, 30, 33, .6); }

/* Einzige Bewegung: das Popup erscheint, weil es auf eine Aktion des Besuchers reagiert. */
.bf-popup[open] { animation: bf-in .3s var(--main-transition-value); }

@keyframes bf-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-popup[open] { animation: none; }
}

.bf-ring.is-popup {
	position: absolute;
	top: -70px;
	right: -70px;
	width: 220px;
	aspect-ratio: 1;
	border-width: 14px;
	padding: 60px 60px 0 0;
}

.bf-ring.is-popup .bf-ring-value { font-size: 44px; }
.bf-ring.is-popup .bf-ring-unit { display: none; }

.bf-popup-close {
	position: absolute;
	top: 12px;
	left: 12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--bf-white);
	cursor: pointer;
	display: grid;
	place-items: center;
}

.bf-popup-close:hover { background: var(--bf-line); }
.bf-popup-close:focus-visible { outline: 2px solid var(--bf-orange); outline-offset: 2px; }

.bf-popup-title {
	position: relative;
	font-family: var(--heading-font);
	font-size: 34px;
	line-height: 1.15;
	margin: 24px 130px 14px 0;
}

.bf-popup .bf-intro { font-size: 17px; margin-bottom: 20px; }

.bf-popup .bf-timer { margin-bottom: 24px; }

.bf-popup-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 0;
}

.button.bf-button {
	background: var(--bf-orange);
	border-color: var(--bf-orange);
	color: var(--bf-black);
}

.button.bf-button:hover .button-text { color: var(--bf-black); }

.bf-popup-later {
	border: 0;
	background: none;
	color: var(--bf-white);
	font-size: 16px;
	cursor: pointer;
	padding: 8px 0;
	text-decoration: underline;
	text-underline-offset: 4px;
	font-family: var(--body-font);
}

.bf-popup-later:focus-visible,
.bf-topbar a:focus-visible { outline: 2px solid var(--bf-orange); outline-offset: 3px; }

/* --- Kleinere Bildschirme --- */
@media (max-width: 1199px) {
	.bf-band-text { max-width: 560px; }
	.bf-ring.is-band { width: 440px; right: -140px; border-width: 22px; }
	.bf-ring.is-band .bf-ring-value { font-size: 128px; }
}

@media (max-width: 767px) {
	:root { --bf-bar-h: 34px; }
	.bf-topbar-inner { font-size: 14px; gap: 12px; justify-content: space-between; }
	.bf-timer.is-bar { display: none; }
	.bf-timer.is-large { font-size: 26px; margin-top: 22px; }

	.bf-band { padding: 220px 0 48px; }
	.bf-ring.is-band {
		top: -120px;
		right: -60px;
		transform: none;
		width: 300px;
		border-width: 16px;
		padding: 90px 40px 0 0;
	}
	.bf-ring.is-band .bf-ring-value { font-size: 72px; }
	.bf-ring.is-band .bf-ring-unit { font-size: 16px; }
	.bf-intro { font-size: 17px; }
	.bf-dropped li { font-size: 19px; }
	.bf-section .bf-products { padding-top: 40px; }
	.main-slider .bf-hero .bf-hero-benefits { font-size: 20px; }
	.bf-hero .bf-dropped { column-gap: 18px; }
	.bf-hero .bf-dropped li { font-size: 18px; }
	.bf-hero-body { padding: 20px 0 24px; }
	.bf-countdown-unit { min-width: 54px; padding: 0 12px; }
	.bf-countdown-value { font-size: 28px; }

	.bf-popup { padding: 32px 22px 24px; }
	.bf-popup-title { font-size: 26px; margin-right: 96px; }
	.bf-ring.is-popup { width: 170px; top: -60px; right: -60px; padding: 50px 50px 0 0; }
	.bf-ring.is-popup .bf-ring-value { font-size: 34px; }
	.bf-checkout-note { font-size: 13px; }
}

#bf-product-plans { scroll-margin-top: 180px; }
