/**
 * Einsatzbereiche — Single (Layout wie Projekt-Single)
 */

.site-main--bereich-single {
	background: var(--wc-color-bg);
}

.bereich-single__shell {
	max-width: var(--wc-container-max);
	margin: 0 auto;
	padding: 4rem var(--wc-section-padding-x) clamp(3rem, 8vw, 5rem);
}

.bereich-single__top {
	margin-bottom: 1.5rem;
}

.bereich-single__back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	font-weight: var(--wc-font-weight-medium);
	text-decoration: none;
	color: var(--wc-color-text-muted);
	transition: color var(--wc-transition);
}

.bereich-single__back:hover,
.bereich-single__back:focus-visible {
	color: var(--wc-color-brand);
}

.bereich-single__intro {
	margin-bottom: clamp(2rem, 5vw, 3rem);
}

.bereich-single__label {
	margin: 0 0 0.75rem;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-xs, 0.75rem);
	font-weight: var(--wc-font-weight-bold);
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	color: var(--wc-color-brand);
}

.bereich-single__title {
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	font-family: var(--wc-font-heading);
	font-size: var(--wc-heading-single);
	font-weight: var(--wc-font-weight-bold);
	line-height: var(--wc-line-height-tight);
	letter-spacing: -0.02em;
	text-align: center;
	text-transform: uppercase;
	color: var(--wc-color-black);
}

.bereich-single__hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2rem);
	align-items: stretch;
}

.bereich-single__hero-media {
	min-width: 0;
}

.bereich-single__hero-image {
	display: block;
	width: 100%;
	min-height: 24rem;
	object-fit: cover;
	border-radius: 1.25rem;
	box-shadow: var(--wc-shadow-lg);
}

.bereich-single__hero-image--placeholder {
	min-height: 24rem;
	background: var(--wc-color-bg-muted);
	border-radius: 1.25rem;
}

.bereich-single__aside {
	display: flex;
	align-items: center;
	min-height: 100%;
}

.bereich-single__summary {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(1rem, 2.5vw, 1.5rem);
	width: 100%;
	max-width: 28rem;
}

.bereich-single__summary-heading {
	margin: 0;
	font-family: var(--wc-font-heading);
	font-size: var(--wc-heading-card-fluid);
	font-weight: var(--wc-font-weight-bold);
	line-height: var(--wc-line-height-snug);
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--wc-color-black);
}

.bereich-single__summary-text {
	margin: 0;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-base);
	line-height: var(--wc-line-height-normal);
	color: var(--wc-color-text);
}

.bereich-single__cta {
	margin-top: 0.25rem;
}

.bereich-single__content {
	margin-top: clamp(2rem, 5vw, 3rem);
}

.bereich-single__body {
	max-width: none;
	padding: clamp(1.75rem, 4vw, 2.75rem);
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-base);
	line-height: var(--wc-line-height-normal);
	color: var(--wc-color-text);
	background: var(--wc-color-bg);
	border: 1px solid var(--wc-color-border);
	border-radius: 1.25rem;
	box-shadow: var(--wc-shadow-card-sm);
}

.bereich-single__body > :first-child {
	margin-top: 0;
}

.bereich-single__body > :last-child {
	margin-bottom: 0;
}

.bereich-single__body p {
	margin: 0 0 1.125rem;
}

.bereich-single__body p:last-child {
	margin-bottom: 0;
}

.bereich-single__body h2,
.bereich-single__body h3,
.bereich-single__body h4,
.bereich-single__body .wp-block-heading {
	margin: 2rem 0 0.875rem;
	font-family: var(--wc-font-heading);
	font-weight: var(--wc-font-weight-bold);
	line-height: var(--wc-line-height-snug);
	color: var(--wc-color-black);
}

.bereich-single__body h2 {
	font-size: var(--wc-heading-card);
}

.bereich-single__body h3 {
	font-size: var(--wc-font-size-lg);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.bereich-single__body a {
	font-weight: var(--wc-font-weight-medium);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	text-decoration-color: rgba(230, 40, 42, 0.35);
	color: var(--wc-color-brand);
	transition: color var(--wc-transition), text-decoration-color var(--wc-transition);
}

.bereich-single__body a:hover,
.bereich-single__body a:focus-visible {
	color: var(--wc-color-black);
	text-decoration-color: currentColor;
}

.bereich-single__body ul,
.bereich-single__body ol,
.bereich-single__body .wp-block-list {
	margin: 0 0 1.25rem;
	padding-left: 1.35rem;
}

.bereich-single__body li {
	margin-bottom: 0.5rem;
}

.bereich-single__body li::marker {
	color: var(--wc-color-brand);
}

.bereich-single__body img,
.bereich-single__body .wp-block-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
	box-shadow: var(--wc-shadow-card);
}

.bereich-single__body::after {
	content: "";
	display: table;
	clear: both;
}

/* Related */
.bereich-single__related {
	padding: clamp(3rem, 8vw, 5rem) var(--wc-section-padding-x) clamp(4rem, 10vw, 6rem);
	background: var(--wc-color-bg-muted);
	border-top: 1px solid var(--wc-color-border);
}

.bereich-single__related-inner {
	max-width: var(--wc-container-max);
	margin: 0 auto;
}

.bereich-single__related-title {
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	text-align: center;
}

.bereich-single__related-line {
	display: block;
	font-family: var(--wc-font-heading);
	font-size: var(--wc-heading-subsection);
	font-weight: var(--wc-font-weight-bold);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--wc-color-black);
}

.bereich-single__related-line--accent {
	color: var(--wc-color-brand);
}

.bereich-single__related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 1.75rem);
}

.bereich-single__related-more {
	margin: clamp(2rem, 5vw, 3rem) 0 0;
	text-align: center;
}

.bereich-single__related-link {
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	font-weight: var(--wc-font-weight-semibold);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	color: var(--wc-color-brand);
}

.bereich-single__related-link:hover,
.bereich-single__related-link:focus-visible {
	color: var(--wc-color-black);
}

/* Related cards */
.bereich-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.bereich-card__media {
	overflow: hidden;
	margin-bottom: 0.85rem;
	border-radius: 1.25rem;
	box-shadow: var(--wc-shadow-card);
}

.bereich-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.bereich-card__image--placeholder {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--wc-color-bg);
}

.bereich-card__title {
	margin: 0 0 0.35rem;
	font-family: var(--wc-font-heading);
	font-size: var(--wc-font-size-base);
	font-weight: var(--wc-font-weight-bold);
	text-transform: uppercase;
	color: var(--wc-color-black);
	transition: color var(--wc-transition);
}

.bereich-card__excerpt {
	margin: 0;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	line-height: 1.5;
	color: var(--wc-color-text-muted);
}

@media (max-width: 768px) {
	.bereich-single__shell {
		padding-top: 1rem;
	}
}

@media (max-width: 1024px) {
	.bereich-single__hero-grid {
		grid-template-columns: 1fr;
	}

	.bereich-single__hero-image,
	.bereich-single__hero-image--placeholder {
		min-height: 16rem;
	}

	.bereich-single__aside {
		align-items: flex-start;
	}

	.bereich-single__summary {
		max-width: none;
	}

	.bereich-single__related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.bereich-single__related-grid {
		grid-template-columns: 1fr;
	}

	.bereich-single__body {
		padding: 1.5rem 1.25rem;
	}
}
