/* =========================================================================
   Bauerschmidt Theme — Layout / Header / Footer / Templates
   ========================================================================= */

:root {
	/* ── Brand-Farben ── */
	--bs-color-primary:        #0077C8;
	--bs-color-primary-dark:   #00497C;
	--bs-color-primary-light:  #C8E0F1;
	--bs-color-primary-soft:   rgba(0,119,200,.08);
	--bs-color-accent:         #4DAD39;     /* grüner Border unter Mainbar */
	--bs-color-accent-dark:    #39812A;
	--bs-color-text:           #0D1B2E;
	--bs-color-text-soft:      #3A4A5E;
	--bs-color-muted:          #5A6A7E;
	--bs-color-bg:             #FFFFFF;
	--bs-color-bg-alt:         #F4F7FA;
	--bs-color-border:         #E4EAF1;
	--bs-color-border-soft:    #EEF2F7;
	--bs-color-topbar-bg:      #FFFFFF;
	--bs-color-topbar-text:    #0077C8;
	--bs-color-topbar-divider: #0077C8;
	--bs-color-nav-text:       rgba(0,119,200,.44);  /* #0077C870 = 44% alpha */
	--bs-color-nav-text-hover: #0077C8;
	--bs-color-nav-text-active:#00497C;
	--bs-color-footer-bg:      #0077C8;
	--bs-color-footer-text:    #FFFFFF;
	--bs-color-footer-text-soft: rgba(255,255,255,.85);

	/* ── Form-Tokens ── */
	--bs-radius:               6px;
	--bs-radius-card:          10px;
	--bs-radius-pill:          999px;
	--bs-container-max:        1440px;
	--bs-container-pad:        32px;
	--bs-font-stack:           "Funnel Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* ── Vertikale Rhythmus ── (fluid mobile→desktop) */
	--bs-section-py:           clamp(48px, 7vw, 112px);
	--bs-block-gap:            clamp(28px, 4vw, 48px);
	--bs-stack-gap:            clamp(16px, 2.5vw, 24px);

	/* ── Schatten / Hover ── */
	--bs-shadow-sm:            0 1px 2px rgba(13,27,46,.04), 0 4px 12px rgba(13,27,46,.04);
	--bs-shadow-md:            0 8px 24px rgba(13,27,46,.08);
	--bs-shadow-lg:            0 12px 32px rgba(13,27,46,.10);

	/* ── Animationen ── */
	--bs-trans-fast:           150ms ease;
	--bs-trans-base:           220ms cubic-bezier(0.4, 0, 0.2, 1);
	--bs-trans-slow:           350ms cubic-bezier(0.4, 0, 0.2, 1);

	/* ── Eyebrow / Badge / Nummer (roter Faden) ── */
	--bs-eyebrow-size:         13px;
	--bs-eyebrow-tracking:     0.08em;
	--bs-num-color:            var(--bs-color-primary);

	/* ── Touch Target ── */
	--bs-touch-min:            44px;
}

* { box-sizing: border-box; }

/* Scroll-Offset für Anchor-Links — entspricht der tatsächlichen Header-
   Höhe pro Breakpoint, sodass das Sprungziel exakt unter dem Sticky-Header
   landet, nicht darunter geschoben wird.
     Desktop: Topbar (46) + Divider (1) + Mainbar (88+3 Akzent) ≈ 138px
     Mobile (≤980): nur Mainbar (72+3 Akzent) ≈ 75px (Topbar+Divider sind hidden) */
html {
	scroll-behavior: smooth;
	scroll-padding-top: 138px;
	overflow-x: clip;
}

@media (max-width: 980px) {
	html { scroll-padding-top: 75px; }
}

/* Verhindert horizontalen Overflow OHNE den position:sticky-Kontext der Mainbar
   zu zerstören. Wichtig: clip statt hidden, damit body kein Scroll-Container wird. */
body {
	overflow-x: clip;
}

/* Sticky-Mainbar robust gegen iOS Safari (Webkit-Prefix) */
.bs-mainbar {
	position: -webkit-sticky;
}

body.bs-site {
	margin: 0;
	font-family: var(--bs-font-stack);
	font-size: 16px;
	line-height: 1.6;
	color: var(--bs-color-text);
	background: var(--bs-color-bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--bs-color-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--bs-color-primary-dark); }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--bs-color-text);
	line-height: 1.2;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
}

/* Fluide Schriftgrößen: skalieren von Mobile bis Desktop */
h1 { font-size: clamp(28px, 4.5vw, 44px); }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: clamp(18px, 2.5vw, 22px); }
h5 { font-size: clamp(16px, 2vw, 18px); }
h6 { font-size: clamp(14px, 1.6vw, 16px); }

p, li, dd, dt, blockquote {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

img, video, iframe, svg {
	max-width: 100%;
	height: auto;
}

p { margin: 0 0 1em; }

.bs-container {
	max-width: var(--bs-container-max);
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

@media (max-width: 1180px) {
	.bs-container {
		padding-left: 40px;
		padding-right: 40px;
	}
}

@media (max-width: 980px) {
	.bs-container {
		padding-left: 56px;
		padding-right: 56px;
	}
}

@media (max-width: 480px) {
	.bs-container {
		padding-left: 32px;
		padding-right: 32px;
	}
}

/* Header- und Footer-Inhalte: gleiche Inhaltsbreite + Padding wie die
   Widget-Wrapper. 1140px max + 24px Padding = 1092px Content-Area,
   identisch zu allen `.bs-*`-Widgets über widget-content-width.css. */
.bs-topbar__inner,
.bs-mainbar__inner,
.bs-footer__contact-inner,
.bs-footer__columns-inner {
	max-width: 1140px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 12px;
	background: #fff;
	color: var(--bs-color-primary);
	padding: 8px 14px;
	z-index: 100;
	border-radius: var(--bs-radius);
}
.skip-link:focus { left: 12px; }

/* =========================================================================
   HEADER — 1:1 nach Elementor-Design
   ========================================================================= */

/* — Top-Bar (Desktop: E-Mail + Tel links, Sprach-Toggle rechts) — */

.bs-topbar {
	background: var(--bs-color-topbar-bg);
	color: var(--bs-color-topbar-text);
	font-family: var(--bs-font-stack);
	font-weight: 400;
	font-size: 14px;
}

.bs-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.bs-topbar__left,
.bs-topbar__right {
	display: flex;
	align-items: center;
	gap: 24px;
}

/* Vertikale Trennlinie zwischen den Topbar-Items */
.bs-topbar__left .bs-topbar__item + .bs-topbar__item {
	position: relative;
	padding-left: 24px;
}
.bs-topbar__left .bs-topbar__item + .bs-topbar__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 70%;
	background: var(--bs-color-topbar-divider);
}

.bs-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bs-color-topbar-text);
	font-weight: 400;
	text-decoration: none;
	transition: color .15s ease;
}
.bs-topbar__item:hover { color: var(--bs-color-primary-dark); }

.bs-topbar__icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* — Sprach-Toggle (segmentierter Bootstrap-Style-Switch) — */

.bs-langtoggle {
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	padding: 3px;
	background: var(--bs-color-bg-alt);
	border: 1px solid var(--bs-color-border);
	border-radius: 999px;
	font-family: var(--bs-font-stack);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1;
}

.bs-langtoggle__option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	padding: 6px 12px;
	color: var(--bs-color-muted);
	text-decoration: none;
	border-radius: 999px;
	transition: background .18s ease, color .18s ease;
	cursor: pointer;
	user-select: none;
}
.bs-langtoggle__option:hover {
	color: var(--bs-color-primary-dark);
	background: rgba(0, 119, 200, .06);
}
.bs-langtoggle__option.is-active {
	background: var(--bs-color-primary);
	color: #fff;
	cursor: default;
	box-shadow: 0 1px 2px rgba(0, 73, 124, .18);
}
.bs-langtoggle__option.is-active:hover {
	background: var(--bs-color-primary);
	color: #fff;
}

/* — Blauer Trenner (horizontal, voller Breite, primary Farbe) — */

.bs-header__divider {
	height: 1px;
	background: var(--bs-color-primary);
}

/* — Main Bar — sticky, Logo / Nav / CTA, grüner Border unten — */

.bs-mainbar {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 3px solid var(--bs-color-accent);
}

.bs-mainbar__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
	min-height: 88px;
}

/* Brand / Logo — linke Spalte 25%, Logo 78% davon, linksbündig */

.bs-mainbar__brand {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.bs-mainbar__brand .bs-brand--logo img,
.bs-mainbar__brand .custom-logo,
.bs-mainbar__brand .custom-logo-link img {
	width: auto;
	max-width: 260px;
	max-height: 56px;
	height: auto;
	display: block;
}

.bs-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--bs-color-primary);
	text-decoration: none;
	line-height: 1;
}

.bs-brand--logo {
	width: 100%;
	display: block;
}

.bs-brand__icon {
	display: inline-flex;
	width: 40px;
	height: 50px;
}
.bs-brand__icon svg { width: 100%; height: 100%; }

.bs-brand__text {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
}
.bs-brand__line {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--bs-color-primary);
}

/* Hauptnavigation — mittlere Spalte (55% Breite), zentriert */

.bs-nav {
	display: flex;
	justify-content: flex-end;
}

.bs-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 4px;
	align-items: center;
}

.bs-nav__list li { position: relative; }

.bs-mainbar .bs-nav__list a {
	display: inline-block;
	padding: 14px 18px;
	color: rgba(0, 119, 200, 0.44) !important;
	font-family: var(--bs-font-stack);
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0;
	text-decoration: none;
	transition: color .15s ease;
}
.bs-mainbar .bs-nav__list a:hover,
.bs-mainbar .bs-nav__list a:focus {
	color: #00497C !important;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.bs-mainbar .bs-nav__list .current-menu-item > a,
.bs-mainbar .bs-nav__list .current_page_item > a,
.bs-mainbar .bs-nav__list .current-menu-ancestor > a,
.bs-mainbar .bs-nav__list .current-menu-parent > a {
	color: #00497C !important;
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* Submenüs */
.bs-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(0,0,0,.10);
	border-radius: var(--bs-radius);
	padding: 8px;
	margin: 0;
	list-style: none;
	display: none;
	z-index: 110;
}
.bs-nav__list li:hover > .sub-menu,
.bs-nav__list li:focus-within > .sub-menu { display: block; }
.bs-nav__list .sub-menu a { display: block; padding: 10px 14px; }

.bs-nav__hint { font-size: 13px; color: var(--bs-color-muted); margin: 0; }

/* CTA-Button rechts in der Mainbar */

.bs-mainbar__cta {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.bs-mainbar__cta .bs-cta,
.bs-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	background: var(--bs-color-primary) !important;
	color: #fff !important;
	border: 2px solid var(--bs-color-primary);
	border-radius: 30px;
	font-family: var(--bs-font-stack);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: .02em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
	flex-shrink: 0;
	white-space: nowrap;
}
.bs-mainbar__cta .bs-cta:hover,
.bs-cta:hover {
	background: var(--bs-color-primary-dark) !important;
	border-color: var(--bs-color-primary-dark);
	color: #fff !important;
	transform: translateY(-1px);
	text-decoration: underline !important;
	text-underline-offset: 4px;
}
.bs-cta__label {
	display: inline-block;
}
.bs-cta__arrow {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bs-cta__arrow svg {
	width: 100%;
	height: 100%;
}

/* Mobile-Toggle */

.bs-nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
	flex-direction: column;
	gap: 5px;
	width: 44px;
	height: 44px;
	justify-content: center;
	align-items: center;
}
.bs-nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--bs-color-primary);
	transition: transform .25s ease, opacity .25s ease;
}
.bs-nav-toggle[aria-expanded="true"] .bs-nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bs-nav-toggle[aria-expanded="true"] .bs-nav-toggle__bar:nth-child(2) { opacity: 0; }
.bs-nav-toggle[aria-expanded="true"] .bs-nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Header — Responsive
   ========================================================================= */

@media (max-width: 1180px) {
	.bs-nav__list a { padding: 12px 12px; font-size: 14px; }
	.bs-cta { padding: 11px 20px; font-size: 14px; }
	.bs-mainbar__brand .bs-brand--logo img,
	.bs-mainbar__brand .custom-logo,
	.bs-mainbar__brand .custom-logo-link img { max-width: 220px; max-height: 50px; }
}

/* Mobile-Menu-Panel-Bereiche: nur sichtbar im aufgeklappten Menü auf Mobile */
.bs-nav__panel-header,
.bs-nav__panel-footer { display: none; }

/* Mainbar-Sprachtoggle: nur auf Mobile sichtbar */
.bs-mainbar__lang { display: none; }

/* === MOBILE: Header Padding & Layout === */
@media (max-width: 980px) {
	/* Padding kommt vom .bs-container — keine Overrides mehr hier. */

	/* Top-Bar + Divider auf Mobile komplett verstecken — alle relevanten
	   Elemente (Sprach-Toggle, Hamburger) ziehen in die Mainbar. */
	.bs-topbar { display: none; }
	.bs-header__divider { display: none; }

	/* Mainbar mobile: Logo links | Sprach-Toggle | Hamburger rechts.
	   `1fr auto auto` → Logo expandiert, Switcher + Hamburger sitzen beide
	   rechts. Source-Order in header.php = HTML: Logo → Switcher → Hamburger. */
	.bs-mainbar__inner {
		grid-template-columns: 1fr auto auto;
		gap: 12px;
		min-height: 72px;
	}
	.bs-mainbar__brand {
		min-width: 0;
	}
	.bs-mainbar__brand .bs-brand--logo img,
	.bs-mainbar__brand .custom-logo,
	.bs-mainbar__brand .custom-logo-link img {
		max-width: 180px;
		max-height: 44px;
	}

	.bs-mainbar__cta { display: none; }
	.bs-nav-toggle { display: inline-flex; }
	.bs-mainbar__lang {
		display: flex;
		align-items: center;
	}

	/* Toggle-Pille im Mainbar-Kontext etwas größer für besseres Touch-Target */
	.bs-mainbar__lang .bs-langtoggle {
		font-size: 13px;
	}
	.bs-mainbar__lang .bs-langtoggle__option {
		min-width: 44px;
		padding: 7px 14px;
	}
}

@media (max-width: 640px) {
	.bs-mainbar__brand .bs-brand--logo img,
	.bs-mainbar__brand .custom-logo,
	.bs-mainbar__brand .custom-logo-link img {
		max-width: 150px;
		max-height: 38px;
	}
	/* Overlay-Logo synchron mit Mainbar-Logo-Größe */
	.bs-nav__panel-logo {
		max-width: 150px;
		max-height: 38px;
	}
	.bs-nav__panel-logo img {
		max-height: 38px;
	}
}

/* =========================================================================
   Mobile Menü — Vollbild-Overlay
   ========================================================================= */

@media (max-width: 980px) {
	/* Body-Lock wenn Menü offen */
	body.bs-nav-open { overflow: hidden; }

	/* Vollbild-Overlay, Solid Primary-Blau */
	.bs-nav {
		position: fixed;
		inset: 0;
		width: 100vw;
		max-width: 100vw;
		background: var(--bs-color-primary);
		color: #fff;
		padding: 0;
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateY(-100%);
		opacity: 0;
		transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), opacity .25s ease;
		z-index: 1000;
		pointer-events: none;
	}
	.bs-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	/* Hamburger versteckt sich wenn Menü offen — der eigene Close-Button im Panel übernimmt */
	.bs-nav-toggle[aria-expanded="true"] { display: none; }

	/* Panel-Header: Logo links, X-Button rechts.
	   Top-Padding mit env(safe-area-inset-top) — sonst rutscht der Close-Button
	   auf iOS unter die Notch / Statusbar und ist nicht klickbar. */
	.bs-nav__panel-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: max(18px, env(safe-area-inset-top)) 24px 18px 24px;
		border-bottom: 1px solid rgba(255, 255, 255, .12);
		flex-shrink: 0;
	}
	/* Identische Logo-Größe wie im Mainbar-Header (Mobile): 180×44 ≤980px,
	   bei ≤640px kleiner — siehe Override unten in der 640px-Sektion. */
	.bs-nav__panel-logo {
		display: inline-flex;
		align-items: center;
		max-width: 180px;
		max-height: 44px;
	}
	.bs-nav__panel-logo img {
		max-width: 100%;
		max-height: 44px;
		height: auto;
		width: auto;
		filter: brightness(0) invert(1);
	}
	.bs-nav__panel-logo--text {
		color: #fff;
		font-weight: 700;
		font-size: 18px;
		letter-spacing: .02em;
		text-decoration: none;
	}
	.bs-nav-close {
		width: 48px;
		height: 48px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 1px solid rgba(255, 255, 255, .25);
		border-radius: 50%;
		background: rgba(255, 255, 255, .08);
		color: #fff;
		cursor: pointer;
		padding: 0;
		flex-shrink: 0;
		position: relative;
		z-index: 2;
		touch-action: manipulation;
		-webkit-tap-highlight-color: rgba(255, 255, 255, .2);
		transition: background .2s ease, border-color .2s ease, transform .2s ease;
	}
	.bs-nav-close:focus {
		background: rgba(255, 255, 255, .18);
		border-color: rgba(255, 255, 255, .45);
		outline: none;
	}
	/* Hover-Rotation auf Hover-fähigen Geräten (Maus). */
	@media (hover: hover) {
		.bs-nav-close:hover {
			background: rgba(255, 255, 255, .18);
			border-color: rgba(255, 255, 255, .45);
			transform: rotate(90deg);
		}
	}
	/* Tap-Animation auf Touch-Geräten: rotiert + skaliert während des Tippens.
	   Wird per JS zusätzlich kurz nach dem Click-Event gehalten, damit die
	   Animation auch bei sehr kurzen Taps sichtbar ist. */
	.bs-nav-close:active,
	.bs-nav-close.is-tapped {
		background: rgba(255, 255, 255, .25);
		border-color: rgba(255, 255, 255, .45);
		transform: rotate(90deg) scale(.92);
	}
	.bs-nav-close svg {
		width: 22px;
		height: 22px;
		/* SVG darf den Touch-Event nicht „abfangen" — sonst kann es passieren,
		   dass der Tap nicht zum Button durchkommt. */
		pointer-events: none;
	}

	/* Menü-Liste: große weiße Items, leichter Stagger */
	.bs-nav__list {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
		padding: 24px 28px 16px;
		margin: 0;
		list-style: none;
		flex: 1 0 auto;
	}
	.bs-nav__list > li {
		border-bottom: 1px solid rgba(255, 255, 255, .12);
		position: relative;
	}
	.bs-nav__list > li:last-child { border-bottom: 0; }

	/* Stagger-Animation der Top-Level-Items */
	.bs-nav.is-open .bs-nav__list > li {
		opacity: 0;
		transform: translateX(-12px);
		animation: bs-nav-item-in .45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}
	.bs-nav.is-open .bs-nav__list > li:nth-child(1) { animation-delay: .12s; }
	.bs-nav.is-open .bs-nav__list > li:nth-child(2) { animation-delay: .18s; }
	.bs-nav.is-open .bs-nav__list > li:nth-child(3) { animation-delay: .24s; }
	.bs-nav.is-open .bs-nav__list > li:nth-child(4) { animation-delay: .30s; }
	.bs-nav.is-open .bs-nav__list > li:nth-child(5) { animation-delay: .36s; }
	.bs-nav.is-open .bs-nav__list > li:nth-child(6) { animation-delay: .42s; }
	.bs-nav.is-open .bs-nav__list > li:nth-child(7) { animation-delay: .48s; }
	.bs-nav.is-open .bs-nav__list > li:nth-child(n+8) { animation-delay: .54s; }
	@keyframes bs-nav-item-in {
		to { opacity: 1; transform: translateX(0); }
	}

	/* Mobile Menü-Links: weiß, fett, große Klickfläche */
	.bs-mainbar .bs-nav__list a {
		color: #fff !important;
		padding: 20px 0 !important;
		min-height: 60px;
		font-size: 22px !important;
		font-weight: 600 !important;
		display: flex;
		align-items: center;
		text-decoration: none !important;
		border-bottom: 0;
		line-height: 1.25;
		letter-spacing: -.01em;
	}
	.bs-mainbar .bs-nav__list a:hover,
	.bs-mainbar .bs-nav__list a:focus {
		color: #fff !important;
		opacity: .75;
		text-decoration: none !important;
	}
	/* Aktive Seite: kräftiger + Unterstrich (kein Punkt) */
	.bs-mainbar .bs-nav__list .current-menu-item > a,
	.bs-mainbar .bs-nav__list .current_page_item > a,
	.bs-mainbar .bs-nav__list .current-menu-ancestor > a,
	.bs-mainbar .bs-nav__list .current-menu-parent > a {
		color: #fff !important;
		font-weight: 800 !important;
		text-decoration: underline !important;
		text-decoration-thickness: 3px !important;
		text-underline-offset: 6px !important;
	}

	/* Submenü inline, eingerückt, dezenter */
	.bs-nav__list .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
		padding: 0 0 14px 0;
		margin: 0;
		background: transparent;
		border-radius: 0;
		list-style: none;
	}
	.bs-nav__list .sub-menu li { border-bottom: 0; }
	.bs-mainbar .bs-nav__list .sub-menu a {
		font-size: 15px !important;
		font-weight: 400 !important;
		padding: 10px 0 10px 16px !important;
		min-height: 40px;
		color: rgba(255, 255, 255, .72) !important;
	}
	.bs-mainbar .bs-nav__list .sub-menu a:hover {
		color: #fff !important;
		opacity: 1;
	}

	.bs-nav__hint { color: rgba(255, 255, 255, .8); padding: 16px 28px; }

	/* Panel-Footer: CTA + Kontakt-Infos */
	.bs-nav__panel-footer {
		display: flex;
		flex-direction: column;
		gap: 14px;
		padding: 20px 28px max(28px, env(safe-area-inset-bottom));
		border-top: 1px solid rgba(255, 255, 255, .12);
		flex-shrink: 0;
	}
	.bs-nav__panel-cta {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		padding: 16px 20px;
		background: #fff;
		color: var(--bs-color-primary-dark);
		border-radius: 30px;
		font-weight: 700;
		font-size: 16px;
		letter-spacing: .02em;
		text-transform: uppercase;
		text-decoration: none;
		transition: transform .2s ease;
	}
	/* Button bleibt weiß, beim Hover/Focus kommt der Underline (gleiches
	   Verhalten wie der Mainbar-Primary-CTA, nur mit weißem Background). */
	.bs-nav__panel-cta:hover,
	.bs-nav__panel-cta:focus {
		background: #fff;
		color: var(--bs-color-primary-dark);
		text-decoration: underline;
		text-underline-offset: 4px;
		transform: translateY(-1px);
		outline: none;
	}
	.bs-nav__panel-cta svg {
		width: 14px;
		height: 14px;
		flex-shrink: 0;
	}

	.bs-nav__panel-contacts {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}
	.bs-nav__panel-contact {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		color: #fff;
		font-size: 14px;
		text-decoration: none;
		padding: 4px 0;
		transition: color .2s ease;
	}
	.bs-nav__panel-contact:hover,
	.bs-nav__panel-contact:focus {
		color: #fff;
		text-decoration: underline;
		text-underline-offset: 4px;
	}
	.bs-nav__panel-contact:hover span,
	.bs-nav__panel-contact:focus span {
		text-decoration: underline;
		text-underline-offset: 4px;
	}
	.bs-nav__panel-contact svg {
		width: 16px;
		height: 16px;
		flex-shrink: 0;
	}
}

/* =========================================================================
   MAIN / Templates
   ========================================================================= */

.bs-main { min-height: 60vh; }

.bs-content,
.bs-archive,
.bs-search,
.bs-single,
.bs-404 {
	/* Nur vertikales Padding hier — horizontales kommt von .bs-container
	   (responsive 24/40/56/32 px je Breakpoint). Diese Templates haben
	   immer auch die Klasse .bs-container am Wrapper. */
	padding-top: 60px;
	padding-bottom: 60px;
	max-width: 1100px;
	margin: 0 auto;
}

/* News-Kategorie-Badges (oberhalb des Single-Title) */
.bs-cat-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}
.bs-cat-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 14px;
	border: 1px solid var(--bs-color-primary);
	background: var(--bs-color-primary-soft);
	color: var(--bs-color-primary);
	border-radius: var(--bs-radius-pill);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

/* Skills (Stellenangebote) */
.bs-skills {
	display: flex;
	flex-wrap: wrap;
	margin: 16px 0;
}
.bs-skill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 1px solid var(--bs-color-border);
	background: var(--bs-color-bg-alt);
	color: var(--bs-color-text);
	border-radius: var(--bs-radius);
	font-size: 14px;
	line-height: 1.4;
}

/* Single, Archive, Cards: identisch zu vorher */
.bs-single__header { margin-bottom: 28px; }
.bs-single__title {
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 700;
	margin: .2em 0 .3em;
	line-height: 1.15;
}
.bs-single__meta {
	color: var(--bs-color-muted);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
}
.bs-single__thumb { margin: 0 0 32px; overflow: hidden; }
.bs-single__thumb img { display: block; width: 100%; height: auto; }
.bs-single__excerpt {
	font-size: clamp(16px, 2.2vw, 18px);
	color: var(--bs-color-muted);
	margin: 0 0 24px;
	line-height: 1.6;
}
.bs-single__content { font-size: clamp(16px, 2vw, 17px); line-height: 1.75; }
.bs-single__content h2,
.bs-single__content h3 { margin-top: 1.6em; }
.bs-single__content img { margin: 1em 0; }
.bs-single__content blockquote {
	border-left: 4px solid var(--bs-color-primary);
	margin: 1.4em 0;
	padding: .25em 0 .25em 1.2em;
	color: var(--bs-color-text-soft);
	font-style: italic;
}

@media (max-width: 767px) {
	/* Vertikales Padding mobil etwas enger — horizontales kommt
	   weiterhin aus .bs-container (responsive 24/40/56/32). */
	.bs-single {
		padding-top: 32px;
		padding-bottom: 32px;
		max-width: 100%;
	}

	.bs-single__header { margin-bottom: 18px; }
	.bs-single__title {
		font-size: clamp(22px, 5vw, 26px) !important;
		line-height: 1.2;
		margin: .3em 0 .35em;
		letter-spacing: -0.01em;
		hyphens: auto;
		-webkit-hyphens: auto;
		overflow-wrap: break-word;
		word-break: normal;
	}
	.bs-single__meta { font-size: 13px; }
	.bs-single__excerpt { font-size: 16px; line-height: 1.55; margin-bottom: 20px; }
	.bs-single__thumb { margin-bottom: 20px; }
	.bs-single__content { line-height: 1.7; font-size: 16px; }
	.bs-single__content h2 { font-size: 20px; margin-top: 1.5em; }
	.bs-single__content h3 { font-size: 18px; margin-top: 1.4em; }
	.bs-single__content blockquote { padding-left: 1em; margin: 1.2em 0; font-size: 16px; }

	.bs-cat-badges { margin-bottom: 10px; }
	.bs-cat-badge { font-size: 12px; padding: 3px 12px; }

	.bs-skills { margin: 12px 0; }
	.bs-skill { font-size: 13px; padding: 5px 12px; }
}

@media (max-width: 480px) {
	.bs-single {
		padding-top: 28px;
		padding-bottom: 28px;
	}
	.bs-single__title {
		font-size: clamp(20px, 5.5vw, 24px) !important;
	}
	.bs-single__content { font-size: 15px; }
	.bs-single__content h2 { font-size: 19px; }
	.bs-single__content h3 { font-size: 17px; }
}

.bs-job__facts {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
	gap: 18px 24px;
	margin: 28px 0 36px;
	padding: 24px;
	background: var(--bs-color-bg-alt);
	border-left: 3px solid var(--bs-color-primary);
}
.bs-job__fact { margin: 0; }
.bs-job__fact-label {
	display: block; font-size: 12px; font-weight: 600;
	letter-spacing: .08em; text-transform: uppercase;
	color: var(--bs-color-primary); margin-bottom: 4px;
}
.bs-job__fact-value { display: block; margin: 0; font-size: 16px; font-weight: 600; }
.bs-job__block { margin-top: 36px; }
.bs-job__block-title {
	font-size: 22px; margin-bottom: 14px;
	border-left: 4px solid var(--bs-color-primary); padding-left: 12px;
}

.bs-archive-header { margin-bottom: 36px; }
.bs-archive-title { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.bs-archive-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) );
	gap: 24px;
}
.bs-card {
	background: #fff; border: 1px solid var(--bs-color-border);
	overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
	display: flex;
	flex-direction: column;
}
.bs-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); transform: translateY(-2px); }
.bs-card__thumb { overflow: hidden; aspect-ratio: 16 / 10; background: var(--bs-color-bg-alt); }
.bs-card__thumb img {
	width: 100%; height: 100%; display: block;
	object-fit: cover;
	transition: transform .35s ease;
}
.bs-card:hover .bs-card__thumb img { transform: scale(1.04); }
.bs-card__body { padding: 18px 20px 22px; }
.bs-card__title { font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.bs-card__title a { color: inherit; }
.bs-card__excerpt { font-size: 14px; color: var(--bs-color-muted); line-height: 1.55; }
.bs-card__more {
	display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px;
	color: var(--bs-color-primary);
}
.bs-card__more::after {
	content: " →";
	transition: transform .15s ease;
	display: inline-block;
}
.bs-card:hover .bs-card__more::after { transform: translateX(4px); }

.bs-404 { text-align: center; }
.bs-404__title {
	font-size: clamp(72px, 18vw, 120px);
	font-weight: 800;
	margin: 0;
	color: var(--bs-color-primary);
	letter-spacing: -.05em;
	line-height: 1;
}
.bs-404__lead {
	font-size: clamp(16px, 2.5vw, 18px);
	color: var(--bs-color-muted);
	margin-bottom: 32px;
}

.bs-button {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 28px;
	background: var(--bs-color-primary); color: #fff;
	border-radius: var(--bs-radius-pill);
	font-weight: 600; text-decoration: none;
	min-height: 48px;
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bs-button:hover {
	background: var(--bs-color-primary-dark); color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0,119,200,.18);
}

.pagination, .nav-links {
	display: flex; gap: 8px; flex-wrap: wrap;
	margin-top: 32px; justify-content: center;
}
.page-numbers {
	display: inline-block; min-width: 40px; padding: 8px 14px;
	text-align: center; border: 1px solid var(--bs-color-border);
	border-radius: var(--bs-radius); color: var(--bs-color-text);
	text-decoration: none; transition: all .15s ease;
}
.page-numbers:hover, .page-numbers.current {
	background: var(--bs-color-primary); color: #fff; border-color: var(--bs-color-primary);
}

.bs-searchform {
	display: flex; gap: 8px; max-width: 560px; margin: 32px auto 0;
}
.bs-searchform__input {
	flex: 1; padding: 14px 18px; border: 1px solid var(--bs-color-border);
	border-radius: var(--bs-radius);
	font-size: 16px;
	font-family: inherit;
	color: var(--bs-color-text);
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.bs-searchform__input:focus {
	outline: none;
	border-color: var(--bs-color-primary);
	box-shadow: 0 0 0 3px rgba(0,119,200,.15);
}
.bs-searchform__submit {
	padding: 12px 24px; background: var(--bs-color-primary); color: #fff;
	border: 0; border-radius: var(--bs-radius);
	font-weight: 600; cursor: pointer;
	font-family: inherit;
	min-height: 48px;
	transition: background .15s ease;
}
.bs-searchform__submit:hover { background: var(--bs-color-primary-dark); }

/* =========================================================================
   FOOTER — 1:1 nach Elementor-Design „Bauerschmidt Footer"
   ========================================================================= */

.bs-footer {
	background: var(--bs-color-footer-bg);
	color: var(--bs-color-footer-text);
	position: relative;
	font-family: var(--bs-font-stack);
}
.bs-footer a { color: #fff; text-decoration: none; transition: text-decoration-color .15s ease; }
.bs-footer a:hover { color: #fff; text-decoration: underline; }

/* — Kontakt-Sektion — Hintergrundbild + blauer Gradient-Overlay — */

.bs-footer__contact {
	padding: 5em 0;
	background-color: var(--bs-color-primary);
	background-image: linear-gradient(rgba(0,119,200,0.97), rgba(0,119,200,1));
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

.bs-footer__contact-inner {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 64px;
	align-items: start;
}

.bs-footer__contact-title {
	color: #fff;
	font-family: var(--bs-font-stack);
	font-size: 32px;
	font-weight: 600;
	line-height: 42px;
	letter-spacing: 0;
	margin: 0;
	max-width: 600px;
}

/* Form — Underline-Style, transparent, weiße Schrift */

.bs-form {
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.bs-form__field input,
.bs-form__field textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(255,255,255,0.52);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	padding: 12px 0 14px;
	min-height: 48px;
	transition: border-color .15s ease;
	outline: none;
	box-shadow: none;
	border-radius: 0;
}
.bs-form__field input::placeholder,
.bs-form__field textarea::placeholder {
	color: rgba(255,255,255,.70);
	opacity: 1;
}
.bs-form__field input:focus,
.bs-form__field textarea:focus {
	outline: none;
	border-bottom-color: #fff;
	box-shadow: none;
}
.bs-form__field--textarea textarea {
	resize: vertical;
	min-height: 60px;
}

.bs-form__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* Acceptance-Checkbox — custom style, identisch Elementor */

.bs-form__privacy {
	margin-top: 20px;
	font-size: 14px;
	line-height: 1.6;
}
.bs-form__privacy-label {
	display: flex;
	gap: 12px;
	align-items: center;
	cursor: pointer;
}
.bs-form__privacy input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 22px;
	height: 22px;
	min-width: 22px;
	margin: 0;
	border: 2px solid rgba(255,255,255,0.5);
	border-radius: 4px;
	background: transparent;
	cursor: pointer;
	position: relative;
	transition: all .2s ease;
	flex-shrink: 0;
	outline: none;
	box-shadow: none;
}
.bs-form__privacy input[type="checkbox"]:hover {
	border-color: rgba(255,255,255,0.8);
	background: rgba(255,255,255,0.05);
}
.bs-form__privacy input[type="checkbox"]:focus {
	outline: none;
	box-shadow: none;
	border-color: rgba(255,255,255,0.8);
}
.bs-form__privacy input[type="checkbox"]:checked {
	background: #fff;
	border-color: #fff;
}
.bs-form__privacy input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid var(--bs-color-primary);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.bs-form__privacy span {
	color: rgba(255,255,255,.90);
	flex: 1;
}
.bs-form__privacy a,
.bs-form__privacy a:link,
.bs-form__privacy a:visited {
	color: #fff !important;
	text-decoration: underline;
	text-decoration-color: rgba(255,255,255,.5);
	transition: text-decoration-color .2s ease;
}
.bs-form__privacy a:hover,
.bs-form__privacy a:focus,
.bs-form__privacy a:active {
	color: #fff !important;
	text-decoration-color: rgba(255,255,255,1);
}

.bs-form__actions { margin-top: 0; }

.bs-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	min-height: 48px;
	background: #fff;
	color: var(--bs-color-primary);
	border: 0;
	border-radius: 100px;
	font-family: var(--bs-font-stack);
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.bs-form__submit:hover {
	background: #F2F6FA;
	color: var(--bs-color-primary);
	transform: translateY(-1px);
	text-decoration: underline;
	text-underline-offset: 4px;
}
.bs-form__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.bs-form__feedback {
	font-size: 14px;
	min-height: 0;
}
.bs-form__feedback.is-success { color: #fff; font-weight: 600; }
.bs-form__feedback.is-error { color: #ffe3e3; font-weight: 600; }

/* — Footer-Spalten: Brand/Social links (33%), 3 Menü-Spalten rechts — */

.bs-footer__columns {
	padding: 5em 0;
	background: var(--bs-color-primary);
}

.bs-footer__columns-inner {
	display: grid;
	grid-template-columns: minmax(280px, 1fr) 2fr;
	gap: 5em;
	align-items: stretch;
}

.bs-footer__col--brand {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
}

.bs-footer__brand-top .bs-brand--footer-logo {
	display: block;
	width: 86%;
	max-width: 320px;
}
.bs-footer__brand-top .bs-brand--footer-logo img {
	width: 100%;
	height: auto;
	display: block;
}

.bs-footer__col-group {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 2em;
	row-gap: 8em;
}

.bs-footer__col-title {
	color: #fff;
	font-family: var(--bs-font-stack);
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	margin: 0 0 10px;
	letter-spacing: 0;
}

.bs-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}
.bs-footer__menu a,
.bs-footer__menu li a,
.bs-footer .bs-footer__menu a {
	color: #FFFFFF !important;
	font-family: var(--bs-font-stack);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	padding: 6px 0;
	display: inline-block;
	text-decoration: none;
}
.bs-footer__menu a:hover,
.bs-footer__menu li a:hover,
.bs-footer .bs-footer__menu a:hover {
	color: #FFFFFF !important;
	text-decoration: underline;
}

.bs-footer__hint {
	font-size: 13px;
	color: rgba(255,255,255,.7);
	line-height: 1.5;
	margin: 0;
}
.bs-footer__hint a { color: #fff; text-decoration: underline; }

/* Social Media — inline Icons, 28px, weiß */

.bs-footer__social .bs-footer__col-title { margin-bottom: 10px; }

.bs-social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 5px;
	align-items: center;
}
.bs-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #fff;
	opacity: 1;
	transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), opacity .35s cubic-bezier(0.4, 0, 0.2, 1);
}
.bs-social__link:hover {
	transform: translateY(-3px);
	opacity: .80;
	text-decoration: none;
}
.bs-social__link svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

/* — Brand-Fallback (ohne eigenes Footer-Logo) — */

.bs-footer__col--brand .bs-brand--footer {
	gap: 12px;
}
.bs-footer__col--brand .bs-brand--footer .bs-brand__icon { width: 40px; height: 50px; }
.bs-footer__col--brand .bs-brand--footer .bs-brand__line { color: #fff; font-size: 18px; }

/* =========================================================================
   Footer — Responsive
   ========================================================================= */

@media (max-width: 1080px) {
	.bs-footer__columns-inner { gap: 3em; }
	.bs-footer__col-group { row-gap: 4em; }
	.bs-footer__contact-title { font-size: 28px; line-height: 36px; }
}

@media (max-width: 900px) {
	.bs-footer__contact-inner {
		grid-template-columns: 1fr;
		gap: 32px;
		text-align: center;
	}
	.bs-footer__columns-inner {
		grid-template-columns: 1fr;
		gap: 2.5em;
		text-align: center;
	}
	.bs-footer__col-group { row-gap: 2.5em; }
	.bs-footer__contact { padding: 3.5em 0; }
	.bs-footer__columns { padding: 3.5em 0; }

	/* Brand-Spalte (Logo + Hint + Social) zentrieren */
	.bs-footer__col--brand {
		align-items: center;
		text-align: center;
	}
	.bs-footer__brand-top .bs-brand--footer-logo,
	.bs-footer__col--brand .bs-brand--footer {
		margin-left: auto;
		margin-right: auto;
	}

	/* Menü-Spalten: Titel + Links zentriert, Listen mittig */
	.bs-footer__menu {
		align-items: center;
	}
	.bs-footer__menu a,
	.bs-footer__menu li a,
	.bs-footer .bs-footer__menu a {
		text-align: center;
	}

	/* Social-Icons mittig */
	.bs-social {
		justify-content: center;
	}

	/* Privacy-Checkbox: das geerbte text-align: center vom contact-inner
	   würde sonst den (per flex:1 gestreckten) Span den Text mittig setzen
	   und so eine große Lücke zwischen Checkbox und Text erzeugen. */
	.bs-form__privacy-label,
	.bs-form__privacy span {
		text-align: left;
	}
}

@media (max-width: 768px) {
	.bs-footer__col-group {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 2em;
		column-gap: 1.5em;
	}
	/* Form-Inputs: 16px Schrift verhindert iOS Zoom-In beim Tap */
	.bs-form__field input,
	.bs-form__field textarea {
		font-size: 16px;
	}
	.bs-form__submit {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 600px) {
	.bs-content,
	.bs-archive,
	.bs-search,
	.bs-single,
	.bs-404 { padding-top: 40px; padding-bottom: 40px; }

	.bs-footer__col-group {
		grid-template-columns: 1fr;
		row-gap: 1.75em;
	}
	.bs-footer__contact { padding: 3em 0; }
	.bs-footer__columns { padding: 3em 0; }
	.bs-form { gap: 18px; }
	.bs-footer__contact-title { font-size: 24px; line-height: 32px; }

	.bs-footer__brand-top .bs-brand--footer-logo {
		width: 70%;
		max-width: 240px;
	}
}

/* =========================================================================
   ROTER FADEN — Einheitliches Visual-Design für alle Bauerschmidt-Widgets
   (Verbindet Hero, Cards, Lists, Loops, Timeline & Co. visuell.)
   ========================================================================= */

/* Reduktion von übermäßiger Animation für sensitive User */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* Mindest-Touch-Target für interaktive Elemente auf Touch-Geräten */
@media (hover: none) and (pointer: coarse) {
	.bs-button,
	.bs-hero__btn,
	.bs-shead__btn,
	.bs-loop__btn,
	.bs-sc-btn,
	.bs-tsc-btn,
	.bs-form__submit,
	.bs-dl__item,
	.bs-tm-icon-link {
		min-height: var(--bs-touch-min);
	}
}

/* ── Einheitliche Eyebrow-Optik (Hero, Sub-Hero, Section-Heading, TSC, etc.)
   "Eyebrow" = kleiner Vortext oberhalb des Titels — überall identisch. ── */
.bs-hero__eyebrow,
.bs-shead__eyebrow,
.bs-tsc-intro__eyebrow,
.bs-subhero__eyebrow {
	font-size: var(--bs-eyebrow-size);
	font-weight: 600;
	letter-spacing: var(--bs-eyebrow-tracking);
	text-transform: uppercase;
	line-height: 1.4;
}

/* ── Einheitliche Nummern-Optik (Industry-, Product-Listen) ── */
.bs-ind__num,
.bs-prod__num {
	color: var(--bs-color-primary) !important;
	font-weight: 600 !important;
	letter-spacing: var(--bs-eyebrow-tracking);
	font-variant-numeric: tabular-nums;
}

/* ── Einheitliche Kategorie-Badges / Chips ── */
.bs-loop__cat,
.bs-sc-badge {
	font-variant-numeric: tabular-nums;
}

/* ── Einheitliche Trennlinie (alle Widgets nutzen die selbe Border-Farbe) ── */
.bs-ind__item,
.bs-prod__item,
.bs-dl__item,
.bs-contact__item,
.bs-imprint__item {
	border-bottom-color: var(--bs-color-border) !important;
}
.bs-ind__divider,
.bs-prod__divider,
.bs-subhero__divider {
	background-color: var(--bs-color-border) !important;
}

/* ── Einheitlicher Hover-Lift für Cards ── */
.bs-loop--vertical .bs-loop__card,
.bs-card {
	box-shadow: var(--bs-shadow-sm);
	transition: transform var(--bs-trans-base), box-shadow var(--bs-trans-base);
}
.bs-loop--vertical .bs-loop__card:hover,
.bs-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--bs-shadow-lg);
}

/* ── Einheitliche Button-Hover-Animation für ALLE primären Widget-Buttons ── */
.bs-button,
.bs-hero__btn,
.bs-shead__btn,
.bs-loop__btn,
.bs-sc-btn,
.bs-tsc-btn,
.bs-form__submit {
	transition: background var(--bs-trans-fast),
	            border-color var(--bs-trans-fast),
	            color var(--bs-trans-fast),
	            transform var(--bs-trans-fast),
	            box-shadow var(--bs-trans-fast);
	will-change: transform;
}
.bs-button:hover,
.bs-hero__btn:hover,
.bs-shead__btn:hover,
.bs-loop__btn:not(.bs-loop__btn--link):hover,
.bs-sc-btn:hover,
.bs-tsc-btn:hover,
.bs-form__submit:hover {
	box-shadow: 0 6px 16px rgba(0,119,200,.18);
}

/* ── Sichtbarer Fokus-Ring auf allen interaktiven Elementen ── */
:focus-visible {
	outline: 2px solid var(--bs-color-primary);
	outline-offset: 3px;
	border-radius: 4px;
}
.bs-hero__btn:focus-visible,
.bs-shead__btn:focus-visible,
.bs-loop__btn:focus-visible,
.bs-sc-btn:focus-visible,
.bs-tsc-btn:focus-visible,
.bs-form__submit:focus-visible {
	outline-offset: 4px;
}

/* ── Einheitlicher Vertikalrhythmus zwischen Elementor-Sektionen ── */
.elementor-section .bs-shead,
.elementor-element + .bs-shead {
	margin-top: var(--bs-block-gap);
}

/* =========================================================================
   MOBILE — Übergreifende Optimierungen für alle Widgets
   ========================================================================= */

@media (max-width: 767px) {
	/* Container-Padding harmonisiert (16px Sicherheits­abstand zum Rand). */
	body { font-size: 15px; }

	/* Bessere Lesbarkeit langer Texte auf kleinen Screens */
	p, li { line-height: 1.65; }

	/* Flüssigere Headings nochmal etwas tighter */
	h1 { line-height: 1.15; }
	h2, h3 { line-height: 1.2; }

	/* Listen-Items: gleicher Innenabstand statt unterschiedlicher Werte */
	.bs-ind__item,
	.bs-prod__item,
	.bs-imprint__item,
	.bs-contact__item {
		padding: 32px 0;
	}
	.bs-ind__item:first-child,
	.bs-prod__item:first-child,
	.bs-imprint__item:first-child,
	.bs-contact__item:first-child { padding-top: 0; }

	/* Buttons spannen sich auf volle Breite — bessere Tap-Erfahrung */
	.bs-form__submit,
	.bs-shead__btn,
	.bs-loop__btn:not(.bs-loop__btn--link),
	.bs-sc-btn,
	.bs-tsc-btn {
		width: 100%;
		justify-content: center;
	}

	/* Sucheingabe stackt sauber auf Phones */
	.bs-searchform {
		flex-direction: column;
		gap: 10px;
	}
	.bs-searchform__submit {
		width: 100%;
	}

	/* 404 Mobile-Polish */
	.bs-404__title { font-size: 72px; }

	/* Templates: konsistentes vertikales Padding (horizontal kommt
	   aus .bs-container, responsive 24/40/56/32 px). */
	.bs-content,
	.bs-archive,
	.bs-search,
	.bs-single {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	/* Einheitliche Pagination-Touch-Targets */
	.page-numbers {
		min-width: var(--bs-touch-min);
		padding: 10px 14px;
	}
}

@media (max-width: 480px) {
	/* Topbar-Inhalte stacken besser */
	.bs-topbar { font-size: 12px; }

	/* Container Bauteile etwas knapper */
	.bs-ind__item,
	.bs-prod__item,
	.bs-imprint__item,
	.bs-contact__item {
		padding: 28px 0;
	}

	/* Kartensektionen mit weniger Aussenrand */
	.bs-job__facts {
		grid-template-columns: 1fr;
		padding: 18px;
		gap: 14px;
	}
}
