/**
 * Leistungen page — CPT overview + FAQ
 */

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

.leistungen-page__hero {
	padding: clamp(3rem, 8vw, 5rem) var(--wc-section-padding-x) clamp(2rem, 5vw, 3rem);
	text-align: center;
}

.leistungen-page__title {
	margin: 0;
	font-family: var(--wc-font-heading);
	font-size: clamp(2.5rem, 8vw, 5rem);
	font-weight: var(--wc-font-weight-bold);
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-transform: uppercase;
}

.leistungen-page__title-part {
	display: block;
	color: var(--wc-color-black);
}

.leistungen-page__title-part--accent {
	color: var(--wc-color-brand);
}

.leistungen-page__list {
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 5vw, 3.5rem);
	max-width: var(--wc-container-max);
	margin: 0 auto;
	padding: 0 var(--wc-section-padding-x) clamp(4rem, 10vw, 6rem);
}

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

.leistungen-page__media {
	min-width: 0;
}

.leistungen-page__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 18rem;
	object-fit: cover;
	border-radius: 1.75rem;
}

.leistungen-page__image--placeholder {
	min-height: 18rem;
	background: var(--wc-color-bg-muted);
	border-radius: 1.75rem;
}

.leistungen-page__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 18rem;
	padding: clamp(1.75rem, 4vw, 2.5rem);
	border-radius: 1.75rem;
}

.leistungen-page__card--black {
	color: var(--wc-color-text-inverse);
	background: var(--wc-color-black);
}

.leistungen-page__card--red {
	color: var(--wc-color-text-inverse);
	background: var(--wc-color-brand);
}

.leistungen-page__card--white {
	color: var(--wc-color-black);
	background: var(--wc-color-bg);
	border: 1px solid var(--wc-color-border);
}

.leistungen-page__card-title {
	margin: 0 0 1.25rem;
	font-family: var(--wc-font-heading);
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: var(--wc-font-weight-bold);
	line-height: var(--wc-line-height-snug);
	text-transform: uppercase;
	letter-spacing: 0.01em;
}

.leistungen-page__card-text {
	flex: 1;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	line-height: var(--wc-line-height-normal);
}

.leistungen-page__card-text p {
	margin: 0 0 0.5rem;
}

.leistungen-page__card--black .leistungen-page__card-text,
.leistungen-page__card--red .leistungen-page__card-text {
	color: rgb(255 255 255 / 88%);
}

.leistungen-page__link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	align-self: flex-end;
	margin-top: 1.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: inherit;
	transition: opacity var(--wc-transition);
}

.leistungen-page__link:hover,
.leistungen-page__link:focus {
	opacity: 0.85;
	color: inherit;
}

.leistungen-page__link-arrow {
	display: inline-flex;
	flex: 1 1 auto;
	max-width: 12rem;
}

.leistungen-page__link-arrow svg {
	width: 100%;
	height: auto;
}

.leistungen-page__empty {
	padding: 2rem var(--wc-section-padding-x) 4rem;
	text-align: center;
	color: var(--wc-color-text-muted);
}

.site-main--leistungen .faq {
	background: var(--wc-color-bg-cta);
}

@media (max-width: 900px) {
	.leistungen-page__item {
		grid-template-columns: 1fr;
	}

	.leistungen-page__image,
	.leistungen-page__image--placeholder {
		min-height: 14rem;
	}

	.leistungen-page__card {
		min-height: auto;
	}
}

@media (min-width: 901px) {
	.faq__layout {
		grid-template-columns: minmax(12rem, 1fr) minmax(0, 1.4fr);
		gap: 3rem;
	}
}

/* —— Single Leistung (Unterseite) —— */
.site-main--leistung-single {
	background: var(--wc-color-bg);
}

.leistung-single__shell {
	max-width: var(--wc-container-max);
	margin: 0 auto;
	padding: 2rem var(--wc-section-padding-x) 0;
}

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

.leistung-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);
}

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

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

.leistung-single__title {
	margin: 0 0 clamp(2rem, 5vw, 3rem);
	font-family: var(--wc-font-heading);
	font-size: clamp(2rem, 5vw, 3.25rem);
	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);
}

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

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

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

.leistung-single__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.leistung-single__feature-card {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	padding: 1.25rem 1.35rem;
	background: var(--wc-color-bg);
	border: 1px solid var(--wc-color-border);
	border-radius: 1.25rem;
	box-shadow: 0 8px 24px rgb(0 0 0 / 6%);
}

.leistung-single__feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--wc-color-brand);
	background: rgb(230 40 42 / 8%);
	border-radius: 0.75rem;
}

.leistung-single__feature-title {
	margin: 0;
	font-family: var(--wc-font-heading);
	font-size: var(--wc-font-size-base);
	font-weight: var(--wc-font-weight-bold);
	line-height: var(--wc-line-height-snug);
	color: var(--wc-color-black);
}

.leistung-single__feature-text {
	margin: 0;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	line-height: var(--wc-line-height-normal);
	color: var(--wc-color-text-muted);
}

/* About */
.leistung-single__about {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-inline: calc(50% - 50vw);
	padding: clamp(10rem, 22vw, 16rem) var(--wc-section-padding-x) clamp(3rem, 8vw, 5rem);
	background: var(--wc-color-bg-muted);
	overflow: hidden;
}

.leistung-single__about-banner {
	position: absolute;
	top: clamp(1.25rem, 4vw, 3rem);
	right: 0;
	left: 0;
	width: 100%;
	margin: 0;
	padding: 0 clamp(1rem, 4vw, 3rem);
	box-sizing: border-box;
	font-family: var(--wc-font-heading);
	font-size: clamp(1.35rem, 5.8vw, 7.5rem);
	font-weight: var(--wc-font-weight-bold);
	line-height: 1;
	letter-spacing: -0.02em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--wc-color-black);
	opacity: 0.1;
	pointer-events: none;
	user-select: none;
}

.leistung-single__about-inner {
	position: relative;
	z-index: 1;
	max-width: var(--wc-container-max);
	margin: 0 auto;
	padding-top: 0;
}

.leistung-single__about-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 3rem);
	margin-top: clamp(2.5rem, 7vw, 5rem);
	margin-bottom: 2.5rem;
}

.leistung-single__eyebrow {
	flex: 0 1 auto;
	max-width: min(14rem, 35%);
	margin: 0;
	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: left;
	text-transform: uppercase;
	color: var(--wc-color-text-muted);
}

.leistung-single__about-heading {
	flex: 1 1 auto;
	max-width: min(32rem, 58%);
	margin: 0;
	font-family: var(--wc-font-heading);
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: var(--wc-font-weight-bold);
	line-height: var(--wc-line-height-snug);
	text-align: right;
	color: var(--wc-color-black);
}

/* Galerie: 3 Bilder — Reihenfolge 1 → 2 → 3, gestaffelt */
.leistung-single__gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(0.75rem, 2vw, 1.25rem);
	align-items: start;
	width: 100%;
	margin-bottom: 2.5rem;
}

.leistung-single__gallery-item {
	margin: 0;
	overflow: hidden;
	border-radius: 1.25rem;
	box-shadow: 0 10px 28px rgb(0 0 0 / 8%);
}

.leistung-single__gallery-item--1 {
	grid-column: 1;
	padding-top: 0;
}

.leistung-single__gallery-item--2 {
	grid-column: 2;
	padding-top: clamp(1.5rem, 4vw, 3rem);
}

.leistung-single__gallery-item--3 {
	grid-column: 3;
	padding-top: clamp(3rem, 8vw, 5.5rem);
}

.leistung-single__gallery-item img {
	display: block;
	width: 100%;
	height: clamp(11rem, 22vw, 17rem);
	object-fit: cover;
}

.leistung-single__gallery-item--2 img {
	height: clamp(12rem, 24vw, 18rem);
}

.leistung-single__gallery-item--3 img {
	height: clamp(13rem, 26vw, 19rem);
}

.leistung-single__body {
	max-width: 40rem;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	line-height: var(--wc-line-height-normal);
	color: var(--wc-color-text-soft);
}

/* Details list */
.leistung-single__details {
	padding: clamp(3rem, 8vw, 5rem) 0;
}

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

.leistung-single__details-heading {
	margin: 0 0 2rem;
	font-family: var(--wc-font-heading);
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: var(--wc-font-weight-bold);
	line-height: var(--wc-line-height-snug);
	color: var(--wc-color-black);
}

.leistung-single__details-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.leistung-single__detail-row {
	display: grid;
	grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr);
	gap: 1.5rem 2rem;
	align-items: start;
	padding: 1.5rem 1.75rem;
	background: var(--wc-color-bg);
	border: 1px solid var(--wc-color-border);
	border-radius: 1.25rem;
}

.leistung-single__detail-title {
	margin: 0;
	font-family: var(--wc-font-heading);
	font-size: var(--wc-font-size-lg);
	font-weight: var(--wc-font-weight-bold);
	text-transform: uppercase;
	color: var(--wc-color-black);
}

.leistung-single__detail-text {
	margin: 0;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	line-height: var(--wc-line-height-normal);
	color: var(--wc-color-text-muted);
}

/* Projekte */
.leistung-single__projects {
	padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 6rem);
}

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

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

.leistung-single__projects-line {
	display: block;
	font-family: var(--wc-font-heading);
	font-size: clamp(1.25rem, 3.5vw, 2rem);
	font-weight: var(--wc-font-weight-bold);
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: -0.01em;
	color: var(--wc-color-black);
}

.leistung-single__projects-line--accent {
	color: var(--wc-color-brand);
}

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

.leistung-single__project-link {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: transform var(--wc-transition);
}

.leistung-single__project-link:hover,
.leistung-single__project-link:focus {
	transform: translateY(-4px);
	color: inherit;
}

.leistung-single__project-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 1.25rem;
}

.leistung-single__project-image--placeholder {
	aspect-ratio: 4 / 3;
	background: var(--wc-color-bg-muted);
	border-radius: 1.25rem;
}

.leistung-single__project-label {
	margin: 0.85rem 0 0.35rem;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-xs, 0.75rem);
	font-weight: var(--wc-font-weight-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wc-color-brand);
}

.leistung-single__project-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);
}

.leistung-single__project-meta {
	margin: 0;
	font-family: var(--wc-font-body);
	font-size: var(--wc-font-size-sm);
	color: var(--wc-color-text-muted);
}

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

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

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

/* Gallery-Band (section-gallery) auf Single Leistung */
.leistung-single__gallery-band {
	margin-top: 0;
}

.leistung-single__gallery-band .gallery-section--leistung-single {
	padding: clamp(4rem, 10vw, 6rem) var(--wc-section-padding-x);
	background: var(--wc-color-bg);
	border-top: 1px solid var(--wc-color-border);
}

.leistung-single__gallery-band .gallery-section__inner {
	max-width: var(--wc-container-max);
}

.leistung-single__gallery-band .gallery-section__headline {
	margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.leistung-single__gallery-band .gallery-section__title {
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	line-height: 1.25;
	color: var(--wc-color-black);
}

.leistung-single__gallery-band .gallery-section__highlight {
	text-decoration-color: var(--wc-color-brand);
	color: var(--wc-color-black);
}

.leistung-single__gallery-band .gallery-section__grid {
	gap: clamp(1rem, 3vw, 1.5rem);
}

.leistung-single__gallery-band .gallery-section__media {
	border-radius: 1.25rem;
	box-shadow: 0 12px 32px rgb(0 0 0 / 8%);
}

.leistung-single__gallery-band .gallery-section__media img,
.leistung-single__gallery-band .gallery-section__media-placeholder {
	height: clamp(14rem, 32vw, 22rem);
}

.leistung-single__gallery-band .gallery-section__card--center .gallery-section__media img,
.leistung-single__gallery-band .gallery-section__card--center .gallery-section__media-placeholder {
	height: calc(clamp(14rem, 32vw, 22rem) + 2rem);
}

.leistung-single__gallery-band .gallery-section__card-title {
	font-size: clamp(0.9rem, 2vw, 1rem);
}

@media (max-width: 768px) {
	.leistung-single__features {
		grid-template-columns: 1fr;
	}

	.leistung-single__gallery-band .gallery-section--leistung-single {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.leistung-single__gallery {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.leistung-single__gallery-item,
	.leistung-single__gallery-item--1,
	.leistung-single__gallery-item--2,
	.leistung-single__gallery-item--3 {
		grid-column: auto;
		padding-top: 0;
		max-width: none;
	}

	.leistung-single__gallery-item img,
	.leistung-single__gallery-item--2 img,
	.leistung-single__gallery-item--3 img {
		height: clamp(12rem, 45vw, 16rem);
	}

	.leistung-single__detail-row {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}

	.leistung-single__projects-grid {
		grid-template-columns: 1fr;
	}

	.leistung-single__about-banner {
		font-size: clamp(0.85rem, 4.2vw, 3.5rem);
		letter-spacing: -0.03em;
	}

	.leistung-single__about-head {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 2rem;
	}

	.leistung-single__eyebrow,
	.leistung-single__about-heading {
		max-width: none;
		text-align: left;
	}
}
