/* Targeted corrections from the 21.11.2026 rendered-page measurements. */

/* Service-page jump actions retain their 44px target on every viewport. */
.dm-page-sections a {
	min-height: var(--dm-space-tap, 44px);
	display: inline-flex;
	align-items: center;
}

/* Corporate Design: remove the measured 32px heading margin and 12px nav
 * margin, replacing their combined 44px with the approved 16px. Keep the
 * existing four-row mobile composition and all anchor content intact.
 */
@media (max-width: 768px) {
	body.page-corporate-design #inhalt > .dm-service-page .dm-service-hero h1 {
		grid-row: 1;
		margin-bottom: 0;
	}

	body.page-corporate-design #inhalt > .dm-service-page .dm-service-hero .dm-page-sections {
		grid-row: 2;
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: max-content max-content;
		gap: 0 var(--gutter);
		margin-bottom: var(--dm-space-block, 32px);
		margin-top: 16px !important;
	}

	body.page-corporate-design #inhalt > .dm-service-page .dm-service-hero-art {
		grid-row: 3;
	}

	body.page-corporate-design #inhalt > .dm-service-page .dm-service-lead {
		grid-row: 4;
	}
}

/* Editorial Design: the report measured a five-line title in the narrow
 * tablet range. Give it all 12 real tracks; keep the artwork in its existing
 * 5-track column on the following row so the two never overlap.
 */
@media (min-width: 769px) and (max-width: 1024px) {
	body.page-editorial-design #inhalt > .dm-service-page .dm-service-hero h1 {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	body.page-editorial-design #inhalt > .dm-service-page .dm-service-hero-art {
		grid-column: 1 / 6;
		grid-row: 2 / 4;
	}
}
