/* ============================================================
 * SW24 — Home Banner [sw24_home_banner]
 * Exact rebuild from sd24-home-banner-example.html
 * ============================================================ */

.sd24-hero h1,
.sd24-hero h2,
.sd24-hero h3 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }

.sd24-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ============================================================
   FLUSH-UNDER-NAV — kill ALL spacing contributed by Kadence's
   nested wrappers between #inner-wrap and our .sd24-hero.

   Real DOM (homepage):
   #inner-wrap.wrap
     › #primary.content-area
       › .content-container.site-container
         › #main.site-main
           › .content-wrap
             › article.entry.content-bg
               › .entry-content-wrap
                 › .entry-content.single-content
                   › .sd24-hero  ← our banner
   ============================================================ */

.home #inner-wrap,
.home #inner-wrap.wrap,
.home #primary,
.home #primary.content-area,
.home .content-container,
.home .site-container,
.home #main,
.home .site-main,
.home .content-wrap,
.home article.entry,
.home article.content-bg,
.home article.single-entry,
.home .entry-content-wrap,
.home .entry-content,
.home .entry-content.single-content {
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Hide every Kadence/WP scaffolding element that produces vertical
   space above the banner on the homepage. */
.home .entry-header,
.home .entry-hero,
.home .entry-hero-container-inner,
.home .page-hero-section,
.home #kadence-breadcrumbs,
.home .kadence-breadcrumbs,
.home .above-entry-meta,
.home .post-thumbnail-wrap,
.home .post-thumbnail,
.home .woocommerce-notices-wrapper:empty { display: none !important; }

.sd24-hero {
	/* Wrappers above are zeroed on .home, so 100% = viewport width.
	   Keep viewport-width fallback for non-home pages using the shortcode. */
	width: 100%;
	margin: 0;

	background: url('https://softwaredeals24.de/wp-content/uploads/2026/04/Kopie-von-Kopie-von-Ueberschrift-hinzufuegen-17.png') no-repeat center/cover,
		linear-gradient(135deg, #001233 0%, #001d3d 30%, #003566 65%, #0055ff 100%);
	background-blend-mode: overlay;
	position: relative;
	overflow: hidden;
	padding: 56px 0 64px;
	font-family: 'DM Sans', system-ui, sans-serif;
}

/* Non-home pages: full-bleed via viewport hack since wrappers there
   keep their constraints. */
body:not(.home) .sd24-hero {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
.sd24-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	opacity: .03;
	background-image: radial-gradient(circle, #fff 1px, transparent 1px);
	background-size: 44px 44px;
	pointer-events: none;
}

.sd24-hero-inner {
	display: flex;
	gap: 40px;
	align-items: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.sd24-hero-text { flex: 1 1 460px; }

.sd24-hero-logo {
	height: 32px;
	filter: brightness(0) invert(1);
	opacity: .92;
	margin-bottom: 16px;
	object-fit: contain;
}

.sd24-hero-h1 {
	font-size: 50px;
	font-weight: 800;
	color: #fff;
	line-height: 1.06;
	margin: 0 0 14px;
	letter-spacing: -2px;
	font-family: 'Bricolage Grotesque', system-ui, sans-serif;
}
.sd24-hero-h1 span { color: #74b9ff; }

.sd24-hero-p {
	font-size: 16.5px;
	color: rgba(255, 255, 255, .55);
	line-height: 1.7;
	max-width: 490px;
	margin: 0 0 24px;
}

.sd24-hero-cta {
	display: inline-block;
	padding: 14px 30px;
	border-radius: 11px;
	background: #fff;
	color: #001233 !important;
	font-weight: 700;
	font-size: 15.5px;
	font-family: 'DM Sans', system-ui, sans-serif;
	box-shadow: 0 4px 20px rgba(0, 85, 255, .28);
	transition: transform .2s;
	text-decoration: none !important;
}
.sd24-hero-cta:hover,
.sd24-hero-cta:focus {
	transform: translateY(-2px);
	color: #001233 !important;
	text-decoration: none !important;
}

/* Product showcase: three overlapping boxes */
.sd24-hero-showcase {
	flex: 0 1 640px;
	display: block;
	position: relative;
	min-height: 380px;
	padding-right: 10px;
}
.sd24-hero-showcase img {
	height: 360px;
	width: auto;
	object-fit: contain;
	filter: drop-shadow(-8px 16px 32px rgba(0, 0, 0, .45)) drop-shadow(0 4px 10px rgba(0, 0, 0, .3));
	transition: transform .4s cubic-bezier(.2, .8, .2, 1);
	position: absolute;
	bottom: 0;
	right: 0;
}
.sd24-hero-showcase img:nth-child(1) { transform: translateX(-230px); z-index: 1; height: 335px; }
.sd24-hero-showcase img:nth-child(2) { transform: translateX(-115px); z-index: 2; height: 348px; }
.sd24-hero-showcase img:nth-child(3) { transform: translateX(0); z-index: 3; }
.sd24-hero-showcase:hover img:nth-child(1) { transform: translateX(-255px); }
.sd24-hero-showcase:hover img:nth-child(2) { transform: translateX(-128px); }
.sd24-hero-showcase:hover img:nth-child(3) { transform: translateX(-8px); }

@media (max-width: 768px) {
	.sd24-hero { padding: 32px 0 40px; }

	/* Stack: products on top, text below — both centered */
	.sd24-hero-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 0 20px;
	}

	/* Products first */
	.sd24-hero-showcase {
		order: -1;
		flex: 0 0 auto;
		width: 100%;
		min-height: 280px;
		margin: 0;
		padding-right: 0;
		display: flex;
		justify-content: center;
		align-items: flex-end;
	}
	.sd24-hero-showcase img {
		position: absolute;
		bottom: 0;
		left: 50%;
		right: auto;
		height: 240px;
	}
	.sd24-hero-showcase img:nth-child(1) {
		transform: translateX(-180px);
		height: 220px;
	}
	.sd24-hero-showcase img:nth-child(2) {
		transform: translateX(-100px);
		height: 230px;
	}
	.sd24-hero-showcase img:nth-child(3) {
		transform: translateX(-30px);
	}
	/* Disable hover-shift on touch devices */
	.sd24-hero-showcase:hover img:nth-child(1),
	.sd24-hero-showcase:hover img:nth-child(2),
	.sd24-hero-showcase:hover img:nth-child(3) { transform: none; }
	.sd24-hero-showcase:hover img:nth-child(1) { transform: translateX(-180px); }
	.sd24-hero-showcase:hover img:nth-child(2) { transform: translateX(-100px); }
	.sd24-hero-showcase:hover img:nth-child(3) { transform: translateX(-30px); }

	/* Text content — left aligned per screenshot */
	.sd24-hero-text {
		flex: 0 0 auto;
		text-align: left;
		max-width: 100%;
	}
	.sd24-hero-logo { display: none; }
	.sd24-hero-h1 {
		font-size: 30px;
		letter-spacing: -1px;
		margin: 0 0 16px;
	}
	.sd24-hero-p {
		font-size: 15px;
		max-width: 100%;
		margin: 0 0 22px;
	}
	.sd24-hero-cta {
		padding: 13px 24px;
		font-size: 15px;
	}
}

@media (max-width: 480px) {
	.sd24-hero-showcase { min-height: 240px; }
	.sd24-hero-showcase img { height: 200px; }
	.sd24-hero-showcase img:nth-child(1),
	.sd24-hero-showcase:hover img:nth-child(1) {
		transform: translateX(-150px);
		height: 185px;
	}
	.sd24-hero-showcase img:nth-child(2),
	.sd24-hero-showcase:hover img:nth-child(2) {
		transform: translateX(-80px);
		height: 192px;
	}
	.sd24-hero-showcase img:nth-child(3),
	.sd24-hero-showcase:hover img:nth-child(3) {
		transform: translateX(-20px);
	}
	.sd24-hero-h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.sd24-hero-cta,
	.sd24-hero-showcase img { transition: none; }
}
