/* ==========================================================================
   Blasy + Mader 2026 - Haupt-Stylesheet
   ========================================================================== */

/* ---- Design-Tokens (gespiegelt aus theme.json) ---- */
:root {
	--bm-blue:        var(--wp--preset--color--bm-blue, #004280);
	--bm-blue-dark:   var(--wp--preset--color--bm-blue-dark, #002a52);
	--bm-blue-light:  var(--wp--preset--color--bm-blue-light, #e9f1f8);
	--bm-accent:      var(--wp--preset--color--bm-accent, #d08236);
	--bm-grey:        var(--wp--preset--color--bm-grey, #f5f6f8);
	--bm-text:        var(--wp--preset--color--bm-text, #2a2f35);
	--bm-text-soft:   var(--wp--preset--color--bm-text-soft, #6b7279);
	--bm-border:      var(--wp--preset--color--bm-border, #e5e7ea);
	--bm-footer:      var(--wp--preset--color--bm-footer, #0a1726);
	--maxw: 1320px;
	--header-h: 92px;
}

/* ---- Reset / Basis ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--bm-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Layout-Helfer ---- */
.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 40px;
}

/* ---- Topbar ---- */
.topbar {
	background: var(--bm-blue-dark);
	color: #fff;
	font-size: 13px;
	padding: 8px 0;
	text-align: center;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
/* Template-Part-Wrapper aufloesen, damit sticky gegen die ganze Seite greift */
header.wp-block-template-part { display: contents; }

/* Kein Block-Gap-Abstand vor dem Hauptinhalt (sonst weisser Streifen) */
.site-main { margin-top: 0; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: transparent;
	transition: background 0.3s, box-shadow 0.3s;
}
.admin-bar .site-header { top: 32px; }
.site-header.scrolled,
.site-header:hover {
	background: #fff;
	box-shadow: inset 0 -1px 0 var(--bm-border);
}
.header-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 18px 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* ---- Logo (zwei Versionen, CSS-Hintergrund, portabel) ---- */
.logo {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 262px;
	height: 56px;
}
.logo-img {
	position: absolute;
	top: 0;
	left: 0;
	height: 56px;
	width: auto;
	max-width: 100%;
	pointer-events: none;
	will-change: opacity;
	transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.logo-weiss { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s 0s; }
.logo-blau  { opacity: 0; visibility: hidden; }
.site-header.scrolled .logo-weiss,
.site-header:hover    .logo-weiss { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
.site-header.scrolled .logo-blau,
.site-header:hover    .logo-blau  { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s 0s; }

/* ---- Navigation ---- */
.main-nav > ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 36px;
}
.main-nav > ul > li { position: relative; }
.main-nav a {
	font-size: 15px;
	font-weight: 500;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	position: relative;
	transition: color 0.2s;
}
.site-header.scrolled .main-nav a,

.site-header:hover .main-nav a { color: var(--bm-text); }
.main-nav a:hover { color: rgba(255,255,255,0.7); }
.site-header.scrolled .main-nav a:hover,

.site-header:hover .main-nav a:hover { color: var(--bm-blue); }
.main-nav a.active::after {
	content: '';
	position: absolute;
	left: 0; right: 0;
	bottom: -6px;
	height: 2px;
	background: var(--bm-accent);
}
.site-header.scrolled .main-nav a.active,

.site-header:hover .main-nav a.active { color: var(--bm-blue); }
.has-mega > a::after {
	content: '▾';
	font-size: 10px;
	position: relative;
	top: -1px;
	transition: transform 0.2s;
}
.has-mega:hover > a::after { transform: rotate(180deg); }

/* ---- Header-CTA ---- */
.header-cta {
	flex-shrink: 0;
	background: rgba(255,255,255,0.15);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.5);
	padding: 9px 22px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.25s;
}
.header-cta:hover { background: rgba(255,255,255,0.25); border-color: #fff; }
.site-header.scrolled .header-cta,

.site-header:hover .header-cta {
	background: var(--bm-blue);
	border-color: var(--bm-blue);
	color: #fff;
}
.site-header.scrolled .header-cta:hover,

.site-header:hover .header-cta:hover {
	background: var(--bm-blue-dark);
	border-color: var(--bm-blue-dark);
}

/* ---- Megamenü ---- */
.megamenu {
	position: fixed;
	top: 110px;
	left: 0; right: 0;
	background: #fff;
	box-shadow: 0 20px 40px rgba(0,0,0,0.08);
	border-top: 1px solid var(--bm-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
	z-index: 99;
}
.has-mega:hover .megamenu,
.megamenu:hover {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.has-mega::before {
	content: '';
	position: absolute;
	top: 100%; left: 0; right: 0;
	height: 40px;
}
.megamenu-inner {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 32px 40px;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 18px;
}
.megamenu .mega-item {
	display: block;
	text-align: center;
	transition: transform 0.2s;
}
.megamenu .mega-item:hover { transform: translateY(-3px); }
.mega-img {
	display: block;
	width: 100%;
	height: 150px;
	border-radius: 6px;
	background-color: #ddd;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
}
.mega-img::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(0,42,82,0.25) 100%);
}
.mega-img--abwasser    { background-image: url('/wp-content/uploads/2026/05/bm-grundwasser-pumpversuch.jpg'); }
.mega-img--altlasten   { background-image: url('/wp-content/uploads/2026/05/blasymader-altlasten.jpg'); }
.mega-img--baugrund    { background-image: url('/wp-content/uploads/2026/05/blasymader-baugrund.jpg'); }
.mega-img--bausubstanz { background-image: url('/wp-content/uploads/2026/05/blasymader-bausubstanz.jpg'); }
.mega-img--grundwasser { background-image: url('/wp-content/uploads/2026/06/bm-stock-grundwasser-wasser-1.jpg'); }
.mega-img--monitoring  { background-image: url('/wp-content/uploads/2026/05/bm-monitoring-messwehr.jpg'); }
.mega-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--bm-blue);
	margin-top: 12px;
	line-height: 1.3;
}

/* ---- Mobile-Toggle ---- */
.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px; height: 44px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
}
.nav-toggle span {
	display: block;
	width: 24px; height: 2px;
	background: #fff;
	margin: 0 auto;
	transition: background 0.3s;
}
.site-header.scrolled .nav-toggle span,

.site-header:hover .nav-toggle span { background: var(--bm-text); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
	background: var(--bm-footer);
	color: rgba(255,255,255,0.7);
	padding: 70px 0 30px;
	font-size: 14px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 60px;
	margin-bottom: 50px;
}
.footer-logo {
	display: block;
	height: 44px;
	width: auto;
	margin-bottom: 22px;
}
.footer-col--brand p { max-width: 320px; margin: 0; }
.footer-heading {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin: 0 0 20px;
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-contact-spacer { margin-top: 10px; }

.social-icons {
	display: flex;
	gap: 12px;
	margin-top: 24px;
}
.social-icons a {
	width: 40px; height: 40px;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,0.7);
	transition: all 0.2s;
}
.social-icons a:hover {
	color: #fff;
	background: var(--bm-accent);
	border-color: var(--bm-accent);
}
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.1);
	padding-top: 24px;
	display: flex;
	justify-content: space-between;
	font-size: 13px;
}
.footer-legal a { color: rgba(255,255,255,0.7); margin-left: 20px; }
.footer-legal a:hover { color: #fff; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 32px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	transition: all 0.2s;
	cursor: pointer;
	border: 0;
}
.btn-primary { background: #fff; color: var(--bm-blue); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-outline {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-solid-blue { background: var(--bm-blue); color: #fff; }
.btn-solid-blue:hover {
	background: var(--bm-blue-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,66,128,0.25);
}

/* ==========================================================================
   SEKTIONEN - Basis
   ========================================================================== */
.section { padding: 120px 0; }
.section--grey { background: var(--bm-grey); }
.eyebrow {
	color: var(--bm-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin-bottom: 16px;
}
.eyebrow--on-blue { color: rgba(255,255,255,0.7); }
.section h2,
.ref-banner h2,
.contact-cta h2 {
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--bm-blue);
	margin: 0 0 24px;
}
.section h2 strong,
.ref-banner h2 strong,
.contact-cta h2 strong { font-weight: 600; }
.lead {
	font-size: 18px;
	color: var(--bm-text-soft);
	max-width: 680px;
	line-height: 1.7;
	margin: 0;
}
.lead--spaced { margin-top: 16px; }
.section-head { text-align: center; margin-bottom: 80px; }
.section-head .lead { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
	position: relative;
	height: 88vh;
	min-height: 620px;
	overflow: hidden;
	color: #fff;
	margin-top: calc(-1 * var(--header-h));
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
	animation: heroZoom 12s ease-in-out infinite alternate;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
@keyframes heroZoom {
	from { transform: scale(1); }
	to   { transform: scale(1.08); }
}
/* Slideshow-Bilder werden im render.php inline gesetzt (ACF home_hero_slides) */
.hero-slides::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,42,82,0.5) 0%, rgba(0,42,82,0.8) 100%);
	z-index: 2;
}
.hero-content {
	position: relative;
	z-index: 5;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding-top: var(--header-h);
}
.hero-eyebrow {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	opacity: 0.85;
	margin-bottom: 24px;
}
.hero h1 {
	font-size: clamp(40px, 6vw, 80px);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.02em;
	max-width: 900px;
	margin: 0 0 28px;
	color: #fff;
}
.hero h1 strong { font-weight: 600; }
.hero-sub {
	font-size: 20px;
	font-weight: 300;
	max-width: 640px;
	margin: 0 0 40px;
	opacity: 0.95;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots {
	position: absolute;
	bottom: 34px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 5;
}
.hero-dot {
	width: 32px; height: 3px;
	background: rgba(255,255,255,0.3);
	border: 0; padding: 0;
	cursor: pointer;
	transition: background 0.3s;
}
.hero-dot.is-active { background: #fff; }
.hero-dot:hover { background: rgba(255,255,255,0.6); }

/* ==========================================================================
   LEISTUNGEN-GRID
   ========================================================================== */
.leistungen-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.leistung-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
	color: var(--bm-text);
}
.leistung-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(0,66,128,0.12);
}
.leistung-img {
	display: block;
	aspect-ratio: 4 / 3;
	background-size: cover;
	background-position: center;
	transition: transform 0.5s;
}
.leistung-card:hover .leistung-img { transform: scale(1.06); }
/* Leistungs-Kachel-Bilder werden im render.php inline gesetzt (ACF card_image) */
.leistung-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 28px 28px 32px;
}
.leistung-title {
	font-size: 22px;
	font-weight: 600;
	color: var(--bm-blue);
	margin-bottom: 12px;
}
.leistung-text {
	color: var(--bm-text-soft);
	font-size: 15px;
	margin-bottom: 20px;
	flex: 1;
}
.leistung-link {
	color: var(--bm-blue);
	font-weight: 500;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: gap 0.2s, color 0.2s;
}
.leistung-card:hover .leistung-link { gap: 12px; color: var(--bm-accent); }

/* ==========================================================================
   UNTERNEHMEN-SEKTION
   ========================================================================== */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.about-image {
	aspect-ratio: 4 / 5;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.about-text p {
	font-size: 16px;
	color: var(--bm-text-soft);
	margin: 0 0 16px;
	line-height: 1.7;
}
.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin-top: 48px;
	padding-top: 40px;
	border-top: 1px solid var(--bm-border);
}
.stat-number {
	font-size: 42px;
	font-weight: 300;
	color: var(--bm-blue);
	line-height: 1;
	margin-bottom: 6px;
}
.stat-label {
	font-size: 13px;
	color: var(--bm-text-soft);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ==========================================================================
   ZULASSUNGEN-BANNER
   ========================================================================== */
.ref-banner {
	background: var(--bm-blue);
	color: #fff;
	padding: 90px 0;
	text-align: center;
}
.ref-banner h2 { color: #fff; }
.ref-banner .lead {
	color: rgba(255,255,255,0.85);
	margin: 0 auto 40px;
}

/* ==========================================================================
   KONTAKT-CTA
   ========================================================================== */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.contact-info {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.contact-item {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 16px;
}
.contact-icon {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--bm-blue-light);
	color: var(--bm-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.contact-icon svg {
	width: 20px; height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.contact-label {
	display: block;
	font-size: 13px;
	color: var(--bm-text-soft);
}
.contact-cta .btn-solid-blue { margin-top: 16px; align-self: flex-start; }

/* ==========================================================================
   FACHBEREICH-DETAILSEITE
   ========================================================================== */
.page-hero {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
}
.page-hero::before {
	content: '';
	position: absolute; inset: 0;
	background-image: var(--hero-img);
	background-size: cover;
	background-position: center;
}
.page-hero::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(0,42,82,0.3) 0%, rgba(0,42,82,0.85) 100%);
}
.page-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: calc(var(--header-h) + 60px);
	padding-bottom: 70px;
}
.breadcrumb {
	font-size: 13px;
	letter-spacing: 0.04em;
	margin-bottom: 22px;
	opacity: 0.85;
}
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { opacity: 0.7; }
.breadcrumb .sep { margin: 0 10px; opacity: 0.5; }
.page-hero h1 {
	font-size: clamp(38px, 5.5vw, 68px);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	color: #fff;
}
.page-hero h1 strong { font-weight: 600; }
.page-hero-sub {
	font-size: 20px;
	font-weight: 300;
	max-width: 640px;
	margin: 0;
	opacity: 0.95;
}

/* ---- Intro ---- */
.intro-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 80px;
	align-items: start;
}
.intro-text p {
	font-size: 17px;
	color: var(--bm-text-soft);
	margin: 0 0 18px;
	line-height: 1.8;
}
.intro-text p:last-child { margin-bottom: 0; }
.intro-text p strong { color: var(--bm-text); font-weight: 500; }

/* ---- Kompetenz-Bereiche ---- */
.areas-grid {
	display: grid;
	gap: 40px;
}
.areas-grid--duo { grid-template-columns: 1fr 1fr; }
.areas-grid--single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.area-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.area-card-head {
	position: relative;
	aspect-ratio: 16 / 9;
	background-size: cover;
	background-position: center;
}
.area-tag {
	position: absolute;
	top: 20px; left: 20px;
	background: rgba(255,255,255,0.95);
	color: var(--bm-blue);
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.area-card-body { padding: 36px 36px 40px; flex: 1; }
.area-card h3 {
	font-size: 26px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}
.area-card-sub {
	color: var(--bm-text-soft);
	font-size: 15px;
	margin: 0 0 24px;
	line-height: 1.7;
}
.area-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.area-checklist li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	font-size: 14.5px;
	line-height: 1.5;
}
.area-checklist li::before {
	content: '';
	width: 18px; height: 18px;
	flex-shrink: 0;
	margin-top: 2px;
	border-radius: 50%;
	background: var(--bm-blue-light) center / 12px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004280' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}

/* ---- Technik ---- */
.tech-intro {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	margin-bottom: 70px;
}
.tech-image {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
}
.tech-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.tech-item {
	padding: 32px 24px;
	background: #fff;
	border: 1px solid var(--bm-border);
	border-radius: 10px;
	transition: all 0.3s;
}
.tech-item:hover {
	border-color: var(--bm-blue);
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0,66,128,0.08);
}
.tech-icon {
	width: 48px; height: 48px;
	border-radius: 10px;
	background: var(--bm-blue-light);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
	color: var(--bm-blue);
}
.tech-icon svg {
	width: 24px; height: 24px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.tech-item h4 {
	font-size: 17px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 8px;
}
.tech-item p {
	font-size: 14px;
	color: var(--bm-text-soft);
	margin: 0;
	line-height: 1.6;
}

/* ---- Fakten-Band ---- */
.facts-band {
	background: var(--bm-grey);
	padding: 80px 0;
}
.facts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px;
	text-align: center;
}
.fact-number {
	font-size: 54px;
	font-weight: 300;
	color: var(--bm-blue);
	line-height: 1;
	margin-bottom: 8px;
	letter-spacing: -0.02em;
}
.fact-label {
	font-size: 14px;
	color: var(--bm-text-soft);
	letter-spacing: 0.04em;
}

/* ---- Prozess ---- */
.section.process { background: var(--bm-blue); color: #fff; }
.section.process h2 { color: #fff; }
.section.process .lead { color: rgba(255,255,255,0.85); }
.process-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
.process-step::before {
	content: attr(data-step);
	display: block;
	font-size: 72px;
	font-weight: 200;
	color: var(--bm-accent);
	opacity: 0.55;
	line-height: 1;
	margin-bottom: 16px;
	letter-spacing: -0.03em;
}
.process-step h4 {
	font-size: 19px;
	font-weight: 600;
	margin: 0 0 10px;
}
.process-step p {
	font-size: 14.5px;
	color: rgba(255,255,255,0.8);
	margin: 0;
	line-height: 1.6;
}

/* ---- Zitat ---- */
.quote-sec { text-align: center; }
.quote-box { max-width: 900px; margin: 0 auto; }
.quote-mark {
	font-size: 80px;
	line-height: 0.5;
	color: var(--bm-accent);
	margin-bottom: 24px;
	font-family: Georgia, serif;
}
.quote-text {
	font-size: 26px;
	font-weight: 300;
	color: var(--bm-text);
	line-height: 1.5;
	letter-spacing: -0.01em;
	margin: 0 0 30px;
}
.quote-author {
	font-size: 14px;
	color: var(--bm-text-soft);
	letter-spacing: 0.04em;
}
.quote-author strong { color: var(--bm-blue); font-weight: 600; }

/* ---- Weitere Fachbereiche ---- */
.related-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}
.related-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	text-align: center;
	transition: transform 0.2s;
	display: block;
}
.related-card:hover { transform: translateY(-4px); }
.related-img {
	display: block;
	height: 130px;
	background-size: cover;
	background-position: center;
	transition: transform 0.4s;
}
.related-card:hover .related-img { transform: scale(1.05); }
.related-title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--bm-blue);
	padding: 18px 12px;
}

/* ---- CTA ---- */
.cta-sec { text-align: center; }
.cta-sec h2 { margin-bottom: 18px; }
.cta-sec .lead { margin: 0 auto 40px; }

/* ==========================================================================
   UNTERNEHMEN-SEITE
   ========================================================================== */
.facts-band--blue { background: var(--bm-blue); }
.facts-band--blue .fact-number { color: #fff; }
.facts-band--blue .fact-label { color: rgba(255,255,255,0.85); }
.facts-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Geschäftsführung ---- */
.gf-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
.gf-card {
	background: #fff;
	border: 1px solid var(--bm-border);
	border-radius: 12px;
	overflow: hidden;
	display: grid;
	grid-template-columns: 240px 1fr;
	transition: box-shadow 0.3s, border-color 0.3s;
}
.gf-card:hover {
	box-shadow: 0 20px 40px rgba(0,66,128,0.08);
	border-color: var(--bm-blue-light);
}
.gf-photo {
	background: var(--bm-blue-light) top center / cover no-repeat;
	aspect-ratio: 1 / 1;
}
.gf-body { padding: 36px 32px; }
.gf-role {
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bm-accent);
	font-weight: 600;
	margin-bottom: 12px;
}
.gf-body h3 {
	font-size: 24px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 6px;
}
.gf-degree { font-size: 15px; color: var(--bm-text-soft); margin-bottom: 14px; }
.gf-areas {
	font-size: 13px;
	padding-top: 16px;
	border-top: 1px solid var(--bm-border);
}
.gf-areas strong {
	display: block;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bm-blue);
	font-weight: 600;
	margin-bottom: 4px;
}

/* ---- Team ---- */
.team-group { margin-bottom: 70px; }
.team-group:last-child { margin-bottom: 0; }
.team-group-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin: 0 auto 36px;
	max-width: 1192px;
}
.team-group-title h3 {
	font-size: 22px;
	font-weight: 600;
	color: var(--bm-blue);
	white-space: nowrap;
	text-align: center;
	margin: 0;
}
.team-group-title::before,
.team-group-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #b8bcc2;
}
.team-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
}
.team-card {
	flex: 0 1 calc((100% - 72px) / 4);
	min-width: 220px;
	background: #fff;
	border-radius: 10px;
	padding: 28px 20px;
	text-align: center;
	transition: transform 0.25s, box-shadow 0.25s;
}
.team-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0,66,128,0.18);
}
.team-avatar {
	display: block;
	width: 120px; height: 120px;
	border-radius: 50%;
	margin: 0 auto 16px;
	background: var(--bm-blue-light) center / cover no-repeat;
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(0,66,128,0.08);
}
.team-card h4 {
	font-size: 17px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 4px;
}
.team-degree {
	font-size: 13px;
	color: var(--bm-text-soft);
	margin-bottom: 10px;
	min-height: 18px;
}
.team-areas {
	font-size: 11px;
	color: var(--bm-text);
	padding-top: 10px;
	border-top: 1px solid var(--bm-border);
	line-height: 1.5;
	min-height: 30px;
}
.team-mail {
	display: inline-flex;
	margin-top: 10px;
	color: var(--bm-blue);
	opacity: 0.6;
	transition: opacity 0.2s;
}
.team-mail:hover { opacity: 1; }
.team-mail svg { width: 18px; height: 18px; }

/* ---- Zertifikate ---- */
.cert-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}
.cert-grid--4 {
	grid-template-columns: repeat(2, 1fr);
	max-width: 900px;
	margin: 0 auto;
}
.cert-item {
	background: #fff;
	border: 1px solid var(--bm-border);
	border-radius: 10px;
	padding: 32px;
	transition: all 0.3s;
}
.cert-item:hover {
	border-color: var(--bm-blue);
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0,66,128,0.08);
}
.cert-icon {
	width: 48px; height: 48px;
	border-radius: 10px;
	background: var(--bm-blue-light);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
	color: var(--bm-blue);
}
.cert-icon svg { width: 24px; height: 24px; }
.cert-item h4 {
	font-size: 18px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 8px;
}
.cert-item p {
	font-size: 14.5px;
	color: var(--bm-text-soft);
	line-height: 1.6;
	margin: 0;
}

/* ---- Partner-Netzwerk ---- */
.partner-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}
.partner-logo {
	background: #fff;
	border: 1px solid var(--bm-border);
	border-radius: 8px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	transition: all 0.25s;
}
.partner-logo:hover {
	border-color: var(--bm-blue);
	transform: translateY(-2px);
}
.partner-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: filter 0.3s, opacity 0.3s;
}
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* ==========================================================================
   STANDARD-SEITE (Impressum, Datenschutz, Jobs, Zulassungen, Kontakt)
   ========================================================================== */
.page-header-simple {
	background: var(--bm-blue);
	/* !important: ueberschreibt WP-Block-Gap (first-child margin-block-start:0) */
	margin-top: calc(-1 * var(--header-h)) !important;
	padding-top: calc(var(--header-h) + 64px);
	padding-bottom: 56px;
}
.page-header-simple .wp-block-post-title {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 40px;
	color: #fff;
	font-size: clamp(34px, 4.5vw, 56px);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

/* ---- Rechtstexte (volle Content-Breite, Container-Standard) ---- */
.legal-content h2 {
	font-size: 26px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 44px 0 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
	font-size: 19px;
	font-weight: 600;
	color: var(--bm-text);
	margin: 28px 0 10px;
}
.legal-content h4 {
	font-size: 16px;
	font-weight: 600;
	color: var(--bm-text);
	margin: 20px 0 8px;
}
.legal-content p {
	margin: 0 0 14px;
	color: var(--bm-text-soft);
	line-height: 1.75;
}
.legal-content ul,
.legal-content ol {
	margin: 0 0 14px;
	padding-left: 22px;
	color: var(--bm-text-soft);
	line-height: 1.7;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--bm-blue); text-decoration: underline; }
.legal-content strong { color: var(--bm-text); }

/* ---- Jobs ---- */
.job-intro { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.job-list { display: grid; gap: 32px; max-width: 920px; margin: 0 auto; }
.job-card {
	background: #fff;
	border: 1px solid var(--bm-border);
	border-radius: 12px;
	padding: 44px;
}
.job-card h3 {
	font-size: 25px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 6px;
}
.job-meta {
	font-size: 13px;
	color: var(--bm-accent);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 22px;
}
.job-card > p { color: var(--bm-text-soft); line-height: 1.7; }
.job-card h4 {
	font-size: 15px;
	font-weight: 600;
	color: var(--bm-text);
	margin: 24px 0 10px;
}
.job-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}
.job-card ul li {
	display: flex;
	gap: 11px;
	font-size: 15px;
	color: var(--bm-text-soft);
	line-height: 1.5;
}
.job-card ul li::before {
	content: '';
	width: 16px; height: 16px;
	flex-shrink: 0;
	margin-top: 3px;
	border-radius: 50%;
	background: var(--bm-blue-light) center / 11px no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23004280' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.job-apply { margin-top: 28px; }
.initiativ {
	max-width: 920px;
	margin: 56px auto 0;
	background: var(--bm-blue-light);
	border-radius: 12px;
	padding: 48px;
}
.initiativ h3 {
	font-size: 26px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 8px;
	text-align: center;
}
.initiativ-lead {
	text-align: center;
	color: var(--bm-text-soft);
	margin: 0 0 32px;
}
.initiativ-areas { display: grid; gap: 20px; }
.initiativ-area {
	background: #fff;
	border-radius: 10px;
	padding: 28px 30px;
}
.initiativ-area h4 {
	font-size: 18px;
	font-weight: 600;
	color: var(--bm-blue);
	margin: 0 0 10px;
}
.initiativ-area p {
	font-size: 15px;
	color: var(--bm-text-soft);
	line-height: 1.7;
	margin: 0 0 10px;
}
.initiativ-area p:last-child { margin-bottom: 0; }
.initiativ-cta { text-align: center; margin-top: 32px; }

/* ---- Zulassungen-Liste ---- */
.zulassung-list {
	max-width: 920px;
	margin: 0 auto;
	display: grid;
	gap: 16px;
}
.zulassung-item {
	display: flex;
	align-items: center;
	gap: 22px;
	background: #fff;
	border: 1px solid var(--bm-border);
	border-radius: 10px;
	padding: 24px 28px;
	transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.zulassung-item:hover {
	border-color: var(--bm-blue);
	box-shadow: 0 12px 28px rgba(0,66,128,0.08);
	transform: translateY(-2px);
}
.zulassung-icon {
	flex-shrink: 0;
	width: 48px; height: 48px;
	border-radius: 10px;
	background: var(--bm-blue-light);
	color: var(--bm-blue);
	display: flex;
	align-items: center;
	justify-content: center;
}
.zulassung-icon svg { width: 24px; height: 24px; }
.zulassung-text {
	flex: 1;
	font-size: 15px;
	line-height: 1.55;
	color: var(--bm-text);
}
.zulassung-arrow {
	flex-shrink: 0;
	color: var(--bm-accent);
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

/* ---- Kontakt ---- */
.kontakt-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: start;
}
.kontakt-info .contact-item { margin-bottom: 20px; }
.kontakt-hours {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid var(--bm-border);
	font-size: 15px;
	color: var(--bm-text-soft);
}
.contact-form { display: grid; gap: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 6px;
	color: var(--bm-text);
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--bm-border);
	border-radius: 6px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	color: var(--bm-text);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--bm-blue);
	box-shadow: 0 0 0 3px var(--bm-blue-light);
}
.contact-form .hp {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}
.form-hint { font-size: 13px; color: var(--bm-text-soft); }
.form-notice {
	padding: 14px 18px;
	border-radius: 6px;
	font-size: 15px;
	margin-bottom: 8px;
}
.form-notice--ok { background: #e7f4ea; color: #1f6b35; }
.form-notice--err { background: #fbe9e9; color: #a32525; }
.kontakt-map {
	margin-top: 70px;
	border-radius: 12px;
	overflow: hidden;
	line-height: 0;
}
.kontakt-map iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 420px;
	padding: 50px 40px;
	background: linear-gradient(180deg, #f5f7fa 0%, #e8ecf2 100%);
	color: var(--bm-text-soft);
	gap: 18px;
}
.map-consent-icon {
	width: 48px;
	height: 48px;
	color: var(--bm-blue);
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
	fill: none;
	opacity: 0.65;
}
.map-consent-text {
	max-width: 520px;
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
}
.map-consent-text a { color: var(--bm-blue); text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
	.megamenu-inner { grid-template-columns: repeat(3, 1fr); }
	.leistungen-grid { grid-template-columns: repeat(2, 1fr); }
	.tech-grid { grid-template-columns: repeat(2, 1fr); }
	.process-steps { grid-template-columns: repeat(2, 1fr); }
	.facts-grid { grid-template-columns: repeat(2, 1fr); }
	.facts-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.related-grid { grid-template-columns: repeat(3, 1fr); }
	.partner-grid { grid-template-columns: repeat(4, 1fr); }
	.team-grid { gap: 20px; }
}
@media (max-width: 960px) {
	.container { padding: 0 24px; }
	.header-inner { padding: 14px 24px; }
	.nav-toggle { display: flex; }
	.header-cta { display: none; }
	.main-nav {
		position: fixed;
		top: var(--header-h);
		left: 0; right: 0;
		background: #fff;
		box-shadow: 0 20px 40px rgba(0,0,0,0.12);
		padding: 16px 24px 24px;
		display: none;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
	}
	.main-nav.open { display: block; }
	.main-nav > ul { flex-direction: column; gap: 0; }
	.main-nav > ul > li { border-bottom: 1px solid var(--bm-border); }
	.main-nav a { color: var(--bm-text); padding: 14px 0; width: 100%; }
	.main-nav a.active::after { display: none; }
	.megamenu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border-top: 0;
		display: none;
	}
	.has-mega.open .megamenu { display: block; }
	.megamenu-inner { grid-template-columns: 1fr; padding: 0; gap: 0; }
	.megamenu .mega-item { display: block; text-align: left; padding: 14px 0; font-size: 15px; font-weight: 500; color: var(--bm-text); transform: none !important; border-bottom: none; }
	.mega-img { display: none; }
	.mega-title { font-size: inherit; font-weight: inherit; padding: 0; border: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
	.footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
	.footer-legal a { margin: 0 10px; }

	/* Startseite */
	.section { padding: 80px 0; }
	.section-head { margin-bottom: 48px; }
	.leistungen-grid { grid-template-columns: 1fr; }
	.about-grid { grid-template-columns: 1fr; gap: 40px; }
	.contact-grid { grid-template-columns: 1fr; gap: 40px; }
	.hero { height: auto; min-height: 0; padding: 160px 0 110px; }
	.hero-content { height: auto; padding-top: 0; }

	/* Fachbereich-Detailseite */
	.intro-grid { grid-template-columns: 1fr; gap: 28px; }
	.areas-grid--duo { grid-template-columns: 1fr; }
	.tech-intro { grid-template-columns: 1fr; gap: 40px; }
	.facts-band { padding: 56px 0; }

	/* Unternehmen-Seite */
	.gf-grid { grid-template-columns: 1fr; }
	.cert-grid { grid-template-columns: 1fr; }
	.partner-grid { grid-template-columns: repeat(3, 1fr); }
	.team-card { flex-basis: calc((100% - 24px) / 2); }

	/* Standard-Seiten */
	.kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
	.job-card { padding: 32px 28px; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.megamenu-inner { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr; gap: 20px; }
	.tech-grid { grid-template-columns: 1fr; }
	.process-steps { grid-template-columns: 1fr; }
	.facts-grid { grid-template-columns: 1fr 1fr; }
	.facts-grid--3 { grid-template-columns: 1fr; }
	.related-grid { grid-template-columns: 1fr 1fr; }
	.gf-card { grid-template-columns: 1fr; }
	.gf-photo { aspect-ratio: 1 / 1; }
	.partner-grid { grid-template-columns: repeat(2, 1fr); }
	.team-card { flex-basis: 100%; }
	.contact-form .form-row { grid-template-columns: 1fr; }
	.page-header-simple .wp-block-post-title { padding: 0 24px; }
	.initiativ { padding: 32px 24px; }
	.zulassung-item { flex-wrap: wrap; gap: 14px; padding: 20px 22px; }
	.zulassung-text { flex-basis: calc(100% - 70px); }
}
