/* Full-width layout for single ModulHaus model pages (mh_model).
 *
 * The Infratech / ThemeREX "wide" body style caps the .content column at
 * ~850px even when the sidebar is hidden. The Elementor "Full Width" page
 * template alone cannot override it because the wrapper markup comes from the
 * theme's header.php/footer.php. These rules, scoped to body.single-mh_model,
 * expand the theme content wrappers so the model template renders edge to edge
 * (header and footer are outside .content and stay untouched). */

/* Remove the theme's 144px top/bottom content padding so the hero sits flush
 * under the header and the last section sits flush on the footer. */
body.single-mh_model .page_content_wrap {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.single-mh_model .content_wrap {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.single-mh_model .content {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Belt-and-suspenders: ensure no stray sidebar column reserves space. */
body.single-mh_model .sidebar_main,
body.single-mh_model .sidebar {
	display: none !important;
}

/* ---- Brand typography (scoped to the model template, not header/footer) */
body.single-mh_model .elementor-7261,
body.single-mh_model .elementor-7261 p,
body.single-mh_model .elementor-7261 li,
body.single-mh_model .elementor-7261 a,
body.single-mh_model .elementor-7261 span,
body.single-mh_model .elementor-7261 input,
body.single-mh_model .elementor-7261 textarea,
body.single-mh_model .elementor-7261 button,
body.single-mh_model .elementor-7261 .mh-spec__value {
	font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.single-mh_model .elementor-7261 h1,
body.single-mh_model .elementor-7261 h2,
body.single-mh_model .elementor-7261 h3,
body.single-mh_model .elementor-7261 h4,
body.single-mh_model .elementor-7261 .elementor-heading-title,
body.single-mh_model .mh-gallery-title {
	font-family: "Hanken Grotesk", "DM Sans", sans-serif;
	font-weight: 600;
	letter-spacing: .2px;
}

/* ---- Hero: bottom-up gradient overlay (image stays visible, text legible).
 * Elementor flex containers render the background overlay as a ::before
 * pseudo-element, so we restyle that. */
body.single-mh_model .elementor-7261 > .elementor-element:first-child::before {
	background-image: linear-gradient(
		to top,
		rgba(15, 25, 35, .9) 0%,
		rgba(15, 25, 35, .55) 45%,
		rgba(15, 25, 35, .2) 100%
	) !important;
	background-color: transparent !important;
	opacity: 1 !important;
}

/* ---- Breadcrumb -------------------------------------------------------- */
body.single-mh_model .mh-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #8A8F98;
}
body.single-mh_model .mh-breadcrumb a {
	color: #8A8F98;
	text-decoration: none;
}
body.single-mh_model .mh-breadcrumb a:hover { color: #C8A96E; }
body.single-mh_model .mh-breadcrumb__current { color: #0F1923; }

/* ---- Mobile sticky price + CTA bar ------------------------------------ */
body.single-mh_model .mh-sticky { display: none; }
@media (max-width: 767px) {
	body.single-mh_model .mh-sticky {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px;
		background: #0F1923;
		box-shadow: 0 -6px 20px rgba(15, 25, 35, .25);
	}
	body.single-mh_model .mh-sticky__price {
		color: #FAFAFA;
		font-size: 16px;
		font-weight: 600;
		white-space: nowrap;
	}
	body.single-mh_model .mh-sticky__btn {
		background: #C8A96E;
		color: #0F1923;
		font-weight: 700;
		padding: 11px 18px;
		border-radius: 6px;
		text-decoration: none;
		white-space: nowrap;
	}
	/* keep the footer clear of the fixed bar */
	body.single-mh_model .footer_wrap,
	body.single-mh_model footer {
		padding-bottom: 64px;
	}
}

/* ---- Composed model content (built by build-model-display.php) -------- */

/* Collapse any shortcode widget that rendered nothing, so empty composed
 * blocks (e.g. no equipment) leave no gap. */
body.single-mh_model .elementor-widget-shortcode .elementor-shortcode:empty {
	display: none;
}

/* Hero key-param pills */
body.single-mh_model .mh-hero-specs {
	list-style: none;
	margin: 4px 0 8px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
body.single-mh_model .mh-hero-specs li {
	color: #FAFAFA;
	background: rgba(250, 250, 250, .12);
	border: 1px solid rgba(226, 201, 154, .5);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 14px;
	line-height: 1.2;
}

/* Technische Daten grid */
body.single-mh_model .mh-spec {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0 24px;
}
body.single-mh_model .mh-spec__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 0;
	border-bottom: 1px solid #E2C99A;
}
body.single-mh_model .mh-spec__label {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8A8F98;
}
body.single-mh_model .mh-spec__value {
	font-size: 22px;
	color: #0F1923;
}

/* Ausstattung */
body.single-mh_model .mh-equip {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}
body.single-mh_model .mh-equip__col h4 {
	color: #0F1923;
	margin: 0 0 8px;
}
body.single-mh_model .mh-equip__sub {
	font-weight: 600;
	color: #0F1923;
	margin: 14px 0 4px;
}
body.single-mh_model .mh-equip ul {
	margin: 0 0 8px;
	padding-left: 18px;
	color: #3a3f47;
}
body.single-mh_model .mh-equip li {
	margin: 2px 0;
}

/* PDF link styled as button + "auf Anfrage" note */
body.single-mh_model .mh-btn {
	display: inline-block;
	background: #0F1923;
	color: #FAFAFA;
	padding: 12px 22px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
}
body.single-mh_model .mh-btn:hover {
	background: #C8A96E;
	color: #0F1923;
}
body.single-mh_model .mh-note {
	color: #5a5f67;
	font-style: italic;
	margin: 0;
}

/* Gallery (heading + grid). Vertical spacing lives on the composed elements so
 * an image-less model produces zero height (no empty band). */
body.single-mh_model .mh-gallery-title {
	margin: 70px 0 24px;
	color: #0F1923;
	font-size: 34px;
}
body.single-mh_model .mh-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 70px;
}
body.single-mh_model .mh-gallery__item img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
}

/* Anchor offset so #anfrage (and any in-page jump) is not hidden behind the
   fixed site header when the "Angebot anfragen" CTA scrolls to the form. */
body.single-mh_model #anfrage {
	scroll-margin-top: 110px;
}

body.single-mh_model .mh-video-title {
	margin: 70px 0 24px;
	color: #0F1923;
	font-size: 34px;
}
body.single-mh_model .mh-video {
	display: block;
	width: 100%;
	max-height: 640px;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #0F1923;
	border-radius: 8px;
	margin-bottom: 70px;
}

/* Ähnliche Modelle — composed cards (server-side, same top category) */
body.single-mh_model .mh-related-title {
	margin: 70px 0 24px;
	color: #0F1923;
	font-size: 34px;
}
body.single-mh_model .mh-related {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 70px;
}
body.single-mh_model .mh-related__card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #FFFFFF;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 25, 35, .08);
	transition: box-shadow .2s ease, transform .2s ease;
}
body.single-mh_model .mh-related__card:hover {
	box-shadow: 0 10px 30px rgba(15, 25, 35, .14);
	transform: translateY(-3px);
}
body.single-mh_model .mh-related__card img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}
body.single-mh_model .mh-related__card h3 {
	margin: 18px 20px 6px;
	font-size: 19px;
	line-height: 1.3;
	color: #0F1923;
}
body.single-mh_model .mh-related__meta {
	margin: 0 20px 14px;
	color: #8A8F98;
	font-size: 14px;
}
body.single-mh_model .mh-related__link {
	display: inline-block;
	margin: 0 20px 20px;
	color: #C8A96E;
	font-weight: 600;
	font-size: 14px;
}

@media (max-width: 767px) {
	body.single-mh_model .mh-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.single-mh_model .mh-equip { grid-template-columns: 1fr; }
	body.single-mh_model .mh-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.single-mh_model .mh-video-title { font-size: 26px; }
	body.single-mh_model .mh-related { grid-template-columns: 1fr; }
}
