/**
 * bc-hotspot-banner v2 – Text-Spalte + Image Hotspot (2-Spalten)
 */

.seico-hotspot-banner {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: visible;
	--hotspot-banner-padding-active: var(--hotspot-banner-padding-desktop, 40px);
	--hotspot-banner-radius: 20px;
	--hotspot-banner-fade: linear-gradient(
		to right,
		var(--hotspot-banner-bg, var(--color-primary, #062b45)) 0%,
		transparent 42%
	);
}

.seico-hotspot-banner__grid {
	display: grid;
	width: 100%;
	align-items: stretch;
	min-height: 0;
	overflow: visible;
}

.seico-hotspot-banner__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	background-color: var(--hotspot-banner-bg, var(--color-primary, #062b45));
	padding: max(32px, var(--hotspot-banner-padding-active, 40px));
	border-radius: var(--hotspot-banner-radius, 20px) 0 0 var(--hotspot-banner-radius, 20px);
}

.seico-hotspot-banner__content-inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

/* Text auf dunklem Hintergrund (Default Primary) */
.seico-hotspot-banner.is-dark-bg .seico-hotspot-banner__preline {
	color: var(--color-primary-light, #28a0ed);
}

.seico-hotspot-banner.is-dark-bg .seico-hotspot-banner__headline {
	color: #ffffff;
}

.seico-hotspot-banner.is-dark-bg .seico-hotspot-banner__message {
	color: var(--hero-box-preline, #dbf0ff);
}

/* Text auf hellem Hintergrund (z. B. COOL.Edition #DBF0FF) */
.seico-hotspot-banner.is-light-bg .seico-hotspot-banner__preline {
	color: var(--color-primary-bright, #0062a7);
}

.seico-hotspot-banner.is-light-bg .seico-hotspot-banner__headline {
	color: var(--color-primary, #062b45);
}

.seico-hotspot-banner.is-light-bg .seico-hotspot-banner__message {
	color: var(--text-dark, #192226);
}

.seico-hotspot-banner__preline {
	margin: 0;
	font-size: var(--font-size-lg);
	font-weight: 400;
	line-height: 1.2;
}

.seico-hotspot-banner__headline {
	margin: 0;
	font-weight: 500;
	line-height: 1.2;
}

.seico-hotspot-banner__message {
	margin: 0;
	font-size: var(--font-size-base);
	line-height: 1.6;
}

.seico-hotspot-banner__media {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 280px;
	align-self: stretch;
	overflow: visible;
	border-radius: 0 var(--hotspot-banner-radius, 20px) var(--hotspot-banner-radius, 20px) 0;
}

.seico-hotspot-banner__grid:not(:has(.seico-hotspot-banner__content)) .seico-hotspot-banner__media {
	border-radius: var(--hotspot-banner-radius, 20px);
}

.seico-hotspot-banner__grid:not(:has(.seico-hotspot-banner__content)) .seico-hotspot-banner__hotspot .seico-image-hotspot__image-layer,
.seico-hotspot-banner__grid:not(:has(.seico-hotspot-banner__content)) .seico-hotspot-banner__hotspot .seico-image-hotspot__overlay-layer {
	border-radius: var(--hotspot-banner-radius, 20px);
}

.seico-hotspot-banner.is-cover-image .seico-hotspot-banner__media {
	height: 100%;
}

/* Fade liegt im Image-Stack (zwischen Base und Overlay); Legacy-Selektor bleibt harmlos. */
.seico-hotspot-banner__fade {
	pointer-events: none;
	background: var(--hotspot-banner-fade);
}

.seico-hotspot-banner__hotspot {
	position: relative;
	z-index: 2;
	width: 100%;
	min-width: 0;
	flex: 1 1 auto;
	min-height: 0;
	overflow: visible;
}

.bc-hotspot-banner-empty {
	margin: 0;
	padding: 1rem;
	color: var(--text-mid, #566268);
}

/* Desktop Lg (≥1441px) */
@media (min-width: 1441px) {
	.seico-hotspot-banner {
		--hotspot-banner-padding-active: var(--hotspot-banner-padding-desktop-lg, var(--hotspot-banner-padding-desktop, 40px));
	}
}

/* Desktop Wide (≥1921px) */
@media (min-width: 1921px) {
	.seico-hotspot-banner {
		--hotspot-banner-padding-active: var(--hotspot-banner-padding-desktop-wide, var(--hotspot-banner-padding-desktop-lg, 40px));
	}
}

/* Tablet portrait (≤991px) – Stack */
@media (max-width: 991px) {
	.seico-hotspot-banner {
		--hotspot-banner-padding-active: var(--hotspot-banner-padding-tablet, 32px);
		--hotspot-banner-fade: linear-gradient(
			to bottom,
			var(--hotspot-banner-bg, var(--color-primary, #062b45)) 0%,
			transparent 35%
		);
	}

	.seico-hotspot-banner:not(.is-custom-fade) {
		--hotspot-banner-fade: linear-gradient(
			to bottom,
			var(--hotspot-banner-bg, var(--color-primary, #062b45)) 0%,
			transparent 35%
		);
	}

	.seico-hotspot-banner__grid {
		grid-template-columns: 1fr !important;
	}

	.seico-hotspot-banner__content {
		border-radius: var(--hotspot-banner-radius, 20px) var(--hotspot-banner-radius, 20px) 0 0;
	}

	.seico-hotspot-banner__media {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
		border-radius: 0 0 var(--hotspot-banner-radius, 20px) var(--hotspot-banner-radius, 20px);
	}

	.seico-hotspot-banner.is-cover-image .seico-hotspot-banner__media {
		height: auto;
	}

	.seico-hotspot-banner__fade {
		position: absolute;
		top: 0;
		right: 0;
		left: 0;
		height: 48px;
		bottom: auto;
		inset: auto;
	}
}

/* Mobile landscape (≤767px) */
@media (max-width: 767px) {
	.seico-hotspot-banner {
		--hotspot-banner-padding-active: var(--hotspot-banner-padding-mobile, var(--hotspot-banner-padding-tablet, 32px));
	}
}

/* Mobile portrait (≤520px) */
@media (max-width: 520px) {
	.seico-hotspot-banner {
		--hotspot-banner-padding-active: var(
			--hotspot-banner-padding-mobile-portrait,
			var(--hotspot-banner-padding-mobile, 32px)
		);
	}

	.seico-hotspot-banner__headline.heading-h2 {
		font-size: var(--font-size-2xl);
	}

	.seico-hotspot-banner__headline.heading-h1 {
		font-size: var(--font-size-3xl);
	}

	.seico-hotspot-banner__preline {
		font-size: var(--font-size-base);
	}
}

@media (prefers-reduced-motion: reduce) {
	.seico-hotspot-banner.seico-reveal {
		opacity: 1;
		transform: none;
	}
}

/* Safety: falls Reveal doch im Canvas landet (z. B. alter HTML-Cache) */
.seico-hotspot-banner.seico-reveal.is-active-element,
.bricks-is-builder .seico-hotspot-banner.seico-reveal,
.bricks-is-builder .seico-hotspot-banner.seico-reveal:not(.is-visible) {
	opacity: 1 !important;
	transform: none !important;
}
