/**
 * V1.5.8 visual layout corrections.
 *
 * Keeps the existing components and content while separating connector lines
 * from icon tiles and giving narrow viewports deliberate spacing.
 */

/* Connector lines stop before icon tiles instead of touching their edges. */
.cpt-v120-sequence__icon {
	box-shadow: 0 0 0 10px var(--cpsk-v7-paper);
}

.cpt-v120-sequence-section--quality .cpt-v120-sequence__icon {
	box-shadow: 0 0 0 10px var(--cpsk-v7-navy-950);
}

.cpt-v120-supply-flow img {
	position: relative;
	z-index: 2;
	box-shadow: 0 0 0 9px var(--cpsk-v7-paper);
}

/* Content regions grow with text zoom; their normal minimum geometry remains. */
.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-hero__title,
.cpsk-site:not(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-hero__title {
	overflow-wrap: anywhere;
}

.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) :is(
	.cpt-v143-hero-phrase,
	.cpt-v140-hero-emphasis
) {
	white-space: normal;
	overflow-wrap: anywhere;
}

.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) :is(
	.cpt-strength-node h3,
	.cpt-strength-node p,
	.cpt-strength-core strong,
	.cpt-strength-core p,
	.cpsk-v7-section-heading__title,
	.cpsk-v72-process__axis button strong
) {
	overflow-wrap: anywhere;
}

.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) :is(
	.cpsk-v7-section-heading__title,
	.cpsk-v7-cta__title
) :is(span, strong),
.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-solution-rail > li > a {
	white-space: normal;
	overflow-wrap: anywhere;
}

@media (min-width: 961px) {
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process.is-enhanced:not(.is-linear) .cpsk-v72-process__stage {
		height: auto;
		min-height: 440px;
	}
}

/* Match the established gold focus token on the focusable industry panel. */
.cpt-industry-panel:focus-visible {
	outline: 3px solid var(--cpsk-v7-yellow);
	outline-offset: 3px;
}

/* Content sentences use the compact content tier, not label typography. */
.cpt-v120-location-figure figcaption {
	font-size: 14px;
	line-height: 1.55;
}

/* Preserve the existing visual arrows while expanding their interaction area. */
.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-industry-teaser a {
	min-width: 44px;
	min-height: 44px;
}

.cpsk-footer a {
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	padding-block: 7px;
}

/* The About CTA keeps the shared grid but uses a more compact vertical band. */
@media (min-width: 821px) {
	.cpsk-site:is(.cpsk-page--about, .cpsk-page--en-about) .cpsk-v7-section--role {
		padding-top: 88px;
		padding-bottom: 88px;
	}

	.cpsk-site:not(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta,
	.cpsk-site:not(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta__title,
	.cpsk-site:not(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta__copy {
		padding-left: 0;
		margin-left: 0;
	}
}

/* Quality-gate title/icon groups carry the visual weight of the dark band. */
@media (min-width: 821px) {
	.cpsk-site:is(.cpsk-page--quality, .cpsk-page--en-quality) .cpt-v120-sequence--quality .cpt-v120-sequence__icon {
		width: 72px;
		height: 72px;
	}

	.cpsk-site:is(.cpsk-page--quality, .cpsk-page--en-quality) .cpt-v120-sequence--quality h3 {
		font-size: 20px;
		line-height: 1.35;
	}
}

/* The three-region modules already have clear columns; a line through their
 * content adds no information and made the icons look intersected. */
.cpsk-v7-operating-model ul::before {
	display: none;
}

.cpsk-v7-operating-model li {
	gap: 28px;
	padding: 38px 40px;
}

.cpsk-v7-operating-model .cpsk-v7-icon {
	flex: 0 0 auto;
}

.cpsk-v7-section--operating-model .cpsk-v7-section-note {
	margin-top: 32px !important;
}

/* Keep the desktop strength connectors, but leave a quiet area around their
 * fixed icon anchors. */
@media (min-width: 1181px) {
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-node img {
		box-shadow: 0 0 0 10px var(--cpsk-v7-mist);
	}
}

/* At tablet sizes the three-region content is clearer as a calm linear list. */
@media (max-width: 1100px) {
	.cpsk-v7-operating-model ul {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.cpsk-v7-operating-model li {
		min-height: 0;
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-rows: auto;
		align-items: center;
		gap: 28px;
		padding: 28px 32px;
		border-left: 0;
		border-top: 1px solid rgba(142, 221, 240, 0.23);
	}

	.cpsk-v7-operating-model li:first-child {
		border-top: 0;
	}

	.cpsk-v7-operating-model h3 {
		max-width: none;
	}
}

/* Vertical sequences use individual connector segments with a visible gap
 * above and below every icon instead of one line running behind the tiles. */
@media (max-width: 1180px) {
	.cpt-v120-sequence--services::before {
		display: none;
	}

	.cpt-v120-sequence--services > li {
		--cpt-v158-icon-size: 68px;
	}

	.cpt-v120-sequence--services > li:not(:last-child)::after {
		position: absolute;
		z-index: 0;
		top: calc(var(--cpt-v158-icon-size) + 10px);
		bottom: 10px;
		left: calc(var(--cpt-v158-icon-size) / 2);
		width: 1px;
		background: var(--cpt-v120-sequence-line);
		content: "";
	}
}

@media (max-width: 960px) {
	/* The stacked strength cards provide their own clear reading order. Removing
	 * the decorative axis gives icons and long German titles enough space. */
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-system {
		padding-left: 0;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-system::before,
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-core::after,
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-node::before {
		display: none;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-core {
		width: 100%;
		margin-right: 0;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-node {
		width: 100%;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) :is(
		.cpt-v110-strength-section,
		.cpsk-v7-section--key-figures
	) .cpsk-v7-section-heading,
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) :is(
		.cpt-v110-strength-section,
		.cpsk-v7-section--key-figures
	) .cpsk-v7-section-heading > * {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}

@media (max-width: 820px) {
	.cpt-v120-sequence--quality::before,
	.cpt-v120-sequence--contact::before {
		display: none;
	}

	.cpt-v120-sequence--quality > li,
	.cpt-v120-sequence--contact > li {
		--cpt-v158-icon-size: 68px;
	}

	.cpt-v120-sequence--quality > li:not(:last-child)::after,
	.cpt-v120-sequence--contact > li:not(:last-child)::after {
		position: absolute;
		z-index: 0;
		top: calc(var(--cpt-v158-icon-size) + 10px);
		bottom: 10px;
		left: calc(var(--cpt-v158-icon-size) / 2);
		width: 1px;
		background: var(--cpt-v120-sequence-line);
		content: "";
	}

	.cpt-v120-sequence__icon {
		box-shadow: none;
	}

	.cpsk-v7-operating-model li {
		grid-template-columns: 58px minmax(0, 1fr);
		gap: 22px;
		padding: 26px 0;
	}
}

@media (max-width: 640px) {
	.cpt-v120-sequence--services > li,
	.cpt-v120-sequence--quality > li,
	.cpt-v120-sequence--contact > li {
		--cpt-v158-icon-size: 58px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-core {
		padding-right: 20px;
		padding-left: 20px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-node {
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 16px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-strength-node img {
		width: 46px;
		height: 46px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-section--key-figures .cpsk-v7-stats {
		width: 100%;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-section--key-figures .cpsk-v7-stat {
		padding-right: 12px;
		padding-left: 12px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-section--key-figures .cpsk-v7-stat dt {
		max-width: 270px;
		margin-inline: auto;
	}
}

/* Targeted V1.6.3-rc1 home composition corrections. */
@media (min-width: 961px) {
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process.is-enhanced:not(.is-linear) {
		min-height: 2200px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process.is-enhanced:not(.is-linear) .cpt-v163-process-sticky-frame {
		position: sticky;
		z-index: 2;
		top: max(
			calc(var(--cpsk-header-height, 84px) + var(--cpsk-adminbar-height, 0px) + 24px),
			calc(50vh - (var(--cpt-v163-sticky-frame-height, 598px) / 2))
		);
		display: grid;
		grid-area: 1 / 1;
		align-self: start;
		gap: 32px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-v163-process-sticky-frame > .cpsk-v7-section-heading {
		margin-bottom: 0 !important;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process.is-enhanced:not(.is-linear) .cpt-v163-process-sticky-frame > .cpsk-v72-process__stage {
		position: relative;
		top: auto;
		grid-area: auto;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process__axis,
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process__panel {
		width: min(100%, 920px);
		max-width: 920px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process__axis-track {
		left: 0;
		right: 0;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process__axis ol {
		display: flex;
		justify-content: space-between;
		height: 60px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process__axis li {
		position: relative;
		top: auto;
		left: auto;
		flex: 0 0 0;
		width: 0;
		min-width: 0;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v72-process__axis button {
		width: max-content;
		min-width: 132px;
		max-width: 180px;
		transform: translateX(-50%);
		justify-items: center;
	}
}

@media (min-width: 1181px) {
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta {
		grid-template-columns: minmax(0, 720px) minmax(380px, 1fr);
		grid-template-rows: auto minmax(132px, auto);
		column-gap: clamp(64px, 5.56vw, 80px);
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta .cpsk-v7-eyebrow {
		grid-row: 1;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta__title {
		grid-row: 2;
		min-height: 132px;
		align-self: stretch;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta__copy {
		grid-row: 2;
		align-self: start;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-cta .wp-block-buttons {
		grid-row: 2;
		align-self: end;
		margin-top: 0 !important;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-solution-rail > li {
		grid-template-columns: 64px minmax(0, 1fr) 250px;
		column-gap: 28px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-solution-rail > li > a {
		box-sizing: border-box;
		display: grid;
		width: 100%;
		min-width: 0;
		height: 52px;
		grid-template-columns: minmax(0, 1fr) 16px;
		align-self: center;
		justify-self: stretch;
		align-items: center;
		column-gap: 8px;
		padding-right: 16px;
		padding-left: 16px;
		white-space: nowrap;
		overflow-wrap: normal;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-solution-rail > li > a .cpsk-v7-link-icon {
		width: 16px;
		height: 16px;
		justify-self: end;
		margin: 0;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-industry-teaser > li {
		grid-template-rows: 48px minmax(29px, auto) minmax(116px, 1fr) 44px;
	}

	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpsk-v7-industry-teaser a {
		position: absolute;
		right: 24px;
		bottom: 28px;
		box-sizing: border-box;
		width: 44px;
		height: 44px;
		min-width: 44px;
		min-height: 44px;
		margin: 0;
	}
}

@media (max-width: 960px), (prefers-reduced-motion: reduce) {
	.cpsk-site:is(.cpsk-page--home, .cpsk-page--en-home) .cpt-v163-process-sticky-frame {
		display: contents;
	}
}
