/*
Theme Name: BS 26
Theme URI: https://bs26.ymnky.space
Author: YMNKY
Description: Child theme for the BS 26 Website Relaunch 2026.
Requires at least: 6.8
Tested up to: 7.0
Requires PHP: 8.1
Version: 0.1.9
Template: twentytwentyfive
Text Domain: bs26
*/

:root {
	--bs26-color-blue: #252e69;
	--bs26-color-blue-medium: #093791;
	--bs26-color-green: #00cb96;
	--bs26-color-green-active: #00836c;
	--bs26-color-orange: #ff3115;
	--bs26-color-warning-orange: #e51b00;
	--bs26-color-link-hover: var(--bs26-color-warning-orange);
	--bs26-color-blue-5: #f4f5f8;
	--bs26-color-disabled: #d3d5e1;
	--bs26-color-white: #fff;
	--bs26-color-black: #000;
	--bs26-content-wide: 1340px;
	--bs26-content-text: 790px;
	--bs26-mobile-content: 350px;
	--bs26-header-height: 100px;
	--bs26-header-height-mobile: 50px;
	--bs26-brand-gradient: linear-gradient(
		90deg,
		#00cb96 0%,
		#093791 50%,
		#252e69 60%,
		#ff3115 100%
	);
}

html {
	scroll-behavior: smooth;
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	color: var(--bs26-color-blue);
}

a {
	color: var(--bs26-color-blue);
	text-decoration: none;
	text-underline-offset: 0.18em;
	transition: text-underline-offset 180ms ease;
}

a:hover,
a:focus-visible {
	color: var(--bs26-color-link-hover);
}

/* Override component-specific underline offsets on pointer hover. */
a:hover {
	text-underline-offset: 5px !important;
}

/*
 * Keyboard focus needs a deliberate, consistent indicator for every native
 * interactive element rendered by WordPress blocks or the custom theme UI.
 * `:focus-visible` follows the browser's input-modality heuristic, so pointer
 * activation does not receive the ring. In browsers without `:focus-visible`
 * support both rules below are ignored and the native `:focus` indicator stays
 * intact as the accessible fallback.
 *
 * Scope this to the front-end site and editor canvas; Gutenberg's surrounding
 * administration controls keep their own WordPress focus treatment.
 */
:where(.wp-site-blocks, .editor-styles-wrapper) :where(a, button, input, select, textarea, summary, [tabindex], [contenteditable="true"], [role="button"]):focus-visible {
	outline: 3px solid var(--bs26-color-warning-orange);
	outline-offset: 3px;
}

:where(.wp-site-blocks, .editor-styles-wrapper) :where(a, button, input, select, textarea, summary, [tabindex], [contenteditable="true"], [role="button"]):focus:not(:focus-visible) {
	box-shadow: none;
	outline: none;
}

/*
 * Browsers intentionally match text inputs with :focus-visible after a pointer
 * click so a text cursor is always locatable. For this site's stricter visual
 * rule, the small modality helper sets this class before pointer focus. The
 * important declarations also neutralise component-specific focus rules. If
 * JavaScript is unavailable, the native :focus-visible behaviour above remains
 * the accessible fallback.
 */
:root.bs26-input-modality-pointer :where(.wp-site-blocks, .editor-styles-wrapper) :where(a, button, input, select, textarea, summary, [tabindex], [contenteditable="true"], [role="button"]):focus {
	box-shadow: none !important;
	outline: none !important;
}

/*
 * Keep native list bullets in the page-content landmark on-brand. `main` is
 * structurally separate from the header and footer, so footer navigation
 * markers keep their deliberate green treatment.
 */
main ul li::marker {
	color: var(--bs26-color-orange);
}

.wp-site-blocks {
	min-height: 100vh;
}

button {
	font-weight: 700;
}

.wp-block-button__link {
	border-radius: 0;
	font-weight: 700;
	min-height: 52px;
	padding: 11px 30px;
}

.is-style-outline > .wp-block-button__link {
	border-color: currentColor;
}

/*
 * Sticky context lives on the template-part wrapper, not on the inner header
 * group. The inner group sits inside a 100px-tall template-part box; making the
 * wrapper itself sticky lets the header stay pinned while .wp-site-blocks scrolls.
 */
.bs26-header-part {
	position: sticky;
	top: 0;
	z-index: 30;
}

.bs26-header-part--hero {
	margin-bottom: calc(-1 * var(--bs26-header-height));
}

.bs26-site-header {
	border-bottom: 0;
	background-color: transparent;
	isolation: isolate;
	min-height: var(--bs26-header-height);
	position: relative;
	transition: background-color 0.2s ease;
}

.bs26-site-header > .wp-block-group {
	position: relative;
	z-index: 1;
}

/* Default logo (scroll logo) is hidden until the header is in the scrolled state. */
.bs26-site-header__logo {
	display: block;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
	visibility: hidden;
}

.bs26-site-header__logo img {
	display: block;
	height: 26px;
	width: auto;
}

.bs26-site-header__logo {
	position: relative;
}

.bs26-site-header__logo-image--color {
	display: block;
}

.bs26-site-header__logo-image--light {
	display: none;
}

/* Scrolled state: opaque white bar, visible logo, 4px gradient bottom line. */
.bs26-site-header.is-scrolled {
	background-color: var(--bs26-color-white);
}

.bs26-site-header.is-scrolled::after {
	background: var(--bs26-brand-gradient);
	bottom: 0;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
}

.bs26-site-header.is-scrolled .bs26-site-header__logo {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

.bs26-site-header--hero .bs26-site-header__logo {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
}

.bs26-site-header--hero::before {
	background: linear-gradient(180deg, rgba(7, 10, 22, 0.58) 0%, rgba(7, 10, 22, 0.42) 42%, rgba(7, 10, 22, 0.18) 72%, rgba(7, 10, 22, 0) 100%);
	content: "";
	height: 160px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 0;
	transition: opacity 0.24s ease;
	z-index: 0;
}

.bs26-site-header--hero .bs26-site-header__logo-image--light {
	display: block;
}

.bs26-site-header--hero .bs26-site-header__logo-image--color {
	display: none;
}

.bs26-site-header--hero .bs26-header-action {
	color: var(--bs26-color-white);
	opacity: 1;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.38);
}

.bs26-site-header--hero .bs26-header-action img {
	filter: brightness(0) invert(1);
}

.bs26-site-header--hero.is-scrolled .bs26-header-action {
	color: var(--bs26-color-blue);
	text-shadow: none;
}

.bs26-site-header--hero.is-scrolled::before {
	opacity: 0;
}

.bs26-site-header--hero.is-scrolled .bs26-header-action img {
	filter: none;
}

.bs26-site-header--hero.is-scrolled .bs26-site-header__logo-image--light {
	display: none;
}

.bs26-site-header--hero.is-scrolled .bs26-site-header__logo-image--color {
	display: block;
}

.bs26-header-actions {
	gap: 32px;
}

.bs26-header-action {
	align-items: center;
	color: var(--bs26-color-blue);
	display: inline-flex;
	font-size: 17px;
	font-weight: 700;
	gap: 10px;
	letter-spacing: 1px;
	line-height: 1;
	text-transform: uppercase;
}

.bs26-header-action img {
	height: 24px;
	width: 24px;
}

/* Menu trigger button: styled as a header action (inherits 17px bold uppercase). */
.bs26-nav-toggle {
	background: none;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

/* ---- Custom nav overlay: right white slide-in panel + dimmed backdrop ---- */
.bs26-nav-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	visibility: hidden;
	pointer-events: none;
}

.bs26-nav-overlay.is-open {
	visibility: visible;
	pointer-events: auto;
}

.bs26-nav-overlay__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(37, 46, 105, 0.4);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bs26-nav-overlay.is-open .bs26-nav-overlay__backdrop {
	opacity: 1;
}

.bs26-nav-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 50vw;
	max-width: 720px;
	box-sizing: border-box;
	background: var(--bs26-color-white);
	padding: 34px 50px 60px 38px; /* left inner padding 38px (Sketch) */
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.3s ease;
}

/*
 * Closing state: keep the panel/backdrop animating out (no instant display:none).
 * JS adds .is-closing while .is-open is removed, so transitions still apply, then
 * removes it after transitionend. visibility:hidden only takes effect once the
 * panel has finished sliding away (transition delay matches the slide duration).
 */
.bs26-nav-overlay.is-closing {
	visibility: visible;
	pointer-events: none;
	transition: visibility 0s linear 0.3s;
}

.bs26-nav-overlay.is-closing .bs26-nav-overlay__backdrop {
	opacity: 0;
}

.bs26-nav-overlay.is-closing .bs26-nav-panel {
	transform: translateX(100%);
}

.bs26-nav-overlay.is-open .bs26-nav-panel {
	transform: translateX(0);
}

.bs26-nav-panel__head {
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	margin-bottom: 30px;
}

.bs26-nav-panel__logo img {
	display: block;
	height: 26px;
	width: auto;
}

.bs26-nav-close {
	background: none;
	border: 0;
	cursor: pointer;
	line-height: 0;
	padding: 0;
}

.bs26-nav-close img {
	display: block;
	height: 24px;
	width: 24px;
}

.bs26-nav-list,
.bs26-nav-sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * Vertical rhythm from Sketch artboard "Startseite-Menü" (top-to-top pitch of
 * text rows). A new L1 group sits ~59px below the previous group's last row.
 * The 24px L1 line-height already contributes ~30px, so the remaining top
 * margin is ~29px → 59px pitch. The first group has no top margin.
 */
.bs26-nav-group {
	margin-top: 29px;
}

.bs26-nav-group:first-child {
	margin-top: 0;
}

/*
 * L1 entries (Sketch authoritative, PostScript font PlusJakartaSans-Bold):
 * 24px, weight 700 (Bold, NOT 800), underline single, blue #252e69, none-transform.
 * inline-block display so the underline hugs the text, not the full row width.
 */
.bs26-nav-l1 {
	color: var(--bs26-color-blue);
	display: inline-block;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

/* L1 → first L2 pitch ≈ 39–40px; 24px L1 line ≈ 30px → ~9px top margin. */
.bs26-nav-sub {
	margin-top: 9px;
}

/* L2 item pitch ≈ 33–34px; 19px L2 line ≈ 25px → ~9px gap between items. */
.bs26-nav-sub li {
	margin-top: 9px;
}

/*
 * L2 entries (Sketch authoritative, PostScript font PlusJakartaSans-Regular):
 * 19px, weight 400 (Regular, NOT 500), underline single, blue #252e69.
 */
.bs26-nav-l2 {
	color: var(--bs26-color-blue);
	display: inline-block;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 0.16em;
}

.bs26-nav-l1:hover,
.bs26-nav-l1:focus-visible,
.bs26-nav-l2:hover,
.bs26-nav-l2:focus-visible {
	color: var(--bs26-color-link-hover);
}

.bs26-site-main {
	overflow: clip;
}

/*
 * Homepage sections are full-bleed and stack flush — each owns its spacing via
 * its own internal padding / min-height. Mirror blockGap's `* + *` selector so
 * we zero only the inter-section gap and NEVER touch the first child's margin
 * (the hero keeps its negative margin-top that tucks it under the transparent
 * header). Scoped to .bs26-front-page so global blockGap on other pages is
 * completely unaffected. The Berufsausbildung template can opt in later by
 * adding the same marker class to its <main>.
 *
 * The footer's root-level rule `footer.wp-block-template-part { margin-block-start: 0 }`
 * below handles the gap above the footer — that element lives one level above
 * post-content so this rule does not reach it.
 */
.bs26-front-page > .wp-block-post-content > * + * {
	margin-block-start: 0;
}

.bs26-section {
	padding: 80px 50px;
}

.bs26-section--compact {
	padding: 60px 50px;
}

.bs26-home-hero {
	align-items: center;
	background-color: var(--bs26-color-white);
	display: flex;
	margin-top: calc(-1 * var(--bs26-header-height));
	min-height: 460px;
	padding-top: var(--bs26-header-height);
}

.bs26-home-hero__inner {
	gap: 48px;
}

.bs26-home-hero__logo {
	display: block;
	flex: 0 1 auto;
	height: auto;
	max-width: min(560px, 60vw);
}

.bs26-home-hero__tagline {
	color: var(--bs26-color-blue);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 1.5px;
	line-height: 1.25;
	margin: 0;
	max-width: 320px;
	text-transform: uppercase;
}

.bs26-home-band {
	align-items: center;
	background-color: var(--bs26-color-blue);
	background-image: url("assets/images/home/home-hero-header-pattern.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: var(--bs26-color-white);
	display: flex;
	min-height: 85px;
}

.bs26-home-band p {
	color: var(--bs26-color-white);
	font-size: 21px;
	font-weight: 700;
	margin: 0;
	width: 100%;
}

.bs26-news-card img,
.bs26-contact-image img,
.bs26-ba-hero-image img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/*
 * Teaser module = native core/media-text ("Medien und Text"), fluid & responsive.
 * The block itself owns the 50/50 grid, the imageFill cover behaviour, stacking on
 * mobile and vertical centring — we only style the optics here, NEVER the height.
 * The tile height is driven by the text content (heading + link list + padding).
 * margin-block-start was previously zeroed here; now handled by the central
 * .bs26-front-page rule above.
 */

/* Keep the imageFill media within its grid column. WP core gives the media a
   ~375px intrinsic min-width that overflows narrow side-by-side tracks (~600–750px),
   making the image overlap the heading. Pin it to its column; harmless at wide
   widths where the column already exceeds 375px (no-op there). */
.bs26-teaser .wp-block-media-text__media {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}

/* White text card with generous, fluid padding — no fixed-height constraint. */
.bs26-teaser .wp-block-media-text__content {
	background: var(--bs26-color-white);
	box-sizing: border-box;
	padding: clamp(40px, 5vw, 60px) clamp(24px, 5vw, 75px);
}

.bs26-teaser .wp-block-media-text__content .wp-block-heading {
	margin-bottom: 24px;
	margin-top: 0;
}

.bs26-link-list {
	list-style: none;
	padding-left: 0;
}

.bs26-link-list li {
	align-items: flex-start;
	display: flex;
	gap: 17px;
	margin-top: 12px;
}

/* Homepage teaser links retain their green bullet accent. */
.bs26-link-list a {
	text-decoration: underline;
}

.bs26-link-list a:hover,
.bs26-link-list a:focus-visible {
	color: var(--bs26-color-link-hover);
}

.bs26-link-list li::before {
	background: var(--bs26-color-green);
	border-radius: 999px;
	content: "";
	flex: 0 0 8px;
	height: 8px;
	margin-top: 10px;
	width: 8px;
}

/*
 * Querverweis: the paragraph block style is selected in the editor and adds
 * `is-style-bs26-querverweis` to the block. The direct class keeps the
 * component available to existing markup when necessary. Keep the paragraph
 * to one link so it remains one clear, full-width hit target.
 */
.is-style-bs26-querverweis > a,
.bs26-querverweis > a,
a.bs26-querverweis {
	align-items: center;
	color: var(--bs26-color-blue);
	display: flex;
	font-weight: 700;
	gap: 16px;
	justify-content: space-between;
	padding-bottom: 14px;
	position: relative;
	text-decoration: none;
}

.is-style-bs26-querverweis > a::before,
.bs26-querverweis > a::before,
a.bs26-querverweis::before {
	background: var(--bs26-brand-gradient);
	bottom: 0;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	width: 100%;
}

.is-style-bs26-querverweis > a::after,
.bs26-querverweis > a::after,
a.bs26-querverweis::after {
	color: var(--bs26-color-orange);
	content: "›";
	flex: 0 0 auto;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
}

.is-style-bs26-querverweis > a:hover,
.is-style-bs26-querverweis > a:focus-visible,
.bs26-querverweis > a:hover,
.bs26-querverweis > a:focus-visible,
a.bs26-querverweis:hover,
a.bs26-querverweis:focus-visible {
	color: var(--bs26-color-link-hover);
}

.is-style-bs26-querverweis > a:hover::after,
.is-style-bs26-querverweis > a:focus-visible::after,
.bs26-querverweis > a:hover::after,
.bs26-querverweis > a:focus-visible::after,
a.bs26-querverweis:hover::after,
a.bs26-querverweis:focus-visible::after {
	color: var(--bs26-color-link-hover);
}

/*
 * margin-block-start was previously zeroed here; now handled by the central
 * .bs26-front-page rule above.
 */
.bs26-news-section {
	background: var(--bs26-color-blue-5);
}

.bs26-filter-row {
	align-items: center;
	gap: 20px;
}

.bs26-filter-chip {
	align-items: center;
	background: transparent;
	border: 1.5px solid var(--bs26-color-green);
	border-radius: 85.5px;
	box-sizing: border-box;
	color: var(--bs26-color-blue);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 15px;
	font-weight: 700;
	height: 35px;
	justify-content: center;
	line-height: 20px;
	margin: 0;
	min-height: 0;
	padding: 0 14px;
	text-align: center;
	text-decoration: none;
}

.bs26-filter-chip.is-active,
.bs26-filter-chip[aria-current="true"],
.bs26-filter-chip[aria-pressed="true"] {
	background: var(--bs26-color-green);
	border-color: var(--bs26-color-green);
	color: var(--bs26-color-black);
	height: 34px;
}

button.bs26-filter-chip,
.bs26-filter-chip[role="button"] {
	cursor: pointer;
}

button.bs26-filter-chip:focus-visible,
a.bs26-filter-chip:focus-visible,
.bs26-filter-chip[role="button"]:focus-visible {
	outline: 3px solid var(--bs26-color-warning-orange);
	outline-offset: 3px;
}

.bs26-news-grid {
	gap: 20px;
}

/*
 * Editor-native Core Quote presentation. Every standard core/quote block uses
 * the Sketch "Layouts > Module > Zitat" treatment by default; the optional
 * "Zitat" block style remains compatible. The quote text and citation stay in
 * the editable <p> and <cite> fields supplied by core/quote.
 */
.wp-block-quote {
	background-color: var(--bs26-color-blue);
	background-image:
		radial-gradient(ellipse 58% 115% at 0% 0%, rgba(0, 203, 150, 0.92) 0%, rgba(0, 203, 150, 0) 100%),
		radial-gradient(ellipse 52% 112% at 100% 0%, rgba(161, 45, 73, 0.94) 0%, rgba(161, 45, 73, 0) 100%),
		linear-gradient(145deg, #093791 0%, var(--bs26-color-blue) 72%);
	border: 0;
	box-sizing: border-box;
	color: var(--bs26-color-white);
	font-style: normal;
	margin-block: 0;
	/* The full-width quote can sit inside a constrained block wrapper. Use the
	 * viewport here so its text aligns with the surrounding 790px content column. */
	padding: 152px max(50px, calc((100vw - var(--bs26-content-text)) / 2)) 52px;
	position: relative;
	quotes: none;
}

/* Core's constrained layout writes physical auto margins and a max-width. */
:root .wp-block-quote {
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
	max-width: none !important;
	width: 100vw !important;
}

.wp-block-quote::before {
	color: var(--bs26-color-white);
	content: "“";
	font-family: inherit;
	font-size: 140px;
	font-weight: 700;
	line-height: 1.25;
	pointer-events: none;
	position: absolute;
	/* At 1440px the glyph's visual right edge aligns to x=1049px. */
	right: max(50px, calc((100% - var(--bs26-content-text)) / 2 + 51px));
	top: 42px;
	z-index: 0;
}

@media (min-width: 782px) {
	.wp-block-quote::before {
		left: calc((100% - var(--bs26-content-text)) / 2 + 724px);
		right: auto;
	}
}

.wp-block-quote > * {
	position: relative;
	z-index: 1;
}

.wp-block-quote p {
	color: inherit;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	max-width: 651px;
}

.wp-block-quote cite {
	color: inherit;
	display: block;
	font-size: 23px;
	font-style: normal;
	font-weight: 400;
	line-height: 29px;
	margin: 141px 0 0;
	max-width: 100%;
	position: relative;
	width: auto;
}

.wp-block-quote cite strong {
	font-weight: 700;
}

.bs26-news-card {
	background: var(--bs26-color-blue-5);
	color: var(--bs26-color-blue);
	display: flex;
	flex-direction: column;
}

.bs26-news-card__image {
	aspect-ratio: 320 / 215;
	display: block;
	margin-bottom: 10px;
	overflow: hidden;
}

.bs26-news-card__image img {
	display: block;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
	width: 100%;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.bs26-news-card__image:hover img {
		transform: scale(1.04);
	}
}

.bs26-news-card h3 {
	font-size: 21px;
	line-height: 1.3;
	margin: 0;
	text-align: left;
}

.bs26-date {
	font-size: 16px;
	font-weight: 500;
	margin: 4px 0 0;
	text-align: left;
}

/*
 * Core's constrained layout centers all direct children with physical
 * !important auto margins. News metadata must instead share the image's
 * left edge.
 */
.bs26-news-card > .wp-block-heading,
.bs26-news-card > .bs26-date {
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	width: 100%;
}

.bs26-berufsausbildung-page > .wp-block-post-content > * + * {
	margin-block-start: 0;
}

.wp-site-blocks > main.bs26-front-page {
	margin-block-start: 0;
}

.bs26-ba-hero {
	margin-top: calc(-1 * var(--bs26-header-height)) !important;
	min-height: 460px;
	padding-top: var(--bs26-header-height) !important;
	position: relative;
}

.bs26-ba-hero .wp-block-cover__image-background {
	object-position: center 34%;
}

.bs26-ba-hero::before {
	background: linear-gradient(180deg, rgba(7, 10, 22, 0.16) 0%, rgba(7, 10, 22, 0) 100%);
	content: "";
	inset: var(--bs26-header-height) 0 auto;
	height: 72px;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.bs26-ba-hero > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.bs26-ba-breadcrumbs,
.wp-block-breadcrumbs {
	color: var(--bs26-color-blue);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.39;
	margin: 38px 0 0;
	padding-left: 39px;
	position: relative;
}

.bs26-ba-breadcrumbs::before,
.wp-block-breadcrumbs::before {
	background-image: url("assets/icons/icon-home-blue.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	content: "";
	display: block;
	height: 24px;
	left: 0;
	position: absolute;
	top: 0;
	width: 24px;
}

.bs26-ba-breadcrumbs a,
.wp-block-breadcrumbs a {
	color: inherit;
	text-decoration: underline;
}

/* The breadcrumbs may sit inside a constrained content group. On desktop they
 * deliberately align with the outer edge of the facts card instead. */
@media (min-width: 782px) {
	.bs26-berufsausbildung-page .wp-block-breadcrumbs {
		margin-left: calc(50% - 50vw + max(50px, calc((100vw - var(--wp--style--global--wide-size)) / 2)));
		margin-right: 0;
		max-width: none;
		width: min(var(--wp--style--global--wide-size), calc(100vw - 100px));
	}
}

.bs26-ba-intro {
	padding: 88px 0 80px;
}

.bs26-ba-intro .wp-block-heading {
	margin-bottom: 28px;
}

.bs26-ba-intro p + p {
	margin-top: 24px;
}

.bs26-ba-section,
.wp-block-group.alignfull.has-background {
	padding: 60px 50px 70px;
}

.bs26-ba-section--muted {
	background: var(--bs26-color-blue-5);
}

.bs26-ba-section__inner > .wp-block-heading:first-child,
.bs26-ba-section__inner > p:first-child {
	margin-top: 0;
}

.bs26-ba-accordion,
.wp-block-accordion {
	margin-top: 36px;
}

.bs26-ba-accordion .wp-block-accordion-item,
.wp-block-accordion .wp-block-accordion-item,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) {
	border: 0;
	margin: 0;
	padding: 0;
}

.bs26-ba-accordion .wp-block-accordion-heading,
.wp-block-accordion .wp-block-accordion-heading,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) {
	margin: 0;
}

.wp-block-accordion .wp-block-accordion-item + .wp-block-accordion-item,
.bs26-ba-accordion > .wp-block-details + .wp-block-details,
.wp-block-details.is-style-bs26-accordion + .wp-block-details.is-style-bs26-accordion {
	margin-top: 36px;
}

/*
 * Gutenberg adds is-layout-flow to the native Accordion and prints its logical
 * margin-block rule after the child stylesheet. Set the matching logical
 * property explicitly so each Core item keeps the Details-accordion rhythm.
 */
.wp-block-accordion > .wp-block-accordion-item + .wp-block-accordion-item {
	margin-block-start: 36px !important;
}

.bs26-ba-accordion .wp-block-accordion-heading__toggle,
.wp-block-accordion .wp-block-accordion-heading__toggle,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary {
	align-items: flex-start;
	background: transparent;
	border: 0;
	color: var(--bs26-color-blue);
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 21px;
	font-weight: 700;
	gap: 24px;
	justify-content: space-between;
	line-height: 1.3;
	padding: 0 48px 0 0;
	position: relative;
	text-align: left;
	transition: padding-bottom 0.34s ease;
	width: 100%;
}

.bs26-ba-accordion .wp-block-accordion-heading__toggle:hover,
.wp-block-accordion .wp-block-accordion-heading__toggle:hover,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary:hover {
	color: #DE1B00;
}

/* Match the standard-link underline movement for accordion headlines. */
.bs26-ba-accordion .wp-block-accordion-heading__toggle-title,
.wp-block-accordion .wp-block-accordion-heading__toggle-title,
.bs26-ba-detail__label {
	display: inline;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.16em;
	transition: text-underline-offset 180ms ease;
}

.bs26-ba-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
.wp-block-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary:hover .bs26-ba-detail__label {
	text-underline-offset: 10px !important;
}

/*
 * Some browsers treat native summary elements as :focus-visible after pointer
 * activation. The script applies this class only for pointer interaction;
 * keyboard focus keeps the deliberate, visible indicator below.
 */
.bs26-ba-accordion .wp-block-accordion-heading__toggle.bs26-is-pointer-focused:focus,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary.bs26-is-pointer-focused:focus {
	outline: none;
}

.bs26-ba-accordion .wp-block-accordion-heading__toggle:focus-visible,
.wp-block-accordion .wp-block-accordion-heading__toggle:focus-visible,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary:focus-visible {
	outline: 3px solid var(--bs26-color-warning-orange);
	outline-offset: 4px;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary {
	list-style: none;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary::-webkit-details-marker {
	display: none;
}

.bs26-ba-detail__label {
	display: inline;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.16em;
}

.bs26-ba-accordion .wp-block-accordion-heading__toggle-title {
	flex: 1 1 auto;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-title {
	flex: 1 1 auto;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon {
	font-size: 0;
	height: 20px;
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon::before,
.wp-block-accordion .wp-block-accordion-heading__toggle-icon::after {
	background: currentColor;
	content: "";
	display: block;
	height: 2px;
	left: 0;
	position: absolute;
	top: 50%;
	transform-origin: center;
	transition: transform 0.28s ease, opacity 0.22s ease;
	width: 20px;
}

.wp-block-accordion .wp-block-accordion-heading__toggle-icon::before {
	transform: translateY(-50%) rotate(90deg);
}

.wp-block-accordion .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::before {
	transform: translateY(-50%) rotate(45deg);
}

.wp-block-accordion .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::after {
	transform: translateY(-50%) rotate(-45deg);
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary::before,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary::after {
	background: currentColor;
	content: "";
	display: block;
	height: 2px;
	position: absolute;
	right: 0;
	top: 50%;
	transform-origin: center;
	transition: transform 0.28s ease, opacity 0.22s ease;
	width: 20px;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary::before {
	transform: translateY(-50%) rotate(90deg);
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open] > summary::before {
	transform: translateY(-50%) rotate(45deg);
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open] > summary::after {
	transform: translateY(-50%) rotate(-45deg);
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion).is-closing > summary::before {
	transform: translateY(-50%) rotate(90deg);
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion).is-closing > summary::after {
	transform: translateY(-50%) rotate(0deg);
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary::after {
	transform: translateY(-50%) rotate(0deg);
}

.bs26-ba-accordion .wp-block-accordion-panel,
.wp-block-accordion .wp-block-accordion-panel,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > :not(summary) {
	padding: 0;
}

.wp-block-accordion .wp-block-accordion-item.is-open,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open] {
	position: relative;
}

.wp-block-accordion .wp-block-accordion-item.is-open::before,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open]::before {
	background: var(--bs26-color-green);
	bottom: 0;
	content: "";
	left: -38px;
	position: absolute;
	top: 0;
	width: 4px;
}

.wp-block-accordion .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle {
	color: #DE1B00;
	padding-bottom: 16px;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open] > summary {
	padding-bottom: 16px;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion).is-closing > summary {
	padding-bottom: 0;
}

.wp-block-accordion .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-title,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open] > summary .bs26-ba-detail__label {
	text-decoration: none;
}

.bs26-ba-detail__content {
	display: block;
	margin-top: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.34s ease, opacity 0.24s ease, margin-top 0.34s ease;
}

.bs26-ba-detail__content-inner {
	padding-bottom: 1px;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open] > .bs26-ba-detail__content {
	margin-top: 20px;
	opacity: 1;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > p:first-of-type {
	margin-top: 0;
}

.bs26-ba-accordion .wp-block-accordion-panel p,
.bs26-ba-accordion .wp-block-accordion-panel ul,
.wp-block-accordion .wp-block-accordion-panel p,
.wp-block-accordion .wp-block-accordion-panel ul,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) p,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) ul {
	margin-top: 0;
}

.wp-block-accordion .wp-block-accordion-panel p,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) p {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.39;
}

.bs26-ba-accordion .wp-block-accordion-panel ul,
.wp-block-accordion .wp-block-accordion-panel ul,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) ul {
	column-gap: 42px;
	columns: 2;
	padding-left: 20px;
}

.bs26-ba-accordion .wp-block-accordion-panel li,
.wp-block-accordion .wp-block-accordion-panel li,
:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) li {
	break-inside: avoid;
	margin-top: 6px;
}

:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion).is-closing > .bs26-ba-detail__content {
	margin-top: 0;
}

.bs26-ba-button-row {
	gap: 14px;
	margin-top: 34px;
}

.bs26-ba-button-row .wp-block-button__link,
.is-style-bs26-icon-arrow .wp-block-button__link,
.is-style-bs26-icon-arrow-right .wp-block-button__link,
.is-style-bs26-icon-download .wp-block-button__link,
.is-style-bs26-icon-download-right .wp-block-button__link,
.is-style-bs26-icon-document .wp-block-button__link,
.is-style-bs26-icon-document-right .wp-block-button__link {
	align-items: center;
	background: var(--bs26-color-green);
	border-radius: 8px;
	color: var(--bs26-color-black);
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	gap: 10px;
	justify-content: center;
	letter-spacing: 0.7px;
	min-height: 52px;
	padding: 11px 26px;
	text-transform: uppercase;
}

.wp-block-button__link strong {
	font-weight: inherit;
}

.bs26-ba-button-row .wp-block-button__link:hover,
.bs26-ba-button-row .wp-block-button__link:focus-visible,
.is-style-bs26-icon-arrow .wp-block-button__link:hover,
.is-style-bs26-icon-arrow .wp-block-button__link:focus-visible,
.is-style-bs26-icon-arrow-right .wp-block-button__link:hover,
.is-style-bs26-icon-arrow-right .wp-block-button__link:focus-visible,
.is-style-bs26-icon-download .wp-block-button__link:hover,
.is-style-bs26-icon-download .wp-block-button__link:focus-visible,
.is-style-bs26-icon-download-right .wp-block-button__link:hover,
.is-style-bs26-icon-download-right .wp-block-button__link:focus-visible,
.is-style-bs26-icon-document .wp-block-button__link:hover,
.is-style-bs26-icon-document .wp-block-button__link:focus-visible,
.is-style-bs26-icon-document-right .wp-block-button__link:hover,
.is-style-bs26-icon-document-right .wp-block-button__link:focus-visible {
	/* Override optional Gutenberg color-support classes, which use !important. */
	background-color: var(--bs26-color-green-active) !important;
	color: var(--bs26-color-white) !important;
}

.is-style-bs26-icon-arrow .wp-block-button__link::before,
.is-style-bs26-icon-download .wp-block-button__link::before,
.is-style-bs26-icon-document .wp-block-button__link::before,
.is-style-bs26-icon-arrow-right .wp-block-button__link::after,
.is-style-bs26-icon-download-right .wp-block-button__link::after,
.is-style-bs26-icon-document-right .wp-block-button__link::after {
	background-color: currentColor;
	content: "";
	display: block;
	flex: 0 0 24px;
	height: 24px;
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: 24px 24px;
	width: 24px;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: 24px 24px;
}

.is-style-bs26-icon-arrow .wp-block-button__link::before,
.is-style-bs26-icon-arrow-right .wp-block-button__link::after {
	mask-image: url("assets/icons/icon-pfeil-rechts-01.svg");
	-webkit-mask-image: url("assets/icons/icon-pfeil-rechts-01.svg");
}

.is-style-bs26-icon-download .wp-block-button__link::before,
.is-style-bs26-icon-download-right .wp-block-button__link::after {
	mask-image: url("assets/icons/icon-download.svg");
	-webkit-mask-image: url("assets/icons/icon-download.svg");
}

.is-style-bs26-icon-document .wp-block-button__link::before,
.is-style-bs26-icon-document-right .wp-block-button__link::after {
	mask-image: url("assets/icons/icon-document.svg");
	-webkit-mask-image: url("assets/icons/icon-document.svg");
}

.bs26-ba-contacts {
	gap: 40px;
	margin-top: 34px;
}

.bs26-contact-card {
	display: grid;
	gap: 15px;
	grid-template-columns: minmax(0, 1fr);
}

.bs26-contact-card > figure {
	margin-bottom: 0;
}

/* The card stays a native flow-layout group in the editor. Its automatic
 * blockGap adds 30px above the text group even when CSS switches the card to
 * grid, so neutralize it locally and let the card grid own the image/text gap. */
.bs26-ba-contacts .bs26-contact-card > .wp-block-group {
	margin-block-start: 0;
}

.bs26-ba-contacts .bs26-contact-card h3 {
	font-size: 23px !important;
	font-weight: 700 !important;
	margin-bottom: 8px;
}

.bs26-ba-contacts .bs26-contact-card p {
	font-size: 15px !important;
	font-weight: 500 !important;
	margin: 0;
}

.bs26-ba-contacts .bs26-contact-card p + p {
	font-size: 18px !important;
	font-weight: 500 !important;
	margin-top: 8px;
}

.bs26-contact-card a {
	text-decoration: underline;
}

.bs26-ba-contacts .bs26-contact-card > .bs26-contact-image {
	aspect-ratio: 197 / 246;
	background: var(--bs26-color-blue-5);
	height: 246px;
	width: 197px;
}

.bs26-ba-news {
	padding-top: 76px;
}

.bs26-ba-news .bs26-filter-row {
	margin-top: 30px;
}

.bs26-ba-news .bs26-news-grid {
	margin-top: 28px;
}

.bs26-ba-links {
	background: var(--bs26-color-white);
	padding: 62px 50px 80px;
}

.bs26-ba-links-grid {
	gap: 20px;
}

.bs26-ba-linkline {
	align-items: center;
	border-bottom: 1px solid var(--bs26-color-blue);
	display: flex;
	font-size: 21px;
	font-weight: 700;
	justify-content: space-between;
	line-height: 1.3;
	padding: 0 0 14px;
	position: relative;
	text-decoration: none;
}

.bs26-ba-linkline::before {
	background: var(--bs26-brand-gradient);
	bottom: -1px;
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	width: 100%;
}

.bs26-ba-linkline::after {
	background-color: var(--bs26-color-orange);
	content: "";
	flex: 0 0 24px;
	height: 24px;
	mask: url("assets/icons/icon-pfeil-rechts-02.svg") center / contain no-repeat;
	transform: translateX(-10px);
	-webkit-mask: url("assets/icons/icon-pfeil-rechts-02.svg") center / contain no-repeat;
	width: 24px;
}

.bs26-ba-linkline:hover,
.bs26-ba-linkline:focus-visible {
	color: var(--bs26-color-link-hover);
}

.bs26-ba-linkline:hover::after,
.bs26-ba-linkline:focus-visible::after {
	background-color: var(--bs26-color-link-hover);
}

/*
 * The footer template-part is a root-level sibling of <main> inside .wp-site-blocks —
 * one level above post-content, so the .bs26-front-page rule above does not reach it.
 * WordPress' flow layout emits `:where(.wp-site-blocks) > * { margin-block: 30px 0 }`
 * (driven by theme.json styles.spacing.blockGap: 30px). This margin lands on the
 * outer <footer class="wp-block-template-part"> wrapper, NOT on .bs26-site-footer
 * inside it — so targeting the wrapper directly is the correct level to zero it out.
 * Part of the same "sections stack flush" convention as the .bs26-front-page rule.
 * Scoped to footer elements only; does not affect <main> or <header> siblings.
 */
footer.wp-block-template-part {
	margin-block-start: 0;
}

.bs26-site-footer {
	background: var(--bs26-color-white);
	border-top: 0;
	color: var(--bs26-color-blue);
	padding: 60px 50px 25px;
	position: relative;
}

.bs26-site-footer::before {
	background: var(--bs26-brand-gradient);
	content: "";
	height: 4px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.bs26-site-footer__inner {
	margin: 0 auto;
	max-width: var(--bs26-content-wide);
	min-width: 0;
}

.bs26-site-footer__main {
	display: grid;
	grid-template-columns: 533px 399px minmax(0, 1fr);
	min-height: 312px;
}

.bs26-site-footer__logo {
	display: block;
}

.bs26-site-footer__logo img {
	display: block;
	height: auto;
	width: 254px;
}

.bs26-footer-nav {
	padding-top: 40px;
}

.bs26-footer-list {
	margin: 0;
	list-style: none;
	padding-left: 0;
}

.bs26-footer-list li {
	line-height: 23px;
	list-style: none;
	padding-left: 17px;
	position: relative;
}

.bs26-footer-list li::before {
	background: var(--bs26-color-green);
	border-radius: 999px;
	content: "";
	height: 7px;
	left: 0;
	position: absolute;
	top: 8px;
	width: 7px;
}

.bs26-footer-list a {
	font-size: 18px;
	font-weight: 500;
	text-decoration: underline;
}

.bs26-footer-list a:hover,
.bs26-footer-list a:focus-visible,
.bs26-site-footer__legal a:hover,
.bs26-site-footer__legal a:focus-visible {
	color: var(--bs26-color-link-hover);
}

.bs26-footer-list__primary {
	line-height: 25px !important;
}

.bs26-footer-list__primary > a {
	font-weight: 600;
}

.bs26-footer-list__primary::before {
	top: 9px !important;
}

.bs26-footer-sublist {
	margin: 18px 0 0;
	padding: 0 0 0 13px;
}

.bs26-footer-sublist li + li,
.bs26-footer-list > li + li {
	margin-top: 18px;
}

.bs26-site-footer__bottom {
	align-items: start;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	margin-top: 66px;
}

.bs26-site-footer__social {
	grid-column: 1;
	grid-row: 1;
}

.bs26-site-footer__social p {
	font-size: 18px;
	font-weight: 600;
	line-height: 25px;
	margin: 0;
}

.bs26-social-icons {
	display: flex;
	gap: 15px;
	margin-top: 9px;
}

.bs26-social-icons img {
	display: block;
	height: 35px;
	width: 35px;
}

.bs26-site-footer__certifications {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	grid-column: 2;
	grid-row: 1;
	justify-content: center;
	margin-top: 1px;
	max-width: 100%;
	width: max-content;
}

.bs26-site-footer__certifications img {
	display: block;
	height: 55px;
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.bs26-site-footer__legal {
	font-size: 15px;
	font-weight: 500;
	grid-column: 1 / -1;
	grid-row: 2;
	justify-self: start;
	line-height: 19px;
	margin: 24px 0 0;
}

.bs26-site-footer__legal a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/*
 * The Sketch desktop grid relies on 533px + 399px link columns. Below 1320px
 * that leaves too little room for the third column, so the footer switches to
 * an equal three-column compact desktop layout. Tablets keep both link groups
 * readable beside each other below the logo; mobile remains intentionally
 * stacked.
 */
@media (min-width: 1024px) and (max-width: 1319px) {
	.bs26-site-footer__main {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		min-height: 0;
	}

	.bs26-site-footer__bottom {
		column-gap: 30px;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.bs26-site-footer__certifications {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
		margin-top: 40px;
		width: 100%;
	}

	.bs26-site-footer__legal {
		grid-row: 3;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.bs26-site-footer__main {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-height: 0;
	}

	.bs26-site-footer__logo {
		grid-column: 1 / -1;
	}

	.bs26-footer-nav {
		padding-top: 40px;
	}

	.bs26-site-footer__bottom {
		column-gap: 30px;
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.bs26-site-footer__certifications {
		grid-column: 2;
	}
}

@media (min-width: 768px) {
	.bs26-site-footer__legal {
		justify-self: center;
	}
}

@media (max-width: 781px) {
	:root {
		--bs26-header-height: var(--bs26-header-height-mobile);
	}

	.bs26-site-header {
		padding-bottom: 14px !important;
		padding-top: 14px !important;
		min-height: var(--bs26-header-height-mobile);
	}

	.bs26-site-header__logo img {
		width: 80px;
	}

	.bs26-header-actions {
		gap: 15px;
	}

	.bs26-header-action {
		font-size: 14px;
		gap: 7px;
	}

	.bs26-header-action img {
		height: 22px;
		width: 22px;
	}

	.bs26-nav-panel {
		max-width: none;
		width: 100vw;
	}

	.bs26-section {
		padding: 50px 20px;
	}

	.bs26-home-hero {
		min-height: 390px;
	}

	.bs26-home-hero__inner {
		flex-wrap: wrap;
		gap: 24px;
	}

	.bs26-home-hero__logo {
		max-width: 310px;
	}

	.bs26-home-band {
		min-height: 85px;
	}

	/*
	 * Stacked on mobile (handled by the block's is-stacked-on-mobile). With
	 * imageFill the media cell has no intrinsic height once stacked, so give it
	 * a sensible aspect ratio instead of a fixed height.
	 */
	.bs26-teaser .wp-block-media-text__media {
		aspect-ratio: 390 / 260;
		min-height: 0;
	}

	.bs26-news-grid {
		display: grid !important;
		grid-auto-columns: minmax(300px, 330px);
		grid-auto-flow: column;
		overflow-x: auto;
		padding-bottom: 12px;
	}

	.bs26-news-grid > .wp-block-column {
		flex-basis: auto !important;
		min-width: 330px !important;
	}

	.wp-block-quote {
		min-height: 0;
		padding: 50px 20px 54px;
	}

	.wp-block-quote::before {
		font-size: 80px;
		right: 20px;
		top: 24px;
	}

	.wp-block-quote p {
		font-size: 25px;
		line-height: 1.28;
		max-width: 285px;
	}

	.wp-block-quote cite {
		bottom: auto;
		font-size: 17px;
		left: auto;
		line-height: 1.53;
		margin-top: 36px;
		max-width: 100%;
		position: relative;
		width: auto;
	}

	.bs26-filter-row {
		align-items: center;
		column-gap: 20px;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		row-gap: 10px;
		width: min(350px, 100%);
	}

	.bs26-ba-hero {
		margin-top: calc(-1 * var(--bs26-header-height-mobile)) !important;
		min-height: 390px;
		padding-top: var(--bs26-header-height-mobile) !important;
	}

	.bs26-ba-hero::before {
		height: 54px;
		inset: var(--bs26-header-height-mobile) 0 auto;
	}

	.bs26-ba-breadcrumbs,
	.wp-block-breadcrumbs {
		font-size: 14px;
		line-height: 1.5;
		margin-top: 24px;
		padding-left: 29px;
	}

	.bs26-ba-breadcrumbs::before,
	.wp-block-breadcrumbs::before {
		background-size: 18px 18px;
		height: 18px;
		top: 1px;
		width: 18px;
	}

	.bs26-ba-intro {
		padding: 56px 0 50px;
	}

	.bs26-ba-section,
	.wp-block-group.alignfull.has-background {
		padding: 50px 20px 60px;
	}

	.bs26-ba-links {
		padding: 50px 20px;
	}

	.bs26-ba-accordion .wp-block-accordion-heading__toggle,
	.wp-block-accordion .wp-block-accordion-heading__toggle,
	:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) > summary {
		font-size: 17px;
	}

	/* Core Accordion styles can be printed after the child stylesheet. */
	.wp-block-accordion .wp-block-accordion-heading__toggle,
	.wp-block-accordion .wp-block-accordion-heading__toggle-title {
		font-size: 17px !important;
		font-weight: 700 !important;
		line-height: 1.3 !important;
	}

	.wp-block-accordion .wp-block-accordion-item + .wp-block-accordion-item,
	.bs26-ba-accordion > .wp-block-details + .wp-block-details,
	.wp-block-details.is-style-bs26-accordion + .wp-block-details.is-style-bs26-accordion {
		margin-top: 28px;
	}

	.wp-block-accordion > .wp-block-accordion-item + .wp-block-accordion-item {
		margin-block-start: 28px !important;
	}

	/* Pages may use one Core Accordion parent for each individual entry. */
	.wp-block-accordion + .wp-block-accordion {
		margin-block-start: 28px !important;
	}

	:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open] {
		position: relative;
	}

	:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion)[open]::before {
		left: -18px;
	}

	.wp-block-accordion .wp-block-accordion-item.is-open::before {
		left: -18px;
	}

	.bs26-ba-accordion .wp-block-accordion-panel ul,
	.wp-block-accordion .wp-block-accordion-panel ul,
	:is(.bs26-ba-accordion > .wp-block-details, .wp-block-details.is-style-bs26-accordion) ul {
		columns: 1;
	}

	.bs26-ba-button-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.bs26-ba-button-row .wp-block-button {
		width: 100%;
	}

	.bs26-ba-button-row .wp-block-button__link {
		display: inline-flex;
		justify-content: center;
		width: 100%;
	}

	.bs26-contact-card {
		gap: 20px;
		grid-template-columns: 1fr;
	}

	.bs26-ba-contacts .bs26-contact-card h3 {
		font-size: 19px !important;
	}

	.bs26-ba-contacts .bs26-contact-card p + p {
		font-size: 17px !important;
		font-weight: 500 !important;
	}

	.bs26-ba-links-grid {
		gap: 24px;
	}

	.bs26-ba-linkline {
		font-size: 18px;
	}

	.bs26-site-header--hero .bs26-header-action {
		font-size: 14px;
	}

	.bs26-site-header--hero::before {
		height: 104px;
	}

}

@media (max-width: 767px) {
	.bs26-site-footer {
		min-height: 1102px;
		padding: 50px 30px 20px;
	}

	.bs26-site-footer__main {
		display: block;
		min-height: 0;
	}

	.bs26-site-footer__logo img {
		width: 228px;
	}

	.bs26-footer-nav {
		padding-top: 0;
	}

	.bs26-footer-nav:first-of-type {
		margin-top: 50px;
	}

	.bs26-footer-nav + .bs26-footer-nav {
		margin-top: 27px;
	}

	.bs26-footer-list > li + li {
		margin-top: 27px;
	}

	.bs26-site-footer__bottom {
		display: block;
		margin-top: 33px;
	}

	.bs26-site-footer__certifications {
		gap: 16px;
		justify-content: flex-start;
		margin-bottom: 30px;
		margin-top: 55px;
		max-width: 100%;
		width: 100%;
	}

	.bs26-site-footer__certifications img {
		height: 55px;
	}

	.bs26-site-footer__legal {
		margin-top: 2px;
	}
}

/* Cap teaser image ratio on wide screens only: a min-height FLOOR (never a fixed
   height/ratio) so it can't create gaps or push text. ~25vw on a ~50vw-wide media
   ≈ a 2:1 cap. Only applies ≥1280px; below that the default text-driven behaviour
   (verified clean) is untouched. Specificity must beat WP core's
   `.wp-block-media-text.is-image-fill-element .wp-block-media-text__media{min-height:250px}` (0,3,0). */
@media (min-width: 1280px) {
	.bs26-teaser.wp-block-media-text.is-image-fill-element .wp-block-media-text__media {
		min-height: 25vw;
	}
}
