/* KUHN blog reading layout: centered, calm and responsive. */
body.single-post.kek-scope .pa-head-inner,
body.single-post.kek-scope .pa-body,
body.single-post.kek-scope .pa-cta {
	margin-left: auto;
	margin-right: auto;
}

body.single-post.kek-scope .pa-head-inner {
	max-width: 72rem;
}

body.single-post.kek-scope .pa-media {
	max-width: 76rem;
	margin-left: auto;
	margin-right: auto;
	border-radius: 1rem;
	box-shadow: 0 1.25rem 3.5rem rgba(20, 32, 38, 0.12);
}

body.single-post.kek-scope .pa-media img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.single-post.kek-scope .pa-body {
	display: block;
	width: min(100%, 72rem);
	max-width: 72rem;
	color: #39433f;
	font-size: 1.1rem;
	line-height: 1.76;
}

/* Override narrow column rules inherited from the theme/page builder. */
body.single-post.kek-scope .pa-body > * {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	grid-column: 1 / -1;
}

body.single-post.kek-scope .pa-body > p:first-child,
body.single-post.kek-scope .pa-body .article-intro {
	font-size: 1.125rem;
	line-height: 1.75;
	color: var(--color-ink, #17211d);
	font-weight: 500;
}

body.single-post.kek-scope .pa-body h2 {
	margin-top: 4.25rem;
	margin-bottom: 1.3rem;
	color: var(--color-ink, #17211d);
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
	scroll-margin-top: 8rem;
}

body.single-post.kek-scope .pa-body h2::before {
	display: block;
	width: 3rem;
	height: 0.24rem;
	margin-bottom: 0.9rem;
	border-radius: 999px;
	background: var(--color-accent, #f8b500);
	content: "";
}

body.single-post.kek-scope .pa-body h3 {
	margin-top: 2rem;
	margin-bottom: 0.55rem;
	color: var(--color-ink, #17211d);
	font-size: 1.18rem;
	line-height: 1.35;
}

body.single-post.kek-scope .pa-body p {
	margin-bottom: 1.2rem;
}

body.single-post.kek-scope .article-figure {
	width: 100%;
	max-width: 70rem;
	margin: 3rem auto 3.4rem;
	overflow: hidden;
	border: 1px solid rgba(20, 54, 43, 0.11);
	border-radius: 1.15rem;
	background: #fff;
	box-shadow: 0 1.4rem 3.5rem rgba(20, 32, 38, 0.12);
}

body.single-post.kek-scope .article-figure img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.single-post.kek-scope .article-figure figcaption {
	position: relative;
	margin: 0;
	padding: 1rem 1.35rem 1.05rem 3.25rem;
	border-top: 1px solid rgba(20, 54, 43, 0.08);
	background: linear-gradient(90deg, #f5f8f6 0%, #fff 100%);
	color: #5d6964;
	font-size: 0.88rem;
	line-height: 1.5;
}

body.single-post.kek-scope .article-figure figcaption::before {
	position: absolute;
	top: 1.02rem;
	left: 1.25rem;
	width: 1.1rem;
	height: 1.1rem;
	border: 0.25rem solid var(--color-accent, #f8b500);
	border-radius: 50%;
	content: "";
}

body.single-post.kek-scope .article-practice-note {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	margin: 2.2rem 0;
	padding: 1.35rem 1.55rem;
	border-radius: 0.9rem;
	background: #0c513b;
	color: #fff;
	box-shadow: 0 1rem 2.5rem rgba(12, 81, 59, 0.16);
}

body.single-post.kek-scope .article-practice-note::before {
	display: grid;
	width: 2.2rem;
	height: 2.2rem;
	place-items: center;
	border-radius: 50%;
	background: var(--color-accent, #f8b500);
	color: #17211d;
	content: "!";
	font-weight: 800;
}

body.single-post.kek-scope .article-practice-note p {
	margin: 0;
	color: #fff;
}

body.single-post.kek-scope .pa-body a {
	color: var(--color-primary, #0c513b);
	font-weight: 650;
	text-decoration-color: rgba(248, 181, 0, 0.9);
	text-decoration-thickness: 0.12em;
	text-underline-offset: 0.18em;
}

body.single-post.kek-scope .pa-body a:hover {
	color: #08734f;
}

body.single-post.kek-scope .pa-body > ul,
body.single-post.kek-scope .pa-body > ol {
	margin: 1.35rem 0 1.8rem;
	padding: 1.2rem 1.45rem 1.2rem 3rem;
	border: 1px solid rgba(20, 54, 43, 0.1);
	border-left: 0.28rem solid var(--color-accent, #f8b500);
	border-radius: 0.75rem;
	background: #f7f9f8;
}

body.single-post.kek-scope .pa-body > ul {
	padding-left: 1.45rem;
	list-style: none;
}

body.single-post.kek-scope .pa-body > ul > li {
	position: relative;
	margin: 0.65rem 0;
	padding-left: 2rem;
}

body.single-post.kek-scope .pa-body > ul > li::before {
	position: absolute;
	top: 0.24em;
	left: 0;
	display: inline-grid;
	width: 1.25rem;
	height: 1.25rem;
	place-items: center;
	border-radius: 50%;
	background: var(--color-primary, #0c513b);
	color: #fff;
	content: "✓";
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
}

body.single-post.kek-scope .pa-body li {
	margin: 0.48rem 0;
	padding-left: 0.2rem;
}

body.single-post.kek-scope .pa-body li::marker {
	color: var(--color-primary, #0c513b);
	font-weight: 800;
}

body.single-post.kek-scope .pa-body blockquote {
	border-left: 0.3rem solid var(--color-accent, #f8b500);
	border-radius: 0 0.75rem 0.75rem 0;
	background: var(--color-surface, #f4f7f5);
	padding: 1.25rem 1.5rem;
}

body.single-post.kek-scope .article-quick-answer {
	margin: 1.75rem 0;
	padding: 1.5rem 1.65rem;
	border: 1px solid rgba(248, 181, 0, 0.45);
	border-top: 0.32rem solid var(--color-accent, #f8b500);
	border-radius: 0.9rem;
	background: linear-gradient(135deg, #fff9e8 0%, #ffffff 68%);
	box-shadow: 0 0.8rem 2.2rem rgba(20, 32, 38, 0.08);
}

body.single-post.kek-scope .article-quick-answer > strong {
	display: inline-flex;
	margin-bottom: 0.4rem;
	color: #8b6200;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.single-post.kek-scope .article-quick-answer p:last-child {
	margin-bottom: 0;
}

body.single-post.kek-scope .article-toc {
	margin: 2rem 0 2.4rem;
	padding: 1.4rem 1.55rem;
	border: 1px solid rgba(20, 54, 43, 0.12);
	border-radius: 0.9rem;
	background: #f5f8f6;
}

body.single-post.kek-scope .article-toc > strong {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--color-primary, #0c513b);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.single-post.kek-scope .article-toc ol {
	margin: 0;
	padding-left: 1.25rem;
}

body.single-post.kek-scope .article-toc li {
	margin: 0.35rem 0;
}

body.single-post.kek-scope .article-key-points {
	margin: 2.25rem 0 3rem;
	padding: 1.7rem 1.8rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, #0a4c39 0%, #116a4d 100%);
	color: #fff;
	box-shadow: 0 1rem 2.8rem rgba(12, 81, 59, 0.18);
}

body.single-post.kek-scope .article-key-points h2 {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 1.45rem;
}

body.single-post.kek-scope .article-key-points h2::before {
	width: 2.4rem;
	height: 0.2rem;
	margin-bottom: 0.7rem;
}

body.single-post.kek-scope .article-key-points ul {
	margin: 0;
	padding-left: 1.25rem;
}

body.single-post.kek-scope .article-key-points li::marker {
	color: var(--color-accent, #f8b500);
}

body.single-post.kek-scope .article-related-services {
	margin: 3.5rem 0 2.5rem;
	padding: 1.7rem;
	border-radius: 1rem;
	background: #f3f6f4;
}

body.single-post.kek-scope .article-related-services h2 {
	margin-top: 0;
	font-size: 1.5rem;
}

body.single-post.kek-scope .article-related-services ul {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.single-post.kek-scope .article-related-services li {
	position: relative;
	margin: 0;
	padding: 1rem 3rem 1rem 1.1rem;
	border: 1px solid rgba(20, 54, 43, 0.12);
	border-radius: 0.75rem;
	background: #fff;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.single-post.kek-scope .article-related-services li::after {
	position: absolute;
	top: 1rem;
	right: 1rem;
	color: var(--color-accent, #f8b500);
	font-size: 1.35rem;
	font-weight: 800;
	content: "→";
}

body.single-post.kek-scope .article-related-services li:hover {
	border-color: rgba(248, 181, 0, 0.75);
	box-shadow: 0 0.65rem 1.8rem rgba(20, 32, 38, 0.09);
}

body.single-post.kek-scope .article-related-services a {
	display: block;
	margin-bottom: 0.25rem;
	color: var(--color-ink, #17211d);
	font-size: 1rem;
	text-decoration: none;
}

body.single-post.kek-scope .article-related-services span {
	display: block;
	color: #65706c;
	font-size: 0.9rem;
	line-height: 1.55;
}

@media (max-width: 767px) {
	body.single-post.kek-scope .pa-media {
		border-radius: 0.75rem;
		box-shadow: 0 0.75rem 2rem rgba(20, 32, 38, 0.1);
	}

	body.single-post.kek-scope .pa-body {
		font-size: 1rem;
		line-height: 1.7;
	}

	body.single-post.kek-scope .article-figure {
		width: 100%;
		margin-top: 2.2rem;
		margin-bottom: 2.6rem;
		border-radius: 0.85rem;
	}

	body.single-post.kek-scope .article-figure figcaption {
		padding-right: 1rem;
		padding-left: 2.9rem;
	}

	body.single-post.kek-scope .pa-body h2 {
		margin-top: 2.8rem;
		font-size: 1.5rem;
	}

	body.single-post.kek-scope .article-quick-answer,
	body.single-post.kek-scope .article-key-points,
	body.single-post.kek-scope .article-related-services {
		padding: 1.25rem;
	}
}

/* Blog overview: clear hierarchy, full-card interaction and visible CTA. */
body.page .kuhn-server-blog-index {
	max-width: 76rem;
	margin: 3rem auto;
	padding: 0 1.25rem;
}

body.page .kuhn-server-blog-index > h2 {
	max-width: 48rem;
	margin: 0.55rem 0 1.75rem;
}

body.page .bl-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

body.page .bl-card {
	position: relative;
	display: flex;
	min-height: 100%;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(20, 54, 43, 0.12);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 0.5rem 1.75rem rgba(20, 32, 38, 0.07);
	cursor: pointer;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

body.page .bl-card:hover,
body.page .bl-card:focus-within {
	border-color: rgba(248, 181, 0, 0.7);
	box-shadow: 0 1.1rem 2.75rem rgba(20, 32, 38, 0.14);
}

body.page .bl-card-media {
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

body.page .bl-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

body.page .bl-card:hover .bl-card-media img {
	transform: scale(1.025);
}

body.page .bl-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.5rem;
}

body.page .bl-card-body h3 {
	margin-top: 0.7rem;
	margin-bottom: 0.8rem;
}

body.page .bl-card-body h3 a {
	color: var(--color-ink, #17211d);
	text-decoration: none;
}

body.page .bl-card-body > p:not(.bl-meta) {
	margin-bottom: 1.4rem;
	color: #59625f;
}

body.page .bl-read-more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	justify-content: center;
	gap: 0.6rem;
	min-height: 2.85rem;
	margin-top: auto;
	padding: 0.72rem 1.15rem;
	border-radius: 999px;
	background: var(--color-accent, #f8b500);
	color: #17211d;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}

body.page .bl-read-more:hover,
body.page .bl-read-more:focus-visible {
	background: var(--color-primary, #0c513b);
	color: #fff;
}

body.page .bl-read-more-arrow {
	font-size: 1.15em;
	transition: transform 180ms ease;
}

body.page .bl-read-more:hover .bl-read-more-arrow,
body.page .bl-read-more:focus-visible .bl-read-more-arrow {
	transform: translateX(0.2rem);
}

@media (max-width: 767px) {
	body.page .bl-grid {
		grid-template-columns: 1fr;
	}

	body.page .bl-card-body {
		padding: 1.25rem;
	}

	body.page .bl-read-more {
		width: 100%;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	body.page .bl-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Mängelatlas: evidence must remain visible instead of being cropped away. */
body.page .atlas-case figure {
	position: relative;
	overflow: hidden;
	background: #0c3329;
}

body.page .atlas-case figure > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

body.page #mangel-geruest figure,
body.page #mangel-kabel-verkehrsweg figure,
body.page #mangel-leitung-beschaedigt figure,
body.page #mangel-leiter figure,
body.page #mangel-hebeband figure,
body.page #mangel-lasthaken figure,
body.page #mangel-kettengehaenge figure,
body.page #mangel-loescheinrichtung figure,
body.page #mangel-feuerloescher figure,
body.page #mangel-notausgang figure,
body.page #mangel-erste-hilfe figure,
body.page #mangel-gasflaschen figure,
body.page #mangel-augenspuelung figure,
body.page #mangel-kabeltrommel figure,
body.page #mangel-seitenschutz-beschaedigt figure {
	aspect-ratio: 3 / 4 !important;
}

body.page #mangel-geruest figure > img,
body.page #mangel-kabel-verkehrsweg figure > img,
body.page #mangel-leitung-beschaedigt figure > img,
body.page #mangel-leiter figure > img,
body.page #mangel-hebeband figure > img,
body.page #mangel-lasthaken figure > img,
body.page #mangel-kettengehaenge figure > img,
body.page #mangel-loescheinrichtung figure > img,
body.page #mangel-feuerloescher figure > img,
body.page #mangel-notausgang figure > img,
body.page #mangel-erste-hilfe figure > img,
body.page #mangel-gasflaschen figure > img,
body.page #mangel-augenspuelung figure > img,
body.page #mangel-kabeltrommel figure > img,
body.page #mangel-seitenschutz-beschaedigt figure > img {
	object-fit: contain !important;
}

/* The fire-fighting equipment is small in the original portrait photograph. */
body.page #mangel-loescheinrichtung figure > img {
	object-fit: cover !important;
	object-position: 66% 48% !important;
	transform: scale(1.24);
}

body.page #mangel-notausgang figure > img {
	object-position: 50% 78% !important;
}

body.page #mangel-gasflaschen figure > img {
	object-position: 50% 45% !important;
}

body.page .atlas-case figcaption {
	z-index: 2;
}

/* Strong, crawlable entry point to the visual Mängelatlas. */
.kuhn-atlas-promo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
	width: min(100% - 2rem, 1180px);
	margin: clamp(3rem, 7vw, 6rem) auto;
	padding: clamp(1.6rem, 4vw, 3rem);
	border: 1px solid rgba(12, 81, 59, 0.2);
	border-top: 4px solid #f8b500;
	border-radius: 18px;
	background: linear-gradient(135deg, #f7faf8 0%, #ffffff 68%);
	box-shadow: 0 20px 55px rgba(17, 39, 31, 0.09);
}

.kuhn-atlas-promo-kicker {
	display: block;
	margin-bottom: 0.65rem;
	color: #9a6900;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.kuhn-atlas-promo h2 {
	margin: 0 0 0.8rem;
	color: #171c1a;
	font-size: clamp(1.65rem, 3vw, 2.45rem);
	line-height: 1.08;
}

.kuhn-atlas-promo p {
	max-width: 760px;
	margin: 0;
	color: #4d5753;
	font-size: 1rem;
	line-height: 1.7;
}

.kuhn-atlas-promo-button {
	display: inline-flex;
	gap: 0.65rem;
	align-items: center;
	justify-content: center;
	min-width: 210px;
	padding: 1rem 1.3rem;
	border-radius: 999px;
	background: #f8b500;
	color: #17211d;
	font-weight: 800;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.kuhn-atlas-promo-button:hover,
.kuhn-atlas-promo-button:focus-visible {
	background: #0c513b;
	color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 767px) {
	.kuhn-atlas-promo {
		grid-template-columns: 1fr;
	}

	.kuhn-atlas-promo-button {
		width: 100%;
	}
}
