:root {
	--kb-project-ink: #111e2f;
	--kb-project-gold: #ccc18b;
	--kb-project-paper: #f3efe3;
}

/* Ruhiges, zweispaltiges Projektfries innerhalb der Lesespalte. */
.kb-project__content .kb-projektfries {
	margin: clamp(2.5rem, 5vw, 4rem) 0;
	transform: none;
}

.kb-projektfries__buehne {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: clamp(0.65rem, 1.6vw, 1.5rem);
	padding: clamp(1.25rem, 2.5vw, 2.5rem);
	border-block: 1px solid var(--kb-line, rgba(201, 185, 121, 0.46));
	background: rgba(255, 255, 255, 0.018);
}

.kb-projektfries__blatt {
	margin: 0;
	background: #e7e0cd;
	box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.2);
}

.kb-projektfries__blatt img {
	display: block;
	width: 100%;
	height: auto;
	filter: saturate(0.9) contrast(1.02);
}

.kb-projektfries__blatt--weit,
.kb-projektfries__blatt--hoch {
	aspect-ratio: auto;
}

.kb-projektfries > figcaption {
	max-width: 58rem;
	margin: 1.25rem auto 0;
	color: var(--kb-text-muted, #c9c4b5);
	font-size: 0.95rem;
	line-height: 1.65;
	text-align: left;
}

.kb-projektfries > figcaption span {
	display: block;
	margin-bottom: 0.35rem;
	color: var(--kb-gold, #c9b979);
	font-family: var(--kb-font-sans, sans-serif);
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

@media (max-width: 760px) {
	.kb-project__content .kb-projektfries {
		margin: 2rem 0;
	}

	.kb-projektfries__buehne {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
		gap: 0.55rem;
		padding: 0.85rem;
	}

	.kb-projektfries > figcaption {
		margin: 1rem var(--kb-mobile-gutter, 1.4rem) 0;
		font-size: 0.88rem;
	}
}

.single-projekt .site.grid-container,
.single-projekt .site-content,
.single-projekt .content-area,
.single-projekt .site-main {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

body.single-projekt #page.container.grid-container,
body.single-projekt main#primary.kb-project,
body.single-projekt .kb-project__article {
	float: none;
	margin-inline: 0;
	max-width: none;
	width: 100%;
}

.single-projekt .widget-area {
	display: none;
}

.kb-project {
	background: var(--kb-project-ink);
	color: var(--kb-project-paper);
}

.kb-project__article {
	--kb-project-axis-x: clamp(4rem, 10vw, 9rem);
	position: relative;
}

.kb-project__article::before {
	background: rgba(204, 193, 139, 0.72);
	content: "";
	height: clamp(42rem, 52vw, 48rem);
	left: var(--kb-project-axis-x);
	pointer-events: none;
	position: absolute;
	top: clamp(18rem, 40vh, 23rem);
	width: 1px;
	z-index: 3;
}

.kb-project-hero {
	align-items: end;
	display: grid;
	min-height: clamp(35rem, 72vh, 52rem);
	overflow: hidden;
	position: relative;
}

.kb-project-hero > * {
	grid-area: 1 / 1;
}

.kb-project-hero__image {
	height: 100%;
	inset: 0;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.kb-project-hero__image--mobile {
	display: none;
}

.kb-project-hero__shade {
	align-self: stretch;
	background: linear-gradient(180deg, rgba(8, 15, 25, 0.04) 18%, rgba(8, 15, 25, 0.9) 94%);
	z-index: 1;
}

.kb-project-hero__inner {
	margin-inline: auto;
	padding:
		clamp(3rem, 7vw, 6.5rem)
		clamp(1.25rem, 6vw, 5rem)
		clamp(3rem, 7vw, 6.5rem)
		calc(var(--kb-project-axis-x) + clamp(1.5rem, 4vw, 4rem));
	position: relative;
	width: 100%;
	z-index: 2;
}

.kb-project-hero__panel {
	backdrop-filter: blur(2px);
	background: rgba(17, 30, 47, 0.74);
	max-width: 50rem;
	padding: clamp(1.6rem, 3vw, 3rem) clamp(1.75rem, 3.5vw, 4rem);
}

.kb-project-hero__eyebrow,
.kb-project-facts__label {
	color: var(--kb-project-gold);
	font-family: sans-serif;
	font-size: 0.76rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.kb-project-exit span {
	color: rgba(243, 239, 227, 0.72);
	font-family: sans-serif;
	font-size: 0.76rem;
	font-weight: 650;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.kb-project-hero h1 {
	color: var(--kb-project-gold);
	font-size: clamp(3rem, 7vw, 6.7rem);
	line-height: 0.98;
	margin: 0.35rem 0 1rem;
	max-width: 12ch;
	text-wrap: balance;
}

.kb-project-hero__subtitle {
	color: var(--kb-project-gold);
	font-size: clamp(1.25rem, 2.4vw, 2rem);
	font-style: italic;
	margin: 0 0 1.4rem;
	max-width: 34ch;
}

.kb-project-hero__description {
	font-size: clamp(1.05rem, 1.7vw, 1.35rem);
	line-height: 1.55;
	margin: 0;
	max-width: 43rem;
}

.kb-project__layout {
	--kb-project-layout-shift: clamp(2rem, 5vw, 4.5rem);
	display: grid;
	gap: clamp(4rem, 8vw, 8rem);
	grid-template-columns: minmax(14rem, 18rem) minmax(0, 50rem);
	margin-inline: auto;
	padding: clamp(6rem, 9vw, 9rem) clamp(1.25rem, 6vw, 5rem) clamp(4rem, 8vw, 8rem);
	position: relative;
	transform: translateX(var(--kb-project-layout-shift));
	width: min(calc(100% - 2 * var(--kb-project-layout-shift)), 82rem);
}

.kb-project-facts {
	align-self: start;
	border-top: 1px solid var(--kb-project-gold);
	padding-top: 1.25rem;
}

.kb-project-facts dl {
	margin: 1.8rem 0 0;
}

.kb-project-facts dl div {
	border-top: 1px solid rgba(204, 193, 139, 0.25);
	padding: 1rem 0;
}

.kb-project-facts dt {
	color: rgba(243, 239, 227, 0.68);
	font-family: sans-serif;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	margin-bottom: 0.25rem;
	text-transform: uppercase;
}

.kb-project-facts dd {
	line-height: 1.45;
	margin: 0;
}

.kb-project__content {
	font-size: clamp(1.05rem, 1.3vw, 1.2rem);
	line-height: 1.7;
	margin: 0;
	padding-left: clamp(2.5rem, 5vw, 5rem);
}

.kb-project__content > :first-child {
	margin-top: 0;
}

.kb-project__content .kb-projektabschnitt {
	border-top: 1px solid rgba(204, 193, 139, 0.4);
	margin: 0 0 clamp(3.5rem, 5vw, 4.5rem);
	padding-top: 1.5rem;
}

.kb-project__content h2,
.kb-project__content h3,
.kb-project__content h4 {
	color: var(--kb-project-gold);
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.08;
	margin: 0 0 1.4rem;
	text-wrap: balance;
}

.kb-project__content h3,
.kb-project__content h4 {
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.kb-project__content img {
	height: auto;
	max-width: 100%;
}

.kb-project__content .kb-button {
	color: var(--kb-project-ink);
}

.kb-project__content .kb-button:hover,
.kb-project__content .kb-button:focus-visible {
	color: var(--kb-project-ink);
}

.postid-51081 .kb-project-hero__shade {
	background: linear-gradient(180deg, rgba(8, 15, 25, 0.45) 10%, rgba(8, 15, 25, 0.96) 94%);
}

/* Gemeinsame digitale CI der Projektseiten: leise Achse und ruhige Zugänge. */
.kb-project__content .kb-button.gbp-button--primary {
	background: rgba(204, 193, 139, 0.04);
	border: 1px solid rgba(204, 193, 139, 0.7);
	box-shadow: none;
	color: var(--kb-project-gold);
	font-weight: 400;
}

.kb-project__content .kb-button.gbp-button--primary:hover,
.kb-project__content .kb-button.gbp-button--primary:focus-visible {
	background: rgba(204, 193, 139, 0.1);
	color: var(--kb-project-paper);
}

.kb-project-paths {
	margin-top: 0;
}

.kb-project-paths__list {
	display: grid;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.kb-project-path {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	min-height: 9rem;
	padding: 1.35rem 0 1.75rem;
	text-decoration: none;
}

.kb-project-path__kicker {
	color: rgba(243, 239, 227, 0.64);
	font-family: sans-serif;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.kb-project-path strong {
	color: var(--kb-project-gold);
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	font-weight: 400;
	line-height: 1.2;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.kb-project-path:hover strong,
.kb-project-path:focus-visible strong {
	color: var(--kb-project-paper);
}

.kb-project__content .kb-projektbild,
.kb-project__content .kb-mediencover {
	display: block;
	margin: 2rem 0 0;
	max-width: 100%;
}

/*
 * Begleitmaterial ist einem Projekt zugeordnet, aber nicht mit seinem
 * Hauptbild gleichrangig. Schmale Drucksachen bleiben deshalb als
 * eigenständige, zurückhaltende Medienobjekte erkennbar.
 */
.kb-project__content .kb-begleitmaterial {
	padding-top: clamp(1.25rem, 2.5vw, 2rem);
}

.kb-project__content .kb-begleitmaterial > h2,
.kb-project__content .kb-begleitmaterial > h3,
.kb-project__content .kb-begleitmaterial > h4 {
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	margin-bottom: 0.85rem;
}

.kb-project__content .kb-begleitmaterial .kb-mediencover {
	margin-top: 1.5rem;
	max-width: clamp(9rem, 16vw, 12rem);
}

.kb-project__content .kb-begleitmaterial .kb-mediencover img {
	display: block;
	width: 100%;
}

.kb-project__content .kb-begleitmaterial > p {
	font-size: 0.96em;
	line-height: 1.65;
	max-width: 42rem;
}

/*
 * Lesefolge einer ausführlichen Projektseite:
 * Werk, Besuch, Vertiefung, Menschen und erst danach Resonanz.
 */
.kb-project__content .kb-projektabschnitt--werk p {
	max-width: 44rem;
}

.kb-project__content .kb-projektvertiefung {
	margin-bottom: 0;
}

.kb-project__content .kb-projektvertiefung > p {
	color: rgba(243, 239, 227, 0.76);
	max-width: 42rem;
}

/*
 * Ein Inhalt, zwei Lesesituationen:
 * Am Desktop bleibt die Vertiefung Teil des ruhigen Leseflusses. Auf kleinen
 * Bildschirmen setzt das Skript davor einen freiwilligen, zugänglichen Zugang.
 * Ohne JavaScript bleibt der vollständige Text sichtbar.
 */
.kb-projektvertiefung[hidden] {
	display: none;
}

.kb-projektvertiefung-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	border-bottom: 1px solid rgba(204, 193, 139, 0.68);
	color: var(--kb-project-gold);
	cursor: pointer;
	display: none;
	font: inherit;
	gap: 0.55rem;
	margin: 1.1rem 0 0;
	padding: 0.25rem 0 0.35rem;
	text-align: left;
}

.kb-projektvertiefung-toggle::after {
	content: "↓";
	font-family: sans-serif;
	font-size: 0.9em;
}

.kb-projektvertiefung-toggle[aria-expanded="true"]::after {
	content: "↑";
}

.kb-projektvertiefung-toggle:hover,
.kb-projektvertiefung-toggle:focus-visible {
	color: var(--kb-project-paper);
}

.kb-project__content .kb-projektvertiefung-teil {
	border-top-color: rgba(204, 193, 139, 0.22);
	margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
	padding-left: clamp(1rem, 2.5vw, 2rem);
}

.kb-project__content .kb-projektvertiefung-teil > h3 {
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.kb-project__content .kb-projektabschnitt--resonanz {
	margin-top: clamp(4.5rem, 8vw, 7rem);
}

/*
 * Ein Pressenachweis verweist auf eine eigene Presseseite. Er zeigt deshalb
 * keinen zweiten großen Bildauftritt, sondern nur die bibliografische Spur.
 */
.kb-project__content .kb-pressenachweis {
	border-top: 1px solid rgba(204, 193, 139, 0.28);
	max-width: 42rem;
	padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.kb-project__content .kb-pressenachweis__quelle {
	color: rgba(243, 239, 227, 0.66);
	font-family: sans-serif;
	font-size: 0.76rem;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0 0 0.85rem;
	text-transform: uppercase;
}

.kb-project__content .kb-pressenachweis > h3 {
	font-size: clamp(1.35rem, 2.2vw, 1.8rem);
	margin-bottom: 0.75rem;
}

.kb-project__content .kb-pressenachweis > p {
	line-height: 1.65;
	margin-bottom: 0.9rem;
}

.kb-project__content .kb-pressenachweis__link {
	margin-top: 1.25rem;
}

.kb-project__content .kb-post-image-caption {
	color: rgba(243, 239, 227, 0.68);
	font-size: 0.9rem;
	font-style: italic;
}

body.single-projekt {
	--kb-grace-k-anchor: 1.683rem;
	--kb-grace-line-x: clamp(4rem, 10vw, 9rem);
	--kb-grace-safe-space: clamp(1.25rem, 2.25vw, 2rem);
}

.kb-project-exit {
	border-top: 1px solid rgba(204, 193, 139, 0.55);
	display: flex;
	gap: clamp(2rem, 6vw, 6rem);
	justify-content: space-between;
	margin-inline: auto;
	padding:
		2rem
		clamp(1.25rem, 6vw, 5rem)
		4rem
		calc(var(--kb-grace-line-x) + var(--kb-grace-safe-space));
	width: min(100%, 82rem);
}

.kb-project-exit a {
	display: inline-flex;
	flex-direction: column;
	gap: 0.25rem;
	text-decoration: none;
}

.kb-project-exit__reception {
	align-items: flex-end;
	text-align: right;
}

.kb-project-exit strong {
	color: var(--kb-project-gold);
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	font-weight: 400;
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color 160ms ease, text-decoration-color 160ms ease;
}

.kb-project-exit a:hover strong,
.kb-project-exit a:focus-visible strong {
	color: var(--kb-project-paper);
	text-decoration-color: currentColor;
}

body.single-projekt .kb-site-footer {
	position: relative;
}

body.single-projekt .kb-site-footer::before {
	background: rgba(204, 193, 139, 0.72);
	bottom: calc(100% + var(--kb-grace-safe-space));
	content: "";
	height: clamp(24rem, 34vw, 28rem);
	left: var(--kb-grace-line-x);
	pointer-events: none;
	position: absolute;
	width: 1px;
}

body.single-projekt .kb-site-footer__inner {
	max-width: none;
}

body.single-projekt .kb-site-footer__marke {
	left: calc(
		var(--kb-grace-line-x)
		- var(--kb-gutter, 1.25rem)
		- var(--kb-grace-k-anchor)
	);
	position: relative;
	top: -1.125rem;
}

@media (max-width: 760px) {
	.kb-project__article::before,
	body.single-projekt .kb-site-footer::before {
		display: none;
	}

	.kb-project-hero {
		display: flex;
		flex-direction: column;
		min-height: 0;
		overflow: visible;
	}

	.kb-project-hero__image {
		height: clamp(18rem, 76vw, 25rem);
		inset: auto;
		object-position:
			var(--kb-project-focus-x, 50%)
			var(--kb-project-focus-y, 50%);
		position: relative;
		width: 100%;
	}

	.kb-project-hero__image--mobile {
		display: block;
	}

	.kb-project-hero:has(.kb-project-hero__image--mobile)
		> .kb-project-hero__image:not(.kb-project-hero__image--mobile) {
		display: none;
	}

	.kb-project-hero__shade {
		display: none;
	}

	.kb-project-hero__inner {
		margin-top: -1.5rem;
		padding: 0 var(--kb-gutter, 1.25rem) 2.75rem;
		width: 100%;
	}

	.kb-project-hero__panel {
		background: rgba(17, 30, 47, 0.96);
		max-width: none;
		padding: 1.35rem 1.25rem 1.5rem;
	}

	.kb-project-hero h1 {
		font-size: clamp(2.45rem, 12vw, 3.35rem);
		line-height: 0.98;
		margin-bottom: 0.8rem;
		max-width: 14ch;
	}

	.kb-project-hero__subtitle {
		font-size: clamp(1.05rem, 5vw, 1.3rem);
		line-height: 1.35;
		margin-bottom: 1rem;
	}

	.kb-project-hero__description {
		font-size: 1rem;
		line-height: 1.55;
	}

	.kb-project__layout {
		gap: 2.75rem;
		grid-template-columns: minmax(0, 1fr);
		padding-block: 3rem;
		transform: none;
		width: min(100%, 90rem);
	}

	.kb-project-facts {
		order: 2;
	}

	.kb-project__content {
		order: 1;
		padding-left: 0;
	}

	.kb-project__content .kb-projektabschnitt {
		margin-bottom: 2rem;
		padding-top: 1.1rem;
	}

	.kb-project__content h2 {
		font-size: clamp(1.85rem, 9vw, 2.45rem);
		line-height: 1.04;
	}

	.kb-project__content h3,
	.kb-project__content h4 {
		font-size: clamp(1.45rem, 7vw, 1.9rem);
	}

	.kb-project__content > .kb-projektabschnitt:first-child {
		border-top: 0;
		padding-top: 0;
	}

	.kb-project-exit {
		padding-left: var(--kb-gutter, 1.25rem);
	}

	body.single-projekt .kb-site-footer__marke {
		left: 0;
		position: relative;
		top: 0;
	}

	body.single-projekt .kb-site-footer__marke::before {
		background: rgba(204, 193, 139, 0.72);
		bottom: calc(100% + 0.9rem);
		content: "";
		height: clamp(2.75rem, 12vw, 4rem);
		left: var(--kb-grace-k-anchor);
		pointer-events: none;
		position: absolute;
		width: 1px;
	}

	.postid-51081 .kb-project-hero__image {
		object-position: 92% center;
	}

	.kb-project-paths__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.kb-projektvertiefung-toggle {
		display: inline-flex;
	}

	.kb-project__content .kb-projektvertiefung {
		margin-top: 1.35rem;
	}
}
