/* Soatek Ads-Overlay */

/* ── Feature C: Sections je nach Ads-Traffic aus-/einblenden ─────────────
   Die Klasse soatek-ads-traffic setzt detect.js schon im <head> am <html>. */
.soatek-ads-traffic .soatek-hide-on-ads {
	display: none !important;
}

html:not(.soatek-ads-traffic) .soatek-show-on-ads-only {
	display: none !important;
}


/* ── Feature A: mobile Sticky-Leiste ───────────────────────────────────── */
.soatek-sticky-bar {
	display: none;
}

@media (max-width: 768px) {
	.soatek-sticky-bar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 9990;
		display: flex;
		height: calc(60px + env(safe-area-inset-bottom, 0px));
		padding-bottom: env(safe-area-inset-bottom, 0px);
		box-sizing: border-box;
		background: #ec792c;
		box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
	}

	.soatek-sticky-bar .soatek-sticky-bar__btn {
		display: flex;
		flex: 1 1 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-width: 0;
		color: #fff !important;
		font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.1;
		text-decoration: none !important;
		-webkit-tap-highlight-color: transparent;
		transition: background-color 0.15s ease;
	}

	.soatek-sticky-bar .soatek-sticky-bar__btn + .soatek-sticky-bar__btn {
		border-left: 1px solid rgba(255, 255, 255, 0.3);
	}

	.soatek-sticky-bar .soatek-sticky-bar__btn:active,
	.soatek-sticky-bar .soatek-sticky-bar__btn:focus-visible {
		background-color: #c8611d;
	}

	.soatek-sticky-bar svg {
		flex: none;
		width: 24px;
		height: 24px;
	}

	/* Platz unten, damit die Leiste den Seitenfuss nicht verdeckt */
	body.soatek-sticky-active {
		padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
	}

	/* OneTap-Button (fix unten rechts) ueber die Leiste heben. "translate" statt "transform",
	   weil OneTap transform mit einer Transition belegt. */
	body.soatek-sticky-active .onetap-toggle {
		translate: 0 calc(-60px - env(safe-area-inset-bottom, 0px)) !important;
	}
}


/* ── Feature B: Marken-Hero bei ?marke= ────────────────────────────────── */

/* Original-Text des Heros ausblenden (Platz bleibt erhalten), nur das Hintergrundbild
   scheint durch. Sonst steht der Brizy-Text als Geisterschrift unter dem Overlay. */
.soatek-ads-hero > .brz-section__content > .brz-container {
	visibility: hidden;
}

.soatek-ads-hero-overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
	background: rgba(46, 56, 65, 0.92);
	font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	text-align: left;
}

.soatek-ads-hero-overlay .soatek-ads-hero-overlay__inner {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
}

.soatek-ads-hero-overlay .soatek-ads-hero-overlay__inner > * {
	max-width: 760px;
}

.soatek-ads-hero-overlay .soatek-ads-hero-overlay__badge {
	display: inline-block;
	margin: 0 0 14px;
	padding: 4px 12px;
	border-radius: 999px;
	background: #ec792c;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.4;
}

/* !important gegen h1 { line-height: .8em !important } aus dem Child-Theme */
.soatek-ads-hero-overlay .soatek-ads-hero-overlay__title {
	margin: 0 0 12px;
	color: #fff !important;
	font-family: inherit !important;
	font-size: 1.8rem !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	letter-spacing: normal;
	text-transform: none;
	hyphens: manual;
}

.soatek-ads-hero-overlay .soatek-ads-hero-overlay__text {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
	line-height: 1.45;
}

.soatek-ads-hero-overlay .soatek-ads-hero-overlay__cta {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 6px;
	background: #ec792c;
	color: #fff !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.soatek-ads-hero-overlay .soatek-ads-hero-overlay__cta:hover,
.soatek-ads-hero-overlay .soatek-ads-hero-overlay__cta:focus-visible {
	background: #c8611d;
}

@media (min-width: 769px) {
	.soatek-ads-hero-overlay {
		padding: 32px;
	}

	.soatek-ads-hero-overlay .soatek-ads-hero-overlay__title {
		font-size: 2.5rem !important;
	}
}
