/* 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;
	}
}

/* Logo-Leiste "Ein Auszug der Caterer, die bereits mit bookitup arbeiten" (z. B. /catering/) */
.bk-customer-logos {
	width: 100%;
	text-align: center;
}

.bk-customer-logos .bk-customer-logos__title {
	margin: 0 0 20px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	color: #6b7280;
}

/* Foto statt Video im Kundenstimmen-Block */
.bk-testimonial-photo {
	display: block;
	width: 100%;
	max-width: 380px;
	height: auto;
	margin: 0 auto;
	border-radius: 16px;
}

/* Logo-Karussell: zwei gleiche Listen laufen endlos nach links (wie auf start.bookitup.de) */
.bk-marquee {
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.bk-marquee .bk-marquee__list {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 56px;
	margin: 0;
	padding: 0 28px;
	list-style: none;
	animation: bk-marquee 45s linear infinite;
}

.bk-marquee:hover .bk-marquee__list {
	animation-play-state: paused;
}

.bk-marquee .bk-marquee__list img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .6;
	transition: filter .3s, opacity .3s;
}

.bk-marquee .bk-marquee__list img:hover {
	filter: none;
	opacity: 1;
}

@keyframes bk-marquee {
	to {
		transform: translateX(-100%);
	}
}

@media (max-width: 767px) {
	.bk-marquee .bk-marquee__list {
		gap: 36px;
		padding: 0 18px;
	}

	.bk-marquee .bk-marquee__list img {
		height: 34px;
	}
}

/* ── Catering-Seite: Gestaltung wie /fotografen/ ── */
/* !important, weil Elementors CSS pro Element spezifischer ist */

/* Ausrufezeichen gelb statt rot */
.bk-catering .elementor-element-a9fc8bf .ekit-stylish-list-content-icon i {
	color: #FDA632 !important;
}

/* "Deine größte Angst …" als roter Hinweiskasten */
.bk-catering .elementor-element-b17a3ee .ekit-stylish-list-content-wrapper {
	background-color: #F2DEDE !important;
	border-left: 5px solid #E8C4C4 !important;
	border-radius: 0 !important;
}

.bk-catering .elementor-element-b17a3ee .ekit-stylish-list-content-description,
.bk-catering .elementor-element-b17a3ee .ekit-stylish-list-content-description b,
.bk-catering .elementor-element-b17a3ee .ekit-stylish-list-content-description span:not([style*="color"]) {
	color: #A94442 !important;
}

/* Mehr Abstand um "Genau dafür wurde bookitup entwickelt." */
.bk-catering .elementor-element-af8a821 {
	margin-top: 48px;
}

.bk-catering .elementor-element-fec5352 {
	padding-bottom: 64px;
}

@media (max-width: 767px) {
	.bk-catering .elementor-element-af8a821 {
		margin-top: 32px;
	}

	.bk-catering .elementor-element-fec5352 {
		padding-bottom: 40px;
	}
}

/* Kundenstimme dezenter */
.bk-catering .elementor-element-c518e70 h2.elementor-heading-title {
	font-size: 28px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	color: #1a1a2e !important;
}

.bk-catering .elementor-element-c518e70 .elementor-element-478c7d2 p:first-child {
	font-style: italic !important;
	color: #4b5563 !important;
}

.bk-catering .bk-testimonial-photo {
	max-width: 260px;
	border-radius: 50% !important;
	aspect-ratio: 1;
	object-fit: cover;
}

@media (max-width: 767px) {
	.bk-catering .elementor-element-c518e70 h2.elementor-heading-title {
		font-size: 22px !important;
	}

	.bk-catering .bk-testimonial-photo {
		max-width: 200px;
	}
}

/* ── Funktions-Kacheln (Icon-Box "bookitup-module" in einem Kasten, z. B. /catering/, /djs/, /fotografen/):
   schwacher Hintergrund, dünnere und dunklere Schrift, leichtes Anheben beim Überfahren ── */
/* !important, weil Elementors CSS pro Element spezifischer ist */
.e-con:has(> .elementor-widget-icon-box.bookitup-module) {
	background-color: #F5F7FB !important;
	border-color: #E8EDF4 !important;
	transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease;
}

.e-con.bk-revealed:has(> .elementor-widget-icon-box.bookitup-module) {
	transition: opacity .6s ease, transform .25s ease, box-shadow .25s ease;
}

.e-con:has(> .elementor-widget-icon-box.bookitup-module):hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(30, 58, 138, .08);
}

.e-con > .elementor-widget-icon-box.bookitup-module .elementor-icon-box-title {
	font-size: 16px !important;
}

.e-con > .elementor-widget-icon-box.bookitup-module .elementor-icon-box-description,
.e-con > .elementor-widget-icon-box.bookitup-module .elementor-icon-box-description span {
	font-size: 13px !important;
	font-weight: 300 !important;
	line-height: 1.5 !important;
	color: #2F3A4A !important;
}

/* ── Preiskasten "Was kostet bookitup?" (Klassen bk-pricing… im HTML, z. B. /catering/, /djs/, /fotografen/) ── */
/* orange Häkchen */
.bk-pricing .bk-pricing__features .elementor-icon-list-icon i {
	color: #FDA632 !important;
}

/* weniger Abstand nach "Das ist alles enthalten:" */
.bk-pricing .bk-pricing__features {
	gap: 8px !important;
	--gap: 8px !important;
	--row-gap: 8px !important;
}

.bk-pricing .bk-pricing__label p {
	margin-bottom: 0 !important;
}

/* Text nach den Häkchen etwas größer */
.bk-pricing .bk-pricing__features .elementor-icon-list-text {
	font-size: 14px !important;
}

/* ── Animationen (Seiten mit body.bk-animate, siehe site.js) ── */

/* Hero (erster Abschnitt des Seiteninhalts): Inhalte erscheinen nacheinander */
.bk-animate [data-elementor-type="wp-page"] > .e-parent:first-child > .e-con > .elementor-element {
	animation: bk-fade-up .7s ease both;
}

.bk-animate [data-elementor-type="wp-page"] > .e-parent:first-child > .e-con > .elementor-element:nth-child(2) { animation-delay: .1s; }
.bk-animate [data-elementor-type="wp-page"] > .e-parent:first-child > .e-con > .elementor-element:nth-child(3) { animation-delay: .2s; }
.bk-animate [data-elementor-type="wp-page"] > .e-parent:first-child > .e-con > .elementor-element:nth-child(4) { animation-delay: .3s; }
.bk-animate [data-elementor-type="wp-page"] > .e-parent:first-child > .e-con > .elementor-element:nth-child(5) { animation-delay: .4s; }
.bk-animate [data-elementor-type="wp-page"] > .e-parent:first-child > .e-con > .elementor-element:nth-child(6) { animation-delay: .5s; }

/* Glanz auf dem Hero-Button */
.bk-animate .elementor-element-4c91f88 .elementor-button {
	position: relative;
	overflow: hidden;
}

.bk-animate .elementor-element-4c91f88 .elementor-button::after {
	content: "";
	position: absolute;
	top: 0;
	left: -75%;
	width: 50%;
	height: 100%;
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .7), transparent);
	transform: skewX(-20deg);
	animation: bk-shine 4s ease-in-out 1.5s infinite;
	pointer-events: none;
}

/* Einblenden beim Scrollen (Klassen setzt site.js) */
.bk-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}

.bk-reveal.bk-reveal--left {
	transform: translateX(-24px);
}

.bk-reveal.bk-revealed {
	opacity: 1;
	transform: none;
}

@keyframes bk-fade-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes bk-shine {
	0%, 60% {
		left: -75%;
	}

	100% {
		left: 130%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bk-marquee .bk-marquee__list,
	.bk-animate [data-elementor-type="wp-page"] > .e-parent:first-child > .e-con > .elementor-element,
	.bk-animate .elementor-element-4c91f88 .elementor-button::after {
		animation: none;
	}

	.bk-marquee {
		flex-wrap: wrap;
		justify-content: center;
	}

	.bk-marquee .bk-marquee__list[aria-hidden="true"] {
		display: none;
	}

	.bk-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}


/* Footer: Beschreibung neben dem Logo bekommt mehr Breite (Elementor-Original: padding-right 20 % / Tablet 35 %) */
@media (min-width: 768px) {
	.elementor-839 .elementor-element.elementor-element-22478b18 {
		--padding-right: 5%;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.elementor-839 .elementor-element.elementor-element-22478b18 {
		--padding-right: 0%;
	}
}

/* Footer: Logo-Rahmen nur so breit wie das Logo (Elementor-Original: 40 %), damit kein Leerraum vor dem Text entsteht */
@media (min-width: 768px) {
	.elementor-839 .elementor-element.elementor-element-604228a3 .elementor-image-box-wrapper .elementor-image-box-img {
		width: auto;
		flex-shrink: 0;
		margin-right: 20px;
	}
}
