/* =========================================================
   Berufsfindung Kanton Solothurn: Gestaltungssystem (Design B «Keil»)
   Nur was Elementor nicht nativ abbildet. Alle Farben aus dem Kit.

   Kit-Farben (Website-Einstellungen, Globale Farben):
   primary    Rot (Fläche)          #E2001A
   secondary  Aare                  #0B7A75
   text       Ink (Text)            #2E2E2E
   accent     Rot tief (Text, Hover) #B30014
   bfaarehell Aare hell             #DDF1EF
   bfgrau     Grau                  #5B5B5B
   bfkalk     Kalk (helle Fläche)   #F3F2F0
   bflinie    Linie                 #DAD7D2
   bfrothell  Rot hell (geplant)    #F9D3D7
   bfweiss    Weiss                 #FFFFFF
   ========================================================= */

:root,
body {
	--bf-rot: var(--e-global-color-primary, #E2001A);
	--bf-rot-text: var(--e-global-color-accent, #B30014);
	--bf-aare: var(--e-global-color-secondary, #0B7A75);
	--bf-aare-hell: var(--e-global-color-bfaarehell, #DDF1EF);
	--bf-ink: var(--e-global-color-text, #2E2E2E);
	--bf-grau: var(--e-global-color-bfgrau, #5B5B5B);
	--bf-kalk: var(--e-global-color-bfkalk, #F3F2F0);
	--bf-linie: var(--e-global-color-bflinie, #DAD7D2);
	--bf-rot-hell: var(--e-global-color-bfrothell, #F9D3D7);
	--bf-weiss: var(--e-global-color-bfweiss, #FFFFFF);

	--bf-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
	--bf-text: 'Jost', system-ui, sans-serif;

	--bf-gutter: clamp(16px, 4vw, 56px);
	--bf-sec: clamp(64px, 8vw, 120px);
	--bf-schraeg: 4vw;
	--bf-header-h: 88px;
}

@media (max-width: 640px) {
	:root,
	body {
		--bf-schraeg: 28px;
	}
}

@media (max-width: 1199px) {
	:root,
	body {
		--bf-header-h: 72px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ---------- Basis ---------- */
body.bf-site {
	-webkit-font-smoothing: antialiased;
}

body.bf-site :focus-visible {
	outline: 3px solid var(--bf-aare);
	outline-offset: 3px;
}

body.bf-site h1,
body.bf-site h2,
body.bf-site h3,
body.bf-site h4 {
	text-wrap: balance;
}

/* Anker unter dem Sticky-Header */
body.bf-site .e-con[id] {
	scroll-margin-top: calc(var(--bf-header-h) + 20px);
}

/* ---------- Seiten-Gutter zentral (Containerbreite im Kit: 1168 px) ---------- */
body.bf-site .e-con.e-con-boxed.e-parent {
	padding-left: var(--bf-gutter);
	padding-right: var(--bf-gutter);
}

/* ---------- Helper-Klassen ---------- */
/* Flexibles Kind in Zeilen */
.e-con.bf-grow { --width: auto !important; flex: 1 1 0 !important; min-width: 0; }
/* Container auf Inhaltsbreite */
.e-con.bf-auto { --width: auto !important; flex: 0 0 auto; }
/* Textspalte begrenzen (Prototyp: 66 Zeichen) */
body.bf-site.bf-site .bf-lesebreite { max-width: 66ch; width: 100%; }
/* Abstände zwischen Sektionen wie im Prototyp */
body.bf-site .e-con.bf-sektion { padding-top: var(--bf-sec); padding-bottom: var(--bf-sec); }

.elementor-button { white-space: nowrap; }

/* ---------- Signatur: Keil und schräge Kanten ---------- */
/* Trapez (Keil), z. B. Ticket, Monatsmarke */
.bf-keil { clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%); }

/* Sektion mit schräger Unterkante bzw. Oberkante */
body.bf-site .e-con.bf-schraeg-unten {
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bf-schraeg)), 0 100%);
	padding-bottom: calc(var(--bf-sec) + var(--bf-schraeg));
}
body.bf-site .e-con.bf-schraeg-oben {
	clip-path: polygon(0 var(--bf-schraeg), 100% 0, 100% 100%, 0 100%);
	padding-top: calc(var(--bf-sec) + var(--bf-schraeg));
}

/* Bild mit schräger linker Kante (Seitenkopf), rechter Kante (Rent a Boss), Unterkante (Hero) */
.bf-bild-schraeg-links { clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
.bf-bild-schraeg-rechts { clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.bf-bild-schraeg-unten { clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
.bf-bild-schraeg-detail { clip-path: polygon(0 0, 100% 0, 100% 100%, 8% 100%); }

@media (max-width: 1024px) {
	.bf-bild-schraeg-links { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
}

/* Buttons mit schräger rechter Kante (alle Elementor-Buttons). Ausnahme: .bf-btn-gerade */
body.bf-site .elementor-button {
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
body.bf-site .bf-btn-gerade .elementor-button {
	clip-path: none;
}

/* Titel auf roter Keil-Fläche (Hero) */
body.bf-site .bf-titel-keil .elementor-heading-title {
	display: inline-block;
	background: var(--bf-rot);
	color: var(--bf-weiss);
	padding: 28px 72px 34px 32px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 48px) 100%, 0 100%);
	max-width: min(100%, 13ch);
	box-sizing: content-box;
}
@media (max-width: 640px) {
	body.bf-site .bf-titel-keil .elementor-heading-title {
		padding: 20px 44px 24px 20px;
		clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
	}
}

/* Unterstrichener Textlink (Prototyp .link) */
body.bf-site .bf-link a,
body.bf-site a.bf-link {
	font-weight: 500;
	color: var(--bf-rot-text);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
body.bf-site .bf-auf-farbe .bf-link a,
body.bf-site .bf-auf-farbe a.bf-link {
	color: var(--bf-weiss);
}

/* Kleine Quellenangabe unter Bildern */
.bf-credit { font-size: .75rem; color: var(--bf-grau); }

/* ---------- Veranstaltung: Ticket und Status (Ausgabe der Shortcodes) ---------- */
.bf-ticket {
	display: inline-block;
	vertical-align: top;
	flex: none;
	width: 84px;
	padding: 10px 0 14px;
	background: var(--bf-rot);
	color: var(--bf-weiss);
	text-align: center;
	clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
	font-family: var(--bf-display);
	line-height: 1;
}
.bf-ticket b { display: block; font-size: 2.4rem; font-weight: 800; }
.bf-ticket span { display: block; font-size: .95rem; font-weight: 700; margin-top: 2px; }
.bf-ticket.is-vorbei { background: var(--bf-grau); }
.bf-ticket.is-geplant { background: var(--bf-rot-hell); color: var(--bf-rot-text); }
.bf-ticket.is-geplant b { font-size: 1.6rem; padding-top: 6px; }
.bf-ticket.is-geplant span { font-weight: 500; font-size: .8rem; }
.bf-auf-farbe .bf-ticket { background: var(--bf-weiss); color: var(--bf-rot); }

@media (max-width: 640px) {
	.bf-ticket { width: 66px; }
	.bf-ticket b { font-size: 1.9rem; }
}

.bf-status {
	display: inline-block;
	font-family: var(--bf-text);
	font-size: .8125rem;
	font-weight: 500;
	padding: 5px 10px;
	white-space: nowrap;
}
.bf-status.is-offen { background: var(--bf-aare); color: var(--bf-weiss); }
.bf-status.is-datum_fix { background: var(--bf-kalk); color: var(--bf-ink); box-shadow: inset 0 0 0 1.5px var(--bf-ink); }
.bf-status.is-zeitfenster { background: var(--bf-weiss); color: var(--bf-grau); box-shadow: inset 0 0 0 1.5px var(--bf-grau); }
.bf-status.is-geschlossen,
.bf-status.is-keine,
.bf-status.is-vorbei { color: var(--bf-grau); padding-left: 0; padding-right: 0; }

.bf-meta {
	font-size: .875rem;
	color: var(--bf-grau);
	display: flex;
	flex-wrap: wrap;
	gap: 2px 16px;
}

.bf-zg {
	display: block;
	font-size: .8125rem;
	color: var(--bf-grau);
}
.bf-zg b { font-weight: 500; color: var(--bf-ink); }

/* Statusbox der Einzelseite */
.bf-statusbox {
	padding: 28px 30px 30px;
	color: var(--bf-weiss);
	background: var(--bf-ink);
}
.bf-statusbox.is-offen { background: var(--bf-aare); }
.bf-statusbox.is-keine { background: var(--bf-grau); }
body.bf-site .bf-statusbox h2 {
	font-family: var(--bf-display);
	font-weight: 800;
	font-size: 2.2rem;
	line-height: .95;
	color: var(--bf-weiss);
	margin: 0 0 10px;
}
.bf-statusbox p { margin: 0 0 20px; }
.bf-statusbox p:last-child { margin-bottom: 0; }
.bf-statusbox-aktionen { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.bf-statusbox .bf-link { color: var(--bf-weiss) !important; }
body.bf-site a.bf-box-button,
.bf-box-button {
	display: inline-flex;
	align-items: center;
	background: var(--bf-weiss);
	color: var(--bf-aare);
	font: 700 1.2rem/1 var(--bf-display);
	padding: 16px 34px 16px 24px;
	text-decoration: none;
	clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
body.bf-site a.bf-box-button:hover { background: var(--bf-kalk); color: var(--bf-aare); }

/* Faktenliste der Einzelseite */
.bf-fakten { display: grid; margin: 0; }
.bf-fakten > div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--bf-linie);
}
.bf-fakten dt { color: var(--bf-grau); font-size: .875rem; padding-top: 2px; }
.bf-fakten dd { margin: 0; font-weight: 500; }
@media (max-width: 640px) {
	.bf-fakten > div { grid-template-columns: 96px 1fr; }
}

.bf-bildnachweise { font-size: .75rem; color: var(--bf-grau); }
.bf-bildnachweise p { margin: 0; }

/* Monatstitel mit kleinem Keil */
body.bf-site .bf-monatstitel .elementor-heading-title {
	display: flex;
	align-items: center;
	gap: 14px;
}
body.bf-site .bf-monatstitel .elementor-heading-title::before {
	content: "";
	flex: none;
	width: 28px;
	height: 14px;
	background: var(--bf-rot);
	clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

/* ---------- Loop Item «Veranstaltung» (Zeile mit Keil-Ticket) ---------- */
body.bf-site .e-con.bf-zeile {
	position: relative;
	background: var(--bf-weiss);
	color: var(--bf-ink);
}
body.bf-site .bf-liste-kalk .e-con.bf-zeile { background: var(--bf-kalk); }
body.bf-site .bf-zeile .bf-zeile-titel .elementor-heading-title { margin: 0 0 6px; }
body.bf-site .bf-zeile .bf-zeile-titel .elementor-heading-title a { color: inherit; text-decoration: none; }
/* ganze Zeile klickbar */
body.bf-site .bf-zeile .bf-zeile-titel .elementor-heading-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
body.bf-site .bf-zeile:hover .bf-zeile-titel .elementor-heading-title { color: var(--bf-rot); }
body.bf-site .bf-zeile .bf-zeile-zg { margin-top: 6px; }
body.bf-site .bf-zeile .bf-zeile-filterdata { display: none; }
body.bf-site .bf-zeile .bf-zeile-rechts { text-align: right; }
body.bf-site .bf-zeile .elementor-shortcode { line-height: 1.5; }

@media (max-width: 640px) {
	body.bf-site .e-con.bf-zeile {
		flex-wrap: wrap;
		--gap: 0 16px;
		--column-gap: 16px;
		--row-gap: 0px;
		padding: 0 16px 16px 14px;
	}
	body.bf-site .e-con.bf-zeile > .bf-zeile-inhalt {
		--padding-top: 14px;
		--padding-bottom: 6px;
		flex: 1 1 calc(100% - 82px) !important;
	}
	body.bf-site .e-con.bf-zeile > .bf-zeile-rechts {
		text-align: left;
		padding-left: 82px;
		align-self: flex-start;
	}
	body.bf-site .bf-zeile .bf-zeile-titel .elementor-heading-title { font-size: 1.35rem; }
}

/* Liste der Loop Items: Abstand wie Prototyp (12 px) */
body.bf-site .bf-agenda .elementor-loop-container { --grid-row-gap: 12px; row-gap: 12px; }

/* ---------- Loop Item «Partner» ---------- */
body.bf-site .e-con.bf-partner { position: relative; }
body.bf-site .bf-partner img { max-height: 64px; width: auto; object-fit: contain; }
body.bf-site .bf-partner .bf-partner-link a::after { content: ""; position: absolute; inset: 0; }

/* Partner ohne Logo: Name als Chip (Prototyp «Mit dabei») */
body.bf-site .bf-partner .bf-partner-name .elementor-heading-title {
	display: inline-block;
	border: 2px solid var(--bf-ink);
	padding: 8px 14px;
	font-family: var(--bf-text);
	font-weight: 500;
	font-size: .95rem;
	line-height: 1.3;
	color: var(--bf-ink);
}
body.bf-site .bf-partner .bf-partner-name .elementor-heading-title a { color: inherit; text-decoration: none; }
body.bf-site .bf-partner:has(.bf-partner-logo img) .bf-partner-name { display: none; }
body.bf-site .bf-partner:not(:has(.bf-partner-logo img)) .bf-partner-logo { display: none; }

/* ---------- Seitenkopf (rot, schräge Unterkante) ---------- */
body.bf-site .e-con.bf-kopf {
	background: var(--bf-rot);
	color: var(--bf-weiss);
	padding-top: clamp(48px, 6vw, 88px);
	padding-bottom: calc(clamp(48px, 6vw, 88px) + var(--bf-schraeg));
	clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--bf-schraeg)), 0 100%);
}
body.bf-site .bf-kopf .elementor-heading-title { color: var(--bf-weiss); }

.bf-crumb {
	font-size: .875rem;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}
body.bf-site .bf-crumb a { color: var(--bf-weiss); }

.bf-eckdaten {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 36px 0 0;
	border-top: 2px solid color-mix(in srgb, var(--bf-weiss) 50%, transparent);
	padding-top: 20px;
	max-width: 900px;
}
.bf-eckdaten dt { font-size: .875rem; opacity: .85; }
.bf-eckdaten dd { margin: 4px 0 0; font: 700 1.6rem/1.05 var(--bf-display); }
@media (max-width: 640px) {
	.bf-eckdaten { grid-template-columns: 1fr 1fr; }
}

/* Lead-Text (z. B. Beschreibung der Veranstaltung) */
body.bf-site .bf-lead,
body.bf-site .bf-lead p { font-size: 1.25rem; line-height: 1.5; }
body.bf-site .bf-lead p { max-width: 66ch; }

/* Rote Sektion: Überschriften weiss */
body.bf-site .e-con.bf-rot { background: var(--bf-rot); color: var(--bf-weiss); }
body.bf-site .bf-rot .elementor-heading-title { color: var(--bf-weiss); }

/* Weisser Button auf Farbe */
body.bf-site .bf-btn-weiss .elementor-button { background: var(--bf-weiss); color: var(--bf-rot); }
body.bf-site .bf-btn-weiss .elementor-button:hover { background: var(--bf-kalk); color: var(--bf-rot); }

/* Erste Sektion direkt nach dem Seitenkopf */
body.bf-site .e-con.bf-nach-kopf { padding-top: clamp(32px, 4vw, 56px); padding-bottom: var(--bf-sec); }

/* ---------- Event-Filter (Veranstaltungen) ---------- */
body.bf-site .e-con.bf-filterspalte {
	position: sticky;
	top: calc(var(--bf-header-h) + 20px);
	align-self: flex-start;
}
.bf-filter .bf-fbody { display: grid; gap: 26px; }
.bf-filter .bf-fbody[hidden] { display: none; }
body.bf-site .bf-filter h2 {
	font-family: var(--bf-display);
	font-weight: 800;
	font-size: 1.4rem;
	line-height: .95;
	color: var(--bf-ink);
	margin: 0 0 10px;
}
.bf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
body.bf-site .bf-chips button {
	font: 500 .95rem var(--bf-text);
	padding: 7px 12px;
	border: 2px solid var(--bf-ink);
	border-radius: 0;
	background: var(--bf-weiss);
	color: var(--bf-ink);
	cursor: pointer;
}
body.bf-site .bf-chips button[aria-pressed="true"] { background: var(--bf-ink); color: var(--bf-weiss); }
.bf-monate { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
body.bf-site .bf-monate button {
	display: flex;
	justify-content: space-between;
	font: 700 1.2rem var(--bf-display);
	padding: 7px 0;
	border: 0;
	border-bottom: 1px solid var(--bf-linie);
	border-radius: 0;
	background: none;
	color: var(--bf-ink);
	cursor: pointer;
	text-align: left;
}
body.bf-site .bf-monate button small { font: 500 .8125rem var(--bf-text); color: var(--bf-grau); align-self: center; }
body.bf-site .bf-monate button.is-vorbei { color: #8A8781; }
body.bf-site .bf-monate button.is-jetzt { color: var(--bf-rot-text); }
body.bf-site .bf-monate button[aria-pressed="true"] { color: var(--bf-rot-text); border-bottom: 3px solid var(--bf-rot); }
body.bf-site .bf-fselect {
	font: inherit;
	width: 100%;
	padding: 11px 12px;
	border: 2px solid var(--bf-ink);
	border-radius: 0;
	background: var(--bf-weiss);
	color: var(--bf-ink);
}
body.bf-site .bf-freset {
	font: 500 .95rem var(--bf-text);
	background: none;
	border: 0;
	padding: 0;
	color: var(--bf-rot-text);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
	justify-self: start;
}
body.bf-site .bf-filtertoggle { display: none; }

.bf-anzahl { font-size: .875rem; color: var(--bf-grau); margin: 0 0 22px; }
.bf-leer { padding: 24px 0; color: var(--bf-grau); }
.bf-rot .bf-leer { color: var(--bf-weiss); }
.bf-hinweis { font-size: .875rem; color: var(--bf-grau); margin-top: 16px; }
.e-loop-item[hidden] { display: none !important; }

body.bf-site .bf-monatstitel-js {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 14px;
	font: 800 2rem/.95 var(--bf-display);
	color: var(--bf-ink);
	margin: 28px 0 2px;
}
body.bf-site .bf-monatstitel-js:first-child { margin-top: 0; }
body.bf-site .bf-monatstitel-js::before {
	content: "";
	flex: none;
	width: 28px;
	height: 14px;
	background: var(--bf-rot);
	clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

@media (max-width: 1024px) {
	body.bf-site .e-con.bf-filterspalte { position: static; }
}
@media (max-width: 640px) {
	.bf-monate { grid-template-columns: 1fr 1fr 1fr; }
	body.bf-site .bf-filtertoggle {
		display: inline-flex;
		background: var(--bf-rot);
		color: var(--bf-weiss);
		border: 0;
		font: 700 1.2rem/1 var(--bf-display);
		padding: 16px 34px 16px 24px;
		clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
		cursor: pointer;
		margin-bottom: 16px;
	}
}

/* Vergangene Anlässe (Toggle) */
body.bf-site .bf-vergangen { margin-top: 56px; }
body.bf-site .bf-vergangen summary {
	cursor: pointer;
	font: 800 1.6rem var(--bf-display);
	padding: 12px 0;
	border-top: 2px solid var(--bf-ink);
	list-style: none;
}

/* ---------- Zielgruppen-Weiche (Startseite, auf Rot) ---------- */
.bf-weiche { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
body.bf-site .bf-weiche button {
	font: 700 1.2rem/1 var(--bf-display);
	padding: 12px 18px;
	border: 2px solid var(--bf-weiss);
	border-radius: 0;
	background: transparent;
	color: var(--bf-weiss);
	cursor: pointer;
}
body.bf-site .bf-weiche button:hover { background: color-mix(in srgb, var(--bf-weiss) 15%, transparent); }
body.bf-site .bf-weiche button[aria-pressed="true"] { background: var(--bf-weiss); color: var(--bf-rot); }

/* ---------- Header ---------- */
body.bf-site .e-con.bf-header {
	padding-left: var(--bf-gutter);
	padding-right: var(--bf-gutter);
	background: var(--bf-weiss);
	box-shadow: 0 1px 0 var(--bf-linie);
	z-index: 50;
}
body.bf-site .bf-header .bf-header-zeile { min-height: var(--bf-header-h); }
body.bf-site .bf-header .elementor-widget-theme-site-logo img { height: 50px; width: auto; }
@media (max-width: 1199px) {
	body.bf-site .bf-header .elementor-widget-theme-site-logo img { height: 40px; }
}
/* Hauptmenü: Einträge über die ganze Headerhöhe, Unterstrich unten */
body.bf-site .bf-header .elementor-nav-menu--main,
body.bf-site .bf-header .elementor-nav-menu--main > .elementor-nav-menu,
body.bf-site .bf-header .elementor-nav-menu--main > .elementor-nav-menu > li { align-self: stretch; height: 100%; }
body.bf-site .bf-header .elementor-nav-menu--main .elementor-item {
	height: var(--bf-header-h);
	display: flex;
	align-items: center;
}
/* «Veranstaltungen» als roter Keil */
body.bf-site .bf-header .elementor-nav-menu--main .bf-nav-ev > a.elementor-item {
	background: var(--bf-rot);
	color: var(--bf-weiss);
	padding-left: 26px;
	padding-right: 26px;
	margin-right: 8px;
	clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}
body.bf-site .bf-header .elementor-nav-menu--main .bf-nav-ev > a.elementor-item::after { display: none; }
body.bf-site .bf-header .elementor-nav-menu--main .bf-nav-ev > a.elementor-item:hover,
body.bf-site .bf-header .elementor-nav-menu--main .bf-nav-ev > a.elementor-item.elementor-item-active {
	background: var(--bf-rot-text);
	color: var(--bf-weiss);
}
/* Burger schon zwischen 1025 und 1199 px (Elementor schaltet erst unter 1025 px um) */
@media (min-width: 1025px) and (max-width: 1199px) {
	body.bf-site .bf-header .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--main { display: none; }
	body.bf-site .bf-header .elementor-nav-menu--dropdown-tablet .elementor-menu-toggle { display: flex; }
	body.bf-site .bf-header .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--dropdown { display: block; }
	body.bf-site .bf-header .bf-header-zeile { align-items: center; }
}
/* Ab 1200 px Menü sichtbar, bis 1300 px etwas kompakter */
@media (min-width: 1200px) and (max-width: 1300px) {
	body.bf-site.bf-site .bf-header .elementor-nav-menu--main .elementor-item { font-size: 1.15rem; padding-left: 10px; padding-right: 10px; }
	body.bf-site.bf-site .bf-header .elementor-nav-menu--main .bf-nav-ev > a.elementor-item { padding-left: 20px; padding-right: 20px; }
}
/* Mobilmenü */
body.bf-site.bf-site .bf-header .elementor-nav-menu--dropdown .elementor-item {
	font: 800 1.9rem/1.1 var(--bf-display);
	padding-left: var(--bf-gutter);
	padding-right: var(--bf-gutter);
}
body.bf-site .bf-header .elementor-menu-toggle {
	background: var(--bf-ink);
	color: var(--bf-weiss);
	border-radius: 0;
}

/* ---------- Footer ---------- */
body.bf-site .e-con.bf-footer {
	background: var(--bf-kalk);
	padding-top: calc(56px + var(--bf-schraeg));
	padding-bottom: 28px;
	clip-path: polygon(0 var(--bf-schraeg), 100% 0, 100% 100%, 0 100%);
}
body.bf-site .bf-footer .elementor-widget-theme-site-logo img { height: 46px; width: auto; }
body.bf-site .bf-footer h2.elementor-heading-title { font-size: 1.3rem; }
body.bf-site .bf-footer .elementor-nav-menu--main .elementor-item {
	padding: 3px 0;
	font-family: var(--bf-text);
	font-weight: 400;
	font-size: 1.0625rem;
	color: var(--bf-ink);
}
body.bf-site .bf-footer .elementor-nav-menu--main .elementor-item:hover { color: var(--bf-rot-text); text-decoration: underline; }
body.bf-site .bf-footer address { font-style: normal; line-height: 1.7; }
body.bf-site .e-con.bf-footer-unten {
	border-top: 2px solid var(--bf-ink);
	padding-top: 18px;
	font-size: .8125rem;
	color: var(--bf-grau);
}
body.bf-site .bf-footer-unten .elementor-nav-menu--main .elementor-item { font-size: .8125rem; color: var(--bf-grau); padding: 0 0 0 16px; }

/* Hauptmenü nie zweizeilig */
body.bf-site .bf-header .elementor-nav-menu--main > .elementor-nav-menu { flex-wrap: nowrap; }

/* =========================================================
   Startseite
   ========================================================= */

/* Hero: Bild mit schräger Unterkante, roter Titel-Keil überlappt */
body.bf-site .e-con.bf-hero-bild {
	height: min(64vh, 620px);
	min-height: 380px;
	clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%);
}
body.bf-site .e-con.bf-hero-titel {
	margin-top: -180px;
	position: relative;
	z-index: 2;
}
@media (max-width: 640px) {
	body.bf-site .e-con.bf-hero-bild { height: 46vh; min-height: 300px; max-height: 520px; }
	body.bf-site .e-con.bf-hero-titel { margin-top: -110px; }
	body.bf-site .bf-titel-keil .elementor-heading-title { font-size: 3rem; }
}

/* Abstand oben für Sektionen nach dem Hero */
body.bf-site .e-con.bf-abstand-oben { margin-top: var(--bf-sec); }

/* Sektion mit schräger Ober- und Unterkante (Aare-Band) */
body.bf-site .e-con.bf-schraeg-beide {
	clip-path: polygon(0 var(--bf-schraeg), 100% 0, 100% calc(100% - var(--bf-schraeg)), 0 100%);
	padding-top: calc(var(--bf-sec) + var(--bf-schraeg));
	padding-bottom: calc(var(--bf-sec) + var(--bf-schraeg));
}
body.bf-site .e-con.bf-aare { background: var(--bf-aare); color: var(--bf-weiss); }
body.bf-site .bf-aare .elementor-heading-title { color: var(--bf-weiss); }
body.bf-site .bf-aare .bf-btn-weiss .elementor-button { color: var(--bf-aare); }

/* Weg zur Lehrstelle: Treppe */
body.bf-site .e-con.bf-treppe { align-items: flex-start; }
body.bf-site .e-con.bf-stufe {
	background: var(--bf-kalk);
	color: var(--bf-ink);
	text-decoration: none;
	padding: 26px 24px 28px;
	transition: background .15s;
}
body.bf-site .e-con.bf-stufe:nth-child(2) { margin-top: 40px; }
body.bf-site .e-con.bf-stufe:nth-child(3) { margin-top: 80px; }
body.bf-site .e-con.bf-stufe:nth-child(4) { margin-top: 120px; }
body.bf-site .bf-stufe .bf-nr .elementor-heading-title {
	font: 800 4rem/.8 var(--bf-display);
	color: var(--bf-rot);
}
body.bf-site .bf-stufe .elementor-widget-text-editor p { font-size: .95rem; margin: 0; }
body.bf-site .bf-stufe .bf-los {
	font-weight: 500;
	color: var(--bf-rot-text);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
body.bf-site .e-con.bf-stufe:hover { background: var(--bf-rot); color: var(--bf-weiss); }
body.bf-site .e-con.bf-stufe:hover .elementor-heading-title,
body.bf-site .e-con.bf-stufe:hover .bf-nr .elementor-heading-title,
body.bf-site .e-con.bf-stufe:hover .bf-los { color: var(--bf-weiss); }
@media (max-width: 1024px) {
	body.bf-site .e-con.bf-stufe:nth-child(2) { margin-top: 32px; }
	body.bf-site .e-con.bf-stufe:nth-child(3) { margin-top: 0; }
	body.bf-site .e-con.bf-stufe:nth-child(4) { margin-top: 32px; }
}
@media (max-width: 640px) {
	body.bf-site .e-con.bf-stufe:nth-child(n) { margin-top: 0; }
	body.bf-site .e-con.bf-stufe:nth-child(2) { margin-left: 14px; }
	body.bf-site .e-con.bf-stufe:nth-child(3) { margin-left: 28px; }
	body.bf-site .e-con.bf-stufe:nth-child(4) { margin-left: 42px; }
}

/* Bild mit Seitenverhältnis 4:3 */
body.bf-site .bf-bild-43 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Partnerliste als Fluss statt Raster */
body.bf-site .bf-partnerliste .elementor-loop-container {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px;
}
body.bf-site .bf-partnerliste .e-loop-item { width: auto; }

/* =========================================================
   Seitenkopf mit Bild (Inhaltsseiten, Rent a Boss)
   Bild läuft bis zum rechten Rand und über die ganze Höhe.
   ========================================================= */
body.bf-site .e-con.bf-kopf.bf-kopf-bild { padding-top: 0; padding-bottom: 0; overflow: hidden; }
body.bf-site .e-con.bf-kopf-aare { background: var(--bf-aare); }
body.bf-site .bf-kopf-bild .e-con.bf-kopftext {
	padding-top: clamp(48px, 6vw, 88px);
	padding-bottom: calc(clamp(48px, 6vw, 88px) + var(--bf-schraeg));
	align-self: center;
}
body.bf-site .bf-kopf-bild .e-con.bf-kopfbild {
	margin-right: calc(-1 * max(var(--bf-gutter), (100vw - 1168px) / 2));
	min-height: clamp(420px, 44vw, 600px);
	clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
	align-self: stretch;
}
@media (max-width: 1024px) {
	body.bf-site .bf-kopf-bild .e-con.bf-kopftext { padding-top: clamp(40px, 6vw, 64px); padding-bottom: 32px; }
	body.bf-site .bf-kopf-bild .e-con.bf-kopfbild {
		margin-left: calc(-1 * var(--bf-gutter));
		margin-right: calc(-1 * var(--bf-gutter));
		width: calc(100% + 2 * var(--bf-gutter)) !important;
		min-height: 0;
		height: clamp(260px, 62vw, 440px);
		clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
	}
}
body.bf-site .bf-kopf .bf-lead { max-width: 44ch; }

/* Drei Schritte (Rent a Boss) */
body.bf-site .e-con.bf-schritt { background: var(--bf-kalk); padding: 24px; }
body.bf-site .bf-schritt .bf-nr .elementor-heading-title { font: 800 3.4rem/.8 var(--bf-display); color: var(--bf-aare); }

/* Hinweisbox mit Rahmen (Prototyp .formbox) */
body.bf-site .e-con.bf-rahmenbox { box-shadow: inset 0 0 0 2px var(--bf-ink); padding: clamp(20px, 3vw, 40px); }

/* Kleiner, grauer Hinweistext */
body.bf-site .bf-hinweis-text, body.bf-site .bf-hinweis-text p { font-size: .875rem; color: var(--bf-grau); }

/* Footer-Feinschliff */
body.bf-site .bf-footer address a { color: inherit; text-decoration: none; }
body.bf-site .bf-footer address a:hover { color: var(--bf-rot-text); text-decoration: underline; }
body.bf-site.bf-site .bf-footer-unten .elementor-nav-menu { gap: 16px; }
body.bf-site .e-con.bf-pad-unten { padding-bottom: var(--bf-sec); }

/* =========================================================
   Inhaltsseiten: Blöcke 4:8 mit Linie, Angebote zweispaltig
   ========================================================= */
body.bf-site .e-con.bf-block {
	border-top: 2px solid var(--bf-ink);
	padding-top: 48px;
	padding-bottom: 48px;
}
body.bf-site .e-con.bf-block.bf-block-erster { border-top: 0; padding-top: 0; }
body.bf-site .e-con.bf-items { display: grid !important; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
body.bf-site .bf-item .elementor-widget-text-editor p { font-size: 1rem; }
@media (max-width: 640px) {
	body.bf-site .e-con.bf-items { grid-template-columns: 1fr; }
}

/* Wie weiter: Situationen als Akkordeon */
body.bf-site .bf-situationen .e-n-accordion-item { background: var(--bf-kalk); margin-bottom: 12px; }
body.bf-site .bf-situationen .e-n-accordion-item[open] { background: var(--bf-weiss); box-shadow: inset 0 0 0 2px var(--bf-ink); }
body.bf-site .bf-situationen .e-n-accordion-item-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	padding: 24px 28px;
	border: 0;
	background: transparent;
}
body.bf-site .bf-situationen .e-n-accordion-item-title-text {
	font: 800 clamp(1.5rem, 2.6vw, 2.2rem)/1.05 var(--bf-display);
	color: var(--bf-ink);
	text-align: left;
}
body.bf-site .bf-situationen .e-n-accordion-item-title-icon { display: none; }
body.bf-site .bf-situationen .e-n-accordion-item-title::after {
	content: "";
	flex: none;
	width: 30px;
	height: 15px;
	background: var(--bf-rot);
	clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
	transition: transform .2s;
}
body.bf-site .bf-situationen .e-n-accordion-item[open] > .e-n-accordion-item-title::after { transform: rotate(180deg); }
body.bf-site .bf-situationen .e-n-accordion-item > .e-con { padding: 0 28px 28px; border: 0; }
body.bf-site .bf-situationen h3.elementor-heading-title { color: var(--bf-aare); }
.bf-dl { margin: 0; display: grid; gap: 8px; }
.bf-dl dt { font-size: .875rem; color: var(--bf-grau); }
.bf-dl dd { margin: 0; font-weight: 500; }
@media (max-width: 640px) {
	body.bf-site .bf-situationen .e-n-accordion-item-title { padding: 20px; }
	body.bf-site .bf-situationen .e-n-accordion-item > .e-con { padding: 0 20px 22px; }
}

/* Kontaktadresse gross */
body.bf-site .bf-adresse address { font-style: normal; font-size: inherit; line-height: inherit; }
@media (max-width: 1024px) {
	body.bf-site .bf-kopf-bild .e-con.bf-kopfbild { flex: 0 0 auto !important; }
}

/* =========================================================
   Logo-Karussell (Unser Netzwerk, Unsere Berufsverbände)
   Logos in Graustufen, beim Hover in Farbe. Grosse Logos und
   nur ein Pfeil nach rechts (Wunsch KGV 11.11.2026).
   ========================================================= */
body.bf-site .e-con.bf-logo-karte {
	position: relative;
	height: clamp(150px, 15vw, 200px);
	min-height: clamp(150px, 15vw, 200px); /* Elementor setzt Slides auf height: 100% */
	padding: 24px 28px;
	background: var(--bf-weiss);
	box-shadow: inset 0 0 0 1px var(--bf-linie);
	align-items: center;
	justify-content: center;
}
body.bf-site .bf-logo-karte img {
	max-height: clamp(84px, 9vw, 132px);
	max-width: 100%;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .7;
	transition: filter .25s, opacity .25s;
}
body.bf-site .bf-logo-karte:hover img,
body.bf-site .bf-logo-karte:focus-within img { filter: none; opacity: 1; }
body.bf-site .bf-logo-karte .bf-partner-link a::after { content: ""; position: absolute; inset: 0; }
body.bf-site .bf-logo-karte:has(.bf-partner-logo img) .bf-partner-name { display: none; }
body.bf-site .bf-logo-karte .bf-partner-name .elementor-heading-title {
	font: 500 .95rem/1.3 var(--bf-text);
	color: var(--bf-ink);
	text-align: center;
}
@media (prefers-reduced-motion: reduce) {
	body.bf-site .bf-logo-karte img { transition: none; }
}
/* Karussell-Navigation: nur Pfeil nach rechts, grosse Klickfläche, keine Punkte */
body.bf-site .elementor-widget.bf-logo-karussell { position: relative; padding-right: 76px; }
body.bf-site .bf-logo-karussell .elementor-swiper-button-prev,
body.bf-site .bf-logo-karussell .swiper-pagination { display: none !important; }
body.bf-site .bf-logo-karussell .elementor-swiper-button-next {
	position: absolute;
	top: 50%;
	right: 0;
	left: auto;
	inset-inline-end: 0;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bf-ink);
	color: var(--bf-weiss);
	font-size: 26px;
	cursor: pointer;
	transition: background .2s;
}
body.bf-site .bf-logo-karussell .elementor-swiper-button-next:hover,
body.bf-site .bf-logo-karussell .elementor-swiper-button-next:focus-visible { background: var(--bf-rot); }
body.bf-site .bf-logo-karussell .elementor-swiper-button-next svg { fill: currentColor; width: 26px; height: 26px; }
body.bf-site .bf-logo-karussell .elementor-swiper-button-next i { color: currentColor; }

/* «Ganzes Netzwerk anzeigen»: Raster aufklappen, Karussell anhalten (assets/js/bf-netzwerk.js) */
body.bf-site .bf-netzwerk-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 8px 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--bf-grau);
	font-family: var(--bf-text);
	font-weight: 500;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	transition: color .2s;
}
body.bf-site .bf-netzwerk-toggle:hover { background: none; color: var(--bf-ink); }
body.bf-site .bf-netzwerk-toggle:hover .bf-netzwerk-toggle-text { text-decoration: underline; text-underline-offset: 4px; }
body.bf-site .bf-netzwerk-toggle:focus-visible { background: none; color: var(--bf-ink); outline: 3px solid var(--bf-aare); outline-offset: 2px; }
body.bf-site .bf-netzwerk-toggle-pfeil {
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform .2s;
}
body.bf-site .bf-netzwerk-toggle[aria-expanded="true"] .bf-netzwerk-toggle-pfeil { transform: translateY(2px) rotate(-135deg); }
body.bf-site .bf-netzwerk-alle { display: none; }
body.bf-site .bf-netzwerk-offen .bf-netzwerk-alle { display: block; }
body.bf-site .bf-netzwerk-offen .bf-logo-karussell { display: none; }
body.elementor-editor-active .bf-netzwerk-alle { display: block; opacity: .5; }

@media (max-width: 767px) {
	body.bf-site .e-con.bf-logo-karte { height: 120px; min-height: 120px; padding: 16px; }
	body.bf-site .bf-logo-karte img { max-height: 72px; }
	body.bf-site .elementor-widget.bf-logo-karussell { padding-right: 60px; }
	body.bf-site .bf-logo-karussell .elementor-swiper-button-next { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	body.bf-site .bf-netzwerk-toggle,
	body.bf-site .bf-netzwerk-toggle-pfeil { transition: none; }
}

/* =========================================================
   Farbband mit grossem Bild bis zum linken Rand (Rent a Boss)
   ========================================================= */
body.bf-site .e-con.bf-band-mitbild { padding-top: 0; padding-bottom: 0; overflow: hidden; }
body.bf-site .bf-band-mitbild .e-con.bf-bandbild {
	margin-left: calc(-1 * max(var(--bf-gutter), (100vw - 1168px) / 2));
	min-height: clamp(380px, 42vw, 600px);
	align-self: stretch;
	clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
body.bf-site .bf-band-mitbild .e-con.bf-bandtext {
	padding-top: calc(var(--bf-sec) + var(--bf-schraeg));
	padding-bottom: calc(var(--bf-sec) + var(--bf-schraeg));
	align-self: center;
}
@media (max-width: 1024px) {
	body.bf-site .bf-band-mitbild .e-con.bf-bandbild {
		flex: 0 0 auto !important;
		margin-left: calc(-1 * var(--bf-gutter));
		margin-right: calc(-1 * var(--bf-gutter));
		width: calc(100% + 2 * var(--bf-gutter)) !important;
		min-height: 0;
		height: clamp(260px, 62vw, 460px);
		clip-path: polygon(0 var(--bf-schraeg), 100% 0, 100% 90%, 0 100%);
	}
	body.bf-site .bf-band-mitbild .e-con.bf-bandtext { padding-top: 32px; }
}
/* Logo-Block ausblenden, solange die Gruppe noch keine Partner hat */
body.bf-site .e-con.bf-block:has(.bf-logo-karussell):not(:has(.e-loop-item)) { display: none; }
/* Swiper in Flex-Spalten: Breite begrenzen (sonst wächst das Karussell auf Mobile ins Unendliche) */
body.bf-site .elementor-widget.bf-logo-karussell { width: 100%; max-width: 100%; min-width: 0; }
body.bf-site .e-con:has(> .bf-logo-karussell) { min-width: 0; max-width: 100%; }

/* =========================================================
   Formulare (Elementor Pro Form), z. B. Rent a Boss Anmeldung
   Widget-Klasse: bf-formular. Feld-Klasse für Chips: bf-chips-feld
   ========================================================= */
body.bf-site .bf-formular .elementor-form-fields-wrapper { row-gap: 20px; }
body.bf-site .bf-formular .elementor-field-group { margin-bottom: 0; }
body.bf-site .bf-formular .elementor-field-label {
	font: 500 .95rem/1.4 var(--bf-text);
	color: var(--bf-ink);
	margin-bottom: 6px;
}
body.bf-site .bf-formular .elementor-field-group .elementor-field-textual {
	font: 400 1rem/1.4 var(--bf-text);
	color: var(--bf-ink);
	background: var(--bf-weiss);
	border: 2px solid var(--bf-ink);
	border-radius: 0;
	padding: 12px 14px;
	min-height: 0;
}
body.bf-site .bf-formular .elementor-field-textual:focus { outline: 3px solid var(--bf-aare); outline-offset: 0; box-shadow: none; }
body.bf-site .bf-formular .elementor-field-textual::placeholder { color: var(--bf-grau); opacity: 1; }

/* Regionen als Chips */
body.bf-site .bf-formular .bf-chips-feld .elementor-field-subgroup { display: flex; flex-wrap: wrap; gap: 8px; }
body.bf-site .bf-formular .bf-chips-feld .elementor-field-option { position: relative; margin: 0; padding: 0; }
body.bf-site .bf-formular .bf-chips-feld .elementor-field-option input {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
body.bf-site .bf-formular .bf-chips-feld .elementor-field-option label {
	display: inline-block;
	padding: 7px 12px;
	border: 2px solid var(--bf-ink);
	font: 400 .95rem/1.3 var(--bf-text);
	color: var(--bf-ink);
	background: var(--bf-weiss);
	cursor: pointer;
}
body.bf-site .bf-formular .bf-chips-feld .elementor-field-option input:checked + label {
	background: var(--bf-aare); border-color: var(--bf-aare); color: var(--bf-weiss);
}
body.bf-site .bf-formular .bf-chips-feld .elementor-field-option input:focus-visible + label { outline: 3px solid var(--bf-aare); outline-offset: 2px; }

/* Einwilligung */
body.bf-site .bf-formular .elementor-field-type-acceptance .elementor-field-option { display: flex; gap: 10px; align-items: flex-start; }
body.bf-site .bf-formular .elementor-field-type-acceptance input { accent-color: var(--bf-aare); width: 18px; height: 18px; margin-top: 3px; flex: none; }
body.bf-site .bf-formular .elementor-field-type-acceptance label { font: 400 .95rem/1.5 var(--bf-text); color: var(--bf-ink); }

/* Senden */
body.bf-site .bf-formular .elementor-field-type-submit { margin-top: 8px; }
body.bf-site .bf-formular .elementor-button {
	background: var(--bf-aare);
	color: var(--bf-weiss);
	font: 700 1rem/1 var(--bf-text);
	padding: 16px 30px 16px 24px;
	border-radius: 0;
}
body.bf-site .bf-formular .elementor-button:hover { background: var(--bf-ink); }

/* Meldungen */
body.bf-site .bf-formular .elementor-message { font: 400 1rem/1.5 var(--bf-text); margin-top: 16px; }
body.bf-site .bf-formular .elementor-message-success { background: var(--bf-aare); color: var(--bf-weiss); padding: 20px 24px; }
body.bf-site .bf-formular .elementor-message::before { display: none; }
body.bf-site .bf-formular .elementor-field-group .elementor-message.elementor-help-inline { color: var(--bf-rot-text); font-size: .9rem; padding: 4px 0 0; background: none; }
body.bf-site .bf-formular .elementor-message-danger { color: var(--bf-rot-text); }
/* Sprungmarken (z. B. /rent-a-boss/#anmelden) nicht unter dem Header verstecken */
body.bf-site [id] { scroll-margin-top: calc(var(--bf-header-h, 88px) + 24px); }

/* Wie weiter: Textspalte schmaler, mehr Luft rechts, Links unter dem Text */
@media (min-width: 1025px) {
	body.bf-site .bf-situationen .e-n-accordion-item > .e-con { padding-right: clamp(48px, 8vw, 120px); }
}
body.bf-site .bf-situationen .bf-grow { max-width: 62ch; }
body.bf-site .bf-situationen .bf-links p { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
body.bf-site .bf-situationen .bf-links { margin-top: 8px; }
body.bf-site a.bf-link-pdf::before {
	content: "PDF";
	display: inline-block;
	margin-right: 8px;
	padding: 2px 6px 3px;
	font: 800 .7rem/1 var(--bf-display);
	letter-spacing: .04em;
	color: var(--bf-weiss);
	background: var(--bf-ink);
	vertical-align: 2px;
	text-decoration: none;
}

/* =========================================================
   Lehrberufe Live: «Beruf des Tages» (Shortcode [bf_video_des_tages])
   Hochformat-Player links, Text rechts; mobil untereinander.
   ========================================================= */
body.bf-site .bf-video {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
body.bf-site .bf-video-player {
	position: relative;
	width: 100%;
	aspect-ratio: 360 / 690;
	background: var(--bf-kalk);
	box-shadow: inset 0 0 0 1px var(--bf-linie);
}
body.bf-site .bf-video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
body.bf-site .bf-video-beruf {
	margin: 0 0 6px;
	font-family: var(--bf-display);
	font-weight: 700;
	font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
	line-height: 1.1;
	color: var(--bf-ink);
}
body.bf-site .bf-video-betrieb { margin: 0 0 16px; color: var(--bf-grau); font-weight: 500; }
body.bf-site .bf-video-beschreibung { margin: 0 0 24px; font-size: 1.1rem; line-height: 1.6; max-width: 46ch; }
body.bf-site .bf-video-links { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
body.bf-site .bf-video-links a { color: var(--bf-rot-text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
body.bf-site .bf-video-links a:hover { color: var(--bf-rot); }
body.bf-site .bf-video-hinweis { margin: 0; font-size: .85rem; color: var(--bf-grau); }
/* Block ausblenden, falls kein Video geladen werden konnte */
body.bf-site .e-con.bf-block-video:not(:has(.bf-video)) { display: none; }
@media (max-width: 767px) {
	body.bf-site .bf-video { grid-template-columns: 1fr; }
	body.bf-site .bf-video-player { width: min(100%, 320px); margin-inline: auto; }
}

/* =========================================================
   Veranstaltung: Flyer und «Mit dabei» (Shortcodes [bf_flyer], [bf_partnerlogos])
   ========================================================= */
body.bf-site .bf-flyer { margin: 0; }
body.bf-site .bf-flyer a { font-weight: 500; }
body.bf-site .bf-flyer small { color: var(--bf-grau); font-size: .85rem; margin-left: 4px; }
body.bf-site .bf-ev-partner { margin: 0; }
body.bf-site .bf-ev-partner h2 {
	font-family: var(--bf-text);
	font-size: .875rem;
	font-weight: 400;
	color: var(--bf-grau);
	margin: 0 0 12px;
	letter-spacing: 0;
}
body.bf-site .bf-ev-partner ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
body.bf-site .bf-ev-partner li {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 160px;
	height: 96px;
	padding: 14px 18px;
	background: var(--bf-weiss);
	border: 1px solid var(--bf-linie);
}
body.bf-site .bf-ev-partner a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
body.bf-site .bf-ev-partner img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; }
body.bf-site .bf-ev-partner a:hover,
body.bf-site .bf-ev-partner a:focus-visible { outline: 2px solid var(--bf-aare); outline-offset: 4px; }
body.bf-site .bf-ev-zusatz { display: grid; gap: 28px; }
/* Widget mit Klasse bf-ev-zusatz-widget ausblenden, wenn weder Flyer noch Partner erfasst sind */
body.bf-site .bf-ev-zusatz-widget:not(:has(.bf-ev-zusatz)) { display: none; }
@media (max-width: 480px) {
	body.bf-site .bf-ev-partner li { width: calc(50% - 6px); height: 84px; padding: 12px; }
}
