/* 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);
	}
	/* Netto duże + brutto małym drukiem — pasek jest jedynym elementem ceny
	   widocznym przez całą wizytę, więc obie kwoty muszą tu być razem. */
	body.single-mh_model .mh-sticky__prices {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}
	body.single-mh_model .mh-sticky__price {
		color: #FAFAFA;
		font-size: 16px;
		font-weight: 600;
		white-space: nowrap;
	}
	body.single-mh_model .mh-sticky__price-gross {
		color: rgba(250, 250, 250, .72);
		font-size: 11px;
		font-weight: 400;
		line-height: 1.3;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
	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;
}

/* Pełna specyfikacja z arkuszy klientki (pkt 3 poprawek z 28.08.2026).
   Kwot składowych z arkusza nie pokazujemy — ceny są w sekcji „Preis". */
body.single-mh_model .mh-spec-table-wrap {
	margin-top: 32px;
	overflow-x: auto;              /* przewija się tabela, nie cała strona */
	-webkit-overflow-scrolling: touch;
}
body.single-mh_model .mh-spec-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	border-radius: 0;              /* ostre krawędzie — jak reszta strony */
	font-size: 15px;
	line-height: 1.55;
	color: #0F1923;
}
body.single-mh_model .mh-spec-table__caption {
	caption-side: top;
	text-align: left;
	padding-bottom: 12px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8A8F98;
}
/* Motyw maluje każde <th> na ciemno (#0F1923) — w tabeli specyfikacji dawało to
   czarną kolumnę „Position" z czarnym tekstem, czyli nagłówki wierszy znikały.
   Zerujemy tło jawnie; kolory ustawiamy per sekcja tabeli. */
body.single-mh_model .mh-spec-table th,
body.single-mh_model .mh-spec-table td {
	padding: 12px 16px 12px 0;
	text-align: left;
	vertical-align: top;
	background: transparent;
	border-bottom: 1px solid #E2C99A;
}
body.single-mh_model .mh-spec-table thead th {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #8A8F98;
	font-weight: 600;
	white-space: nowrap;
}
body.single-mh_model .mh-spec-table tbody th {
	width: 26%;
	font-weight: 600;
	color: #0F1923;
}
body.single-mh_model .mh-spec-table__qty {
	width: 72px;
	white-space: nowrap;
	text-align: right;
	padding-right: 0;
}

/* 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;
}
/* Rysunek techniczny — sekcja stoi tuż pod galerią, więc podgląd musi być
   czytelny, ale nie może zdominować pierwszego ekranu. Białe tło, bo rzuty
   są kreską na przezroczystości. */
body.single-mh_model .mh-plan {
	margin: 0 0 24px;
	background: #FFFFFF;
	border: 1px solid #E7E3DC;
	padding: 16px;
}
body.single-mh_model .mh-plan__img {
	display: block;
	width: 100%;
	max-height: 520px;
	object-fit: contain;
	margin: 0 auto;
}

/* Sekcja „Video": plakat, film dopiero po najechaniu (mh-model-video.js).
   Kadr i zachowanie 1:1 z kartami katalogu, stąd też ostre krawędzie —
   zaokrąglenia w tym pliku to pozostałość po starszym układzie. */
body.single-mh_model .mh-video-wrap {
	position: relative;
	display: block;
	width: 100%;
	max-height: 640px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0F1923;
	border-radius: 0;
	margin-bottom: 70px;
	cursor: pointer;
}
body.single-mh_model .mh-video__poster,
body.single-mh_model .mh-video__player {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
}
body.single-mh_model .mh-video__player {
	opacity: 0;
	transition: opacity .35s ease;
}
body.single-mh_model .mh-video-wrap.is-playing .mh-video__player { opacity: 1; }

/* Przycisk odtwarzania — wskazówka, że kafel jest interaktywny. Na dotyku to
   realny cel kliknięcia, na desktopie znika, gdy film ruszy. */
body.single-mh_model .mh-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 68px;
	height: 68px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 25, 35, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center/26px no-repeat;
	cursor: pointer;
	transition: opacity .3s ease, background-color .3s ease;
}
body.single-mh_model .mh-video-wrap:hover .mh-video__play { background-color: rgba(15, 25, 35, .75); }
body.single-mh_model .mh-video-wrap.is-playing .mh-video__play { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	body.single-mh_model .mh-video__player { transition: none; }
}

/* Ä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-spec-table { font-size: 14px; }
	body.single-mh_model .mh-spec-table th,
	body.single-mh_model .mh-spec-table td { padding: 10px 12px 10px 0; }
	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; }
}
