/* ==========================================================================
   NORDFUND Theme – Hauptstile
   Vorlage: www.nordfund-finance.com (vermessen bei 1440/768/390 px)
   ========================================================================== */

:root {
	--tuerkis: #52b7c3;
	--tiefblau: #152b40;
	--hell-tuerkis: #bae2e7;
	--overlay: rgba(21, 43, 64, 0.13);
	--font-head: 'Podkova', Georgia, serif;
	--font-body: 'Roboto', Arial, sans-serif;
	--header-h: 148px;
	--side: calc(20px + 5.55vw);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 21px;
	line-height: 36px;
	font-weight: 400;
	color: var(--tiefblau);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; }

.skip-link {
	position: fixed; top: -100px; left: 16px; z-index: 1000;
	background: #fff; color: var(--tiefblau); padding: 12px 18px;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */

.site-header {
	background: #fff;
	position: relative;
	z-index: 100;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	padding: 0 20px 0 var(--side);
}
.brand { display: block; flex: 0 0 auto; position: relative; top: -8px; }
.brand img { width: 300px; height: auto; }

.menu-toggle { display: none; }
.menu-close { display: none; }
.nav-overlay { display: none; }
@media (min-width: 1024px) {
	.site-nav ul.nav-list--rechtliches { display: none; }
}

.site-nav { margin-right: 20px; }
.nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-list li { position: relative; }
.nav-list a {
	display: inline-block;
	padding: 12px 15px;
	font-size: 21px;
	line-height: 24px;
	color: var(--tiefblau);
	text-decoration: none;
	white-space: nowrap;
}
.nav-list > li > a { position: relative; }
.nav-list > li > a::after {
	content: '';
	position: absolute;
	left: 15px; right: 15px; bottom: 4px;
	height: 2px;
	background: var(--tuerkis);
	opacity: 0;
	transition: opacity .2s;
}
.nav-list > li:hover > a,
.nav-list > li.current-menu-item > a,
.nav-list > li.current-menu-ancestor > a { color: var(--tuerkis); }
.nav-list > li:hover > a::after,
.nav-list > li.current-menu-item > a::after,
.nav-list > li.current-menu-ancestor > a::after { opacity: 1; }

.sub-toggle {
	background: none;
	border: 0;
	padding: 0;
	width: 16px;
	margin-left: -8px;
	color: var(--tiefblau);
	cursor: pointer;
	vertical-align: baseline;
}
.current-menu-ancestor .sub-toggle { color: var(--tuerkis); }

/* Dropdown (Immobilien) */
.nav-list .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 188px;
	margin: 0; padding: 0;
	list-style: none;
	background: var(--tuerkis);
	z-index: 50;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .sub-menu a {
	display: block;
	color: #fff;
	font-size: 18px;
	line-height: 36px;
	padding: 15px;
}
.nav-list .sub-menu a:hover { background: rgba(21, 43, 64, 0.15); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
	background: var(--tiefblau);
	color: #fff;
}
.footer-inner {
	display: flex;
	align-items: flex-start;
	padding: 90px 40px 120px;
}
.footer-logo { flex: 0 0 36.3%; padding-left: 77px; }
.footer-logo img { width: 300px; height: auto; }
.footer-address { flex: 1 1 auto; }
.footer-address p { margin: 0 0 36px; font-size: 24px; line-height: 36px; }
.footer-company-name {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 26px;
}
.footer-company-name--small { font-size: 24px; }
.footer-contact a { color: #fff; text-decoration: none; }
.footer-contact a.footer-mail { color: var(--tuerkis); text-decoration: underline; }
.footer-meta { flex: 0 0 24.3%; }
.footer-links a {
	display: block;
	color: var(--tuerkis);
	font-size: 24px;
	line-height: 36px;
	text-decoration: underline;
}
.footer-social { display: flex; gap: 47px; margin-top: 46px; }
.footer-social a { display: block; }
.footer-social svg { width: 40px; height: 40px; fill: #fff; transition: fill .2s; }
.footer-social a:hover svg { fill: var(--tuerkis); }

/* --------------------------------------------------------------------------
   Wiederkehrende Sektionen
   -------------------------------------------------------------------------- */

main { display: block; }

/* Hintergrundbilder: WebP bevorzugt, JPEG als Rückfallebene.
   Die Bildpfade kommen als CSS-Variablen aus dem Template (nf_bg_attr). */
.nf-bg { background-image: var(--bg); }
@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
	.nf-bg { background-image: var(--bg-webp, var(--bg)); }
}

/* Voller Hero mit Hintergrundbild */
.hero {
	height: 600px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}
.hero--overlay-title { display: flex; align-items: center; justify-content: center; }

/* Fehlerseite (404) */
.fehler-links { text-align: center; padding: 20px 20px 90px; }
.fehler-hinweis { font-size: 24px; line-height: 36px; margin: 0 0 20px; }
.fehler-liste { list-style: none; margin: 0; padding: 0; }
.fehler-liste li { margin-bottom: 8px; }
.fehler-liste a { color: var(--tuerkis); font-size: 21px; line-height: 36px; }
@media (max-width: 480px) {
	.fehler-hinweis { font-size: 18px; line-height: 27px; }
	.fehler-liste a { font-size: 18px; line-height: 30px; }
}

.hero--video { overflow: hidden; position: relative; }
.hero--video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Türkises Claim-Band (Startseite) */
.claim-band {
	background: var(--tuerkis);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 490px;
	padding: 60px 20px;
}
.claim-band p,
.claim-band h1 {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 36px;
	line-height: 54px;
	max-width: 910px;
	margin: 0;
}

/* CTA-Band (türkis, mit Logo-Muster) */
.cta-band {
	background-color: var(--tuerkis);
	background-repeat: repeat;
	color: var(--tiefblau);
	text-align: center;
	padding: 112px 20px 102px;
}
.cta-band h2 { font-size: 52px; line-height: 62px; margin: 0 0 29px; }
.cta-band p { font-size: 24px; line-height: 36px; margin: 0 0 48px; }

/* CTA-Band dunkel (Projektseiten) */
.cta-band--dark {
	background-color: var(--tiefblau);
	color: #fff;
	text-align: center;
}

.button {
	display: inline-block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 24px;
	line-height: 25px;
	color: #fff;
	background: var(--tiefblau);
	border: 0;
	border-radius: 24px;
	padding: 11px 36px;
	text-decoration: none;
	cursor: pointer;
	transition: opacity .2s;
}
.button:hover { opacity: .85; }
.button--tuerkis { background: var(--tuerkis); color: var(--tiefblau); }

/* Section-Basics */
.section { padding: 90px 40px; }
.section--hell { background: var(--hell-tuerkis); }
.section-title {
	font-size: 52px;
	line-height: 58px;
	text-align: center;
	margin: 0 0 44px;
}
.section-intro {
	font-size: 24px;
	line-height: 36px;
	text-align: center;
	max-width: 960px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Startseite
   -------------------------------------------------------------------------- */

.home-mosaic { display: flex; }
.home-mosaic-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	flex: 0 0 50%;
}
.home-mosaic-tiles .mosaic-tile { aspect-ratio: 360 / 250; }
.mosaic-tile {
	position: relative;
	display: block;
	background-size: cover;
	background-position: center;
	text-decoration: none;
	overflow: hidden;
}
.mosaic-tile-shade { position: absolute; inset: 0; background: var(--overlay); }
.mosaic-tile--pattern { background-color: var(--tuerkis); background-size: auto; }
.mosaic-tile-label {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	padding: 10px;
}
.mosaic-tile-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 26px;
	line-height: 34px;
	text-shadow: 0 0 14px rgba(21, 43, 64, .35);
}
.mosaic-tile-sub { font-size: 16px; line-height: 22px; text-shadow: 0 0 14px rgba(21, 43, 64, .35); }
.home-mosaic-feature {
	flex: 0 0 50%;
	min-width: 0;
	background: var(--tiefblau);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px;
}
.feature-icon svg { width: 80px; height: 80px; fill: var(--tuerkis); margin: 0 auto 28px; display: block; }
.home-mosaic-feature p {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 36px;
	line-height: 54px;
	max-width: 420px;
	margin: 0;
}

.home-work-intro { padding: 107px 40px 0; }
.home-work-intro .section-intro { max-width: 960px; }
.home-work-cols { padding: 130px 40px 134px; }
.work-cols {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 60px;
	max-width: 1360px;
	margin: 0 auto;
}
.work-col { text-align: center; }
.work-icon svg { width: 80px; height: 80px; fill: #fff; display: inline-block; }
.work-divider {
	display: block;
	width: 200px;
	height: 2px;
	background: #fff;
	margin: 36px auto;
}
.work-logo svg { width: 239px; height: auto; display: inline-block; margin-bottom: 15px; }
.work-col p { font-size: 24px; line-height: 36px; margin: 0 auto; max-width: 370px; }
.work-col a { color: var(--tuerkis); }

@media (max-width: 1023px) {
	.home-mosaic-tiles .mosaic-tile { aspect-ratio: 192 / 250; }
	.mosaic-tile-title { font-size: 36px; line-height: 40px; }
	.mosaic-tile-sub { font-size: 18px; line-height: 24px; }
	.home-mosaic-feature { padding: 60px 24px; }
	.feature-icon svg { width: 100px; height: 100px; }
	.work-cols { grid-template-columns: 1fr; gap: 50px; }
	.work-logo svg { width: 200px; }
}
@media (max-width: 480px) {
	/* Projekte: Kacheln einspaltig in Original-Reihenfolge */
	.projekte-mosaic { flex-direction: column; }
	.projekte-col { display: contents; }
	.projekte-tile { aspect-ratio: 3 / 2 !important; }
	.pt-o1 { order: 1; } .pt-o2 { order: 2; } .pt-o3 { order: 3; }
	.pt-o4 { order: 4; } .pt-o5 { order: 5; } .pt-o6 { order: 6; }

	.home-mosaic { flex-direction: column; }
	.home-mosaic-tiles { flex: none; }
	.home-mosaic-tiles .mosaic-tile { aspect-ratio: 1 / 1; }
	.mosaic-tile-title { font-size: 24px; line-height: 27px; }
	.mosaic-tile-sub { font-size: 14px; line-height: 18px; }
	.home-mosaic-feature { flex: none; padding: 55px 24px; }
	.home-mosaic-feature p { font-size: 24px; line-height: 36px; }
	.feature-icon svg { width: 80px; height: 80px; }
	.work-col p { font-size: 18px; line-height: 27px; }
}

/* --------------------------------------------------------------------------
   Seitenkopf (H1 + Einleitung) und Textseiten
   -------------------------------------------------------------------------- */

.page-intro { text-align: center; padding: 100px 40px 40px; }
.page-intro h1, .page-intro-h1 {
	font-size: 72px;
	line-height: 72px;
	margin: 0 0 40px;
}
.page-intro--kompakt { padding-top: 110px; }
.page-intro--kompakt h1 { line-height: 86px; margin-bottom: 30px; }
.page-intro-text {
	font-size: 24px;
	line-height: 36px;
	max-width: 940px;
	margin: 0 auto;
}
.projekt-ort { font-size: 36px; line-height: 43px; margin: 4px 0 44px; }

.textseite { max-width: 1000px; margin: 0 auto; padding: 100px 20px 120px; }
.textseite h1 { font-size: 72px; line-height: 86px; margin: 0 0 40px; }
.textseite h2 { font-size: 36px; line-height: 44px; margin: 48px 0 20px; }
.textseite h3, .textseite h4 {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 24px;
	line-height: 36px;
	margin: 20px 0 4px;
}
.textseite p, .textseite li { font-size: 18px; line-height: 27px; overflow-wrap: anywhere; }
.textseite p { margin: 0; }
.textseite a { color: var(--tuerkis); }
.textseite ol > li { margin-bottom: 18px; }
.impressum-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; }

/* --------------------------------------------------------------------------
   Projekte-/Team-Mosaik (randlose Bildkacheln, 3 Spalten)
   -------------------------------------------------------------------------- */

.projekte-mosaic, .team-mosaic { display: flex; }
.projekte-col { flex: 1 1 33.333%; min-width: 0; }
.projekte-tile {
	display: block;
	background-size: cover;
	background-position: center;
	position: relative;
}
.projekte-tile--kurz { aspect-ratio: 4 / 3; }
.projekte-tile--lang { aspect-ratio: 4 / 5; }
.team-mosaic--klein { display: none; }
.team-mosaic {
	display: flex;
	margin: 0 auto;
	padding: 55px 4.17% 0;
}
.team-col { flex: 1 1 33.333%; min-width: 0; }
.team-tile {
	position: relative;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	outline: 0;
}
.team-tile--kurz { aspect-ratio: 4 / 3; }
.team-tile--lang { aspect-ratio: 4 / 5; }
.team-tile--frage { background-color: var(--tuerkis); }
.team-tile-frage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 110px;
	color: #fff;
}
.team-item { position: relative; }
.team-tile-caption {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	padding: 18px 16px;
	background: rgba(255, 255, 255, .6);
	color: var(--tiefblau);
	opacity: 0;
	transition: opacity .3s;
}
.team-item:hover .team-tile-caption,
.team-tile:focus + .team-tile-caption { opacity: 1; }
.team-tile-name {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 24px;
	line-height: 30px;
	margin-bottom: 2px;
}
.team-tile-rolle { font-size: 18px; line-height: 26px; }

/* --------------------------------------------------------------------------
   Team: Zitat + Netzwerk
   -------------------------------------------------------------------------- */

.team-quote { text-align: center; padding: 10px 40px 50px; }
.team-quote-text {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 30px;
	line-height: 36px;
	max-width: 620px;
	margin: 0 auto 16px;
}
.team-quote-name { font-size: 24px; line-height: 36px; margin: 0; }

.netzwerk { text-align: center; padding: 90px 40px 60px; }
.netzwerk .page-intro-h1 { margin-bottom: 30px; }
.netzwerk-logos {
	display: grid;
	grid-template-columns: repeat(3, 200px);
	gap: 30px 120px;
	justify-content: center;
	margin-top: 60px;
}
.netzwerk-logo svg { width: 200px; height: 200px; }
.netzwerk-logo svg path { fill: var(--tiefblau); }

/* --------------------------------------------------------------------------
   Referenzen
   -------------------------------------------------------------------------- */

.ref-mosaic { margin: 0 auto; padding: 54px 4.17% 0; }
.ref-mosaic--tablet, .ref-mosaic--mobil, .ref-intro-unten { display: none; }
.ref-grid { display: flex; gap: 20px; }
.ref-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ref-item { position: relative; }
.ref-item--panorama { margin-top: 20px; }
.ref-tile {
	position: relative;
	display: block;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	text-decoration: none;
	outline: 0;
}
.ref-tile--kurz { aspect-ratio: 4 / 3; }
.ref-tile--hoch { aspect-ratio: 4 / 5; }
.ref-tile--panorama { aspect-ratio: 1320 / 347; }
.ref-tile--mobil { aspect-ratio: 3 / 2; }
.ref-tile--frage { background: var(--tuerkis); }
.ref-tile-frage {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 130px;
	color: rgba(255, 255, 255, .75);
}
.ref-tile-caption {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	text-align: center;
	padding: 40px 24px 28px;
	background: rgba(255, 255, 255, .72);
	color: var(--tiefblau);
	opacity: 0;
	transition: opacity .3s;
}
.ref-item:hover .ref-tile-caption,
.ref-tile:focus + .ref-tile-caption { opacity: 1; }
.ref-tile-caption { pointer-events: none; }
.ref-tile--panorama .ref-tile-caption { padding: 28px 24px; }
.ref-tile-kopf { display: block; }
.ref-tile-name {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 24px;
	line-height: 30px;
	margin-bottom: 2px;
}
.ref-tile-ort { display: block; font-size: 18px; line-height: 26px; }
.ref-tile-daten { display: block; font-size: 18px; line-height: 26px; }
.ref-tile-daten span { display: block; }
.ref-tile-quelle { display: block; font-size: 18px; line-height: 26px; }

/* --------------------------------------------------------------------------
   Finance: Akkordeons
   -------------------------------------------------------------------------- */

.accordions { max-width: 720px; margin: 0 auto; padding: 104px 20px 120px; }
.accordion-item { border: 0; }
.accordion-header {
	display: flex;
	align-items: center;
	gap: 60px;
	width: 100%;
	background: none;
	border: 0;
	padding: 36px 0;
	cursor: pointer;
	text-align: left;
	color: var(--tiefblau);
}
.accordion-icon svg { width: 80px; height: 80px; fill: var(--tuerkis); display: block; }
.accordion-titel {
	flex: 1 1 auto;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 52px;
	line-height: 1;
}
.accordion-chevron svg { width: 40px; height: 40px; fill: var(--tiefblau); transition: transform .25s; }
.accordion-item.is-open .accordion-chevron svg { transform: rotate(180deg); }
.accordion-body {
	padding: 0 0 30px 140px;
	font-size: 24px;
	line-height: 36px;
}
/* Zugeklappt wird über das hidden-Attribut ("until-found"): Der Text bleibt
   für Seitensuche und Sprungmarken auffindbar, der Browser klappt ihn dann
   selbst auf. Optisch identisch zum bisherigen display:none. */
.accordion-body[hidden] { display: none; }
.accordion-body ul { margin: 16px 0 0; padding-left: 26px; }

/* --------------------------------------------------------------------------
   Kontaktformular
   -------------------------------------------------------------------------- */

.kontakt-formular { padding: 40px 20px 150px; }
.kontakt-untertitel {
	font-size: 36px;
	line-height: 43px;
	text-align: center;
	margin: 50px 0 70px;
}
.nf-form { max-width: 960px; margin: 0 auto; }
.nf-form-reihe { display: flex; gap: 45px; }
.nf-form-feld { flex: 1 1 50%; margin-bottom: 20px; }
.nf-form-feld--voll { flex-basis: 100%; }
.nf-form label {
	display: block;
	text-align: center;
	font-size: 24px;
	line-height: 36px;
	margin-bottom: 6px;
}
.nf-form input[type="text"],
.nf-form input[type="email"],
.nf-form input[type="tel"],
.nf-form textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--tiefblau);
	background: transparent;
	font-family: var(--font-body);
	font-size: 21px;
	line-height: 28px;
	color: var(--tiefblau);
	padding: 2px 6px;
	border-radius: 0;
}
.nf-form textarea { height: 50px; resize: vertical; }
.nf-form input:focus, .nf-form textarea:focus { outline: 0; border-bottom-color: var(--tuerkis); }
.nf-form-hinweis { text-align: center; font-size: 18px; line-height: 36px; margin: 16px 0 30px; }
.nf-form-hinweis a { color: var(--tuerkis); }
.nf-form-senden { text-align: center; }
.nf-form-senden .button { min-width: 274px; }
.nf-form-status { text-align: center; font-size: 21px; line-height: 32px; margin: 24px auto 0; max-width: 700px; padding: 14px 20px; }
.nf-form-status--ok { background: var(--hell-tuerkis); }
.nf-form-status--fehler { background: #f6d5d5; }
.nf-form .nf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Projekt-Detailseiten (Carolinensiel, Langeoog)
   -------------------------------------------------------------------------- */

.hero--projekt {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.hero--projekt::before { content: ''; position: absolute; inset: 0; background: rgba(21, 43, 64, .35); }
.hero-projekt-logo { position: relative; }
.hero-projekt-logo svg { width: 400px; height: 400px; fill: #fff; }

.projekt-split { display: flex; align-items: stretch; }
.page-intro + .projekt-split { margin-top: 74px; }
.projekt-split-bild {
	flex: 0 0 50%;
	background-size: cover;
	background-position: center;
	min-height: var(--split-h, 700px);
}
.projekt-split-inhalt {
	flex: 0 0 50%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 40px;
}
.projekt-h2 { font-size: 60px; line-height: 72px; margin: 0 0 50px; text-align: center; max-width: 100%; overflow-wrap: break-word; }
.projekt-h3 { font-size: 36px; line-height: 43px; margin: 0 0 50px; text-align: center; }
.projekt-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 250px));
	gap: clamp(50px, 6.3vw, 91px) clamp(30px, 6.25vw, 90px);
	justify-content: center;
	width: 100%;
}
.projekt-stat { display: flex; flex-direction: column; align-items: center; }
.projekt-stat-wert {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 48px;
	line-height: 1;
	color: var(--tuerkis);
	border-bottom: 2px solid var(--tuerkis);
	padding-bottom: 16px;
	margin-bottom: 34px;
}
.projekt-stat-label { font-size: 24px; line-height: 36px; }
.projekt-text, .projekt-fin-text { font-size: 24px; line-height: 36px; max-width: 640px; }
.projekt-text p { margin: 0 0 1em; }
.projekt-text p:last-child { margin-bottom: 0; }
.projekt-fin-karten { display: flex; gap: 120px; margin-top: 60px; }
.projekt-fin-karte {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: var(--tiefblau);
}
.projekt-fin-icon svg { width: 80px; height: 80px; fill: var(--tuerkis); margin-bottom: 14px; }
.projekt-fin-label { font-size: 19px; line-height: 28.5px; }
.projekt-fussnote { font-size: 14px; line-height: 36px; margin: 40px 0 0; }
.projekt-fin-karten + p { margin: 40px 0 0; }

.projekt-cta-links {
	flex: 0 0 50%;
	min-width: 0;
	background-color: var(--tiefblau);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 40px;
	min-height: 700px;
}
.projekt-cta-links h2 { font-size: 60px; line-height: 72px; max-width: 620px; margin: 0 0 70px; }

.projekt-teaser { text-align: center; padding: 100px 40px 140px; }
.projekt-teaser .projekt-h2 { margin-bottom: 50px; }
.projekt-teaser-karte {
	display: inline-block;
	max-width: 1040px;
	text-decoration: none;
	color: var(--tiefblau);
}
.projekt-teaser-karte img { width: 100%; height: auto; }
.projekt-teaser-titel {
	display: block;
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 36px;
	line-height: 40px;
	margin-top: 30px;
}
.projekt-teaser-ort { display: block; font-size: 24px; line-height: 36px; }

/* Einblend-Animation (Original: Duda-Entrance-Animationen) */
/* Grundzustand: sichtbar. Ohne JavaScript (z. B. Crawler ohne Rendering,
   Sprungmarken auf einzelne Textstellen) bleibt damit jeder Text lesbar.
   Erst wenn JavaScript läuft, wird eingeblendet. */
.anim { opacity: 1; transform: none; }
.js .anim {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .7s ease, transform .7s ease;
}
.js .anim.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .anim { opacity: 1; transform: none; transition: none; }
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (≤ 1023 px)
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
	:root { --header-h: 180px; }

	.header-inner { padding: 0 18px; }
	.brand { margin: 0 auto; }
	.brand img { width: 287px; }

	.menu-toggle {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 9px;
		width: 52px;
		height: 52px;
		padding: 8px;
		background: none;
		border: 0;
		cursor: pointer;
	}
	.menu-toggle-bar {
		display: block;
		width: 100%;
		height: 3px;
		background: var(--tuerkis);
	}

	.menu-close { display: block; }

	/* Menü: Drawer von links (Tablet), Vollbild (Mobil) */
	.site-nav {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 307px;
		background: var(--tuerkis) url('../images/muster-menue.jpg') no-repeat left bottom / 100% auto;
		z-index: 300;
		padding: 90px 0 40px;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform .3s ease;
		visibility: hidden;
	}
	.site-nav.is-open { transform: none; visibility: visible; }
	.nav-overlay:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(21, 43, 64, .6);
		z-index: 250;
	}
	.menu-close {
		display: block;
		position: absolute;
		top: 22px;
		left: 24px;
		background: none;
		border: 0;
		color: #fff;
		cursor: pointer;
		padding: 6px;
	}
	.nav-list { display: block; padding: 0 0 0 40px; }
	.nav-list a {
		display: inline-block;
		color: rgba(255, 255, 255, .5);
		font-size: 24px;
		line-height: 36px;
		padding: 0;
		margin: 0 0 24px;
	}
	.nav-list > li > a::after { content: none; }
	.nav-list li.current-menu-item > a,
	.nav-list li.current-menu-ancestor > a,
	.nav-list li:hover > a {
		color: #fff;
		border-bottom: 2px solid #fff;
	}
	.nav-list .sub-menu {
		display: none;
		position: static;
		background: none;
		min-width: 0;
		padding-left: 12px;
	}
	.nav-list li.is-sub-open > .sub-menu { display: block; }
	.nav-list .sub-menu a {
		color: rgba(255, 255, 255, .5);
		font-size: 24px;
		line-height: 36px;
		padding: 0;
		margin-bottom: 16px;
	}
	.nav-list--rechtliches { margin-top: 0; }
	body.nav-offen { overflow: hidden; }

	.footer-inner { padding: 90px 30px 104px; }
	.footer-logo { padding-left: 50px; }
	.footer-logo img { width: 149px; }
	.footer-address { padding-right: 16px; }
	.footer-social { gap: 12px; margin-top: 40px; }
	.footer-social svg { width: 28px; height: 28px; }

	.section { padding: 70px 24px; }
	.section-title { font-size: 44px; line-height: 50px; }
	.claim-band p, .claim-band h1 { font-size: 36px; line-height: 54px; }
	.hero { height: 600px; }

	.page-intro { padding: 106px 30px 30px; }
	.projekt-split-bild { min-height: 500px; }
	.projekt-split-inhalt { padding: 90px 40px; }
	.projekt-fin-karten { gap: 40px; }
	.projekt-stats { grid-template-columns: repeat(2, minmax(0, 140px)); gap: 60px 24px; }
	.projekt-text, .projekt-fin-text { max-width: 100%; }
	.textseite { padding-left: 40px; padding-right: 40px; }
	.projekt-stats { grid-template-columns: repeat(2, minmax(0, 160px)); gap: 60px 40px; }
	.hero-projekt-logo svg { width: 300px; height: 300px; }
	.projekt-teaser-karte { max-width: 74%; }

	.accordions { max-width: 640px; padding-bottom: 90px; }
	.accordion-titel { font-size: 40px; }
	.accordion-header { gap: 40px; }
	.accordion-body { padding-left: 120px; }

	.netzwerk-logos { grid-template-columns: repeat(3, 176px); gap: 30px 60px; }
	.netzwerk-logo svg { width: 176px; height: 176px; }

	.nf-form-reihe { flex-direction: row; }
	.kontakt-formular { padding-bottom: 110px; }

	/* Referenzen: 2 Spalten, alle Daten sichtbar unter der Kachel, Titel unten */
	.ref-mosaic--desktop, .ref-intro-oben { display: none; }
	.ref-mosaic--tablet { display: block; padding-top: 60px; }
	.ref-intro-unten { display: block; }
	.ref-mosaic--tablet .ref-item { margin-bottom: 64px; }
	.ref-mosaic--tablet .ref-tile-caption,
	.ref-mosaic--mobil .ref-tile-caption {
		position: static;
		opacity: 1;
		background: none;
		color: var(--tiefblau);
		padding: 14px 8px 0;
		justify-content: flex-start;
	}
	.ref-tile-daten { margin: 14px 0; }
	.ref-mosaic--tablet .ref-tile--frage .ref-tile-caption .ref-tile-name {
		font-size: 24px;
	}

	/* Team: 3x3 quadratische Kacheln mit Beschriftung darunter */
	.team-mosaic--desktop { display: none; }
	.team-mosaic--klein { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 0; padding: 40px 7.8% 0; }
	.team-mosaic--klein .team-tile { aspect-ratio: 1 / 1; }
	.team-mosaic--klein .team-tile-wrap { margin-bottom: 0; }
	.team-mosaic--klein .team-tile-caption {
		position: static;
		opacity: 1;
		background: none;
		color: var(--tiefblau);
		padding: 16px 10px 0;
		min-height: 146px;
	}
	.team-mosaic--klein .team-tile-name { font-size: 21px; line-height: 26px; margin-bottom: 4px; }
	.team-mosaic--klein .team-tile-rolle { font-size: 15px; line-height: 21px; }
}

/* --------------------------------------------------------------------------
   Responsive: Mobil (≤ 480 px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
	:root { --header-h: 96px; }

	/* Handys erhalten die 768-px-Fassung der Hintergrundbilder (deutlich kleiner). */
	@supports (background-image: image-set(url("i.webp") type("image/webp"))) {
		.nf-bg { background-image: var(--bg-klein, var(--bg-webp, var(--bg))); }
	}

	body { font-size: 18px; line-height: 27px; }

	.header-inner { padding: 0 10px; }
	.brand img { width: 210px; }
	.menu-toggle { width: 40px; height: 40px; gap: 7px; padding: 6px; }

	.site-nav { width: 100%; text-align: center; background-position: right bottom; background-size: 90% auto; }
	.nav-list { padding: 0 20px; }
	.nav-overlay { display: none; }

	.hero { height: 260px; }
	.claim-band { min-height: 0; padding: 55px 24px; }
	.claim-band p, .claim-band h1 { font-size: 24px; line-height: 36px; }

	.section { padding: 55px 20px; }
	.section-title { font-size: 36px; line-height: 38px; }
	.section-intro { font-size: 18px; line-height: 27px; }
	.cta-band { padding: 51px 20px 45px; }
	.cta-band h2 { font-size: 36px; line-height: 43px; }
	.cta-band p { font-size: 18px; line-height: 24px; }

	.footer-inner { flex-direction: column; align-items: center; text-align: center; padding: 48px 24px 72px; }
	.footer-logo { flex: none; padding: 0 0 34px; }
	.footer-address { padding-right: 0; }
	.footer-meta { flex: none; }
	.footer-address p { font-size: 18px; line-height: 27px; margin-bottom: 27px; }
	.footer-company-name { font-size: 21px; }
	.footer-company-name--small { font-size: 18px; }
	.footer-links a { font-size: 18px; display: block; margin: 0; }
	.footer-logo img { width: 237px; }
	.footer-social { flex-direction: column; align-items: center; gap: 20px; margin-top: 30px; }
	.footer-social svg { width: 40px; height: 40px; }

	.hero { height: 280px; }
	.hero--home { height: 260px; }
	.page-intro { padding: 55px 20px 20px; }
	.page-intro h1, .page-intro-h1 { font-size: 42px; line-height: 42px; margin-bottom: 24px; }
	.page-intro-text { font-size: 18px; line-height: 24px; }
	.projekt-ort { font-size: 24px; line-height: 24px; margin-bottom: 28px; }
	.projekt-h2 { font-size: 36px; line-height: 43px; margin-bottom: 34px; }
	.projekt-h3 { font-size: 24px; line-height: 29px; margin-bottom: 26px; }
	.projekt-split { flex-direction: column; }
	.projekt-split--rueckwaerts { flex-direction: column-reverse; }
	.projekt-split-bild { min-height: 300px; flex-basis: auto; }
	.projekt-split-inhalt { padding: 50px 20px; }
	.projekt-cta { flex-direction: column-reverse; }
	.projekt-cta-links { flex-basis: auto; }
	.projekt-cta-links { min-height: 246px; padding: 50px 20px; }
	.projekt-cta-links h2 { font-size: 36px; line-height: 43px; margin-bottom: 30px; }
	.projekt-stats { grid-template-columns: 1fr; gap: 56px; width: 100%; }
	.projekt-stat-wert { font-size: 36px; padding-bottom: 12px; margin-bottom: 26px; }
	.projekt-stat-label { font-size: 18px; line-height: 27px; }
	.projekt-text { font-size: 18px; line-height: 24px; }
	.projekt-fin-text { font-size: 18px; line-height: 27px; }
	.projekt-fin-karten { gap: 50px; margin-top: 40px; }
	.projekt-teaser { padding: 55px 20px 70px; }
	.projekt-teaser-karte img { aspect-ratio: 350 / 140; object-fit: cover; }
	.projekt-teaser-titel { font-size: 24px; line-height: 24px; margin-top: 24px; }
	.projekt-teaser-ort { font-size: 18px; line-height: 24px; }
	.hero-projekt-logo svg { width: 200px; height: auto; max-height: 200px; }
	.button { font-size: 16px; line-height: 18px; padding: 10px 24px; border-radius: 19px; }

	.accordions { padding: 24px 20px 60px; }
	.accordion-header { gap: 10px; padding: 22px 0; }
	.accordion-icon svg { width: 40px; height: 40px; }
	.accordion-titel { font-size: 23px; line-height: 24px; }
	.accordion-chevron svg { width: 20px; height: 20px; }
	.accordion-body { padding-left: 50px; font-size: 18px; line-height: 24px; }

	.team-quote-text { font-size: 24px; line-height: 29px; }
	.team-quote-name { font-size: 18px; line-height: 24px; }
	.team-tile--frage span { font-size: 64px; }
	.netzwerk { padding: 60px 20px 40px; }
	.netzwerk-logos { grid-template-columns: 100px; gap: 20px; }
	.netzwerk-logo svg { width: 100px; height: 100px; }

	.ref-mosaic--tablet { display: none; }
	.ref-mosaic--mobil { display: block; padding: 161px 0 0; }
	.ref-mosaic--mobil .ref-item { margin-bottom: 4px; }

	.team-mosaic--klein { grid-template-columns: 1fr; padding: 30px 20px 0; gap: 0; }
	.team-mosaic--klein .team-tile-wrap { margin-bottom: 0; }
	.team-mosaic--klein .team-tile-caption { padding: 10px 8px 0; min-height: 79px; }
	.team-mosaic--klein .team-tile-name { font-size: 21px; line-height: 26px; margin-bottom: 2px; }
	.team-mosaic--klein .team-tile-rolle { font-size: 15px; line-height: 20px; }

	.kontakt-untertitel { font-size: 24px; line-height: 30px; margin: 30px 0 40px; }
	.nf-form-reihe { flex-direction: column; gap: 0; }
	.nf-form label { font-size: 17px; line-height: 26px; }
	.nf-form-hinweis { font-size: 14px; line-height: 22px; }
	.kontakt-formular { padding-bottom: 80px; }

	.textseite { padding: 55px 20px 70px; }
	.textseite h1 { font-size: 36px; line-height: 43px; }
	.textseite h2 { font-size: 24px; line-height: 30px; }
	.textseite h3, .textseite h4 { font-size: 19px; line-height: 24px; }
	.textseite p, .textseite li { font-size: 14px; line-height: 21px; }
}


.ref-mosaic--schmal { display: none; }

/* --------------------------------------------------------------------------
   Schmaler Desktop (1024–1139 px): Original zeigt Beschriftungen dauerhaft
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) and (max-width: 1139px) {
	.team-tile-caption {
		position: static;
		opacity: 1;
		background: none;
		color: var(--tiefblau);
		padding: 12px 8px 26px;
	}
	.team-tile-name { font-size: 21px; line-height: 26px; }
	.team-tile-rolle { font-size: 15px; line-height: 21px; }

	.ref-mosaic--desktop { display: none; }
	.ref-mosaic--schmal { display: block; }
	.ref-mosaic--schmal .ref-tile-caption { opacity: 1; }
}
