/* DOLGE Theme: Basis, Header, Footer. Werte aus dem bisherigen Elementor-Kit übernommen. */

/* ---------- Schriften (nur Latin, variable Schriften: eine Datei je Familie) ---------- */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/roboto.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(../fonts/open-sans.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/montserrat.woff2) format('woff2'); }
@font-face { font-family: 'Roboto Slab'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/roboto-slab.woff2) format('woff2'); }

:root {
	--c-navy: #262257;
	--c-blue: #14448b;
	--c-ink: #121c22;
	--c-text: #353535;
	--c-muted: #7a7a7a;
	--c-soft: #f6f6f6;
	--c-grey: #bababa;
	--c-green: #71b48d;
	--c-white: #fff;

	--f-head: Helvetica, Arial, sans-serif;
	--f-text: 'Roboto', system-ui, sans-serif;
	--f-ui: 'Open Sans', system-ui, sans-serif;
	--f-slab: 'Roboto Slab', Georgia, serif;
	--f-footer: 'Montserrat', system-ui, sans-serif;

	--container: 1350px;
	--gutter: clamp(16px, 3.2vw, 45px);
	--header-h: 92px;
	--radius-pill: 50px;
	--shadow-header: 0 0 10px rgba(38, 34, 87, .58);
	--shadow-soft: 0 4px 10px rgba(0, 0, 0, .2);
	--ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font: 400 1rem/1.5 var(--f-slab); color: var(--c-text); background: var(--c-white); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
pre { white-space: pre-wrap; overflow-wrap: break-word; }
/* Lange URLs und Wörter dürfen auf dem Handy nicht seitlich überstehen */
main :is(p, li, .elementor-icon-list-text) { overflow-wrap: anywhere; }
/* Überschriften: Silbentrennung statt Zwangsumbruch (der würde kurze Nummern wie „01.“ in schmalen Spalten zerteilen) */
@media (max-width: 1024px) { main :is(h1, h2, h3, h4, .elementor-heading-title) { hyphens: auto; } }
/* Landingpages: Logo-Karussell im Hero steht ab Tablet neben zwei halbbreiten Spalten, war live nur 20 px breit
   und machte die Seite zu breit. Ab Tablet ausblenden (darunter folgt die eigene Logo-Leiste), auf dem Handy wie live. */
@media (min-width: 768px) { .e-con-inner > .e-con:has(> .e-con-inner > .elementor-global-5261):not(:only-child) { display: none; } }
a { color: var(--c-blue); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; line-height: 1.1; color: var(--c-ink); margin: .5rem 0 1rem; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.5rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 2rem); }
p { margin: 0 0 .9em; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.icon { width: 1em; height: 1em; flex: none; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.content { padding-block: 48px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--c-navy); color: #fff; border-radius: 4px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 0 rgba(38, 34, 87, .08), 0 10px 30px -18px rgba(38, 34, 87, .45); }
/* Milchglas auf einer eigenen Ebene: backdrop-filter direkt am Header würde das fixierte Mobilmenü auf Headerhöhe einsperren */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(246, 246, 246, .86); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.site-header__inner { display: flex; align-items: center; gap: 40px; min-height: var(--header-h); width: min(100% - 2 * var(--gutter), 1560px); margin-inline: auto; }
.site-header__logo { flex: none; }
.site-header__logo .logo-wide { width: 160px; height: auto; }
.site-header__logo .logo-icon { display: none; }
.site-header__burger { display: none; }

/* Buttons (auch für den Inhalt nutzbar) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: var(--radius-pill);
	font: 600 15px/1.2 var(--f-ui); text-decoration: none; white-space: nowrap; transition: transform .16s var(--ease-out), background-color .2s ease, box-shadow .2s ease; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { color: #fff; background: var(--c-navy); box-shadow: 0 1px 2px rgba(18, 28, 34, .2), 0 6px 16px -6px rgba(38, 34, 87, .6); }
.btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: var(--c-blue); } }

/* Desktop-Navigation */
.nav { flex: 1; display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a { position: relative; padding: 10px 12px; border-radius: 10px; font: 600 16px/1.2 var(--f-ui); color: var(--c-navy); text-decoration: none; transition: background-color .2s ease; }
.nav__list > li.menu-item-has-children > a { padding-right: 2px; }
.nav__list > .current-menu-item > a::after, .nav__list > .current-menu-ancestor > a::after, .nav__list > .current-page-ancestor > a::after {
	content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--c-blue); }
.nav__list > li.menu-item-has-children > a::after { right: 0; }
.nav__toggle { display: inline-grid; place-items: center; width: 26px; height: 36px; padding: 0 6px 0 2px; border: 0; background: none; color: var(--c-navy); cursor: pointer; }
.nav__toggle svg { width: 10px; height: 6px; transition: transform .2s var(--ease-out); }

.nav .sub-menu { position: absolute; z-index: 10; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 8px; background: #fff; border-radius: 14px;
	border: 1px solid rgba(38, 34, 87, .08); box-shadow: 0 1px 2px rgba(18, 28, 34, .06), 0 18px 40px -12px rgba(38, 34, 87, .35);
	opacity: 0; visibility: hidden; transform: translateY(-4px) scale(.98); transform-origin: top left;
	transition: opacity .12s ease, transform .12s ease, visibility 0s .12s; }
.nav .sub-menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; } /* Brücke, damit das Menü beim Hinüberfahren offen bleibt */
.nav .sub-menu .sub-menu { top: -9px; left: calc(100% + 16px); }
.nav .sub-menu .sub-menu::before { inset: 0 auto 0 -18px; width: 18px; height: auto; }
.nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease-out), transform .2s var(--ease-out), visibility 0s; }
.nav li.is-open > .nav__toggle svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
	.nav li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease-out), transform .2s var(--ease-out), visibility 0s; }
	.nav__list > li:hover > .nav__toggle svg { transform: rotate(180deg); }
	.nav__list > li > a:hover { background: rgba(38, 34, 87, .06); }
}
.nav .sub-menu li { position: relative; display: flex; align-items: center; }
.nav .sub-menu a { flex: 1; display: block; padding: 10px 12px; border-radius: 8px; font: 500 15px/1.3 var(--f-ui); color: var(--c-ink); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.nav .sub-menu .current-menu-item > a { color: var(--c-blue); background: rgba(20, 68, 139, .07); }
@media (hover: hover) and (pointer: fine) { .nav .sub-menu a:hover { background: var(--c-soft); color: var(--c-blue); } }
.nav .sub-menu a:focus-visible { background: var(--c-soft); color: var(--c-blue); outline-offset: -2px; }
.nav .sub-menu .nav__toggle { position: absolute; right: 4px; color: var(--c-muted); transform: rotate(-90deg); }
.nav .sub-menu .menu-item-has-children > a { padding-right: 32px; }
.nav .sub-menu li.is-open > .nav__toggle svg { transform: none; }

.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__phone { display: none; }
.nav .nav__list li.mega__intro { display: none; } /* Übersichtskarte nur im Desktop-Panel */

/* ---------- Mega-Menü und Dropdowns aus Milchglas (Desktop) ---------- */
@media (min-width: 1025px) {
	/* Hauptpunkte reichen über die ganze Headerhöhe: kein Spalt zwischen Menüpunkt und Panel */
	.nav { align-self: stretch; }
	.nav__list { align-self: stretch; align-items: stretch; }
	.nav__list > li { align-items: center; }

	.nav .sub-menu { background: rgba(250, 250, 252, .82); -webkit-backdrop-filter: blur(24px) saturate(1.8); backdrop-filter: blur(24px) saturate(1.8);
		border-color: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(18, 28, 34, .05), 0 24px 48px -16px rgba(38, 34, 87, .32); }
	.nav .sub-menu::before { inset: -14px 0 auto; height: 14px; }

	/* Panel über die volle Breite, direkt unter dem Header */
	.nav__list > li.is-mega { position: static; }
	.nav__list > li.is-mega > .sub-menu {
		--mega-pad: max(var(--gutter), (100% - 1560px) / 2);
		top: 100%; left: 0; right: 0; min-width: 0; margin: 0; border-radius: 0 0 22px 22px; border-width: 0 0 1px;
		display: grid; grid-template-columns: minmax(260px, 320px) repeat(3, minmax(0, 1fr)); column-gap: 28px; align-items: start;
		padding: 28px var(--mega-pad) 32px; transform: translateY(-6px); transform-origin: top center; }
	.nav__list > li.is-mega > .sub-menu::before { inset: -1px 0 auto; height: 1px; background: rgba(38, 34, 87, .08); }
	/* Kurze Verzögerung beim Öffnen: beim Überfahren der Leiste blitzt kein Panel auf */
	@media (hover: hover) and (pointer: fine) {
		.nav__list > li.is-mega:hover > .sub-menu { transition: opacity .2s var(--ease-out) 70ms, transform .26s var(--ease-out) 70ms, visibility 0s 70ms; }
	}

	/* Übersichtskarte links */
	.nav__list > li.is-mega .mega__intro { display: block; grid-row: span 6; align-self: stretch; margin-right: 12px; }
	.nav .sub-menu a.mega__card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 22px 20px; border-radius: 16px; text-decoration: none; color: #fff;
		background: linear-gradient(150deg, var(--c-navy) 0%, var(--c-blue) 100%); box-shadow: 0 12px 28px -14px rgba(20, 68, 139, .7);
		transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
	.mega__eyebrow { font: 600 12px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
	.mega__title { font: 600 26px/1.1 var(--f-head); }
	.mega__desc { font: 400 14px/1.5 var(--f-text); opacity: .86; }
	.mega__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font: 600 14px/1 var(--f-ui); }
	.mega__more svg { width: 16px; height: 10px; transition: transform .2s var(--ease-out); }
	@media (hover: hover) and (pointer: fine) {
		.nav .sub-menu a.mega__card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(20, 68, 139, .75); }
		.mega__card:hover .mega__more svg { transform: translateX(3px); }
	}
	.nav .sub-menu a.mega__card:hover, .nav .sub-menu a.mega__card:focus-visible { background: linear-gradient(150deg, var(--c-navy) 0%, var(--c-blue) 100%); color: #fff; }

	/* Einträge im Panel: Hauptlinks fett, dritte Ebene als ruhige Liste darunter */
	.nav__list > li.is-mega > .sub-menu > li:not(.mega__intro) { display: block; padding: 2px 0 10px; }
	.nav__list > li.is-mega > .sub-menu > li:not(.mega__intro) > a { font-weight: 600; color: var(--c-navy); }
	.nav__list > li.is-mega .sub-menu .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 0 12px; margin: 0 0 0 12px; border: 0; border-left: 1px solid rgba(38, 34, 87, .1);
		border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; opacity: 1; visibility: inherit; transform: none; transition: none; }
	.nav__list > li.is-mega .sub-menu .sub-menu::before { display: none; }
	.nav__list > li.is-mega .sub-menu .sub-menu a { padding: 6px 10px; font: 400 14px/1.3 var(--f-ui); color: var(--c-text); }
	.nav__list > li.is-mega .sub-menu .nav__toggle { display: none; }
	.nav__list > li.is-mega .sub-menu .menu-item-has-children > a { padding-right: 12px; }

	/* Gestaffeltes Einblenden der Einträge */
	.nav__list > li.is-mega > .sub-menu > li { opacity: 0; transform: translateY(4px); transition: opacity .12s ease, transform .12s ease; }
	.nav__list > li.is-mega.is-open > .sub-menu > li { opacity: 1; transform: none; transition: opacity .3s var(--ease-out) calc(var(--i, 0) * 18ms + 60ms), transform .36s var(--ease-out) calc(var(--i, 0) * 18ms + 60ms); }
	@media (hover: hover) and (pointer: fine) {
		.nav__list > li.is-mega:hover > .sub-menu > li { opacity: 1; transform: none; transition: opacity .3s var(--ease-out) calc(var(--i, 0) * 18ms + 90ms), transform .36s var(--ease-out) calc(var(--i, 0) * 18ms + 90ms); }
	}
}
/* Ohne Milchglas-Unterstützung: deckender Hintergrund */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	@media (min-width: 1025px) { .nav .sub-menu { background: #fff; } }
}
@media (prefers-reduced-motion: reduce) {
	.nav .sub-menu, .nav .sub-menu > li, .mega__card, .mega__more svg { transition: opacity .15s ease !important; transform: none !important; }
}

/* Tablet und Handy: Burger-Menü */
@media (max-width: 1200px) and (min-width: 1025px) {
	.nav__list > li > a { padding-inline: 8px; font-size: 15px; }
	.site-header__inner { gap: 24px; }
}
@media (max-width: 1024px) {
	:root { --header-h: 72px; }
	.site-header { position: fixed; inset: 0 0 auto; }
	.site-header::before { background: rgba(255, 255, 255, .94); }
	.admin-bar .site-header { top: 46px; }
	.site-header__inner { gap: 16px; width: auto; padding: 0 4px 0 12px; justify-content: space-between; }
	.site-header__logo .logo-wide { display: none; }
	.site-header__logo .logo-icon { display: block; width: 52px; height: 52px; border-radius: 16px; }

	.site-header__burger { display: inline-grid; place-items: center; width: 56px; height: 56px; border: 0; background: none; cursor: pointer; color: var(--c-blue); }
	.burger { position: relative; width: 26px; height: 14px; }
	.burger span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .28s var(--ease-out), top .28s var(--ease-out); }
	.burger span:first-child { top: 0; }
	.burger span:last-child { top: calc(100% - 2.5px); }
	[aria-expanded="true"] .burger span { top: calc(50% - 1.25px); }
	[aria-expanded="true"] .burger span:first-child { transform: rotate(45deg); }
	[aria-expanded="true"] .burger span:last-child { transform: rotate(-45deg); }

	.nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain;
		background: #fff; padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .16s ease, transform .16s ease, visibility 0s .16s; }
	.admin-bar .nav { top: calc(var(--header-h) + 46px); }
	.nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .24s var(--ease-out), transform .3s var(--ease-out), visibility 0s; }

	.nav__list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
	.nav .nav__list li { display: grid; align-items: stretch; grid-template-columns: 1fr auto; grid-template-rows: auto 0fr; transition: grid-template-rows .26s var(--ease-out); }
	.nav .nav__list li.is-open { grid-template-rows: auto 1fr; }
	.nav__list > li { border-bottom: 1px solid rgba(38, 34, 87, .08); }
	.nav__list > li > a { padding: 16px 4px; border-radius: 0; font-size: 19px; }
	.nav__list > li.menu-item-has-children > a { padding-right: 4px; }
	.nav__list > li > a::after { display: none; }
	.nav__toggle { width: 48px; height: 100%; min-height: 48px; padding: 0; justify-self: end; }
	.nav__toggle svg { width: 12px; height: 7px; }
	.nav .sub-menu, .nav .sub-menu .sub-menu { grid-column: 1 / -1; position: static; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 0; border-radius: 0;
		box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; transition: none; }
	.nav .sub-menu::before { display: none; }
	.nav li.is-open > .sub-menu { padding-bottom: 10px; }
	.nav .sub-menu a { padding: 12px 12px; font-size: 16px; color: var(--c-text); }
	.nav .sub-menu .sub-menu a { padding-left: 28px; font-size: 15px; color: var(--c-muted); }
	.nav .sub-menu .nav__toggle { position: static; transform: none; }
	.nav .sub-menu .menu-item-has-children > a { padding-right: 12px; }
	.nav .sub-menu li.is-open > .nav__toggle svg { transform: rotate(180deg); }

	/* Menüpunkte erscheinen beim Öffnen leicht gestaffelt */
	.nav.is-open .nav__list > li, .nav.is-open .nav__cta { animation: nav-in .34s var(--ease-out) both; }
	.nav.is-open .nav__list > li:nth-child(2) { animation-delay: 30ms; }
	.nav.is-open .nav__list > li:nth-child(3) { animation-delay: 60ms; }
	.nav.is-open .nav__list > li:nth-child(4) { animation-delay: 90ms; }
	.nav.is-open .nav__list > li:nth-child(5) { animation-delay: 120ms; }
	.nav.is-open .nav__list > li:nth-child(n+6) { animation-delay: 150ms; }
	.nav.is-open .nav__cta { animation-delay: 180ms; }

	.nav__cta { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 24px; }
	.nav__cta .btn { padding: 16px 22px; font-size: 16px; }
	.nav__phone { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; font: 600 16px/1.2 var(--f-ui); color: var(--c-navy); text-decoration: none; }
	.nav__phone .icon { width: 18px; height: 18px; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-soft); padding-top: 40px; font: 600 1rem/1.25 var(--f-footer); color: rgba(18, 28, 34, .93); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--c-blue); }
.site-footer__grid { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: 29.8fr 22.6fr 22.7fr 24.9fr; gap: 32px 0; }
.site-footer__grid > div { padding: 16px 10px 10px 0; }
.site-footer__grid > .site-footer__brand { padding: 27px 10px 10px; }
.site-footer__brand img { width: 218px; margin-bottom: 5px; }
.site-footer__heading { font: 600 22px/1.1 var(--f-head); color: var(--c-navy); margin: 0 0 20px; }
.site-footer__links { display: grid; gap: 7px; margin-bottom: 18px; }
.site-footer__contact > * { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contact .icon { color: var(--c-navy); margin-top: 2px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c-navy); color: #fff; }
.social a:hover { color: #fff; background: var(--c-blue); }
.social .icon { width: 15px; height: 15px; }
.site-footer__bottom { margin: 10px 16px 0; padding: 20px 10px 30px; border-top: 1px solid #353535; display: grid; justify-items: center; text-align: center; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.site-footer__bottom p { margin: 0; }

/* Übergangsphase: Das Elementor-Kit setzt globale Regeln auf a, button und h1 bis h6 (Spezifität 0,1,1).
   Header und Footer liegen eine Stufe darüber. Fällt mit Elementor weg. */
.site-header .nav__toggle, .site-header .site-header__burger,
.site-header .nav__toggle:hover, .site-header .nav__toggle:focus,
.site-header .site-header__burger:hover, .site-header .site-header__burger:focus { background: none; border: 0; border-radius: 0; box-shadow: none; font: inherit; }
.site-header .nav__toggle, .site-header .nav__toggle:hover, .site-header .nav__toggle:focus { padding: 0; color: var(--c-navy); }
.site-header .sub-menu .nav__toggle, .site-header .sub-menu .nav__toggle:hover, .site-header .sub-menu .nav__toggle:focus { color: var(--c-muted); }
.site-header .site-header__burger { padding: 0; color: var(--c-blue); }
.site-header .nav__list > li > a { color: var(--c-navy); }
.site-header .nav .sub-menu a { color: var(--c-ink); }
.site-header .nav .sub-menu a.mega__card { color: #fff; }
.site-header .nav .sub-menu .current-menu-item > a { color: var(--c-blue); }
.site-header .btn--primary, .site-header .btn--primary:hover { color: #fff; }
.site-header .nav__phone { color: var(--c-navy); }
.site-footer .site-footer__heading { font: 600 22px/1.1 var(--f-head); color: var(--c-navy); margin: 0 0 20px; word-spacing: normal; }
.site-footer .site-footer__grid a, .site-footer .site-footer__bottom a { color: inherit; }
.site-footer .site-footer__grid a:hover, .site-footer .site-footer__bottom a:hover { color: var(--c-blue); }
.site-footer .social a, .site-footer .social a:hover { color: #fff; }
@media (max-width: 1024px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .site-footer__grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* ---------- Aus Elementor übernommene Bausteine (Bedienung: layout.js) ---------- */
.swiper[data-carousel] { --n: var(--spv); position: relative; overflow: hidden; }
@media (max-width: 1024px) { .swiper[data-carousel] { --n: var(--spv-t); } }
@media (max-width: 767px) { .swiper[data-carousel] { --n: var(--spv-m); } }
.swiper[data-carousel] .swiper-wrapper { display: flex; gap: var(--gap); height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; transform: none !important; }
.swiper[data-carousel] .swiper-wrapper::-webkit-scrollbar { display: none; }
.swiper[data-carousel] .swiper-slide { flex: 0 0 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); width: auto !important; max-width: none; margin: 0 !important; scroll-snap-align: start; }

.dlg { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: #fff; overflow: visible; box-shadow: 0 24px 80px rgba(12, 16, 38, .35); }
.dlg::backdrop { background: rgba(12, 16, 38, .62); }
.dlg[open] { animation: dlg-in .22s cubic-bezier(.23, 1, .32, 1); }
@keyframes dlg-in { from { opacity: 0; transform: scale(.96); } }
.dlg > :not(.dlg__close) { max-height: calc(100dvh - 48px); overflow: auto; border-radius: 16px; }
.dlg__close { position: absolute; z-index: 2; top: -14px; right: -14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(12, 16, 38, .25); cursor: pointer; transition: transform .16s cubic-bezier(.23, 1, .32, 1); }
.dlg__close::before, .dlg__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 16px; height: 2px; border-radius: 2px; background: #262257; transform: translate(-50%, -50%) rotate(45deg); }
.dlg__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dlg__close:active { transform: scale(.94); }
.dlg--termin { width: min(1040px, calc(100vw - 32px)); padding: 8px; }
@media (max-width: 600px) { .dlg__close { top: 8px; right: 8px; } }
@media (prefers-reduced-motion: reduce) { .dlg[open] { animation: none; } }

/* Beitragslisten: Vorschaubild füllt die Fläche (ersetzt Elementors Bildanpassung per Skript) */
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: none; }

/* Listen in Fließtexten wie im Original mit Aufzählungszeichen */
.elementor-widget-text-editor ul, .elementor-widget-theme-post-content ul { list-style: disc; padding-left: 1.25em; }
.elementor-widget-text-editor ol, .elementor-widget-theme-post-content ol { padding-left: 1.25em; }

/* OEE-Rechner: Ergebnisfelder wie Eingabefelder, aber nicht bearbeitbar */
.oee output { display: flex; align-items: center; min-height: 2.5em; background: #f4f5f9; font-variant-numeric: tabular-nums; }
.oee__hinweis { display: block; margin-top: .35em; font-size: .8em; opacity: .75; }

/* Karussell-Punkte (früher von der Swiper-Bibliothek gesetzt) */
.swiper-pagination { position: absolute; left: 0; right: 0; bottom: 5px; z-index: 2; display: flex; justify-content: center; gap: calc(var(--swiper-pagination-bullet-horizontal-gap, 6px) * 2); }
.swiper-pagination .swiper-pagination-bullet { width: var(--swiper-pagination-bullet-size, 8px); height: var(--swiper-pagination-bullet-size, 8px); padding: 0; border: 0; border-radius: 50%; min-width: 0; box-shadow: none; background: var(--swiper-pagination-bullet-inactive-color, #000); opacity: var(--swiper-pagination-bullet-inactive-opacity, .2); cursor: pointer; transition: opacity .2s ease; }
.swiper-pagination .swiper-pagination-bullet-active { opacity: 1; background: var(--swiper-pagination-color, var(--swiper-theme-color, #000)); }
.elementor-pagination-position-outside .swiper[data-carousel] { overflow: visible; }
.elementor-pagination-position-outside .swiper-pagination { top: 100%; bottom: auto; height: 24px; align-items: center; }

/* Überschriften mit geänderter Ebene (genau eine H1 je Seite) behalten die Kit-Typografie ihrer alten Ebene.
   Spezifität 0,1,2: über der Kit-Regel, unter den Regeln einzelner Widgets. */
body.elementor-kit-3926 :is(h1, h2, h3):where(.is-h1) { color: var(--e-global-color-primary); font-family: var(--e-global-typography-4778dea-font-family), Sans-serif; font-size: var(--e-global-typography-4778dea-font-size); font-weight: var(--e-global-typography-4778dea-font-weight); text-transform: var(--e-global-typography-4778dea-text-transform); line-height: var(--e-global-typography-4778dea-line-height); word-spacing: normal; }
body.elementor-kit-3926 :is(h1, h2, h3):where(.is-h2) { color: var(--e-global-color-primary); font-family: var(--e-global-typography-9f508a5-font-family), Sans-serif; font-size: var(--e-global-typography-9f508a5-font-size); font-weight: var(--e-global-typography-9f508a5-font-weight); text-transform: var(--e-global-typography-9f508a5-text-transform); line-height: var(--e-global-typography-9f508a5-line-height); word-spacing: var(--e-global-typography-9f508a5-word-spacing); }
body.elementor-kit-3926 :is(h1, h2, h3):where(.is-h3) { color: var(--e-global-color-primary); font-family: var(--e-global-typography-ca9bad1-font-family), Sans-serif; font-size: var(--e-global-typography-ca9bad1-font-size); font-weight: var(--e-global-typography-ca9bad1-font-weight); text-transform: var(--e-global-typography-ca9bad1-text-transform); line-height: var(--e-global-typography-ca9bad1-line-height); word-spacing: var(--e-global-typography-ca9bad1-word-spacing); }

/* Überschriften mit geänderter Ebene (genau eine H1 je Seite) behalten die Kit-Typografie ihrer alten Ebene.
   Spezifität 0,1,2: über der Kit-Regel, unter den Regeln einzelner Widgets. */
body.elementor-kit-3926 :is(h1, h2, h3):where(.is-h1) { color: var(--e-global-color-primary); font-family: var(--e-global-typography-4778dea-font-family), Sans-serif; font-size: var(--e-global-typography-4778dea-font-size); font-weight: var(--e-global-typography-4778dea-font-weight); text-transform: var(--e-global-typography-4778dea-text-transform); line-height: var(--e-global-typography-4778dea-line-height); word-spacing: normal; }
body.elementor-kit-3926 :is(h1, h2, h3):where(.is-h2) { color: var(--e-global-color-primary); font-family: var(--e-global-typography-9f508a5-font-family), Sans-serif; font-size: var(--e-global-typography-9f508a5-font-size); font-weight: var(--e-global-typography-9f508a5-font-weight); text-transform: var(--e-global-typography-9f508a5-text-transform); line-height: var(--e-global-typography-9f508a5-line-height); word-spacing: var(--e-global-typography-9f508a5-word-spacing); }
body.elementor-kit-3926 :is(h1, h2, h3):where(.is-h3) { color: var(--e-global-color-primary); font-family: var(--e-global-typography-ca9bad1-font-family), Sans-serif; font-size: var(--e-global-typography-ca9bad1-font-size); font-weight: var(--e-global-typography-ca9bad1-font-weight); text-transform: var(--e-global-typography-ca9bad1-text-transform); line-height: var(--e-global-typography-ca9bad1-line-height); word-spacing: var(--e-global-typography-ca9bad1-word-spacing); }

/* ---------- Landingpage-Bausteine (lp-), z. B. /purafil-deutschland/ ---------- */
.lp-sec { padding: clamp(64px, 8vw, 112px) 0; }
.lp-wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.lp-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 600 15px/1.2 var(--f-ui); color: var(--c-blue); }
.lp-eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.lp-sec .lp-h2 { max-width: 22ch; margin: 0 0 20px; font: 700 clamp(30px, 3.4vw, 46px)/1.1 var(--f-head); color: var(--c-ink); letter-spacing: -.01em; text-wrap: balance; }
.lp-lead { max-width: 62ch; margin: 0 0 28px; font: 400 clamp(16px, 1.3vw, 18px)/1.6 var(--f-text); color: var(--c-text); }
.lp-note { margin: 28px 0 0; font: 500 16px/1.5 var(--f-text); color: var(--c-muted); }

.lp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.lp-chips li { padding: 9px 16px; border-radius: var(--radius-pill); background: rgba(20, 68, 139, .07); font: 600 14px/1.2 var(--f-ui); color: var(--c-navy); }

.lp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-card { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px; border-radius: 18px; background: var(--c-soft); text-decoration: none; color: var(--c-text);
	border: 1px solid rgba(38, 34, 87, .06); transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s ease; }
.lp-card__title { font: 700 20px/1.2 var(--f-head); color: var(--c-navy); }
.lp-card__text { font: 400 15px/1.5 var(--f-text); color: var(--c-text); }
a.lp-card::after { content: 'Mehr erfahren'; margin-top: auto; padding-top: 6px; font: 600 14px/1 var(--f-ui); color: var(--c-blue); }
@media (hover: hover) and (pointer: fine) {
	a.lp-card:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 18px 36px -18px rgba(38, 34, 87, .4); }
}

.lp-warum { background: linear-gradient(160deg, var(--c-navy) 0%, #1b2f6e 100%); color: #fff; }
.lp-warum .lp-h2, .lp-warum .lp-checks strong { color: #fff; }
.lp-warum .lp-eyebrow { color: #a9c3ee; }
.lp-warum .lp-lead, .lp-warum .lp-checks li { color: rgba(255, 255, 255, .82); }
.lp-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.lp-checks { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.lp-checks li { position: relative; padding-left: 32px; font: 400 16px/1.55 var(--f-text); }
.lp-checks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #71b48d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lp-checks strong { font-weight: 700; }
.lp-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.lp-steps li { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 400 15px/1.5 var(--f-text); color: rgba(255, 255, 255, .82); }
.lp-steps strong { display: block; margin-bottom: 4px; font: 700 18px/1.2 var(--f-head); color: #fff; }
.lp-steps__n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--c-navy); font: 700 17px/1 var(--f-ui); }

@media (max-width: 1024px) {
	.lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lp-split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.lp-grid { grid-template-columns: 1fr; }
	.lp-chips li { font-size: 13px; padding: 8px 13px; }
}
