/*
Theme Name: GP Wirth Architekten
Theme URI: https://www.gpwirth-architekten.de/
Author: pro System GmbH
Description: Schlankes Theme für GP Wirth Architekten. Ersetzt das frühere Premium-Theme samt Page Builder, kommt ohne jQuery und ohne Framework aus.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpwirth
*/

/* ---------------------------------------------------------------
   Grundwerte
   --------------------------------------------------------------- */

/* Die Werte stammen aus den Einstellungen der bisherigen Seite
   (Theme-Optionen "monolit_options") und dem dortigen Stylesheet, damit
   Schriftgroessen, Farben und Abstaende uebereinstimmen. */
:root {
	--gpw-accent: #b92d0a;
	--gpw-ink: #000000;
	--gpw-body: #2d2d2d;
	--gpw-muted: #8d8d8d;
	--gpw-line: #e2e2e2;
	--gpw-dark: #1b1b1b;
	--gpw-bg: #ffffff;
	--gpw-max: 1240px;
	--gpw-gap: clamp(1.5rem, 4vw, 3.5rem);
	--gpw-section-y: clamp(4rem, 9vw, 8.5rem);
	--gpw-header-h: 88px;
	--gpw-rail: 80px;

	/* Fliesstext: 20px auf 30px Zeile, wie im Original hinterlegt. */
	--gpw-text: clamp(1rem, 0.85rem + 0.5vw, 1.25rem);
	--gpw-text-lh: 1.5;
	/* Sektionsueberschrift: 40px auf 64px Zeile, sehr leichter Schnitt. */
	--gpw-title: clamp(1.75rem, 1.1rem + 2vw, 2.5rem);
	/* Die grosse Ziffer am Sektionsrand: 185px. */
	--gpw-figure: clamp(5rem, 2rem + 10vw, 11.5rem);
}

@media (max-width: 900px) {
	:root {
		--gpw-rail: 0px;
	}
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

body {
	margin: 0;
	background: var(--gpw-bg);
	color: var(--gpw-body);
	font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: var(--gpw-text);
	line-height: var(--gpw-text-lh);
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Verweise sind schwarz und faerben sich beim Ueberfahren rot. */
a {
	color: var(--gpw-ink);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--gpw-accent);
}

:focus-visible {
	outline: 2px solid var(--gpw-accent);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--gpw-ink);
	font-weight: 100;
	line-height: 1.25;
	margin: 0 0 0.6em;
}

h1 { font-size: var(--gpw-title); }
h2 { font-size: var(--gpw-title); }
h3 { font-size: 1.15rem; font-weight: 400; }
h4 { font-size: 1.05rem; font-weight: 400; }

h1 strong,
h2 strong {
	font-weight: 700;
}

p {
	margin: 0 0 0.65em;
	line-height: var(--gpw-text-lh);
}

hr.gpw-rule {
	border: 0;
	border-top: 1px solid var(--gpw-line);
	margin: 2.5rem 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 999;
	background: #fff;
	color: var(--gpw-ink);
	padding: 0.75rem 1.25rem;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
}

/* ---------------------------------------------------------------
   Kopfbereich
   --------------------------------------------------------------- */

/* Weißer Kasten oben links, wie auf der bisherigen Seite. Er reicht nicht
   über die volle Breite; rechts daneben bleibt das Bild sichtbar. */
.gpw-header {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: min(70%, 890px);
	height: var(--gpw-header-h);
	display: flex;
	align-items: center;
	padding: 0 var(--gpw-gap) 0 calc(var(--gpw-rail) + var(--gpw-gap) * 0.5);
	background: #fff;
	transition: width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.gpw-header.is-stuck {
	width: 100%;
	height: 72px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
	.gpw-header,
	.gpw-header.is-stuck {
		width: 100%;
		padding-left: var(--gpw-gap);
	}
}

.admin-bar .gpw-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .gpw-header {
		top: 46px;
	}
}

.gpw-header__inner {
	width: 100%;
	max-width: var(--gpw-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.gpw-logo {
	display: block;
	flex: 0 0 auto;
}

/* Wortmarke in Originalgröße: 195 × 28 px. */
.gpw-logo img {
	width: 195px;
	height: 28px;
	object-fit: contain;
	object-position: left center;
}

@media (max-width: 480px) {
	.gpw-logo img {
		width: 160px;
		height: 23px;
	}
}

/* Der Kopfbereich ist durchgehend weiß, deshalb immer die dunkle Wortmarke. */
.gpw-logo__light { display: none; }
.gpw-logo__dark  { display: block; }

.gpw-logo__text {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gpw-ink);
}

/* Navigation */

.gpw-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(0.25rem, 1vw, 1rem);
}

/* Menüpunkte: 12px, normaler Schnitt, schwarz; beim Überfahren und im
   aktiven Zustand rot. */
.gpw-nav__list a {
	display: block;
	padding: 10px 15px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--gpw-ink);
	position: relative;
}

.gpw-nav__list a:hover,
.gpw-nav__list .current-menu-item > a,
.gpw-nav__list .current_page_item > a,
.gpw-nav__list .current-menu-parent > a,
.gpw-nav__list .current-portfolio-ancestor > a {
	color: var(--gpw-accent);
}

/* Untermenü */

.gpw-nav__list li {
	position: relative;
}

.gpw-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.gpw-nav__list li:hover > .sub-menu,
.gpw-nav__list li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.gpw-nav__list .sub-menu a {
	padding: 0.55rem 1.25rem;
	color: var(--gpw-ink);
	letter-spacing: 0.06em;
}

.gpw-nav__list .sub-menu a::after {
	display: none;
}

/* Menütaste für schmale Fenster */

.gpw-burger {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}

.gpw-burger span {
	position: absolute;
	left: 10px;
	width: 24px;
	height: 2px;
	background: var(--gpw-ink);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.gpw-burger span:nth-child(1) { top: 15px; }
.gpw-burger span:nth-child(2) { top: 21px; }
.gpw-burger span:nth-child(3) { top: 27px; }

.gpw-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gpw-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.gpw-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
	.gpw-burger {
		display: block;
	}

	.gpw-nav {
		position: fixed;
		inset: var(--gpw-header-h) 0 auto 0;
		background: #fff;
		box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
	}

	.gpw-nav.is-open {
		max-height: 80vh;
		overflow-y: auto;
	}

	.gpw-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem var(--gpw-gap) 1.5rem;
	}

	.gpw-nav__list a,
	.gpw-header.is-stuck .gpw-nav__list a {
		color: var(--gpw-ink);
		padding: 0.9rem 0;
		border-bottom: 1px solid var(--gpw-line);
		font-size: 0.95rem;
	}

	.gpw-nav__list .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		padding: 0 0 0 1rem;
	}
}

/* ---------------------------------------------------------------
   Vollbild-Diaschau
   --------------------------------------------------------------- */

/* Schmaler weißer Streifen am linken Rand, wie auf der bisherigen Seite.
   Er trägt die Sprungmarke zur Startseite. */
.gpw-rail {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 99;
	width: var(--gpw-rail);
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: 1.75rem;
}

.gpw-rail__home {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	color: var(--gpw-accent);
}

.gpw-rail__home svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.gpw-rail__label {
	margin-bottom: auto;
	margin-top: calc(var(--gpw-header-h) + 2.5rem);
	writing-mode: vertical-rl;
	font-size: 0.66rem;
	font-weight: 500;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--gpw-muted);
	user-select: none;
}

@media (max-width: 900px) {
	.gpw-rail {
		display: none;
	}
}

.gpw-hero {
	position: relative;
	height: 100svh;
	min-height: 520px;
	overflow: hidden;
	background: var(--gpw-dark);
}

.gpw-hero__stage {
	position: absolute;
	inset: 0;
}

.gpw-hero__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.gpw-hero__slide.is-active {
	opacity: 1;
}

.gpw-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gpw-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 35%, rgba(0, 0, 0, 0.35) 100%);
	pointer-events: none;
}

.gpw-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 2.5rem;
	z-index: 2;
	width: 34px;
	height: 54px;
	margin-left: -17px;
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 18px;
}

.gpw-hero__scroll::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 9px;
	width: 4px;
	height: 9px;
	margin-left: -2px;
	border-radius: 2px;
	background: #fff;
	animation: gpw-scroll 1.9s ease-in-out infinite;
}

@keyframes gpw-scroll {
	0%   { transform: translateY(0);    opacity: 1; }
	70%  { transform: translateY(18px); opacity: 0; }
	100% { transform: translateY(0);    opacity: 0; }
}

/* ---------------------------------------------------------------
   Sektionen
   --------------------------------------------------------------- */

.gpw-section {
	position: relative;
	padding: var(--gpw-section-y) var(--gpw-gap) var(--gpw-section-y) calc(var(--gpw-rail) + var(--gpw-gap));
}

.gpw-section--wide {
	padding-left: var(--gpw-rail);
	padding-right: 0;
}

/* Die Vollbild-Sektion sitzt buendig neben dem Randstreifen. Diese Regel steht
   bewusst nach --wide, damit sie deren Innenabstand ueberschreibt. */
.gpw-section--hero,
.gpw-section--hero.gpw-section--wide {
	padding: 0 0 0 var(--gpw-rail);
}

.gpw-section__inner {
	max-width: var(--gpw-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--gpw-gap);
	align-items: center;
}

.gpw-section--hero .gpw-section__inner {
	max-width: none;
	display: block;
	gap: 0;
}

/* Die grosse Ziffer am Sektionsrand: 185px, fett, 21 % Deckung, am unteren
   Rand der Sektion. Daneben ein waagerechter Strich mit Punkt. */

.gpw-section__number {
	position: absolute;
	bottom: 10%;
	font-size: var(--gpw-figure);
	font-weight: 700;
	line-height: 1;
	color: rgba(0, 0, 0, 0.21);
	text-transform: uppercase;
	pointer-events: none;
	user-select: none;
	z-index: 2;
}

.gpw-section__number::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 150px;
	height: 1px;
	background: rgba(0, 0, 0, 0.21);
}

.gpw-section__number::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	margin: -3px 0 0 -3px;
	border-radius: 100%;
	background: var(--gpw-ink);
}

.gpw-section__number--right { right: 10%; }
.gpw-section__number--right::before { right: 50%; }

.gpw-section__number--left { left: 20%; }
.gpw-section__number--left::before { left: 50%; }

.gpw-section--dark .gpw-section__number,
.gpw-section--dark .gpw-section__number::before {
	color: rgba(255, 255, 255, 0.21);
	background-color: rgba(255, 255, 255, 0.21);
}

.gpw-section--dark .gpw-section__number {
	background-color: transparent;
}

.gpw-section--dark .gpw-section__number::after {
	background: #fff;
}

@media (max-width: 900px) {
	.gpw-section__number::before,
	.gpw-section__number::after {
		display: none;
	}

	.gpw-section__number--left { left: var(--gpw-gap); }
	.gpw-section__number--right { right: var(--gpw-gap); }
}

/* Dunkle Sektion */

.gpw-section--dark {
	background: var(--gpw-dark);
	color: rgba(255, 255, 255, 0.78);
}

.gpw-section--dark h1,
.gpw-section--dark h2,
.gpw-section--dark h3,
.gpw-section--dark h4 {
	color: #fff;
}

.gpw-section--dark a {
	color: #fff;
}

.gpw-section--dark a:hover {
	color: var(--gpw-accent);
}

/* Spalten */

/* Verschachtelte Reihe innerhalb einer Spalte: eigenes Raster, keine
   zusätzlichen Randabstände. */
.gpw-row {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--gpw-gap);
	align-items: start;
	width: 100%;
}

.gpw-col {
	grid-column: span 12;
	min-width: 0;
}

@media (min-width: 901px) {
	.gpw-col--1  { grid-column: span 1; }
	.gpw-col--2  { grid-column: span 2; }
	.gpw-col--3  { grid-column: span 3; }
	.gpw-col--4  { grid-column: span 4; }
	.gpw-col--5  { grid-column: span 5; }
	.gpw-col--6  { grid-column: span 6; }
	.gpw-col--7  { grid-column: span 7; }
	.gpw-col--8  { grid-column: span 8; }
	.gpw-col--9  { grid-column: span 9; }
	.gpw-col--10 { grid-column: span 10; }
	.gpw-col--11 { grid-column: span 11; }
	.gpw-col--12 { grid-column: span 12; }
}

.gpw-text > *:last-child {
	margin-bottom: 0;
}

/* Sektionsüberschrift: 40px auf 64px Zeile, sehr leichter Schnitt, in
   Großbuchstaben. Ein Strich steht nur unter Überschriften mit der
   Auszeichnung "dec-title" — nicht unter jeder Überschrift. */

.section-title,
.gpw-text h2 {
	position: relative;
	font-size: var(--gpw-title);
	line-height: 1.6;
	font-weight: 100;
	text-transform: uppercase;
	color: var(--gpw-ink);
	margin-bottom: 1.875rem;
}

.section-title.dec-title {
	padding-bottom: 3.125rem;
}

.section-title.dec-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 80px;
	height: 8px;
	background: var(--gpw-ink);
}

.section-title.algn-right {
	text-align: right;
}

.section-title.algn-right.dec-title::after {
	left: auto;
	right: 0;
}

.gpw-section--dark .section-title,
.gpw-section--dark .gpw-text h2 {
	color: #fff;
}

.gpw-section--dark .section-title.dec-title::after {
	background: #fff;
}

.process-box {
	margin: 1.75rem 0;
	padding: 1.5rem 1.75rem;
	border-left: 3px solid var(--gpw-accent);
	background: rgba(0, 0, 0, 0.02);
}

.gpw-section--dark .process-box {
	background: rgba(255, 255, 255, 0.04);
}

.process-box h3 {
	margin-bottom: 0.35em;
}

/* Schaltfläche: schwarzer Rahmen auf hellem Grund, füllt sich beim
   Überfahren von links nach rechts schwarz. */

.btn,
.gpw-btn {
	position: relative;
	display: inline-block;
	overflow: hidden;
	z-index: 0;
	margin-top: 0.5rem;
	padding: 12px 23px;
	background: transparent;
	border: 1px solid var(--gpw-ink);
	color: var(--gpw-ink);
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 17px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 400ms linear;
}

.btn::before,
.gpw-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: var(--gpw-ink);
	z-index: -1;
	transition: width 200ms linear 200ms;
}

.btn:hover::before,
.gpw-btn:hover::before {
	width: 100%;
}

.btn:hover,
.btn:focus,
.gpw-btn:hover,
.gpw-btn:focus {
	color: #fff;
}

/* Das Symbol im Beschriftungstext stammt aus dem alten Icon-Zeichensatz. */
.btn i {
	display: none;
}

.gpw-section--dark .btn {
	border-color: #fff;
	color: #fff;
}

.gpw-section--dark .btn::before {
	background: #fff;
}

.gpw-section--dark .btn:hover {
	color: var(--gpw-dark);
}

/* ---------------------------------------------------------------
   Karussell
   --------------------------------------------------------------- */

.gpw-carousel {
	position: relative;
}

.gpw-carousel__track {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f2f2f2;
}

.gpw-carousel__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.gpw-carousel__slide.is-active {
	opacity: 1;
}

.gpw-carousel__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gpw-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.gpw-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--gpw-line);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.gpw-carousel__dot.is-active {
	background: var(--gpw-accent);
	transform: scale(1.25);
}

/* ---------------------------------------------------------------
   Zahlen
   --------------------------------------------------------------- */

.gpw-facts,
.inline-facts-holder {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--gpw-gap);
}

/* Zahlenwerk: 82px fett, rechtsbündig; Beschriftung 16px, ebenfalls rechts. */
.gpw-fact {
	text-align: right;
}

.gpw-fact__num {
	display: block;
	font-size: clamp(2.75rem, 1.5rem + 3.5vw, 5.125rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.gpw-fact__label,
.gpw-fact__label h6 {
	margin: 10px 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	text-align: right;
	color: #fff;
}

/* ---------------------------------------------------------------
   Projekte
   --------------------------------------------------------------- */

/* Projektraster zweispaltig, wie in den Einstellungen hinterlegt
   (folio_column = two), mit schmalem Steg (folio_pad = small). */
.gpw-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;
}

@media (max-width: 700px) {
	.gpw-grid {
		grid-template-columns: 1fr;
	}
}

.gpw-card {
	position: relative;
	display: block;
	overflow: hidden;
	background: var(--gpw-dark);
	aspect-ratio: 4 / 3;
}

.gpw-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease, opacity 0.4s ease;
}

.gpw-card:hover img {
	transform: scale(1.06);
	opacity: 0.55;
}

/* Beschriftung erscheint erst beim Überfahren, wie in den Einstellungen
   hinterlegt (folio_show_info_first = show_on_hover). */
.gpw-card__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1.75rem 1.5rem 1.5rem;
	/* Verlauf mit 40 % Deckung, wie im Original hinterlegt. */
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
	color: #fff;
	opacity: 0;
	transition: opacity 300ms linear;
}

.gpw-card:hover .gpw-card__body,
.gpw-card:focus-visible .gpw-card__body {
	opacity: 1;
}

/* Ohne Zeigegerät gibt es kein Überfahren — dort dauerhaft anzeigen. */
@media (hover: none) {
	.gpw-card__body {
		opacity: 1;
	}
}

.gpw-card__title {
	margin: 0;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.gpw-card__cats {
	margin: 0.3rem 0 0;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.85;
}

/* Filterleiste */

.gpw-filter__label {
	margin: 0 0 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gpw-muted);
	text-align: center;
}

.gpw-filter {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem 1.6rem;
	margin: 0 0 2.5rem;
	padding: 0;
	list-style: none;
}

.gpw-filter button {
	padding: 0.4rem 0;
	border: 0;
	background: none;
	color: var(--gpw-muted);
	font-family: inherit;
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.gpw-filter button:hover,
.gpw-filter button.is-active {
	color: var(--gpw-ink);
	border-color: var(--gpw-accent);
}

/* Hervorgehobenes Projekt auf der Startseite */

.gpw-feature__item {
	position: relative;
	display: block;
	overflow: hidden;
}

.gpw-feature__item img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
	transition: transform 0.8s ease;
}

.gpw-feature__item:hover img {
	transform: scale(1.04);
}

.gpw-feature__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.gpw-feature__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.3rem, 3vw, 2rem);
	font-weight: 300;
}

.gpw-feature__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0 0 0.5rem;
	font-size: 0.78rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.gpw-feature__more {
	display: inline-block;
	margin-top: 0.9rem;
	padding-bottom: 3px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #fff;
	transition: border-color 0.25s ease;
}

.gpw-feature__item:hover .gpw-feature__more {
	border-color: #fff;
}

/* Einzelnes Projekt */

.gpw-project__header {
	margin-bottom: 2rem;
}

.gpw-project__title {
	margin-bottom: 0.2em;
}

.gpw-project__cats {
	margin: 0;
	font-size: 0.76rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--gpw-accent);
}

.gpw-project__cats a {
	color: inherit;
}

/* Die Kenndaten eines Projekts stehen im Inhalt unter der Überschrift "Info";
   das alte Theme setzte darüber zusätzlich die Zeile "Details". */
.pd-holder::before {
	content: "Details";
	display: block;
	margin-bottom: 0.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gpw-muted);
}

.pd-holder ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.5rem 2rem;
}

.pd-holder li {
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--gpw-line);
	font-size: 0.92rem;
	white-space: pre-wrap;
}

/* Projektgalerie */

.gpw-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
	gap: 2px;
	margin: 3rem 0;
}

.gpw-gallery figure {
	margin: 0;
}

.gpw-gallery img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Blättern */

.gpw-projectnav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 3.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--gpw-line);
	font-size: 0.88rem;
}

.gpw-projectnav__link {
	display: flex;
	flex-direction: column;
	color: var(--gpw-ink);
	max-width: 40%;
}

.gpw-projectnav__link span {
	font-size: 0.7rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--gpw-muted);
	margin-bottom: 0.2rem;
}

.gpw-projectnav__link--next {
	text-align: right;
	align-items: flex-end;
}

.gpw-projectnav__all {
	font-size: 0.72rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

/* Team */

.gpw-member {
	display: flex;
	gap: 1.25rem;
	margin-bottom: 2rem;
	align-items: flex-start;
}

.gpw-member__photo {
	flex: 0 0 130px;
}

.gpw-member__photo img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	filter: grayscale(1);
	transition: filter 0.35s ease;
}

.gpw-member:hover .gpw-member__photo img {
	filter: grayscale(0);
}

.gpw-member__name {
	margin: 0 0 0.15em;
	font-size: 1.05rem;
	font-weight: 500;
}

.gpw-member__role {
	margin: 0 0 0.5em;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gpw-accent);
}

.gpw-member__contact {
	margin: 0;
	font-size: 0.9rem;
}

/* Großes Bild mit Text */

.gpw-parallax {
	position: relative;
	margin: 2rem 0;
}

.gpw-parallax img {
	width: 100%;
	object-fit: cover;
}

/* ---------------------------------------------------------------
   Seiteninhalte
   --------------------------------------------------------------- */

.gpw-page {
	padding-top: var(--gpw-header-h);
}

/* Seiten mit Bildkopf beginnen buendig unter dem Kopfbereich. */
.gpw-page--hero {
	padding-top: 0;
}

/* ---------------------------------------------------------------
   Bildkopf der Unterseiten
   --------------------------------------------------------------- */

.gpw-pagehero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	margin-left: var(--gpw-rail);
	padding: var(--gpw-header-h) var(--gpw-gap) 0;
	overflow: hidden;
	background: var(--gpw-dark);
}

.gpw-pagehero__media {
	position: absolute;
	inset: 0;
}

.gpw-pagehero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gpw-pagehero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.gpw-pagehero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--gpw-max);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2rem;
}

.gpw-pagehero__title {
	position: relative;
	margin: 0;
	padding-bottom: 2.5rem;
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
	font-weight: 100;
	line-height: 1.15;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.gpw-pagehero__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 1rem;
	width: 80px;
	height: 3px;
	background: #fff;
}

/* Pfadleiste im Bildkopf: weiss, mit Strichen zwischen den Stufen. */
.gpw-breadcrumb--hero {
	margin-bottom: 0;
}

.gpw-breadcrumb--hero ol {
	gap: 0.75rem;
	color: #fff;
	font-weight: 500;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.gpw-breadcrumb--hero a,
.gpw-breadcrumb--hero strong {
	color: #fff;
}

.gpw-breadcrumb--hero a:hover {
	color: rgba(255, 255, 255, 0.7);
}

/* Im Bildkopf trennen Striche die Stufen, nicht das Winkelzeichen. */
.gpw-breadcrumb--hero li + li::before {
	content: "";
	display: inline-block;
	width: 40px;
	height: 1px;
	margin: 0 0.5rem 0 0;
	vertical-align: middle;
	background: rgba(255, 255, 255, 0.75);
}

.gpw-breadcrumb--hero li:first-child::before {
	content: "";
	display: inline-block;
	width: 40px;
	height: 1px;
	margin: 0 0.5rem 0 0;
	vertical-align: middle;
	background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
	.gpw-pagehero {
		margin-left: 0;
		min-height: 60svh;
	}

	.gpw-breadcrumb--hero li::before,
	.gpw-breadcrumb--hero li::after {
		width: 18px;
		margin: 0 0.3rem;
	}
}

.gpw-page__head {
	padding: clamp(3.5rem, 8vw, 6rem) var(--gpw-gap) 0 calc(var(--gpw-rail) + var(--gpw-gap));
}

.gpw-page__head-inner {
	max-width: var(--gpw-max);
	margin: 0 auto;
}

/* Pfadleiste */

.gpw-breadcrumb {
	margin-bottom: 1.25rem;
}

.gpw-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gpw-muted);
}

.gpw-breadcrumb li + li::before {
	content: "›";
	margin-right: 0.5rem;
	color: var(--gpw-muted);
}

.gpw-breadcrumb a {
	color: var(--gpw-muted);
}

.gpw-breadcrumb a:hover {
	color: var(--gpw-accent);
}

.gpw-breadcrumb strong {
	font-weight: 400;
	color: var(--gpw-ink);
}

.gpw-page__body {
	padding: clamp(2rem, 5vw, 3.5rem) var(--gpw-gap) var(--gpw-section-y) calc(var(--gpw-rail) + var(--gpw-gap));
}

.gpw-page__body-inner {
	max-width: var(--gpw-max);
	margin: 0 auto;
}

.gpw-prose {
	max-width: 78ch;
}

.gpw-prose h2 {
	margin-top: 2.5em;
}

.gpw-prose h2:first-child {
	margin-top: 0;
}

.gpw-prose ul,
.gpw-prose ol {
	padding-left: 1.25rem;
	margin-bottom: 1.4em;
}

.gpw-prose li {
	margin-bottom: 0.4em;
}

.gpw-prose table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

.gpw-prose th,
.gpw-prose td {
	padding: 0.6rem 0.75rem;
	border-bottom: 1px solid var(--gpw-line);
	text-align: left;
}

/* Kontaktangaben */

.gpw-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--gpw-gap);
	margin-top: 2rem;
}

.gpw-contact-grid h3 {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gpw-accent);
	margin-bottom: 0.6em;
}

/* ---------------------------------------------------------------
   Fußbereich
   --------------------------------------------------------------- */

/* Fußbereich in der Hausfarbe mit weißer Schrift — wie in den Einstellungen
   der bisherigen Seite hinterlegt (footer-bg-color #b92d0a). */
.gpw-footer {
	background: var(--gpw-accent);
	color: #fff;
	padding: clamp(3.5rem, 7vw, 5.5rem) var(--gpw-gap) 0 calc(var(--gpw-rail) + var(--gpw-gap));
}

.gpw-footer__inner {
	max-width: var(--gpw-max);
	margin: 0 auto;
}

.gpw-footer__claim {
	max-width: 62ch;
	margin-bottom: 3rem;
	line-height: var(--gpw-text-lh);
	color: #fff;
}

.gpw-footer__claim strong {
	display: block;
	margin-bottom: 0.8rem;
	font-size: 0.85em;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
}

.gpw-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: var(--gpw-gap);
	padding-bottom: 3rem;
}

.gpw-footer__cols h3 {
	margin-bottom: 0.8em;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #fff;
}

.gpw-footer__cols p {
	margin: 0 0 0.35em;
	font-size: 0.9em;
	color: #fff;
}

.gpw-footer__cols a {
	color: #fff;
}

.gpw-footer__cols a:hover {
	color: rgba(0, 0, 0, 0.51);
}

.gpw-footer__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	color: #fff;
}

.gpw-footer__legal {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gpw-footer__legal a {
	color: #fff;
	text-transform: uppercase;
	font-size: 0.75rem;
	letter-spacing: 0.13em;
}

.gpw-footer__legal a:hover {
	color: rgba(0, 0, 0, 0.51);
}

/* "Anfang" steht im Fußbereich neben Impressum und Datenschutz, wie im
   Original — kein schwebender Knopf. */
.gpw-totop {
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
	font-family: inherit;
	font-size: 0.75rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s ease;
}

.gpw-totop:hover {
	color: rgba(0, 0, 0, 0.51);
}

/* ---------------------------------------------------------------
   Fehlerseite
   --------------------------------------------------------------- */

.gpw-404 {
	min-height: 60vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: var(--gpw-section-y) var(--gpw-gap);
}

/* ---------------------------------------------------------------
   Druckausgabe
   --------------------------------------------------------------- */

@media print {
	.gpw-header,
	.gpw-totop,
	.gpw-hero__scroll,
	.gpw-projectnav {
		display: none !important;
	}

	body {
		color: #000;
	}
}
