/* Ergänzungen zur statischen Seite, auf allen Seiten eingebunden (custom.css ist das CSS aus WordPress und fehlt auf manchen Seiten) */

/* ── Ersatz für Elementor-Skripte (siehe site.js) ── */

/* Header bleibt oben stehen (vorher Elementor Pro "Sticky") */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 99;
}

/* Desktop-Menü: Untermenüs bei Hover/Fokus (vorher SmartMenus) */
.elementor-nav-menu--main .menu-item-has-children:hover > ul.sub-menu,
.elementor-nav-menu--main .menu-item-has-children:focus-within > ul.sub-menu {
	display: block !important;
	z-index: 100;
}

/* Popup-Vorlagen erst im Dialog anzeigen */
[data-elementor-type="popup"] {
	display: none;
}

.bk-dialog [data-elementor-type="popup"] {
	display: block;
}

.bk-dialog {
	padding: 0;
	border: 0;
	background: transparent;
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 32px);
	overflow: visible;
}

.bk-dialog::backdrop {
	background: rgba(0, 0, 0, .8);
}

.bk-dialog__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--e-global-color-879fbc8, #1D5191);
	color: #fff;
	cursor: pointer;
}

/* Brand-Blau auch bei Hover/Fokus: das Theme färbt Buttons dort sonst pink */
dialog.bk-dialog button.bk-dialog__close,
dialog.bk-dialog button.bk-dialog__close:hover,
dialog.bk-dialog button.bk-dialog__close:focus {
	background: var(--e-global-color-879fbc8, #1D5191);
	color: #fff;
}

dialog.bk-dialog button.bk-dialog__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.bk-popup {
	width: 640px;
	background: #fff;
	box-shadow: 2px 8px 23px 3px rgba(0, 0, 0, .2);
	overflow: auto;
}

.bk-lightbox__figure {
	margin: 0;
	text-align: center;
}

.bk-lightbox__figure img {
	display: block;
	max-width: calc(100vw - 32px);
	max-height: calc(100dvh - 96px);
	width: auto;
	height: auto;
	margin: 0 auto;
}

.bk-lightbox__figure figcaption {
	margin-top: 12px;
	color: #fff;
}

/* Footer mobil: "Hilfreiche Links" über die volle Breite wie "Kontakt" (Elementor: 50%, rechtsbündig) */
@media (max-width: 767px) {
	.elementor-839 .elementor-element.elementor-element-5e82dbae.e-con {
		--width: 100%;
	}
}

/* Kopfbereich wie auf /loesungen/ (Verlauf, zentrierte Überschrift mit Untertitel), z. B. auf /rezensionen/ */
.bk-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 25px;
	min-height: 20vh;
	margin-bottom: 100px;
	padding: 50px 25px;
	background-image: linear-gradient(170deg, #FDA6322B 0%, #FF5C5A33 100%);
	text-align: center;
}

.bk-hero .bk-hero__title {
	margin: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.3;
	color: #000;
}

.bk-hero .bk-hero__text {
	margin: 0;
	font-family: "Nunito Sans", sans-serif;
	font-size: 22px;
	font-weight: 400;
	color: #000;
}

@media (max-width: 1024px) {
	.bk-hero {
		margin-bottom: 50px;
	}

	.bk-hero .bk-hero__title {
		font-size: 42px;
	}
}

@media (max-width: 767px) {
	.bk-hero .bk-hero__title {
		font-size: 32px;
	}

	.bk-hero .bk-hero__text {
		font-size: 16px;
	}
}
