/*
Theme Name: Blickfeld
Theme URI: https://www.blickfeld.com/
Author: Blickfeld GmbH
Description: Block theme for blickfeld.com. Colours, type and spacing live in theme.json; layout pieces are patterns. No page builder.
Requires at least: 6.6
Requires PHP: 8.1
Version: 0.1.0
License: Proprietary
Text Domain: blickfeld
*/

/* Only what theme.json cannot express. Keep this file short. */

/* Every underline on the site is yellow (hover underlines included);
   on yellow backgrounds it falls back to dark so it stays visible. */
a {
	text-decoration-color: var(--wp--preset--color--yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}
.has-yellow-background-color a,
.has-light-yellow-background-color a,
.bf-tile-label .wp-block-post-title a {
	text-decoration-color: var(--wp--preset--color--anthracite);
}

/* Text links: dark text with the yellow underline used on the live site;
   on hover the yellow fills the line. Only links inside running text. */
main :is(p, .wp-block-list li, td, th, dd, figcaption, cite) a:not(.wp-element-button),
.bf-case-content a:not(.wp-element-button) {
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 223, 99, 0.6);
	box-shadow: inset 0 -4px 0 0 rgba(255, 223, 99, 0.6);
	transition: box-shadow 0.2s ease;
}
main :is(p, .wp-block-list li, td, th, dd, figcaption, cite) a:not(.wp-element-button):hover,
.bf-case-content a:not(.wp-element-button):hover {
	box-shadow: inset 0 -1.2em 0 0 rgba(255, 223, 99, 0.6);
}
/* …but not on dark or yellow backgrounds, where yellow would vanish */
main :is(.has-yellow-background-color, .has-light-yellow-background-color) :is(p, .wp-block-list li) a:not(.wp-element-button) {
	border-bottom-color: var(--wp--preset--color--anthracite);
	box-shadow: none;
}
main :is(.has-anthracite-background-color, .has-teal-background-color, .bf-on-photo, .bf-tile) :is(p, .wp-block-list li) a:not(.wp-element-button) {
	color: inherit;
	box-shadow: none;
}

/* Contact persons: larger photo and text */
.bf-contact {
	gap: var(--wp--preset--spacing--30) !important;
	align-items: flex-start;
}
.bf-contact .bf-person-photo {
	flex: 0 0 160px;
}
.bf-contact .bf-person-photo img {
	width: 160px;
	height: 180px;
}
/* Webinar experts shown with their company logo: whole logo, no crop */
.bf-contact.bf-person-logo {
	align-items: center;
}
.bf-contact.bf-person-logo .bf-person-photo {
	flex: 0 0 120px;
}
.bf-contact.bf-person-logo .bf-person-photo img {
	width: 120px;
	height: auto;
	max-height: 80px;
	object-fit: contain;
}
.bf-contact .bf-person-name {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0;
}

/* Placeholder for forms that are not built yet */
.bf-form-placeholder {
	border: 2px dashed var(--wp--preset--color--light-grey);
	background: var(--wp--preset--color--off-white);
	padding: var(--wp--preset--spacing--30);
}
.bf-form-placeholder .bf-fake-field {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-grey);
	color: var(--wp--preset--color--grey-text);
	padding: 0.65rem 0.8rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}

/* Qb2 features A: cards with a yellow number */
.bf-feature-num {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--wp--preset--color--yellow);
	-webkit-text-stroke: 1px var(--wp--preset--color--anthracite);
	margin: 0 0 0.75rem;
}
/* Qb2 features B: one row per feature with a 45° marker */
.bf-feature-row {
	border-top: 1px solid var(--wp--preset--color--light-grey);
	padding-top: var(--wp--preset--spacing--20);
}
.bf-feature-row h3::before {
	content: "";
	display: inline-block;
	width: 0.9em;
	height: 0.9em;
	margin-right: 0.6em;
	vertical-align: -0.05em;
	background: var(--wp--preset--color--yellow);
	clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Application cards: titles reserve two lines, so text and links line up */
.bf-apps-aligned .is-style-card h3 {
	min-height: 2.6em;
	display: flex;
	align-items: flex-end;
}
/* Title on a yellow label over the photo */
.bf-apps-label .bf-label-wrap {
	position: relative;
}
/* Yellow bar across the whole card, same height in every card (room for two lines) */
.bf-apps-label .bf-label-wrap > h3 {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	background: var(--wp--preset--color--yellow);
	padding: 0 0.9rem;
	height: calc(2 * 1.3em + 1rem);
	line-height: 1.3;
	display: flex;
	align-items: center;
}
.bf-apps-label .bf-label-wrap > h3 a {
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
}
/* Two by two list: small photo left, text right */
.bf-apps-list .wp-block-media-text {
	grid-template-columns: 38% 1fr !important;
	align-items: start;
}
.bf-apps-list .wp-block-media-text__content {
	padding: 0 0 0 var(--wp--preset--spacing--30) !important;
}
@media (max-width: 600px) {
	.bf-apps-list .wp-block-media-text__content {
		padding: var(--wp--preset--spacing--20) 0 0 !important;
	}
}

/* Point-cloud gallery */
.bf-gallery .wp-block-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* Buttons: square corners. Outline style = transparent with a dark frame (as on the live hero). */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--anthracite);
	border: 2px solid currentColor;
	padding: calc(0.8rem - 2px) calc(1.5rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--anthracite);
}
.has-white-color .wp-block-button.is-style-outline > .wp-block-button__link,
.bf-on-photo .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--white);
}

/* Intro text under a section heading: one style everywhere */
p.is-style-intro {
	color: var(--wp--preset--color--grey-text);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-weight: 500;
}
/* Narrow elements that start at the left edge of a 1280px section */
p.is-style-intro,
.bf-variant-label {
	max-width: 52rem !important;
	margin-left: max(0px, calc((100% - 1280px) / 2)) !important;
	margin-right: auto !important;
}
/* Document table (Cybersecurity resources): title bold, download link with arrow */
/* Five cards as 3 + 2, both rows full width */
.bf-solutions.bf-solutions-32 {
	grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
.bf-solutions-32 > * {
	grid-column: span 2;
}
.bf-solutions-32 > :nth-last-child(-n+2) {
	grid-column: span 3;
}
@media (max-width: 900px) {
	.bf-solutions.bf-solutions-32 {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
	.bf-solutions-32 > *,
	.bf-solutions-32 > :nth-last-child(-n+2) {
		grid-column: auto;
	}
	.bf-solutions-32 > :last-child {
		grid-column: 1 / -1;
	}
}
@media (max-width: 600px) {
	.bf-solutions.bf-solutions-32 {
		grid-template-columns: 1fr !important;
	}
}
/* Glossary: A–Z bar, letter on the left, terms on the right */
.bf-az {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-top: var(--wp--preset--spacing--30);
}
.bf-az a,
.bf-az span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	font-weight: 700;
}
main .bf-az a {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-grey);
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
	box-shadow: none !important;
}
main .bf-az a:hover,
main .bf-az a:focus-visible {
	background: var(--wp--preset--color--yellow);
	border-color: var(--wp--preset--color--yellow);
}
.bf-az span {
	color: var(--wp--preset--color--light-grey);
}
.bf-gloss-letter {
	display: grid;
	grid-template-columns: 8rem minmax(0, 1fr);
	gap: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--40) 0;
	border-top: 1px solid var(--wp--preset--color--light-grey);
	scroll-margin-top: 110px;
}
.bf-gloss-letter:first-child {
	border-top: 0;
}
.bf-gloss-letter > * {
	margin: 0 !important;
}
h2.bf-gloss-l {
	font-size: 3.5rem;
	line-height: 1;
	position: sticky;
	top: 120px;
	align-self: start;
	padding-left: 0.6rem;
	border-left: 6px solid var(--wp--preset--color--yellow);
}
.bf-gloss-terms {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}
.bf-gloss-terms > * {
	margin: 0 !important;
}
.bf-gloss-term {
	scroll-margin-top: 110px;
}
.bf-gloss-term > h3 {
	margin-bottom: 0.4rem;
}
.bf-gloss-img,
.bf-gloss-gallery {
	max-width: 520px;
}
@media (max-width: 700px) {
	.bf-gloss-letter {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--20);
	}
	h2.bf-gloss-l {
		position: static;
		font-size: 2.5rem;
	}
}
/* Resources: product × document grid (scrolls sideways on phones) */
.bf-doc-matrix {
	overflow-x: auto;
}
.bf-doc-matrix table {
	min-width: 640px;
	border-collapse: collapse;
}
.bf-doc-matrix thead th {
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--anthracite);
	text-align: left;
}
.bf-doc-matrix td {
	border-left: 0;
	border-right: 0;
	border-color: var(--wp--preset--color--light-grey);
	white-space: nowrap;
}
.bf-doc-matrix td:first-child {
	font-weight: 600;
	white-space: normal;
}
.bf-doc-matrix td a {
	font-weight: 600;
}
.bf-doc-matrix td a::before,
.bf-dl-main::before {
	content: "↓ ";
}
.bf-doc-matrix td a.bf-ext::before,
.bf-fw-table td:last-child a::before {
	content: "↗ ";
}
.bf-fw-table {
	margin-top: var(--wp--preset--spacing--20);
}
/* Resources: download lists and firmware */
.bf-dl-list {
	display: grid;
	border-top: 1px solid var(--wp--preset--color--light-grey);
}
.bf-dl-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.5rem var(--wp--preset--spacing--40);
	align-items: center;
	padding: 1rem 0;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-dl-item h3 {
	margin: 0;
	font-size: 1.0625rem;
}
.bf-dl-item p {
	margin: 0.3rem 0 0;
	font-size: var(--wp--preset--font-size--small);
}
.bf-dl-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	font-weight: 600;
	white-space: nowrap;
}
.bf-dl-more {
	margin-top: var(--wp--preset--spacing--20);
	border: 0 !important;
	padding: 0 !important;
}
.bf-dl-more > summary {
	display: inline-block;
	padding: 0.5em 0;
	font-weight: 600;
	cursor: pointer;
}
.bf-dl-more > summary::after {
	content: " +";
}
.bf-dl-more[open] > summary::after {
	content: " –";
}
.bf-fw-latest {
	padding: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--light-grey);
	border-top: 3px solid var(--wp--preset--color--yellow);
	background: var(--wp--preset--color--white);
}
.bf-fw-latest > * {
	margin-top: 0;
}
.bf-fw-kicker {
	margin-bottom: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--grey-text);
}
.bf-fw-latest h3 {
	margin-bottom: 0.25rem;
}
.bf-fw-meta {
	color: var(--wp--preset--color--grey-text);
	font-size: var(--wp--preset--font-size--small);
}
.bf-fw-desc {
	font-size: var(--wp--preset--font-size--small);
}
.bf-res-section {
	scroll-margin-top: 110px;
}
@media (max-width: 700px) {
	.bf-dl-item {
		grid-template-columns: 1fr;
	}
}
/* Insights: videos two per row, each with heading and text */
.bf-video-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
}
.bf-video-grid > *,
.bf-video-item > * {
	margin: 0 !important;
}
.bf-video-item {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.bf-video-item h3 {
	margin-top: 0.4rem !important;
	font-size: 1.125rem;
}
.bf-video-item p {
	font-size: var(--wp--preset--font-size--small);
}
@media (max-width: 700px) {
	.bf-video-grid {
		grid-template-columns: 1fr;
	}
}
/* Resource cards with the whole description (no cut-off after four lines) */
.bf-res-full .bf-res-desc {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}
@media (max-width: 900px) {
	.bf-resources-a.bf-res-full {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.bf-resources-a.bf-res-full {
		grid-template-columns: 1fr;
	}
}
/* Events list: one card per upcoming event, picture left, text right */
.bf-events {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}
.bf-event {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: var(--wp--preset--spacing--40);
	align-items: start;
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-event.bf-event-noimg {
	grid-template-columns: 1fr;
}
.bf-event-media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: contain;
	background: var(--wp--preset--color--off-white);
}
.bf-event-text > * {
	margin: 0 0 0.75rem;
}
.bf-event-kind {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
}
h2.bf-event-title {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.2;
}
.bf-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.25rem;
	font-weight: 600;
}
.bf-event-date::before,
.bf-event-place::before {
	font-family: dashicons;
	font-weight: 400;
	margin-right: 0.35rem;
	vertical-align: -0.15em;
	color: var(--wp--preset--color--grey-text);
}
.bf-event-date::before {
	content: "\f145";
}
.bf-event-place::before {
	content: "\f230";
}
.bf-event-desc {
	font-size: var(--wp--preset--font-size--small);
}
.bf-event-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.25rem !important;
}
.bf-event-btns > a {
	display: inline-block;
	width: auto !important;
	flex: 0 0 auto;
}
main .bf-event-btns .bf-btn-outline {
	background: transparent;
	color: var(--wp--preset--color--anthracite);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--anthracite) !important;
}
.bf-events-none {
	padding: var(--wp--preset--spacing--40) 0;
}
@media (max-width: 781px) {
	.bf-event {
		grid-template-columns: 1fr;
	}
}
/* Several link rows side by side (e.g. documentation links) */
.bf-linkrows {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--wp--preset--spacing--30);
}
/* Four cards as 2 × 2 */
.bf-solutions.bf-solutions-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
@media (max-width: 700px) {
	.bf-solutions.bf-solutions-2 {
		grid-template-columns: 1fr !important;
	}
}
/* Technology page: parts (MEMS, LDM, software) divided by a thin line */
.bf-tech-part + .bf-tech-part {
	border-top: 1px solid var(--wp--preset--color--light-grey);
}
.bf-tech-part .wp-block-media-text__content > :first-child {
	margin-top: 0;
}
/* Short features in two columns, e.g. on a dark band */
.bf-feat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}
.bf-feat-grid > * {
	margin: 0 !important;
	padding-top: 0.75rem;
	border-top: 3px solid var(--wp--preset--color--yellow);
}
.bf-feat-grid p {
	font-size: var(--wp--preset--font-size--small);
}
.has-anthracite-background-color .bf-feat-grid p {
	color: var(--wp--preset--color--light-grey);
}
@media (max-width: 600px) {
	.bf-feat-grid {
		grid-template-columns: 1fr;
	}
}
/* Features stacked in one column (e.g. beside a picture) */
.bf-feat-grid.bf-feat-1 {
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--30);
}
/* Time-of-flight steps: four pictures in a row, two on phones */
.bf-tof-steps {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: var(--wp--preset--spacing--30);
}
.bf-tof-steps > * {
	margin: 0 !important;
}
.bf-tof-steps img {
	width: 100%;
	height: auto;
}
@media (max-width: 700px) {
	.bf-tof-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
/* Dark page header: intro text light instead of grey */
.bf-hero-dark p.is-style-intro {
	color: var(--wp--preset--color--light-grey);
}
/* Cards on white: outline instead of grey fill */
.bf-solutions.bf-cards-outline > * {
	background: var(--wp--preset--color--white) !important;
	border: 1px solid var(--wp--preset--color--light-grey);
	border-top: 3px solid var(--wp--preset--color--yellow);
}
/* Document table with dark header row */
.bf-doc-table-dark thead {
	border-bottom: 0;
}
.bf-doc-table-dark thead th {
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--white);
	border-color: var(--wp--preset--color--anthracite);
}
.bf-doc-table-dark td {
	border-left: 0;
	border-right: 0;
	border-color: var(--wp--preset--color--light-grey);
}
.bf-doc-table-dark td:last-child a {
	font-weight: 600;
}
.bf-doc-table td:first-child {
	font-weight: 600;
}
.bf-doc-table td:last-child {
	white-space: nowrap;
}
.bf-doc-table td:last-child a::before {
	content: "↓ ";
}
@media (max-width: 700px) {
	.bf-doc-table thead {
		display: none;
	}
	.bf-doc-table tr,
	.bf-doc-table td {
		display: block;
		border: 0;
	}
	.bf-doc-table tr {
		border-bottom: 1px solid var(--wp--preset--color--light-grey);
		padding: 0.75em 0;
	}
	.bf-doc-table td {
		padding: 0.15em 0.75em;
	}
}
/* Same in sections with a 960px column (FAQ) */
.bf-w960 > p.is-style-intro {
	max-width: 960px !important;
	margin-left: auto !important;
}

/* Variant labels (pilot only, removed once a variant is picked) */
.bf-variant-label {
	display: block;
	width: fit-content;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	padding: 0.3rem 0.75rem;
	margin-top: 1.5rem;
	margin-bottom: 1rem;
}

/* Home hero: background video with the yellow transparent 45° field on the right */
.bf-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: clamp(420px, 70vh, 720px);
	display: flex;
	align-items: center;
	background: var(--wp--preset--color--light-grey);
}
.bf-hero > .bf-hero-video {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: -2;
}
.bf-hero > .bf-hero-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bf-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(120deg, transparent 38%, rgba(255, 223, 99, 0.82) 38%);
}
.bf-hero > .wp-block-group {
	width: 100%;
}
/* Text starts a little left of the middle, on the yellow field (as on the old site) */
.bf-hero-text {
	margin-left: 44% !important;
	margin-right: auto !important;
	/* never wider than the room right of the 44 % start (it overflowed at 780–1100 px) */
	width: min(36rem, 54%);
}
@media (max-width: 781px) {
	.bf-hero::before {
		background: linear-gradient(120deg, transparent 22%, rgba(255, 223, 99, 0.85) 22%);
	}
	.bf-hero-text {
		margin-left: 22% !important;
		width: 78%;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bf-hero > .bf-hero-video {
		display: none;
	}
}

/* Customer logos: endless, slow sliding row (pauses on hover; still for reduced motion) */
.bf-marquee {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.bf-marquee > .bf-marquee-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 4.5rem !important;
	width: max-content;
	animation: bf-marquee 40s linear infinite;
}
.bf-marquee > .bf-marquee-track > * {
	flex-shrink: 0 !important;
}
.bf-marquee:hover > .bf-marquee-track {
	animation-play-state: paused;
}
@keyframes bf-marquee {
	to {
		transform: translateX(calc(-50% - 2.25rem));
	}
}
/* Phones: smaller logos, tighter gaps and a quicker round, so the row
   moves along instead of crawling. */
@media (max-width: 599px) {
	.bf-marquee > .bf-marquee-track {
		gap: 2rem !important;
		animation-duration: 18s;
	}
	.bf-marquee .bf-logos-item,
	.bf-logos.bf-marquee .wp-block-image {
		flex-basis: 84px !important;
		height: 36px !important;
	}
	.bf-logos.bf-marquee img {
		max-height: 26px !important;
	}
	@keyframes bf-marquee-phone {
		to {
			transform: translateX(calc(-50% - 1rem));
		}
	}
	.bf-marquee > .bf-marquee-track {
		animation-name: bf-marquee-phone;
	}
}
@media (prefers-reduced-motion: reduce) {
	.bf-marquee > .bf-marquee-track {
		animation: none;
		flex-wrap: wrap !important;
		width: auto;
		justify-content: center;
	}
}

/* Tiles: text over the featured image (success stories) */
.bf-tile {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.25rem;
	color: var(--wp--preset--color--white);
}
.bf-tile > .wp-block-post-featured-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: -2;
}
.bf-tile > .wp-block-post-featured-image a,
.bf-tile > .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.bf-tile:hover > .wp-block-post-featured-image img {
	transform: scale(1.04);
}
.bf-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 30%, rgba(0, 0, 0, 0.78) 100%);
	pointer-events: none;
}
.bf-tile .wp-block-post-title,
.bf-tile .wp-block-post-title a {
	color: var(--wp--preset--color--white) !important;
	text-decoration: none;
}
.bf-tile .wp-block-post-excerpt {
	color: rgba(255, 255, 255, 0.9);
}
.bf-tile .wp-block-post-title a::before {
	content: "";
	position: absolute;
	inset: 0;
}

/* Stories B: one large tile, three stacked next to it */
.bf-stories-feature .wp-block-post-template {
	display: grid !important;
	grid-template-columns: 2fr 1fr;
	grid-auto-rows: minmax(200px, auto);
	gap: 6px !important;
}
.bf-stories-feature .wp-block-post-template > li:first-child {
	grid-row: span 3;
}
.bf-stories-feature .wp-block-post-template > li:first-child .bf-tile {
	min-height: 100%;
}
.bf-stories-feature .wp-block-post-template > li:not(:first-child) .bf-tile {
	min-height: 200px;
}
.bf-stories-feature .wp-block-post-template > li:not(:first-child) .wp-block-post-excerpt {
	display: none;
}
.bf-stories-feature .wp-block-post-template > li:first-child .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large) !important;
}
@media (max-width: 781px) {
	.bf-stories-feature .wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.bf-stories-feature .wp-block-post-template > li:first-child {
		grid-row: auto;
		min-height: 340px;
	}
}

/* Stories C: title on a yellow label with a 45° cut */
.bf-tile-label .bf-tile::after {
	background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}
.bf-tile-label .bf-tile .wp-block-post-title {
	background: var(--wp--preset--color--yellow);
	padding: 0.7rem 2.2rem 0.7rem 1rem;
	clip-path: polygon(0 0, 100% 0, calc(100% - 1.4rem) 100%, 0 100%);
	align-self: flex-start;
	max-width: 90%;
}
.bf-tile-label .bf-tile .wp-block-post-title a {
	color: var(--wp--preset--color--anthracite) !important;
}

/* Photo tiles with a dark layer (application areas B) */
.bf-photo-tile {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 420px;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--white);
}
.bf-photo-tile > .wp-block-image {
	position: absolute;
	inset: 0;
	margin: 0;
	z-index: -2;
}
.bf-photo-tile > .wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bf-photo-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.75));
}
.bf-photo-tile h3 {
	color: var(--wp--preset--color--white);
}

/* Cards with a photo on top, all the same height (application areas A) */
.bf-card-photo {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.bf-card-photo > .wp-block-image img {
	aspect-ratio: 3 / 2;
	width: 100%;
	object-fit: cover;
}
.bf-card-photo > .wp-block-buttons {
	margin-top: auto;
}
.wp-block-columns.bf-equal > .wp-block-column {
	display: flex;
	flex-direction: column;
}
.wp-block-columns.bf-equal > .wp-block-column > * {
	flex: 1;
}

/* Zig-zag rows (application areas C) */
.bf-zigzag .wp-block-media-text__media img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

/* Company news A: titles reserve three lines, texts are cut after three lines */
.bf-news-aligned .wp-block-post-title {
	min-height: calc(3 * 1.3em);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bf-news-aligned .wp-block-post-excerpt__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Company news B: one row per news item, photo left */
.bf-news-list .bf-news-row {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: var(--wp--preset--spacing--30);
	align-items: start;
	padding-bottom: var(--wp--preset--spacing--30);
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-news-list .bf-news-row > .wp-block-post-featured-image {
	margin: 0;
}
@media (max-width: 600px) {
	.bf-news-list .bf-news-row {
		grid-template-columns: 1fr;
	}
}
/* Company news C: latest news large, the next two compact beside it */
.bf-news-feature .wp-block-post-template {
	display: grid !important;
	grid-template-columns: 3fr 2fr;
	gap: var(--wp--preset--spacing--30) !important;
}
.bf-news-feature .wp-block-post-template > li:first-child {
	grid-row: span 2;
}
.bf-news-feature .wp-block-post-template > li:not(:first-child) .wp-block-post-excerpt {
	display: none;
}
.bf-news-feature .wp-block-post-template > li:not(:first-child) .wp-block-post-featured-image img {
	aspect-ratio: 21 / 9 !important;
}
.bf-news-feature .wp-block-post-template > li:first-child .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large) !important;
}
@media (max-width: 781px) {
	.bf-news-feature .wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.bf-news-feature .wp-block-post-template > li:first-child {
		grid-row: auto;
	}
}

/* Lists with small yellow squares instead of slashes */
.bf-checklist {
	list-style: none;
	padding-left: 0;
}
.bf-checklist > li {
	position: relative;
	padding-left: 1.4em;
	margin: 0.35em 0;
}
.bf-checklist > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.6em;
	height: 0.6em;
	background: var(--wp--preset--color--anthracite);
}
.bf-placeholder-note {
	font-size: 0.75rem;
	color: var(--wp--preset--color--grey-text);
	margin: 0;
}
/* Newsletter form card on photos or yellow */
.bf-nl-form {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(51, 56, 58, 0.25);
}
.bf-nl-form .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--anthracite);
}

/* Newsletter box: yellow field with an exact 45° edge; the form sits on the photo side */
.bf-nl-box {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
/* Columns: text 36% | gap 26% | form 38%. The yellow edge starts at the
   bottom just right of the text column and rises at exactly 45°, so it runs
   through the gap and never crosses the text or the form box. */
.bf-nl-box::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -100%;
	width: calc(100% + (100% - 2 * var(--wp--preset--spacing--40)) * 0.36 - 5rem);
	z-index: -1;
	background: rgba(255, 223, 99, 0.9);
	transform: skewX(-45deg);
	transform-origin: bottom left;
}
/* Too narrow for a clean 45° gap: the whole box turns yellow instead. */
@media (max-width: 1199px) {
	.bf-nl-box::before {
		transform: none;
		left: 0;
		width: 100%;
	}
}

/* Bullet options from the corporate design (on yellow, so in anthracite) */
:is(.bf-bullets-triangle, .bf-bullets-chamfer, .bf-bullets-numbers) {
	list-style: none;
	padding-left: 0;
	counter-reset: bf-item;
}
:is(.bf-bullets-triangle, .bf-bullets-chamfer, .bf-bullets-numbers) > li {
	position: relative;
	padding-left: 1.6em;
	margin: 0.45em 0;
	counter-increment: bf-item;
}
:is(.bf-bullets-triangle, .bf-bullets-chamfer) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: 0.8em;
	height: 0.8em;
	background: var(--wp--preset--color--anthracite);
}
.bf-bullets-triangle > li::before {
	clip-path: polygon(0 0, 100% 0, 0 100%);
}
.bf-bullets-chamfer > li::before {
	clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%);
}
.bf-bullets-numbers > li {
	padding-left: 2.1em;
}
.bf-bullets-numbers > li::before {
	content: counter(bf-item, decimal-leading-zero);
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--wp--preset--color--anthracite);
}

/* News titles: yellow highlight on hover, like text links */
.bf-news-aligned .wp-block-post-title a {
	transition: box-shadow 0.2s ease;
}
.bf-news-aligned .wp-block-post-title a:hover {
	text-decoration: none;
	box-shadow: inset 0 -0.6em 0 0 rgba(255, 223, 99, 0.8);
}

/* Newsletter variants */
.bf-news-photo-wide::before {
	background: linear-gradient(120deg, rgba(255, 223, 99, 0.85) 52%, rgba(255, 223, 99, 0) 52%) !important;
}
.bf-news-cut {
	clip-path: polygon(0 0, 100% 0, calc(100% - 5rem) 100%, 0 100%);
	padding-right: 6rem !important;
}
@media (max-width: 781px) {
	.bf-news-cut {
		clip-path: none;
		padding-right: var(--wp--preset--spacing--30) !important;
	}
}
.bf-news-photo {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-size: cover;
	background-position: center left;
}
.bf-news-photo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(120deg, rgba(255, 223, 99, 0.92) 55%, rgba(255, 223, 99, 0.35) 55%);
}
@media (max-width: 781px) {
	.bf-news-photo::before {
		background: rgba(255, 223, 99, 0.9);
	}
}
.bf-split-photo {
	height: 100%;
	margin: 0;
}
.bf-split-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 260px;
}
.bf-small-print {
	font-size: 0.8125rem;
	line-height: 1.5;
}

/* Slash list marker */
.is-style-slash {
	list-style: none;
	padding-left: 0;
}
.is-style-slash > li {
	padding-left: 1.1em;
	text-indent: -1.1em;
}
.is-style-slash > li::before {
	content: "\2044\00a0";
	font-weight: 600;
	color: var(--wp--preset--color--anthracite);
}

/* Hero with a yellow 45° field on the right */
.is-style-hero-diagonal {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.is-style-hero-diagonal::before {
	content: "";
	position: absolute;
	inset: 0 0 0 auto;
	width: 62%;
	background: var(--wp--preset--color--yellow);
	clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
	z-index: -1;
}
@media (max-width: 781px) {
	.is-style-hero-diagonal::before {
		width: 100%;
		clip-path: polygon(100% 0, 100% 100%, 0 100%);
		opacity: 0.9;
	}
}

/* Small yellow corner triangle, e.g. on cards and section headings */
.is-style-corner {
	position: relative;
}
.is-style-corner::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 28px;
	height: 28px;
	background: var(--wp--preset--color--yellow);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Cards: equal height, image on top, link area at the bottom */
.is-style-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.is-style-card > .wp-block-buttons,
.is-style-card > .wp-block-read-more {
	margin-top: auto;
}
.is-style-card img {
	width: 100%;
	height: auto;
}

/* Images keep their own aspect ratio unless an editor sets one */
.wp-block-image img,
.wp-block-post-featured-image img {
	height: auto;
}

/* Logo strip: grey, even logos */
.bf-logos .wp-block-image {
	margin: 0;
	flex: 0 1 130px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
}
.bf-logos img {
	max-height: 44px;
	max-width: 100%;
	width: auto !important;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
}

/* Headings inside cards: dark, no underline */
.is-style-card h3 a,
.is-style-card .wp-block-post-title a {
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
}
.is-style-card h3 a:hover,
.is-style-card .wp-block-post-title a:hover {
	text-decoration: underline;
}

/* Tables: thin rules only */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table td,
.wp-block-table th {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
	padding: 0.6em 0.75em 0.6em 0;
	text-align: left;
	vertical-align: top;
}
.wp-block-table thead th {
	border-bottom: 2px solid var(--wp--preset--color--anthracite);
}
.wp-block-table td:first-child {
	width: 38%;
	font-weight: 600;
}
.wp-block-table td,
.wp-block-table th {
	overflow-wrap: break-word;
	hyphens: auto;
}

/* FAQ (details block) */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
	padding: 0.9em 0;
}
.wp-block-details summary {
	font-weight: 600;
	cursor: pointer;
}

/* FAQ page: jump links to the sections, questions with a +/– marker */
.bf-jumplinks {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: var(--wp--preset--spacing--30);
}
main .bf-jumplinks a {
	display: inline-block;
	padding: 0.45em 0.9em;
	border: 1px solid var(--wp--preset--color--light-grey);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--anthracite);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	box-shadow: none !important;
}
main .bf-jumplinks a:hover,
main .bf-jumplinks a:focus-visible {
	border-color: var(--wp--preset--color--yellow);
	background: var(--wp--preset--color--yellow);
}
.bf-faq-section {
	scroll-margin-top: 110px;
}
.bf-faq-section > h3 {
	margin-top: var(--wp--preset--spacing--40);
}
.bf-faq .wp-block-details {
	padding: 0;
}
.bf-faq .wp-block-details summary {
	list-style: none;
	position: relative;
	padding: 1em 2.5em 1em 0;
}
.bf-faq .wp-block-details summary::-webkit-details-marker {
	display: none;
}
.bf-faq .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0.25em;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5em;
	font-weight: 400;
	line-height: 1;
}
.bf-faq .wp-block-details[open] summary::after {
	content: "–";
}
.bf-faq .wp-block-details[open] {
	padding-bottom: 1em;
}
.bf-faq .wp-block-details > :not(summary) {
	max-width: 760px;
}

/* Header stays on top while scrolling */
.bf-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .bf-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.bf-logo img {
	display: block;
	width: 160px;
	height: auto;
}

/* Language switcher: EN | DE */
.bf-lang {
	display: flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.bf-lang li + li::before {
	content: "|";
	margin-right: 0.5rem;
	color: var(--wp--preset--color--light-grey);
}
.bf-lang a {
	color: var(--wp--preset--color--grey-text);
	text-decoration: none;
}

/* Phones: hide the Contact button in the header (it is in the menu) */
/* Phone menu: full screen, left aligned, readable */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--white) !important;
	color: var(--wp--preset--color--anthracite) !important;
	padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	font-weight: 600;
	font-size: 1rem;
}
.bf-nav-contact {
	display: none !important;
}
/* Menu: the full menu fits on one line from 1100 px (German is the longer one).
   Below that the ☰ menu takes over – WordPress alone switches only at 600 px,
   so between 600 and 1099 px the menu wrapped onto 2–5 lines. */
@media (min-width: 600px) and (max-width: 1099.98px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex !important;
	}
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none !important;
	}
}
/* Third menu level (Security → industries): flyout to the right on desktop.
   One arrow only: WordPress's submenu button stays (keyboard users open the
   level with it) and is turned to point right; no extra "›". */
@media (min-width: 1100px) {
	/* Dropdowns as wide as their longest entry (were fixed at 200 px, entries wrapped) */
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		width: max-content !important;
		min-width: 13rem !important;
	}
	.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		white-space: nowrap;
	}
	.wp-block-navigation .bf-nav-third {
		display: flex;
		align-items: center;
	}
	.wp-block-navigation .bf-nav-third > .wp-block-navigation__submenu-icon {
		display: flex !important;
		margin-left: auto;
		padding: 0 0.5rem 0 0.75rem;
	}
	.wp-block-navigation .bf-nav-third > .wp-block-navigation__submenu-icon svg {
		transform: rotate(-90deg);
	}
	.wp-block-navigation .bf-nav-third > .wp-block-navigation__submenu-container {
		left: 100% !important;
		top: -1px !important;
		min-width: 15rem;
	}
	.wp-block-navigation .bf-nav-third > .wp-block-navigation-item__content {
		flex: 1 1 auto;
	}
}
/* Phone menu: third level indented and lighter */
.wp-block-navigation__responsive-container.is-menu-open .bf-nav-third .wp-block-navigation__submenu-container {
	padding-left: 1rem !important;
	font-size: 0.9375rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu .bf-nav-third > .wp-block-navigation-item__content {
	font-weight: 400;
}
@media (max-width: 599px) {
	.bf-logos .wp-block-image {
		flex-basis: 28%;
		height: 44px;
	}
	.bf-logos img {
		max-height: 32px;
	}
}
@media (max-width: 599px) {
	.is-menu-open .bf-nav-contact {
		display: flex !important;
		font-weight: 600;
	}
}
.bf-contact-button .wp-block-button__link {
	white-space: nowrap;
}
@media (max-width: 599px) {
	.wp-block-buttons.bf-contact-button {
		display: none !important;
	}
	.bf-logo img {
		width: 130px;
	}
}

/* Footer menus: plain lists, five columns on desktop, two on tablets */
.bf-plain-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.bf-plain-list li {
	margin: 0.35em 0;
}
.bf-footer a,
.bf-footer a:visited {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
.bf-footer .has-small-font-size {
	color: var(--wp--preset--color--light-grey);
}
.bf-footer a:hover {
	text-decoration: underline;
}
@media (min-width: 600px) and (max-width: 1023px) {
	.bf-footer-menus {
		flex-wrap: wrap !important;
	}
	.bf-footer-menus > .wp-block-column {
		flex-basis: 45% !important;
	}
}

/* Contact persons */
.bf-person-photo {
	flex: 0 0 110px;
	margin: 0;
}
.bf-person-photo img {
	width: 110px;
	height: 124px;
	object-fit: cover;
}

/* Product and accessory images: never cropped */
.is-style-card .wp-block-image img,
.wp-block-details .wp-block-image img {
	object-fit: contain;
}

/* Case studies */
.bf-case-logo {
	display: block;
	max-width: 140px;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.bf-case-content > h2.wp-block-heading {
	margin-top: var(--wp--preset--spacing--40);
}
.bf-quote-image {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.wp-block-quote,
.wp-block-quote p,
.wp-block-quote cite {
	font-family: var(--wp--preset--font-family--montserrat);
}

/* Hero with a photo instead of the video: the same yellow field */
.bf-hero-photo {
	min-height: clamp(360px, 52vh, 560px);
}
/* Photo hero built by the theme (blog overview): same inner width as in pages */
.bf-hero > .bf-hero-inner {
	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--50) var(--wp--style--root--padding-right) var(--wp--preset--spacing--50) var(--wp--style--root--padding-left);
}
/* Blog categories below the hero: light chips, the current one yellow */
.bf-blog-cats {
	margin-top: var(--wp--preset--spacing--40) !important;
}
.bf-blog-cats .bf-blog-chips {
	margin: 0;
}
main .bf-blog-cats .bf-blog-chips a {
	border: 1px solid var(--wp--preset--color--light-grey);
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--anthracite);
	font-weight: 600;
	box-shadow: none !important;
}
main .bf-blog-cats .bf-blog-chips a:hover {
	border-color: var(--wp--preset--color--yellow);
}
main .bf-blog-cats .bf-blog-chips a[aria-current] {
	background: var(--wp--preset--color--yellow);
	border-color: var(--wp--preset--color--yellow);
}
@media (max-width: 781px) {
	.bf-blog-cats {
		margin-right: calc(-1 * var(--wp--style--root--padding-right));
	}
}

/* Application filter (success stories): a dropdown in Montserrat */
.bf-filters {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: var(--wp--preset--spacing--40) 0 var(--wp--preset--spacing--40);
	font-family: var(--wp--preset--font-family--montserrat);
}
.bf-filters label {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}
.bf-filters select,
.bf-filters option {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--anthracite);
}
.bf-filters select {
	min-width: 16rem;
	padding: 0.65rem 2.5rem 0.65rem 0.9rem;
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333383A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 12px 8px;
	border: 2px solid var(--wp--preset--color--anthracite);
	border-radius: 0;
	appearance: none;
	cursor: pointer;
}
.bf-filters select:hover,
.bf-filters select:focus {
	background-color: var(--wp--preset--color--light-yellow);
	outline: none;
}

/* Success stories, newspaper style but calm: every 7th story (1, 8, 15 …)
   large across the full width, the others in an even grid of three with
   photo and title only – i.e. one large story, two rows, one large story … */
.bf-newspaper .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important;
	list-style: none;
	padding: 0;
}
.bf-newspaper .bf-story {
	display: flex;
	flex-direction: column;
	gap: 0.75rem !important;
}
.bf-newspaper .bf-story .wp-block-post-featured-image {
	margin: 0;
}
.bf-newspaper .bf-story-text {
	gap: 0.4rem !important;
}
.bf-newspaper .wp-block-post-title {
	font-size: 1.0625rem !important;
	line-height: 1.35;
}
.bf-newspaper .wp-block-post-title a {
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
}
.bf-newspaper .wp-block-post-title a:hover {
	box-shadow: inset 0 -0.6em 0 0 rgba(255, 223, 99, 0.8);
}
/* regular stories: no category line, no teaser text */
.bf-newspaper .wp-block-post-template > li:not(:nth-child(7n + 1)) :is(.wp-block-post-terms, .wp-block-post-excerpt) {
	display: none;
}
/* lead story: across the full width, photo left, text right */
.bf-newspaper .wp-block-post-template > li:nth-child(7n + 1) {
	grid-column: 1 / -1;
}
.bf-newspaper .wp-block-post-template > li:nth-child(7n + 1) .bf-story {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: var(--wp--preset--spacing--40) !important;
	align-items: center;
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-newspaper .wp-block-post-template > li:nth-child(7n + 1) .wp-block-post-title {
	font-size: var(--wp--preset--font-size--x-large) !important;
	line-height: 1.25;
}
@media (max-width: 1023px) {
	.bf-newspaper .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.bf-newspaper .wp-block-post-template {
		grid-template-columns: 1fr;
	}
	.bf-newspaper .wp-block-post-template > li:nth-child(7n + 1) .bf-story {
		display: flex;
	}
}
/* Blog hero (picked 2026-11-26): photo across the full width, title in white on a dark fade */
.bf-blog-hero {
	position: relative;
	isolation: isolate;
	margin-top: 0 !important;
}
.bf-blog-hero .bf-blog-hero-img {
	margin: 0;
}
.bf-blog-hero .bf-blog-hero-img img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.bf-blog-hero .wp-block-post-title {
	margin: 0;
	line-height: 1.15;
}
.bf-blog-hero .wp-block-post-terms a {
	text-decoration: none;
}
.bf-blog-meta p {
	margin: 0;
}
/* Phones: reading time on its own line, without a dot at the line end */
@media (max-width: 600px) {
	.bf-blog-meta p:nth-of-type(2) {
		display: none;
	}
	.bf-blog-meta .bf-reading-time {
		flex-basis: 100%;
	}
}

.bf-blog-hero {
	min-height: clamp(420px, 68vh, 680px);
	display: flex;
	align-items: flex-end;
}
.bf-blog-hero-img {
	position: absolute;
	inset: 0;
	z-index: -2;
}
.bf-blog-hero-img img {
	object-position: center 65%;
}
.bf-blog-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(36, 40, 42, 0) 25%, rgba(36, 40, 42, 0.55) 55%, rgba(36, 40, 42, 0.9) 100%);
}
.bf-blog-hero-text {
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.bf-blog-hero-inner {
	width: 100%;
	padding: var(--wp--preset--spacing--50) var(--wp--style--root--padding-right) var(--wp--preset--spacing--40);
}
.bf-blog-hero-text,
.bf-blog-hero-text :is(h1, a, p, time, div) {
	color: var(--wp--preset--color--white) !important;
}
.bf-blog-hero-text {
	max-width: 52rem;
}
.bf-blog-hero .wp-block-post-terms a {
	color: var(--wp--preset--color--yellow) !important;
}

@media (max-width: 781px) {
	.bf-blog-hero .wp-block-post-title {
		font-size: var(--wp--preset--font-size--x-large) !important;
	}
}

/* Blog and news posts */
.bf-post-hero .wp-block-post-featured-image {
	margin: 0;
}
.bf-post-hero .wp-block-post-featured-image img {
	width: 100%;
	height: auto;
}
.bf-post-intro .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Headings are Montserrat SemiBold throughout (CI). Bold set inside a heading
   in the editor would make part of it heavier, so it keeps the heading weight. */
:is(h1, h2, h3, h4, h5, h6) :is(strong, b) {
	font-weight: inherit;
}

/* Image sizes (set by inc/posts.php, blickfeld_place_images()):
   Full = whole text column; Two thirds = centred; Half = beside the text
   (alternating right/left) or centred when no text follows.
   On phones every image is full width. Headings start below any image. */
.bf-post-content > figure.wp-block-image.bf-pos-full {
	width: 100%;
	max-width: 100%;
}
@media (min-width: 782px) {
	.bf-post-content > figure.wp-block-image.bf-pos-twothirds {
		width: 66.666%;
		max-width: 66.666%;
	}
	.bf-post-content > figure.wp-block-image.bf-pos-half-center {
		width: 50%;
		max-width: 50%;
	}
	.bf-post-content > figure.wp-block-image.bf-pos-half {
		float: right;
		width: 48%;
		max-width: 48%;
		margin: 0.35rem 0 1.25rem 2rem !important;
	}
	.bf-post-content > figure.wp-block-image.bf-pos-half.bf-left {
		float: left;
		margin: 0.35rem 2rem 1.25rem 0 !important;
	}
	.bf-post-content > :is(h2, h3, h4, .wp-block-columns, .wp-block-gallery, .wp-block-table, .wp-block-embed, hr, .wp-block-quote) {
		clear: both;
	}
	.bf-post-content::after {
		content: "";
		display: table;
		clear: both;
	}
}
/* Captions: small, left-aligned, with a thin yellow line (grey text would be
   too faint at this size). */
.bf-post-content figcaption {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--wp--preset--color--anthracite);
	text-align: left;
	margin-top: 0.5rem;
	padding-left: 0.6rem;
	border-left: 2px solid var(--wp--preset--color--yellow);
}

/* Blog overview: dark hero with a yellow 45° slash, categories as chips */
.bf-blog-overview-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background-color: #111;
	background-image:
		linear-gradient(90deg, rgba(36, 40, 42, 0.95) 0%, rgba(36, 40, 42, 0.8) 38%, rgba(36, 40, 42, 0.15) 75%),
		var(--bf-hero-bg, none);
	background-size: cover;
	background-position: 70% 55%;
	color: var(--wp--preset--color--white);
	margin-top: 0 !important;
}
.bf-blog-overview-inner {
	min-height: clamp(360px, 46vh, 480px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
@media (max-width: 781px) {
	.bf-blog-overview-hero {
		background-image:
			linear-gradient(180deg, rgba(36, 40, 42, 0.75) 0%, rgba(36, 40, 42, 0.9) 100%),
			var(--bf-hero-bg, none);
	}
	.bf-blog-overview-inner {
		min-height: 0;
	}
}
.bf-blog-overview-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	bottom: 0;
	right: -6rem;
	width: 30%;
	background: var(--wp--preset--color--yellow);
	transform: skewX(-45deg);
	transform-origin: bottom left;
}
.bf-blog-overview-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--50) var(--wp--style--root--padding-right);
}
.bf-blog-overview-inner > * {
	max-width: 46rem;
}
.bf-blog-overview-kicker {
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--yellow);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.bf-blog-overview-hero h1 {
	margin: 0;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
}
.bf-blog-overview-intro {
	margin: 1rem 0 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}
.bf-blog-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: var(--wp--preset--spacing--30) 0 0;
	padding: 0;
	list-style: none;
}
.bf-blog-chips a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
	color: var(--wp--preset--color--white);
	font-size: 0.875rem;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}
.bf-blog-chips a:hover {
	border-color: var(--wp--preset--color--yellow);
}
.bf-blog-chips a[aria-current] {
	background: var(--wp--preset--color--yellow);
	border-color: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--anthracite);
	font-weight: 600;
}
@media (max-width: 781px) {
	.bf-blog-overview-hero::after {
		width: 4rem;
		right: -1rem;
	}
	.bf-blog-overview-inner > * {
		max-width: calc(100% - 3rem);
	}
	.bf-blog-overview-hero h1 {
		font-size: var(--wp--preset--font-size--x-large);
	}
	/* categories in one row you can swipe */
	.bf-blog-overview-inner > nav {
		max-width: none;
		margin-right: calc(-1 * var(--wp--style--root--padding-right));
	}
	.bf-blog-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding-right: var(--wp--style--root--padding-right);
	}
	.bf-blog-chips li {
		flex: none;
	}
	.bf-blog-chips a {
		padding: 0.35rem 0.75rem;
		font-size: 0.8125rem;
	}
}

/* Blog overview: grid of three; the newest post takes 2×2 places with the
   title on the photo (like the post hero). 12 per page keeps rows full. */
.bf-blog-list .wp-block-post-template {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important;
	list-style: none;
	padding: 0;
}
.bf-blog-list .wp-block-post-template > li {
	margin: 0 !important; /* the grid gap does the spacing; keeps all top edges aligned */
}
.bf-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.bf-blog-card .wp-block-post-featured-image {
	margin: 0;
	overflow: hidden;
}
.bf-blog-card .wp-block-post-featured-image img {
	transition: transform 0.4s ease;
}
.bf-blog-card:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}
.bf-blog-card-text {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-top: 0.9rem;
	flex: 1;
}
.bf-blog-card-text > * {
	margin: 0 !important;
}
.bf-blog-list .wp-block-post-terms {
	font-size: 0.8125rem;
	font-weight: 600;
}
.bf-blog-list .wp-block-post-terms a {
	color: var(--wp--preset--color--teal);
	text-decoration: none;
}
.bf-blog-list .wp-block-post-terms a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow);
}
.bf-blog-list .wp-block-post-title {
	font-size: 1.125rem !important;
	line-height: 1.35;
}
.bf-blog-list .wp-block-post-title a {
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
}
.bf-blog-card:hover .wp-block-post-title a,
.bf-blog-list .wp-block-post-title a:focus-visible {
	box-shadow: inset 0 -0.55em 0 0 rgba(255, 223, 99, 0.85);
}
.bf-blog-list .wp-block-post-excerpt {
	font-size: var(--wp--preset--font-size--small);
}
.bf-blog-list .wp-block-post-excerpt__excerpt {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bf-blog-card-meta {
	margin-top: auto !important;
	padding-top: 0.3rem;
	gap: 0 0.5rem !important;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--anthracite);
}
.bf-blog-card-meta > * {
	margin: 0 !important;
	font-size: 0.8125rem !important;
	color: inherit !important;
}
.bf-blog-card-meta > .wp-block-post-date + .bf-reading-time::before {
	content: "·";
	margin-right: 0.5rem;
}
@media (min-width: 1024px) {
	.bf-blog-list .wp-block-post-template > li:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}
	/* the two posts beside the lead: no teaser, so the lead isn't too tall */
	.bf-blog-list .wp-block-post-template > li:is(:nth-child(2), :nth-child(3)) .wp-block-post-excerpt {
		display: none;
	}
	.bf-blog-list li:first-child .bf-blog-card {
		position: relative;
		isolation: isolate;
		min-height: 100%;
		justify-content: flex-end;
	}
	.bf-blog-list li:first-child .wp-block-post-featured-image {
		position: absolute;
		inset: 0;
		z-index: -2;
	}
	.bf-blog-list li:first-child .wp-block-post-featured-image :is(a, img) {
		width: 100%;
		height: 100% !important;
		aspect-ratio: auto !important;
		object-fit: cover;
	}
	.bf-blog-list li:first-child .bf-blog-card::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		pointer-events: none;
		background: linear-gradient(180deg, rgba(36, 40, 42, 0) 35%, rgba(36, 40, 42, 0.6) 62%, rgba(36, 40, 42, 0.92) 100%);
	}
	.bf-blog-list li:first-child .bf-blog-card-text {
		flex: none;
		padding: var(--wp--preset--spacing--40);
		gap: 0.7rem;
	}
	.bf-blog-list li:first-child :is(.wp-block-post-title a, .wp-block-post-excerpt, .bf-blog-card-meta) {
		color: var(--wp--preset--color--white);
	}
	.bf-blog-list li:first-child .wp-block-post-terms a {
		color: var(--wp--preset--color--yellow);
	}
	.bf-blog-list li:first-child .wp-block-post-title {
		font-size: var(--wp--preset--font-size--x-large) !important;
		line-height: 1.2;
	}
	.bf-blog-list li:first-child .bf-blog-card:hover .wp-block-post-title a {
		box-shadow: none;
		text-decoration: underline;
		text-decoration-color: var(--wp--preset--color--yellow);
		text-decoration-thickness: 3px;
		text-underline-offset: 0.2em;
	}
	.bf-blog-list li:first-child .wp-block-post-excerpt {
		font-size: var(--wp--preset--font-size--medium);
		max-width: 40rem;
	}
}
@media (max-width: 1023px) {
	.bf-blog-list .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.bf-blog-list .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

/* "Show more" button under lists (inc/load-more.php) */
.bf-load-more {
	display: flex;
	justify-content: center;
	margin-top: var(--wp--preset--spacing--40);
}
.bf-load-more[hidden],
.wp-block-query-pagination[hidden] {
	display: none !important; /* the flex layout would otherwise keep the page links visible */
}
.bf-load-more button {
	min-width: 14rem;
	cursor: pointer;
}
.bf-load-more button::after {
	content: "";
	display: inline-block;
	width: 0.45em;
	height: 0.45em;
	margin-left: 0.7em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-0.2em) rotate(45deg);
}
.bf-load-more button:disabled {
	opacity: 0.7;
	cursor: progress;
}
.bf-load-more button:disabled::after {
	display: none;
}

/* Boxes and buttons in posts (inc/posts.php): one note style for every
   coloured paragraph or section; sentence-long buttons become arrow links. */
.bf-post-content .bf-note {
	clear: both;
	background: var(--wp--preset--color--off-white) !important;
	color: var(--wp--preset--color--anthracite) !important;
	border-left: 4px solid var(--wp--preset--color--yellow);
	border-radius: 0 !important;
	padding: 1.1rem 1.4rem !important;
	text-align: left !important;
}
.bf-post-content .bf-note :is(p, h2, h3, h4, li) {
	color: var(--wp--preset--color--anthracite) !important;
}
.bf-post-content .bf-note > :first-child {
	margin-top: 0;
}
.bf-post-content .bf-note > :last-child {
	margin-bottom: 0;
}
.bf-post-content .wp-block-buttons {
	clear: both;
}
/* Rows of blocks side by side (a group set to "Row"): equal share of the
   width, images at most 45 %, top-aligned; stacked on phones. */
.bf-post-content .wp-block-group.is-layout-flex:not(.wp-block-buttons) {
	clear: both;
	align-items: flex-start !important;
	gap: var(--wp--preset--spacing--30);
}
.bf-post-content .wp-block-group.is-layout-flex:not(.wp-block-buttons) > * {
	flex: 1 1 0;
	min-width: 0;
	margin: 0 !important;
}
.bf-post-content .wp-block-group.is-layout-flex:not(.wp-block-buttons) > figure.wp-block-image {
	flex: 0 1 45%;
	float: none !important;
	width: auto !important;
	max-width: 45% !important;
}
@media (max-width: 781px) {
	.bf-post-content .wp-block-group.is-layout-flex:not(.wp-block-buttons) {
		flex-direction: column;
	}
	.bf-post-content .wp-block-group.is-layout-flex:not(.wp-block-buttons) > figure.wp-block-image {
		max-width: 100% !important;
		width: 100% !important;
	}
}
.bf-post-content .wp-block-button.bf-btn-sentence {
	width: 100%;
}
.bf-post-content .wp-block-button.bf-btn-sentence .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 0;
	background: none !important;
	color: var(--wp--preset--color--anthracite) !important;
	font-weight: 600;
	text-align: left;
	border-radius: 0;
}
.bf-post-content .wp-block-button.bf-btn-sentence .wp-block-button__link::before {
	content: "→";
	margin-right: 0.5em;
}
.bf-post-content .wp-block-button.bf-btn-sentence .wp-block-button__link span,
.bf-post-content .wp-block-button.bf-btn-sentence .wp-block-button__link {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow) !important;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}
.bf-post-content .wp-block-button.bf-btn-sentence .wp-block-button__link:hover {
	box-shadow: inset 0 -0.5em 0 0 rgba(255, 223, 99, 0.6);
	text-decoration-color: transparent !important;
}

/* Table of contents (posts with 4+ sections) */
/* One section per row: number, title, divider line. Rows highlight on hover. */
.bf-toc {
	border-top: 3px solid var(--wp--preset--color--anthracite);
	padding-top: 0.9rem;
}
.bf-toc-title {
	margin: 0 0 0.4rem;
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.bf-toc ol {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: bf-toc;
}
.bf-toc li {
	counter-increment: bf-toc;
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-toc a {
	display: grid;
	grid-template-columns: 2.4rem 1fr;
	align-items: baseline;
	padding: 0.7rem 0.5rem 0.7rem 0;
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
	line-height: 1.4;
	transition: background-color 0.15s;
}
.bf-toc a::before {
	content: counter(bf-toc, decimal-leading-zero);
	font-weight: 700;
	font-size: 0.875rem;
}
.bf-toc a:hover,
.bf-toc a:focus-visible {
	background: var(--wp--preset--color--light-yellow);
}
.bf-post-content h2[id] {
	scroll-margin-top: 6rem;
}

/* Call to action that fits the post's category */
.bf-post-cta {
	clear: both;
	background: var(--wp--preset--color--yellow);
	padding: var(--wp--preset--spacing--30);
	margin-top: var(--wp--preset--spacing--40) !important;
}
.bf-post-cta p {
	margin: 0 0 0.6rem;
}
.bf-post-cta-title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.25;
}
.bf-post-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: 1rem;
}
.bf-post-cta .wp-element-button {
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--white);
}
.bf-post-cta .wp-element-button:hover {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--white);
}
.bf-post-cta-link {
	color: var(--wp--preset--color--anthracite);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--anthracite) !important;
	text-underline-offset: 0.2em;
}

/* Tags as small chips */
.bf-tag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	font-size: 0.8125rem;
}
.bf-tag-chips a {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	background: var(--wp--preset--color--off-white);
	border: 1px solid var(--wp--preset--color--light-grey);
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
}
.bf-tag-chips a:hover {
	background: var(--wp--preset--color--light-yellow);
	border-color: var(--wp--preset--color--yellow);
}
.bf-tag-chips .wp-block-post-terms__separator {
	display: none;
}

/* Author box with photo */
.bf-author-box {
	display: flex;
	gap: var(--wp--preset--spacing--30);
	align-items: flex-start;
	background: var(--wp--preset--color--off-white);
	padding: var(--wp--preset--spacing--30);
}
.bf-author-photo {
	width: 88px;
	height: 88px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}
.bf-author-name {
	margin: 0 0 0.3rem;
	font-weight: 600;
}
.bf-author-name a {
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
	box-shadow: none !important;
}
.bf-author-bio {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}
@media (max-width: 480px) {
	.bf-author-photo {
		width: 64px;
		height: 64px;
	}
}

/* Related posts (cards like the home news) */
.bf-related > h2 {
	margin-bottom: var(--wp--preset--spacing--30);
}
.bf-related .wp-block-post-terms {
	font-size: 0.8125rem;
	text-transform: none;
}
.bf-related .wp-block-post-terms a {
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
	font-weight: 600;
}

/* Image rules for blog and news posts
   1. Manual pixel sizes set in the editor are ignored: an image always fills
      the space it has (beside the text, full column, or its column/gallery).
   2. Single images sit beside the text (see above). "Wide" or "Full width"
      makes an image span the whole text column.
   3. Image files narrower than 640 px are never enlarged: they keep their
      own size (marked by inc/posts.php).
   4. Images in columns and galleries share the row evenly and line up at the top. */
.bf-post-content .wp-block-image img {
	width: 100% !important;
	height: auto !important;
	/* No aspect-ratio override here: lazy images with sizes="auto" get
	   `contain: size` from the browser and need the ratio from their
	   width/height attributes. Ratios set in the editor are removed in
	   inc/posts.php instead. */
}
.bf-post-content > figure.wp-block-image:is(.aligncenter, .alignleft, .alignright, :not([class*="align"])) {
	margin-left: auto;
	margin-right: auto;
}
.bf-post-content > figure.wp-block-image.alignwide,
.bf-post-content > figure.wp-block-image.alignfull {
	width: 100%;
	max-width: 100%;
	float: none;
}
.bf-post-content figure.bf-img-small {
	max-width: min(var(--bf-natural), 100%) !important;
}
.bf-post-content figure.bf-img-small img {
	width: 100% !important;
}
.bf-post-content .wp-block-columns {
	align-items: flex-start !important;
}
.bf-post-content .wp-block-columns .wp-block-image {
	width: 100% !important;
}
/* Long words and links wrap instead of pushing the page wider on phones;
   boxes never get wider than the column. */
.bf-post-content {
	overflow-wrap: break-word;
}
.bf-post-content .bf-note {
	box-sizing: border-box;
	max-width: 100%;
}
/* Images from the old classic editor (with caption frame and a fixed width) */
.bf-post-content .wp-caption {
	width: auto !important;
	max-width: 100% !important;
}
.bf-post-content .wp-caption img,
.bf-post-content img:not([class*="wp-image"]) {
	max-width: 100%;
	height: auto;
}

/* "Media & text" blocks follow the Half rule: within the text column, image
   45 %, text beside it, both starting at the top. Widths set by hand are ignored. */
.bf-post-content .wp-block-media-text {
	clear: both;
	width: 100% !important;
	max-width: 100% !important;
	align-items: start !important;
	grid-template-columns: 45% 1fr !important;
	column-gap: 2rem;
}
.bf-post-content .wp-block-media-text.has-media-on-the-right {
	grid-template-columns: 1fr 45% !important;
}
.bf-post-content .wp-block-media-text > .wp-block-media-text__content {
	padding: 0 !important;
}
.bf-post-content .wp-block-media-text > .wp-block-media-text__content > :first-child {
	margin-top: 0;
}
.bf-post-content .wp-block-media-text__media img {
	width: 100% !important;
	height: auto !important;
}
@media (max-width: 600px) {
	.bf-post-content .wp-block-media-text,
	.bf-post-content .wp-block-media-text.has-media-on-the-right {
		grid-template-columns: 100% !important;
		row-gap: 1rem;
	}
	.bf-post-content .wp-block-media-text.has-media-on-the-right > .wp-block-media-text__media {
		grid-row: 1;
	}
}
/* Galleries of 2 or 3 images: one row, all images the same height (each takes
   width in proportion to its shape, so nothing is cropped). Galleries with
   more images keep the editor's columns. Stacked on phones. */
.bf-post-content .wp-block-gallery.has-nested-images:not(:has(> figure:nth-child(4))) {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20) !important;
	clear: both;
}
.bf-post-content .wp-block-gallery.has-nested-images:not(:has(> figure:nth-child(4))) > figure.wp-block-image {
	flex: var(--bf-ratio, 1) 1 0 !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}
.bf-post-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	width: 100% !important;
	height: auto !important;
	object-fit: contain !important;
}
.bf-post-content .wp-block-gallery figure.bf-img-small {
	max-width: none !important;
}
/* Linked gallery images: WordPress makes the link a stretching flex box, which
   gives the picture the wrong proportions. The link just wraps the picture. */
.bf-post-content .wp-block-gallery.has-nested-images figure.wp-block-image > a {
	display: block !important;
	flex: none !important;
	height: auto !important;
}
.bf-post-content .wp-block-gallery.has-nested-images figure.wp-block-image img {
	flex: none !important;
}
@media (max-width: 600px) {
	.bf-post-content .wp-block-gallery.has-nested-images:not(:has(> figure:nth-child(4))) {
		flex-direction: column;
	}
	.bf-post-content .wp-block-gallery.has-nested-images:not(:has(> figure:nth-child(4))) > figure.wp-block-image {
		flex: none !important;
		width: 100% !important;
	}
}

/* Quote mark as on the original site (drawn for this theme, same shape idea),
   drawn as a mask so it can take any brand colour. */
:is(.bf-q-card, .bf-q-onphoto, .bf-q-teal)::before {
	content: "";
	display: block;
	width: 3rem;
	height: 2.4rem;
	margin-bottom: 1rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'%3E%3Cpath d='M0 44C0 18 14 2 40 0v14C26 16 18 24 17 36h23v44H0zM56 44C56 18 70 2 96 0v14C82 16 74 24 73 36h23v44H56z'/%3E%3C/svg%3E") no-repeat left center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 80'%3E%3Cpath d='M0 44C0 18 14 2 40 0v14C26 16 18 24 17 36h23v44H0zM56 44C56 18 70 2 96 0v14C82 16 74 24 73 36h23v44H56z'/%3E%3C/svg%3E") no-repeat left center / contain;
}
:is(.bf-q-card, .bf-q-onphoto, .bf-q-teal) {
	border: 0 !important;
	padding: 0 !important;
	margin: 0;
}
:is(.bf-q-card, .bf-q-onphoto, .bf-q-teal) p {
	font-size: 1.1875rem;
	line-height: 1.55;
	font-weight: 500;
}
:is(.bf-q-card, .bf-q-onphoto, .bf-q-teal) cite {
	display: block;
	margin-top: 1rem;
	font-style: normal;
	font-size: var(--wp--preset--font-size--small);
}

/* Quote A: photo left, card overlapping it */
.bf-q-a {
	margin-top: var(--wp--preset--spacing--40) !important;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}
.bf-q-a .bf-q-photo {
	margin: 0;
}
.bf-q-a .bf-q-photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
.bf-q-card {
	position: relative;
	z-index: 1;
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--anthracite);
	padding: var(--wp--preset--spacing--40) !important;
	margin-top: var(--wp--preset--spacing--40) !important;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}
.bf-q-a .bf-q-card {
	margin: 0 0 0 -4rem !important;
}
@media (max-width: 781px) {
	.bf-q-a .bf-q-card {
		margin: -3rem 1rem 0 !important;
	}
}

/* Quote B: on the photo with a dark layer */
.bf-q-b {
	position: relative;
	isolation: isolate;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	color: var(--wp--preset--color--white);
	margin-top: var(--wp--preset--spacing--40) !important;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}
.bf-q-b::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(36, 40, 42, 0.88) 0%, rgba(36, 40, 42, 0.7) 100%);
}
.bf-q-onphoto::before {
	color: var(--wp--preset--color--yellow);
	background: var(--wp--preset--color--yellow);
}

/* Quote C: teal panel with yellow quote mark and corner */
.bf-q-c {
	position: relative;
	overflow: hidden;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40) !important;
	margin-bottom: var(--wp--preset--spacing--40) !important;
}
.bf-q-c::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 90px;
	height: 90px;
	background: var(--wp--preset--color--yellow);
	clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.bf-q-teal::before {
	background: var(--wp--preset--color--yellow);
}
.bf-q-person {
	margin-top: 1.25rem;
	gap: 1rem !important;
	align-items: center;
}
.bf-q-person .bf-q-portrait {
	margin: 0;
	flex: 0 0 72px;
}
.bf-q-person .bf-q-portrait img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}
.bf-q-person p {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
}
.bf-q-teal cite {
	display: none;
}

/* Case study quote */
.bf-quote {
	border-left: 6px solid var(--wp--preset--color--yellow);
	padding-left: 1.5rem;
}

/* ===== Application page (Security pilot) ===== */
.bf-kicker {
	margin: 0 0 0.4rem;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
}

/* Features with icons from WordPress (Dashicons) – three variants */
.bf-ifeats {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}
.bf-ifeat > *,
.bf-ifeats > * {
	margin: 0 !important;
}
.bf-ifeat h3 {
	font-size: 1.125rem;
	line-height: 1.3;
}
.bf-ifeat .bf-icon .dashicons {
	width: auto;
	height: auto;
	line-height: 1;
}
/* A: cards, icon in a yellow square with a 45° cut corner */
.bf-ifeats-a {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Boxes in a row share their inner rows (subgrid): icons, headings and texts
   start at the same height across the row, and the boxes are equally tall. */
.bf-ifeats-a .bf-ifeat {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 0.8rem;
	align-content: start;
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--off-white);
}
.bf-ifeats-a .bf-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	background: var(--wp--preset--color--yellow);
	clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.bf-ifeats-a .dashicons {
	font-size: 1.9rem;
	color: var(--wp--preset--color--anthracite);
}
/* B: four in a row, large icon, yellow line on top */
.bf-ifeats-b {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
}
.bf-ifeats-b .bf-ifeat {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	padding-top: 1.25rem;
	border-top: 3px solid var(--wp--preset--color--yellow);
}
.bf-ifeats-b .dashicons {
	font-size: 2.75rem;
	color: var(--wp--preset--color--anthracite);
}
.bf-ifeats-b .bf-ifeat p:not(.bf-icon) {
	font-size: var(--wp--preset--font-size--small);
}
/* C: dark band, yellow icons beside the text */
.bf-ifeats-c {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--light-grey);
}
.bf-ifeats-c .bf-ifeat {
	display: grid;
	grid-template-columns: 3.25rem 1fr;
	grid-template-rows: min-content 1fr;
	column-gap: 1.25rem;
	row-gap: 0.6rem;
	align-items: start;
}
.bf-ifeats-c .bf-icon {
	grid-row: 1 / 3;
}
.bf-ifeats-c .dashicons {
	font-size: 2.6rem;
	color: var(--wp--preset--color--yellow);
}
.bf-ifeats-c h3 {
	color: var(--wp--preset--color--white);
}
@media (max-width: 1023px) {
	.bf-ifeats-b {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 700px) {
	.bf-ifeats-a,
	.bf-ifeats-b,
	.bf-ifeats-c {
		grid-template-columns: 1fr;
	}
	.bf-ifeats-c {
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	}
}

/* Industries: a row of photo tiles you can swipe; arrows below (assets/slider.js) */
.bf-slider {
	display: grid !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 3 * var(--wp--preset--spacing--30)) / 4);
	gap: var(--wp--preset--spacing--30) !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.bf-slider::-webkit-scrollbar {
	display: none;
}
.bf-slider > * {
	margin: 0 !important;
	scroll-snap-align: start;
}
.bf-ind-tile {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.bf-ind-tile .wp-block-image {
	margin: 0;
}
.bf-ind-tile img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.bf-ind-tile:hover img {
	transform: scale(1.04);
}
.bf-ind-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(36, 40, 42, 0) 45%, rgba(36, 40, 42, 0.88) 100%);
}
.bf-ind-title {
	position: absolute;
	left: 1.1rem;
	right: 1.1rem;
	bottom: 1rem;
	z-index: 2;
	margin: 0 !important;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
}
.bf-ind-title a {
	color: var(--wp--preset--color--white) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
.bf-ind-tile:hover .bf-ind-title a {
	text-decoration: underline !important;
	text-decoration-color: var(--wp--preset--color--yellow) !important;
	text-decoration-thickness: 3px !important;
	text-underline-offset: 0.25em;
}
.bf-slider-nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-top: 1rem !important;
}
.bf-slider-nav[hidden] {
	display: none;
}
.bf-slider-nav button {
	position: relative;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--wp--preset--color--anthracite);
	background: var(--wp--preset--color--white);
	cursor: pointer;
}
.bf-slider-nav button::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.6rem;
	height: 0.6rem;
	border-top: 2px solid var(--wp--preset--color--anthracite);
	border-right: 2px solid var(--wp--preset--color--anthracite);
	transform: translate(-65%, -50%) rotate(45deg);
}
.bf-slider-nav .bf-slider-prev::before {
	transform: translate(-35%, -50%) rotate(-135deg);
}
.bf-slider-nav button:hover:not(:disabled) {
	background: var(--wp--preset--color--yellow);
	border-color: var(--wp--preset--color--yellow);
}
.bf-slider-nav button:disabled {
	opacity: 0.3;
	cursor: default;
}
@media (max-width: 1023px) {
	.bf-slider {
		grid-auto-columns: 42%;
	}
}
@media (max-width: 600px) {
	.bf-slider {
		grid-auto-columns: 78%;
	}
}

/* Guides and concepts (e-books, application notes) – three variants */
.bf-resources {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}
.bf-res {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white);
}
.bf-res > * {
	margin: 0 !important;
}
/* Pictures of documents and plans: shown whole, never cropped */
.bf-res .wp-block-image {
	background: var(--wp--preset--color--off-white);
}
.bf-res .wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	padding: 0.75rem;
	box-sizing: border-box;
}
.bf-res-text {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	flex: 1;
	padding: var(--wp--preset--spacing--30);
}
.bf-res-text > * {
	margin: 0 !important;
}
.bf-res-text .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 0.4rem;
}
.bf-res h3 {
	font-size: 1.125rem;
	line-height: 1.3;
}
.bf-res-kind {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
}
.bf-res-desc {
	font-size: var(--wp--preset--font-size--small);
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* A: three equal cards */
.bf-resources-a {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* B: the first one large on dark, the other two beside it */
.bf-resources-b {
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	grid-template-rows: 1fr 1fr;
}
.bf-resources-b .bf-res:first-child {
	grid-row: span 2;
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--white);
}
.bf-resources-b .bf-res:first-child h3 {
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--large);
}
.bf-resources-b .bf-res:first-child .bf-res-kind {
	color: var(--wp--preset--color--yellow);
}
.bf-resources-b .bf-res:not(:first-child) {
	display: grid;
	grid-template-columns: 40% 1fr;
}
.bf-resources > * {
	margin: 0 !important;
}
.bf-resources-b .bf-res:not(:first-child) {
	align-items: center;
}
.bf-resources-b .bf-res:not(:first-child) .wp-block-image img {
	aspect-ratio: 4 / 3;
}
.bf-resources-b .bf-res:first-child .wp-block-image {
	background: none;
}
.bf-resources-b .bf-res:first-child .wp-element-button,
.bf-vidcard-cta .wp-element-button {
	background: var(--wp--preset--color--yellow) !important;
	color: var(--wp--preset--color--anthracite) !important;
}
.bf-resources-b .bf-res:not(:first-child) .bf-res-desc {
	-webkit-line-clamp: 3;
}
/* C: one row per item */
.bf-resources-c {
	gap: 0;
}
.bf-resources-c .bf-res {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: var(--wp--preset--spacing--40);
	align-items: center;
	padding: var(--wp--preset--spacing--30) 0;
	background: none;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-resources-c .bf-res:first-child {
	border-top: 1px solid var(--wp--preset--color--light-grey);
}
.bf-resources-c .bf-res-text {
	padding: 0;
}
.bf-resources-c .bf-res-desc {
	-webkit-line-clamp: 3;
}
.bf-resources-c .bf-res-text .wp-block-buttons {
	margin-top: 0.4rem !important;
}
@media (max-width: 900px) {
	.bf-resources-a,
	.bf-resources-b,
	.bf-resources-c .bf-res,
	.bf-resources-b .bf-res:not(:first-child) {
		grid-template-columns: 1fr;
		grid-template-rows: none;
	}
	.bf-resources-b .bf-res:first-child {
		grid-row: auto;
	}
	.bf-resources-b .bf-res:not(:first-child) .wp-block-image img {
		aspect-ratio: 16 / 9;
	}
}

/* Areas of application: all clips and pictures the same size (16:9) */
.bf-vidcards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}
/* Cards in a row share their inner rows (subgrid): pictures, headings, texts
   and buttons start at the same height across the row. */
.bf-vidcards > *,
.bf-vidcard > * {
	margin: 0 !important;
}
.bf-vidcard {
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	row-gap: 0.6rem;
	align-content: start;
}
.bf-vidcard > figure {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--wp--preset--color--anthracite);
}
.bf-vidcard > figure video,
.bf-vidcard > figure img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}
.bf-vidcard h3 {
	font-size: 1.125rem;
	line-height: 1.3;
	padding-top: 0.4rem;
}
.bf-vidcard p {
	font-size: var(--wp--preset--font-size--small);
}
.bf-vidcard-cta {
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--white);
	padding-bottom: var(--wp--preset--spacing--30);
}
.bf-vidcard-cta > :not(figure) {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
.bf-vidcard-cta h3 {
	color: var(--wp--preset--color--white);
}
.bf-vidcard-cta .wp-block-buttons {
	margin-top: auto !important;
	padding-top: 0.4rem;
}
@media (max-width: 1023px) {
	.bf-vidcards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.bf-vidcards {
		grid-template-columns: 1fr;
	}
}

/* Links with a small label above, e.g. to blog posts */
.bf-linkrow {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin: 0 !important;
	padding: 0.9rem 0;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-linkrow-kind {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--teal);
}
main .bf-linkrow a {
	font-weight: 600;
	color: var(--wp--preset--color--anthracite);
	box-shadow: none !important;
	text-decoration: none;
}
main .bf-linkrow a::after {
	content: " →";
}
main .bf-linkrow a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.2em;
}

/* ===== Application page parts added for Volume Monitoring ===== */
/* Icon cards: three in a row */
.bf-ifeats-a.bf-ifeats-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
	.bf-ifeats-a.bf-ifeats-3 {
		grid-template-columns: 1fr;
	}
}
/* "Learn more" link at the end of a card */
main .bf-card-link a {
	font-weight: 600;
	color: var(--wp--preset--color--anthracite);
	box-shadow: none !important;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.25em;
}
main .bf-card-link a:hover {
	box-shadow: inset 0 -0.5em 0 0 rgba(255, 223, 99, 0.6) !important;
}
.bf-vidcard .bf-card-link {
	align-self: end;
}

/* Solution architecture: three parts, each with a picture shown whole;
   pictures, headings, texts and lists line up across the row. */
.bf-arch {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
}
.bf-arch > *,
.bf-arch-card > * {
	margin: 0 !important;
}
.bf-arch-card {
	display: grid;
	grid-row: span 4;
	grid-template-rows: subgrid;
	row-gap: 0.75rem;
	align-content: start;
	padding: 0 0 var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--off-white);
}
/* Boxes like the icon cards: picture on top, text inside with side padding */
.bf-arch-card > :not(figure) {
	padding-left: var(--wp--preset--spacing--30);
	padding-right: var(--wp--preset--spacing--30);
}
/* Pictures sit directly on the box (use pictures with a transparent background) */
.bf-arch-card > figure {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0;
}
.bf-arch-card .bf-bullets-triangle {
	padding-left: calc(var(--wp--preset--spacing--30) + 0.1rem);
}
.bf-arch-card > figure img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: contain;
}
.bf-arch-card h3 {
	font-size: 1.125rem;
	line-height: 1.3;
}
.bf-arch-card p,
.bf-arch-card li {
	font-size: var(--wp--preset--font-size--small);
}
@media (max-width: 900px) {
	.bf-arch {
		grid-template-columns: 1fr;
	}
}

/* Slider with cards (photo, heading, text): three per page on desktop */
.bf-slider.bf-slider-cards {
	grid-auto-columns: calc((100% - 2 * var(--wp--preset--spacing--30)) / 3);
	align-items: start;
}
.bf-ind-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	background: var(--wp--preset--color--white);
	padding-bottom: var(--wp--preset--spacing--30);
	height: 100%;
	box-sizing: border-box;
}
.bf-ind-card > * {
	margin: 0 !important;
}
.bf-ind-card > :not(figure) {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}
.bf-ind-card > figure img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.bf-ind-card h3 {
	font-size: 1.125rem;
	line-height: 1.3;
	padding-top: 0.4rem;
}
.bf-ind-card p {
	font-size: var(--wp--preset--font-size--small);
}
.bf-ind-card .bf-card-link {
	margin-top: auto !important;
}
@media (max-width: 1023px) {
	.bf-slider.bf-slider-cards {
		grid-auto-columns: 46%;
	}
}
@media (max-width: 600px) {
	.bf-slider.bf-slider-cards {
		grid-auto-columns: 85%;
	}
}

/* Customer quotes: three cards with a yellow quote mark */
.bf-quotes {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}
.bf-quotes > * {
	margin: 0 !important;
}
.bf-quote {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--off-white);
	border-top: 3px solid var(--wp--preset--color--yellow);
}
.bf-quote > * {
	margin: 0 !important;
}
.bf-quote-text {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}
.bf-quote-text::before {
	content: "“";
	display: block;
	font-size: 3.5rem;
	line-height: 0.8;
	font-weight: 700;
	color: var(--wp--preset--color--yellow);
	margin-bottom: 0.25rem;
}
.bf-quote-by {
	margin-top: auto !important;
	gap: 1rem !important;
	align-items: center;
	font-size: 0.8125rem;
	line-height: 1.4;
}
.bf-quote-by p {
	margin: 0;
}
.bf-quote-by .wp-block-image {
	flex: 0 0 5rem;
	margin: 0;
}
.bf-quote-by .wp-block-image img {
	width: 5rem;
	height: 3rem;
	object-fit: contain;
}
@media (max-width: 900px) {
	.bf-quotes {
		grid-template-columns: 1fr;
	}
}
.bf-video-narrow {
	margin-top: var(--wp--preset--spacing--40) !important;
}

/* ===== Application page parts added for Traffic ===== */
.bf-arch.bf-arch-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Photos instead of product pictures: fill the frame (cropped), no gap above */
.bf-arch.bf-arch-photos .bf-arch-card > figure {
	padding: 0;
}
.bf-arch.bf-arch-photos .bf-arch-card {
	background: var(--wp--preset--color--white);
}
.bf-arch.bf-arch-photos .bf-arch-card > figure img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
}
@media (max-width: 1023px) {
	.bf-arch.bf-arch-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.bf-arch.bf-arch-4 {
		grid-template-columns: 1fr;
	}
}
/* Video inside a section (not the hero) */
figure.wp-block-video.bf-clip {
	margin: 0;
}
figure.wp-block-video.bf-clip video {
	display: block;
	width: 100%;
	height: auto;
}

/* Two cards in a row (e.g. two industries) */
.bf-arch.bf-arch-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
	.bf-arch.bf-arch-2 {
		grid-template-columns: 1fr;
	}
}

/* Hero titles: long words (German!) are hyphenated instead of cut off; smaller on phones */
.bf-hero h1 {
	hyphens: auto;
	overflow-wrap: break-word;
}
@media (max-width: 600px) {
	.bf-hero h1 {
		/* small enough that words like "Datenschutzkonforme" fit on one line */
		font-size: clamp(1.4rem, 6.4vw, 2rem) !important;
		line-height: 1.2;
	}
	/* Phones: a steeper yellow edge close to the left, so the title has room */
	.bf-hero::before {
		background: linear-gradient(100deg, transparent 9%, rgba(255, 223, 99, 0.88) 9%);
	}
	.bf-hero .bf-hero-text {
		margin-left: 12% !important;
		width: 88%;
	}
}

/* ===== Product pages (QbProtect, QbProtect S, QbVolume, QbBasic) ===== */
/* Software feature clips: three in a row */
.bf-vidcards.bf-vidcards-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1023px) {
	.bf-vidcards.bf-vidcards-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.bf-vidcards.bf-vidcards-3 {
		grid-template-columns: 1fr;
	}
}
/* Icon boxes stacked in a side column */
.bf-ifeats-a.bf-ifeats-1 {
	grid-template-columns: 1fr;
	margin-bottom: var(--wp--preset--spacing--30) !important;
}
/* Quotes with a portrait instead of a company logo */
.bf-quote-by .wp-block-image.bf-quote-photo {
	flex: 0 0 3.5rem;
}
.bf-quote-by .wp-block-image.bf-quote-photo img {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	object-fit: cover;
}
/* Compatible systems (VMS/PSIM): compact list in three columns, note and button in one row */
.bf-list-3col {
	columns: 3;
	column-gap: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--small);
}
.bf-list-3col > li {
	break-inside: avoid;
	margin: 0.2em 0;
}
.bf-vms-note {
	gap: var(--wp--preset--spacing--40) !important;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--light-grey);
}
.bf-vms-note p {
	font-size: var(--wp--preset--font-size--small);
	max-width: 52rem;
	margin: 0;
}
.bf-vms-note .wp-block-buttons {
	flex-shrink: 0;
}
@media (max-width: 900px) {
	.bf-list-3col {
		columns: 2;
	}
	.bf-vms-note {
		flex-wrap: wrap !important;
	}
}
@media (max-width: 600px) {
	.bf-list-3col {
		columns: 1;
	}
}
/* Product overview: five product cards in a row, comparison table */
.bf-arch.bf-arch-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
/* Product renders have wide empty margins: show them larger inside the frame */
.bf-arch-5 .bf-arch-card > figure {
	overflow: hidden;
}
.bf-arch-5 .bf-arch-card > figure img {
	transform: scale(1.4);
}
.bf-arch-card h3 a {
	color: inherit;
	text-decoration: none;
	box-shadow: none !important;
}
.bf-arch-card h3 a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow);
	text-decoration-thickness: 2px;
}
.bf-arch-card .bf-card-link {
	align-self: end;
}
@media (max-width: 1100px) {
	.bf-arch.bf-arch-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 700px) {
	.bf-arch.bf-arch-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 460px) {
	.bf-arch.bf-arch-5 {
		grid-template-columns: 1fr;
	}
}
.bf-compare {
	overflow-x: auto;
}
.bf-compare table {
	min-width: 900px;
	table-layout: fixed;
	font-size: var(--wp--preset--font-size--small);
}
.bf-compare th,
.bf-compare td {
	vertical-align: top;
}
.bf-compare thead th:first-child,
.bf-compare tbody td:first-child {
	width: 15%;
	font-weight: 600;
}
.bf-compare thead th a {
	color: inherit;
}
/* Company: leadership team cards (photo, name, role, bio to unfold) */
.bf-team {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	align-items: start;
}
.bf-team > *,
.bf-team-card > * {
	margin: 0 !important;
}
.bf-team-card {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.bf-team-card > figure {
	margin-bottom: 0.6rem !important;
	background: var(--wp--preset--color--off-white);
}
.bf-team-card > figure img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 20%;
}
.bf-team-card .bf-person-name {
	font-weight: 600;
	font-size: 1.125rem;
}
.bf-team-card .bf-team-role {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--grey-text);
}
.bf-team-card details {
	margin-top: 0.4rem !important;
	font-size: var(--wp--preset--font-size--small);
}
.bf-team-card details summary {
	font-weight: 600;
	cursor: pointer;
}
@media (max-width: 900px) {
	.bf-team {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 480px) {
	.bf-team {
		grid-template-columns: 1fr;
	}
}
/* Logos in a fixed grid (awards, supporters) */
.bf-logo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	align-items: center;
}
.bf-logo-grid > * {
	margin: 0 !important;
}
.bf-logo-grid .wp-block-image {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--20);
	background: var(--wp--preset--color--white);
	aspect-ratio: 3 / 2;
}
.bf-logo-grid .wp-block-image a {
	display: contents;
	box-shadow: none !important;
}
.bf-logo-grid .wp-block-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.bf-logo-grid.bf-logo-grid-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 900px) {
	.bf-logo-grid,
	.bf-logo-grid.bf-logo-grid-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 480px) {
	.bf-logo-grid,
	.bf-logo-grid.bf-logo-grid-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Careers: list of open positions and job ads */
.bf-jobs {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--wp--preset--color--light-grey);
}
.bf-job {
	margin: 0;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
main .bf-job-link {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1.5rem;
	padding: 1.1rem 0.25rem;
	color: var(--wp--preset--color--anthracite);
	text-decoration: none;
	box-shadow: none !important;
}
main .bf-job-link:hover {
	background: var(--wp--preset--color--off-white);
}
.bf-job-title {
	flex: 1 1 24rem;
	font-weight: 600;
	font-size: 1.0625rem;
}
.bf-job-title::after {
	content: " →";
}
.bf-job-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.bf-job-chip {
	margin: 0;
	padding: 0.15rem 0.6rem;
	font-size: 0.8125rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--light-grey);
}
.bf-job-chip.bf-job-job-department {
	background: var(--wp--preset--color--light-yellow);
	border-color: var(--wp--preset--color--light-yellow);
}
/* Job posting from Personio (iframe; height set by Personio via postMessage) */
.bf-job-posting iframe {
	display: block;
	width: 100%;
	min-height: 900px;
	border: 0;
}
.bf-personio-link {
	margin-top: var(--wp--preset--spacing--30) !important;
}
.bf-job-apply {
	margin-top: var(--wp--preset--spacing--20) !important;
}
.bf-job-apply-box .bf-small-print {
	margin-top: 0.75rem;
}
.bf-job-content h2,
.bf-job-content h3 {
	margin-top: var(--wp--preset--spacing--40);
}
/* Awards: logo cards (markup from [bf_awards]) */
.bf-awards .bf-arch-card > figure {
	margin: 0;
	background: var(--wp--preset--color--white);
	padding: var(--wp--preset--spacing--30);
	margin: var(--wp--preset--spacing--30) var(--wp--preset--spacing--30) 0 !important;
}
.bf-awards .bf-arch-card > figure img {
	aspect-ratio: 16 / 9;
	object-fit: contain;
	height: auto;
}
.bf-awards h3 a {
	color: inherit;
	text-decoration: none;
	box-shadow: none !important;
}
/* ===== Security industry pages (airports, museums, …) ===== */
/* Customer logos in one centred row */
.bf-logo-row {
	gap: var(--wp--preset--spacing--40) !important;
	align-items: center;
}
.bf-logo-row .wp-block-image {
	margin: 0;
}
.bf-logo-row .wp-block-image img {
	height: 2.75rem;
	width: auto;
	max-width: 10rem;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
}
/* Solutions: text cards. auto-fit, so fewer cards than columns still fill the row */
.wp-block-group.bf-solutions.is-layout-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}
.bf-solutions > * {
	margin: 0 !important;
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--white);
	border-top: 3px solid var(--wp--preset--color--yellow);
}
.has-off-white-background-color .bf-solutions > * {
	background: var(--wp--preset--color--white);
}
:not(.has-off-white-background-color) > .bf-solutions > * {
	background: var(--wp--preset--color--off-white);
}
.bf-solutions p {
	font-size: var(--wp--preset--font-size--small);
}
/* Two cards (case studies, blog posts) */
.bf-vidcards.bf-vidcards-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
	.bf-vidcards.bf-vidcards-2 {
		grid-template-columns: 1fr;
	}
}
/* Recommended sensors: product renders larger in their frame */
.bf-arch-products .bf-arch-card > figure {
	overflow: hidden;
}
.bf-arch-products .bf-arch-card > figure img {
	transform: scale(1.35);
}
/* Technology comparison: first column bold */
.bf-compare-tech table {
	min-width: 640px;
}
.bf-compare-tech tbody td:first-child {
	font-weight: 600;
	width: 18%;
}
/* More industries: five tiles in a row */
.bf-tiles.bf-tiles-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 1023px) {
	.bf-tiles.bf-tiles-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.bf-tiles.bf-tiles-5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Contact page: phone list */
.bf-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.bf-contact-list li {
	display: flex;
	flex-direction: column;
	padding: 0.6rem 0;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
.bf-contact-list li:last-child {
	border-bottom: 0;
}
.bf-contact-list strong {
	font-size: var(--wp--preset--font-size--small);
}
/* Phone numbers: plain and bold, no yellow link underline */
main .bf-contact-list a,
main .bf-contact-box a[href^="tel:"] {
	box-shadow: none !important;
	text-decoration: none;
	font-weight: 600;
	color: var(--wp--preset--color--anthracite);
}
main .bf-contact-list a:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--yellow);
	text-decoration-thickness: 2px;
}
/* Tabs (contact: sales / support) */
.bf-tab-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0 0 var(--wp--preset--spacing--30) !important;
	border-bottom: 1px solid var(--wp--preset--color--light-grey);
}
main .bf-tab-buttons a {
	padding: 0.75rem 1.25rem;
	margin-bottom: -1px;
	font-weight: 600;
	color: var(--wp--preset--color--grey-text);
	text-decoration: none;
	box-shadow: none !important;
	border-bottom: 3px solid transparent;
}
main .bf-tab-buttons a:hover {
	color: var(--wp--preset--color--anthracite);
}
main .bf-tab-buttons a.is-active {
	color: var(--wp--preset--color--anthracite);
	border-bottom-color: var(--wp--preset--color--yellow);
}
/* Without JavaScript all panels show; the buttons then just jump */
.bf-tabs:not(.bf-tabs-ready) .bf-tab-panel + .bf-tab-panel {
	margin-top: var(--wp--preset--spacing--40) !important;
}
.bf-tab-panel[hidden] {
	display: none !important;
}
/* Legal pages: readable long text */
.bf-legal h2 {
	margin-top: var(--wp--preset--spacing--40);
	font-size: 1.375rem;
}
.bf-legal h3 {
	margin-top: var(--wp--preset--spacing--30);
	font-size: 1.125rem;
}
.bf-legal p,
.bf-legal li {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
	overflow-wrap: anywhere;
}
main .bf-doc-link a::before {
	content: "PDF  ";
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--wp--preset--color--teal);
}
/* Key features: icon tiles on the dark band */
.bf-ftiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
	gap: var(--wp--preset--spacing--30);
}
.bf-ftiles > * {
	margin: 0 !important;
}
.bf-ftile {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: var(--wp--preset--spacing--30);
	background: rgba(255, 255, 255, 0.06);
	border-top: 3px solid var(--wp--preset--color--yellow);
}
.bf-ftile > * {
	margin: 0 !important;
}
.bf-ftile .bf-icon .dashicons {
	width: 2.25rem;
	height: 2.25rem;
	font-size: 2.25rem;
	color: var(--wp--preset--color--yellow);
}
.bf-ftile p:not(.bf-icon) {
	font-weight: 500;
	line-height: 1.45;
}
/* Project stages: numbered steps on a line (vertical on phones) */
.bf-stages {
	list-style: none;
	counter-reset: bf-stage;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: var(--wp--preset--spacing--30);
	padding: 0;
	margin-top: var(--wp--preset--spacing--30) !important;
	position: relative;
}
.bf-stages > li {
	counter-increment: bf-stage;
	position: relative;
	margin: 0;
	padding-top: 4rem;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}
.bf-stages > li::before {
	content: counter(bf-stage);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--wp--preset--color--yellow);
	color: var(--wp--preset--color--anthracite);
	font-weight: 700;
	font-size: 1.125rem;
}
/* the connecting line from one stage to the next */
.bf-stages > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 1.375rem;
	left: 2.75rem;
	right: calc(-1 * var(--wp--preset--spacing--30));
	height: 2px;
	background: var(--wp--preset--color--light-grey);
}
.bf-stages > li strong {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 1rem;
}
@media (max-width: 781px) {
	.bf-stages {
		grid-template-columns: 1fr;
		gap: var(--wp--preset--spacing--20);
	}
	.bf-stages > li {
		padding: 0.5rem 0 0.75rem 4rem;
		min-height: 3rem;
	}
	.bf-stages > li:not(:last-child)::after {
		top: 2.75rem;
		bottom: calc(-1 * var(--wp--preset--spacing--20));
		left: 1.375rem;
		right: auto;
		width: 2px;
		height: auto;
	}
}
/* Label above a layout variant (removed once one is chosen) */
.bf-variant-label {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 0 !important;
	padding: 0.2rem 0.6rem;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}
/* Quote slider: one large quote at a time */
.bf-slider.bf-slider-quotes {
	grid-auto-columns: 100% !important;
}
.bf-slider-quotes .bf-quote {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	gap: 1.5rem;
}
.bf-slider-quotes .bf-quote-text {
	font-size: 1.125rem;
	line-height: 1.65;
	max-width: 60rem;
}
@media (max-width: 600px) {
	.bf-slider-quotes .bf-quote {
		padding: var(--wp--preset--spacing--30);
	}
	.bf-slider-quotes .bf-quote-text {
		font-size: 1rem;
	}
}
/* Featured quote: one wide card, then short excerpts below */
.bf-quotes.bf-quotes-featured {
	grid-template-columns: 1fr;
}
.bf-quotes-featured .bf-quote {
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
}
.bf-quotes-featured .bf-quote-text {
	font-size: 1.25rem;
	line-height: 1.6;
	max-width: 60rem;
}
.bf-quotes-short .bf-quote {
	background: transparent;
	padding: var(--wp--preset--spacing--20) 0 0;
	border-top-width: 2px;
}
.bf-quotes-short .bf-quote-text::before {
	font-size: 2.25rem;
}
/* Two wide customer quotes with more room */
.bf-quotes-wide {
	gap: var(--wp--preset--spacing--40);
}
.bf-quotes-wide .bf-quote {
	padding: var(--wp--preset--spacing--40);
}
.bf-quotes-wide .bf-quote-text {
	font-size: 1rem;
}
/* Four quotes: two per row */
.bf-quotes.bf-quotes-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
	.bf-quotes.bf-quotes-2 {
		grid-template-columns: 1fr;
	}
}
/* A single quote: one wide card */
.bf-quotes.bf-quotes-1 {
	grid-template-columns: 1fr;
	max-width: 880px;
}
.bf-quotes-1 .bf-quote-text {
	font-size: var(--wp--preset--font-size--medium);
}
/* Industry tiles in a fixed grid (no slider) */
.bf-tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}
.bf-tiles > * {
	margin: 0 !important;
}
@media (max-width: 1023px) {
	.bf-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
/* Accessory pictures with a link under the name */
.bf-items figcaption a {
	display: inline-block;
	margin-top: 0.3rem;
	font-size: 0.8125rem;
	font-weight: 600;
}
/* Interfaces and compatible systems: list in two columns */
.bf-list-2col {
	columns: 2;
	column-gap: var(--wp--preset--spacing--40);
}
.bf-list-2col > li {
	break-inside: avoid;
}
@media (max-width: 600px) {
	.bf-list-2col {
		columns: 1;
	}
}

/* Security landing pages (intrusion / perimeter / motion): industry cards with a photo on top */
.wp-block-group.bf-solutions.bf-lp-inds.is-layout-grid:has(> :nth-child(4):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bf-lp-ind > .wp-block-image {
	margin: calc(-1 * var(--wp--preset--spacing--30)) calc(-1 * var(--wp--preset--spacing--30)) 0.5rem !important;
}
.bf-lp-ind > .wp-block-image img {
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	display: block;
}
.bf-lp-ind h3 a {
	color: inherit;
	text-decoration: none;
}
.bf-lp-ind .bf-more a {
	font-weight: 600;
}
.bf-lp-ind .bf-more a::after {
	content: " →";
}
@media (max-width: 700px) {
	.wp-block-group.bf-solutions.bf-lp-inds.is-layout-grid:has(> :nth-child(4):last-child) {
		grid-template-columns: 1fr;
	}
}
/* Phone check 2026-12-01: long link texts (URLs) and the case study filter must not widen the page */
.wp-block-paragraph,
.wp-block-list li,
.wp-block-details,
.wp-block-table td {
	overflow-wrap: break-word;
}
@media (max-width: 600px) {
	.bf-filters {
		flex-wrap: wrap;
	}
	.bf-filters select {
		min-width: 0;
		width: 100%;
		max-width: 100%;
	}
}/* Long German words in headings (e.g. "Datenschutzerklärung") break with a hyphen instead of widening the page */
h1, h2, h3, h4 {
	overflow-wrap: break-word;
	hyphens: auto;
}
/* 404 page: section links in two columns on wide screens */
.bf-404-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--wp--preset--spacing--50);
	max-width: 900px;
}
.bf-404-links > * {
	margin: 0 !important;
}
@media (max-width: 700px) {
	.bf-404-links {
		grid-template-columns: 1fr;
	}
}
/* GIF shown as its MP4 twin: behaves like the image it replaces */
.wp-block-image video.bf-gif-video {
	display: block;
	max-width: 100%;
	height: auto;
}
.wp-block-image.aligncenter video.bf-gif-video {
	margin-left: auto;
	margin-right: auto;
}
.wp-block-image.size-full video.bf-gif-video:not([style*="width"]),
.wp-block-image.size-large video.bf-gif-video:not([style*="width"]) {
	width: 100%;
}
/* Thank-you pages: resource cards side by side (up to four) */
.wp-block-group.bf-solutions.bf-lp-inds.bf-ty-cards.is-layout-grid,
.wp-block-group.bf-solutions.bf-lp-inds.bf-ty-cards.is-layout-grid:has(> :nth-child(4):last-child) {
	grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
}
/* Cards in a card grid: the inner column never grows wider than the card
   (one partner card was 261 px inside a 213 px card at 1024 px, tablet check 2026-12-01) */
.bf-arch-card {
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}
.bf-arch-card > figure img {
	max-width: 100%;
}
/* Readable grey for small text (contrast check 2026-12-01): #646B6F gives 5.4:1 on white and 5.0:1 on light grey;
   the brand grey #868D92 (3.4:1) stays for lines, icons and graphics. */

/* Keyboard focus (accessibility check 2026-12-01): a clear 2 px ring instead of the
   browser's thin default; white on dark sections, anthracite elsewhere (also on yellow). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--anthracite);
	outline-offset: 2px;
	border-radius: 1px;
}
:where(.has-anthracite-background-color, .has-teal-background-color, .bf-hero-photo .bf-ind-title, .bf-ind-tile, .wp-block-cover, footer) :where(a, button, summary):focus-visible {
	outline-color: var(--wp--preset--color--white);
}
.wp-block-button__link:focus-visible {
	outline-offset: 3px;
}
/* Visible only to screen readers (e.g. the "Overview" heading added by inc/seo.php) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
/* Forms (Contact Form 7, class bf-form from the form markup): same look as the
   old Elementor forms – label above the field, name and email/phone pairs side
   by side, red star for required fields, yellow Send button. */
.bf-form {
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
	font-family: var(--wp--preset--font-family--montserrat);
	color: var(--wp--preset--color--anthracite);
}
.bf-form p {
	margin: 0; /* CF7 wraps each field in a paragraph */
}
.bf-form .bf-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.6rem 1.5rem;
}
.bf-form .bf-field > label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 1rem;
	line-height: 1.3;
}
.bf-form .bf-req {
	color: #d40000;
}
.bf-form .wpcf7-form-control-wrap {
	display: block;
}
.bf-form :is(input[type="text"], input[type="email"], input[type="tel"], select, textarea) {
	box-sizing: border-box;
	width: 100%;
	min-height: 3.6rem;
	padding: 0.8rem 1.25rem;
	font: inherit;
	font-size: 1.05rem;
	color: var(--wp--preset--color--anthracite);
	background-color: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--grey-text);
	border-radius: 5px;
}
.bf-form textarea {
	height: 13.5rem;
	resize: vertical;
}
.bf-form select {
	padding-right: 3rem;
	appearance: none;
	background: var(--wp--preset--color--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333383A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 1.25rem center / 12px 8px;
	cursor: pointer;
}
.bf-form :is(input, select, textarea):focus-visible {
	outline: 2px solid var(--wp--preset--color--anthracite);
	outline-offset: 1px;
}
.bf-form .bf-check .wpcf7-list-item {
	margin: 0;
}
.bf-form .bf-check .wpcf7-list-item label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 1rem;
	line-height: 1.5;
	cursor: pointer;
}
.bf-form .bf-check input[type="checkbox"] {
	flex: none;
	width: 1.05rem;
	height: 1.05rem;
	margin-top: 0.2rem;
	accent-color: var(--wp--preset--color--anthracite);
}
.bf-form .bf-submit {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.bf-form input[type="submit"] {
	padding: 1.2rem 2.5rem;
	font: inherit;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--wp--preset--color--anthracite);
	background: var(--wp--preset--color--yellow);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}
.bf-form input[type="submit"]:hover {
	background: var(--wp--preset--color--anthracite);
	color: var(--wp--preset--color--white);
}
.bf-form input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: default;
}
.bf-form .wpcf7-spinner {
	margin: 0;
}
.bf-form .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	font-size: 0.9rem;
	color: #d40000;
}
.wpcf7 form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 0.9rem 1.2rem;
	border-width: 2px;
}
/* Newsletter sign-up (CF7): light card on the newsletter photo, full-width button */
.bf-form.bf-nl {
	gap: 1rem;
	padding: var(--wp--preset--spacing--30);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(51, 56, 58, 0.25);
}
.bf-form.bf-nl input[type="submit"] {
	width: 100%;
}
.bf-form.bf-nl .bf-submit {
	display: block;
}
.bf-form.bf-nl .bf-submit .wpcf7-spinner {
	display: block;
	margin: 0.5rem auto 0;
}
.bf-form.bf-nl .bf-small-print {
	margin: 0;
}
.bf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
@media (max-width: 599.98px) {
	.bf-form .bf-row {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Consent (Complianz): footer "Cookie settings" is a button that looks like
   the links next to it; reCAPTCHA notice above the form's send button. */
.bf-link-button {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.bf-recaptcha-notice {
	margin: 0 0 1rem;
	padding: 1rem;
	background: #f4f5f6;
	border-left: 4px solid #ffdf63;
	font-size: 0.875rem;
}
.bf-recaptcha-notice p {
	margin: 0 0 0.75rem;
}
.bf-recaptcha-notice button {
	background: #33383a;
	color: #fff;
	border: 0;
	padding: 0.5rem 1rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
/* Complianz banner: Cookie Policy and Privacy Statement are the same page,
   so show the link once (decided 2026-12-02, Luisa). */
.cmplz-cookiebanner .cmplz-documents li:has(> .cmplz-link.privacy-statement),
.cmplz-cookiebanner .cmplz-documents .cmplz-link.privacy-statement {
	display: none;
}
/* Complianz buttons: Montserrat like the rest of the site (browsers don't
   pass the font on to buttons). Colours are set in Complianz's banner settings. */
.cmplz-cookiebanner .cmplz-btn,
#cmplz-manage-consent .cmplz-manage-consent,
.cmplz-blocked-content-notice,
button.cmplz-accept-service {
	font-family: inherit;
	font-weight: 600;
}
/* Placeholder for blocked embeds (Personio, videos): same look as the
   banner, "I agree" yellow like "Accept". */
body .cmplz-blocked-content-container {
	background-color: #f4f5f6;
	border-radius: 0;
}
body .cmplz-blocked-content-container .cmplz-blocked-content-notice {
	background: #33383a;
	color: #fff;
	border-radius: 0;
	padding: 1.25rem 1.5rem;
}
body .cmplz-blocked-content-notice a {
	color: #fff;
}
body .cmplz-blocked-content-notice button.cmplz-accept-service {
	background: #ffdf63;
	color: #33383a;
	border: 0;
	border-radius: 0;
	padding: 0.5rem 1rem;
	margin-top: 0.75rem;
	cursor: pointer;
}
