/*
Theme Name:   Blocksy Child McWarnecke
Theme URI:    https://mcwarnecke.com
Description:  Child Theme fuer mcwarnecke.com. Liefert nur Design: Tokens, Komponenten (mcw-*), lokale Fonts und Icons. Seiten werden mit Core-Blocks gebaut.
Author:       SEOVisory
Author URI:   https://seovisory.de
Template:     blocksy
Version:      1.3.0
Text Domain:  blocksy-child-mcwarnecke
*/

/* ==========================================================================
   Inhalt
   01 Tokens
   02 Bruecke zu Blocksy (Palette, Fonts, Buttons)
   03 Basis-Typografie
   04 Layout: Section, Wrap, Grid-Helfer
   05 Textbausteine: Eyebrow, Lead, Akzent, Links
   06 Buttons
   07 Icons
   08 Hero (Startseite und Unterseiten)
   09 Feature-Liste (Hero rechts, Ansatz-Schritte)
   10 Kennzahlen
   11 Projektkacheln
   12 Ansatz-Band (dunkel)
   13 Person (Niklas)
   14 Karten (Kooperationen)
   15 Logo-Leiste
   16 News (Query Loop)
   17 CTA / Kontaktwege
   18 Band (Karriere)
   19 Steckbrief: Fakten, Fortschritt, Split, Callout
   20 Blocksy-Rahmen: Seiten, Header, Mobilmenue, Footer
   21 Bildkarten (Kooperationen mit Hintergrundbild)
   22 Panel (Karriere: Text links, Bild rechts)
   23 Hinweis (Foerderung)
   24 Footer-Inhalt (Muster "Footer")
   25 Seitenkopf ohne Bild
   26 Zeitleiste
   27 Kontakt und Formular
   28 Rechtstexte
   29 Erweiterungen: Karten, Checkliste, Stapel, Statement
   30 Foerderung
   31 Seite nicht gefunden (404)
   32 Blog (Blocksy-Beitragsansicht)
   33 Responsive
   ========================================================================== */


/* 01 Tokens ================================================================ */

:root {
	--mcw-green-900: #0B1D15;
	--mcw-green-800: #152D20;
	--mcw-green-700: #155B32;
	--mcw-green-600: #0F4426;
	--mcw-green-500: #2F8443;
	--mcw-green-300: #70BD83;
	--mcw-green-100: #E7EEE8;

	--mcw-ink: #17231D;
	--mcw-text: #3C4842;
	--mcw-muted: #627168;
	--mcw-line: #CBD7CD;
	--mcw-surface: #F4F6F3;
	--mcw-white: #FFFFFF;

	--mcw-font-head: "Saira", system-ui, sans-serif;
	--mcw-font-body: "Inter", system-ui, sans-serif;

	--mcw-wrap: 1280px;
	--mcw-gutter: clamp(20px, 4vw, 48px);
	--mcw-section-y: clamp(64px, 8vw, 112px);
	--mcw-gap: clamp(20px, 2.4vw, 32px);

	--mcw-radius: 8px;
	--mcw-radius-lg: 12px;
	--mcw-shadow: 0 18px 40px -24px rgba(11, 29, 21, .45);
	--mcw-ease: cubic-bezier(.2, .7, .2, 1);

	--mcw-icon-size: 32px;
}


/* 02 Bruecke zu Blocksy ===================================================== */
/* Blocksy liest seine Farben und Fonts aus diesen Variablen. So stimmen auch
   Header, Footer, Formulare und Blog-Ansichten mit dem Design ueberein. */

:root {
	--theme-palette-color-1: var(--mcw-green-700);
	--theme-palette-color-2: var(--mcw-green-600);
	--theme-palette-color-3: var(--mcw-text);
	--theme-palette-color-4: var(--mcw-ink);
	--theme-palette-color-5: var(--mcw-line);
	--theme-palette-color-6: var(--mcw-green-100);
	--theme-palette-color-7: var(--mcw-surface);
	--theme-palette-color-8: var(--mcw-white);

	--theme-text-color: var(--mcw-text);
	--theme-link-initial-color: var(--mcw-green-700);
	--theme-link-hover-color: var(--mcw-green-500);
	--theme-headings-color: var(--mcw-ink);
	--theme-heading-color: var(--mcw-ink);
	--theme-border-color: var(--mcw-line);

	--theme-button-background-initial-color: var(--mcw-green-700);
	--theme-button-background-hover-color: var(--mcw-green-600);
	--theme-button-text-initial-color: var(--mcw-white);
	--theme-button-text-hover-color: var(--mcw-white);
	--theme-button-border-radius: 999px;

	--theme-font-family: var(--mcw-font-body);
}

h1, h2, h3, h4, h5, h6 {
	--theme-font-family: var(--mcw-font-head);
}


/* 03 Basis-Typografie ======================================================= */

body {
	font-family: var(--mcw-font-body);
	color: var(--mcw-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--mcw-font-head);
	color: var(--mcw-ink);
	font-weight: 500;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

.mcw-section h2,
.mcw-h2 {
	font-size: clamp(2rem, 1.35rem + 2.2vw, 3.1rem);
	line-height: 1.08;
	margin: 0 0 .5em;
}

.mcw-section h3 {
	font-size: clamp(1.15rem, 1rem + .4vw, 1.375rem);
	line-height: 1.25;
	font-weight: 600;
}

.mcw-section p {
	text-wrap: pretty;
}


/* 04 Layout ================================================================= */

/* Jede Sektion ist eine Gruppe mit "mcw-section" und Ausrichtung "volle Breite".
   Darin liegt eine Gruppe "mcw-wrap" fuer die Inhaltsbreite. */
.mcw-section {
	position: relative;
	padding-block: var(--mcw-section-y);
	margin-block: 0 !important; /* Blocksy setzt Abstaende zwischen Bloecken; Sektionen liegen buendig */
	background: var(--mcw-white);
}

.mcw-section-light { background: var(--mcw-surface); }
.mcw-section-tight { padding-block: clamp(40px, 5vw, 64px); }
.mcw-section-flush { padding-block: 0; }

.mcw-section-dark {
	background:
		radial-gradient(120% 140% at 0% 0%, rgba(112, 189, 131, .10) 0%, rgba(112, 189, 131, 0) 55%),
		linear-gradient(180deg, var(--mcw-green-800) 0%, var(--mcw-green-900) 100%);
	color: rgba(255, 255, 255, .78);
	--theme-text-color: rgba(255, 255, 255, .78);
	--theme-heading-color: var(--mcw-white);
	--theme-headings-color: var(--mcw-white);
	--theme-link-initial-color: var(--mcw-white);
	--theme-link-hover-color: var(--mcw-green-300);
}

.mcw-section-dark :is(h1, h2, h3, h4, h5, h6) { color: var(--mcw-white); }
.mcw-section-dark p { color: inherit; }

.mcw-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--mcw-wrap) + 2 * var(--mcw-gutter));
	margin-inline: auto !important;
	padding-inline: var(--mcw-gutter);
}

/* Container, deren Kinder per Grid angeordnet werden: Block-Abstaende aus WP
   und Blocksy zuruecksetzen, damit das Raster sauber steht. */
:is(.mcw-split, .mcw-intro, .mcw-tiles, .mcw-tiles__grid, .mcw-stats, .mcw-features,
	.mcw-steps, .mcw-cards, .mcw-logos, .mcw-person, .mcw-cta__options, .mcw-band,
	.mcw-facts, .mcw-progress, .mcw-hero__grid) > * {
	margin-block: 0 !important;
}

/* Zweispaltig mit Intro links */
.mcw-split {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.mcw-split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.mcw-split-reverse > :first-child { order: 2; }

/* Intro-Block: Eyebrow, H2, Text, Link */
.mcw-intro > * + * { margin-top: 1rem !important; }
.mcw-intro h2 { margin-bottom: 0; }
:is(.mcw-intro, .mcw-prose, .mcw-pagehead, .mcw-hero) :is(h1, h2) { overflow-wrap: break-word; hyphens: manual; }
.mcw-intro-center { text-align: center; max-width: 760px; margin-inline: auto; }
.mcw-intro-wide { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px) !important; }


/* 05 Textbausteine ========================================================== */

.mcw-eyebrow {
	font-family: var(--mcw-font-body);
	font-size: .75rem !important;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--mcw-muted);
	margin: 0 0 1.1rem !important;
}

.mcw-section-dark .mcw-eyebrow,
.mcw-hero .mcw-eyebrow { color: rgba(255, 255, 255, .72); }

.mcw-lead {
	font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem);
	line-height: 1.6;
}

/* Akzentwort in Headlines: im Editor das Wort markieren, Textfarbe "MCW Akzent".
   Auf hellem Grund wird automatisch das dunklere Gruen genutzt. */
mark.has-mcw-accent-color,
.has-mcw-accent-color {
	background: transparent !important;
	color: var(--mcw-green-700) !important;
}

.mcw-section-dark .has-mcw-accent-color,
.mcw-hero .has-mcw-accent-color {
	color: var(--mcw-green-300) !important;
}

/* Textlink mit Pfeil, z. B. "Alle Projekte" */
.mcw-arrow-link a {
	display: inline-flex;
	align-items: center;
	gap: .6em;
	font-weight: 500;
	color: var(--mcw-green-700);
	text-decoration: none;
}

.mcw-arrow-link a::after {
	content: "";
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	transition: transform .25s var(--mcw-ease);
}

.mcw-arrow-link a:hover::after { transform: translateX(4px); }
.mcw-section-dark .mcw-arrow-link a { color: var(--mcw-green-300); }

.mcw-small {
	font-size: .875rem;
	color: var(--mcw-muted);
}


/* 06 Buttons ================================================================ */
/* Auf den Button-Block die Klasse "mcw-btn" plus Variante setzen:
   mcw-btn-primary (hellgruen), mcw-btn-dark (dunkelgruen),
   mcw-btn-ghost (Umriss), mcw-btn-external (Pfeil schraeg). */

.wp-block-buttons.mcw-buttons { gap: 14px; }

.wp-block-button.mcw-btn .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: .7em;
	min-height: 50px;
	box-sizing: border-box;
	padding: 0 28px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--mcw-font-body);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--mcw-ease);
}

.wp-block-button.mcw-btn .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1.05em;
	height: 1.05em;
	background: currentColor;
	-webkit-mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-right.svg") center / contain no-repeat;
	transition: transform .25s var(--mcw-ease);
}

.wp-block-button.mcw-btn-external .wp-block-button__link::after {
	-webkit-mask-image: url("assets/icons/arrow-up-right.svg");
	mask-image: url("assets/icons/arrow-up-right.svg");
}

.wp-block-button.mcw-btn .wp-block-button__link:hover::after { transform: translateX(3px); }
.wp-block-button.mcw-btn-external .wp-block-button__link:hover::after { transform: translate(2px, -2px); }

.wp-block-button.mcw-btn-primary .wp-block-button__link {
	background: var(--mcw-green-500);
	color: var(--mcw-white);
}

.wp-block-button.mcw-btn-primary .wp-block-button__link:hover {
	background: var(--mcw-green-700);
	color: var(--mcw-white);
}

.wp-block-button.mcw-btn-dark .wp-block-button__link {
	background: var(--mcw-green-700);
	color: var(--mcw-white);
}

.wp-block-button.mcw-btn-dark .wp-block-button__link:hover {
	background: var(--mcw-green-600);
	color: var(--mcw-white);
}

.wp-block-button.mcw-btn-light .wp-block-button__link {
	background: var(--mcw-white);
	color: var(--mcw-green-900);
}

.wp-block-button.mcw-btn-light .wp-block-button__link:hover {
	background: var(--mcw-green-300);
	color: var(--mcw-green-900);
}

.wp-block-button.mcw-btn-ghost .wp-block-button__link {
	background: transparent;
	border-color: var(--mcw-green-700);
	color: var(--mcw-green-700);
}

.wp-block-button.mcw-btn-ghost .wp-block-button__link:hover {
	background: var(--mcw-green-700);
	color: var(--mcw-white);
}

.mcw-section-dark .wp-block-button.mcw-btn-ghost .wp-block-button__link,
.mcw-hero .wp-block-button.mcw-btn-ghost .wp-block-button__link {
	border-color: rgba(255, 255, 255, .85);
	color: var(--mcw-white);
}

.mcw-section-dark .wp-block-button.mcw-btn-ghost .wp-block-button__link:hover,
.mcw-hero .wp-block-button.mcw-btn-ghost .wp-block-button__link:hover {
	background: var(--mcw-white);
	border-color: var(--mcw-white);
	color: var(--mcw-green-900);
}

.wp-block-button.mcw-btn .wp-block-button__link:focus-visible,
.mcw-section a:focus-visible {
	outline: 2px solid var(--mcw-green-300);
	outline-offset: 3px;
}


/* 07 Icons ================================================================== */
/* Jeder Block mit "mcw-icon" bekommt davor ein Linien-Icon. Das Motiv kommt
   ueber eine zweite Klasse, z. B. "mcw-icon mcw-i-bulb". */

.mcw-icon::before {
	content: "";
	display: block;
	flex: none;
	width: var(--mcw-icon-size);
	height: var(--mcw-icon-size);
	background: currentColor;
	-webkit-mask: var(--mcw-i) center / contain no-repeat;
	mask: var(--mcw-i) center / contain no-repeat;
}

.mcw-i-bulb      { --mcw-i: url("assets/icons/lightbulb.svg"); }
.mcw-i-gear      { --mcw-i: url("assets/icons/settings.svg"); }
.mcw-i-chart     { --mcw-i: url("assets/icons/chart-column-increasing.svg"); }
.mcw-i-users     { --mcw-i: url("assets/icons/users.svg"); }
.mcw-i-search    { --mcw-i: url("assets/icons/search.svg"); }
.mcw-i-box       { --mcw-i: url("assets/icons/box.svg"); }
.mcw-i-globe     { --mcw-i: url("assets/icons/globe.svg"); }
.mcw-i-grad      { --mcw-i: url("assets/icons/graduation-cap.svg"); }
.mcw-i-handshake { --mcw-i: url("assets/icons/handshake.svg"); }
.mcw-i-rocket    { --mcw-i: url("assets/icons/rocket.svg"); }
.mcw-i-factory   { --mcw-i: url("assets/icons/factory.svg"); }
.mcw-i-mail      { --mcw-i: url("assets/icons/mail.svg"); }
.mcw-i-phone     { --mcw-i: url("assets/icons/phone.svg"); }
.mcw-i-pin       { --mcw-i: url("assets/icons/map-pin.svg"); }
.mcw-i-news      { --mcw-i: url("assets/icons/newspaper.svg"); }
.mcw-i-briefcase { --mcw-i: url("assets/icons/briefcase.svg"); }
.mcw-i-flag      { --mcw-i: url("assets/icons/flag.svg"); }
.mcw-i-target    { --mcw-i: url("assets/icons/target.svg"); }
.mcw-i-cpu       { --mcw-i: url("assets/icons/cpu.svg"); }
.mcw-i-check     { --mcw-i: url("assets/icons/check.svg"); }
.mcw-i-user      { --mcw-i: url("assets/icons/user-round.svg"); }
.mcw-i-shield    { --mcw-i: url("assets/icons/shield-check.svg"); }
.mcw-i-heart     { --mcw-i: url("assets/icons/heart-handshake.svg"); }
.mcw-i-clock     { --mcw-i: url("assets/icons/clock.svg"); }
.mcw-i-building  { --mcw-i: url("assets/icons/building-2.svg"); }
.mcw-i-leaf      { --mcw-i: url("assets/icons/leaf.svg"); }
.mcw-i-award     { --mcw-i: url("assets/icons/award.svg"); }
.mcw-i-scale     { --mcw-i: url("assets/icons/scale.svg"); }
.mcw-i-doc       { --mcw-i: url("assets/icons/file-text.svg"); }
.mcw-i-compass   { --mcw-i: url("assets/icons/compass.svg"); }
.mcw-i-layers    { --mcw-i: url("assets/icons/layers.svg"); }
.mcw-i-sprout    { --mcw-i: url("assets/icons/sprout.svg"); }
.mcw-i-calendar  { --mcw-i: url("assets/icons/calendar.svg"); }


/* 08 Hero =================================================================== */
/* Cover-Block mit Klasse "mcw-hero". Overlay im Editor auf 0 lassen,
   der Verlauf kommt aus dem Theme. */

.wp-block-cover.mcw-hero {
	min-height: min(92vh, 780px);
	padding: clamp(96px, 12vw, 140px) 0 clamp(56px, 7vw, 88px);
	align-items: center;
	color: var(--mcw-white);
	margin-block: 0 !important;
}

.wp-block-cover.mcw-hero-sub { min-height: min(70vh, 560px); }

.wp-block-cover.mcw-hero::before,
.wp-block-cover.mcw-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.wp-block-cover.mcw-hero::before {
	background:
		linear-gradient(90deg, rgba(6, 14, 10, .88) 0%, rgba(6, 14, 10, .62) 38%, rgba(6, 14, 10, .18) 70%, rgba(6, 14, 10, .45) 100%),
		linear-gradient(180deg, rgba(6, 14, 10, .35) 0%, rgba(6, 14, 10, 0) 30%, rgba(6, 14, 10, .55) 100%);
}

.wp-block-cover.mcw-hero .wp-block-cover__inner-container {
	z-index: 2;
	width: 100%;
}

.mcw-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	gap: clamp(32px, 6vw, 96px);
	align-items: center;
}

.mcw-hero h1 {
	font-size: clamp(2.75rem, 1.4rem + 4.8vw, 5.4rem);
	line-height: 1.0;
	font-weight: 500;
	color: var(--mcw-white);
	margin: 0 0 .45em !important;
	letter-spacing: -0.015em;
}

.mcw-hero-sub h1 { font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.4rem); }

.mcw-hero .mcw-lead {
	max-width: 33em;
	color: rgba(255, 255, 255, .88);
	margin: 0 0 2.2rem !important;
}

.mcw-hero__content { max-width: 680px; }
.mcw-hero__content > * { margin-block: 0; }


/* 09 Feature-Liste ========================================================== */
/* Gruppe "mcw-features" mit Gruppen "mcw-feature mcw-icon mcw-i-..." darin.
   Jede Feature-Gruppe: Absatz mit Titel (fett) und Absatz mit Text. */

.mcw-features {
	display: grid;
	gap: clamp(22px, 2.6vw, 34px);
}

.mcw-hero .mcw-features {
	padding-left: clamp(24px, 3vw, 44px);
	border-left: 1px solid rgba(255, 255, 255, .28);
}

.mcw-feature {
	display: grid;
	grid-template-columns: var(--mcw-icon-size) minmax(0, 1fr);
	column-gap: 18px;
	align-items: start;
}

.mcw-feature { grid-template-rows: auto 1fr; }
.mcw-feature::before { grid-row: 1 / -1; margin-top: 2px; }
.mcw-feature > * { grid-column: 2; margin: 0 !important; }

.mcw-feature p { font-size: .9rem; line-height: 1.5; }
.mcw-feature p:first-of-type {
	font-size: 1rem;
	font-weight: 600;
	color: var(--mcw-ink);
	margin-bottom: .3rem !important;
}

.mcw-hero .mcw-feature,
.mcw-section-dark .mcw-feature { color: rgba(255, 255, 255, .74); }

.mcw-hero .mcw-feature p:first-of-type,
.mcw-section-dark .mcw-feature p:first-of-type { color: var(--mcw-white); font-weight: 500; }

.mcw-hero .mcw-feature::before { opacity: .95; color: var(--mcw-white); }
.mcw-section-dark .mcw-feature::before { color: var(--mcw-white); }


/* 10 Kennzahlen ============================================================= */

.mcw-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-block: 1px solid var(--mcw-line);
}

.mcw-stat {
	padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px);
}

.mcw-stat + .mcw-stat { border-left: 1px solid var(--mcw-line); }
.mcw-stat > * { margin: 0 !important; }

.mcw-stat__value {
	font-family: var(--mcw-font-head);
	font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
	line-height: 1;
	font-weight: 500;
	color: var(--mcw-green-700);
	margin-bottom: .6rem !important;
}

.mcw-stat__label {
	font-size: .9rem;
	color: var(--mcw-muted);
	line-height: 1.45;
}


/* 11 Projektkacheln ========================================================= */
/* "mcw-tiles": Intro links, rechts "mcw-tiles__grid" mit Cover-Bloecken
   "mcw-tile". Die erste Kachel ist gross ("mcw-tile-lg"). Die Headline der
   Kachel enthaelt den Link; die ganze Kachel ist klickbar. */

.mcw-tiles {
	display: grid;
	grid-template-columns: minmax(280px, 3fr) minmax(0, 9fr);
	gap: clamp(32px, 4vw, 56px);
	align-items: center;
}

.mcw-tiles__grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px;
}

.mcw-tiles__grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mcw-tiles__grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Ab vier Kacheln: grosse Kachel ueber zwei Zeilen, die vierte Kachel
   fuellt unten rechts die Breite. Kommen Marken dazu, laeuft das Raster
   automatisch weiter. */
.mcw-tiles__grid:has(> :nth-child(4)) > .mcw-tile-lg { grid-row: span 2; }
.mcw-tiles__grid:has(> .mcw-tile-lg) > .mcw-tile:nth-child(4):last-child { grid-column: span 2; }
.mcw-tiles__grid:has(> :nth-child(4)) > .wp-block-cover.mcw-tile:not(.mcw-tile-lg) { min-height: 270px; }

.wp-block-cover.mcw-tile {
	min-height: 360px;
	padding: 24px;
	border-radius: var(--mcw-radius);
	overflow: hidden;
	align-items: flex-end;
	justify-content: flex-start;
	color: var(--mcw-white);
	isolation: isolate;
}

.wp-block-cover.mcw-tile::before {
	background: linear-gradient(180deg, rgba(6, 14, 10, .15) 0%, rgba(6, 14, 10, .45) 35%, rgba(6, 14, 10, .92) 75%);
	transition: opacity .3s;
}

.wp-block-cover.mcw-tile-lg { align-items: flex-start; }

.wp-block-cover.mcw-tile-lg::before {
	background: linear-gradient(180deg, rgba(6, 14, 10, .75) 0%, rgba(6, 14, 10, .25) 45%, rgba(6, 14, 10, .35) 100%);
}

.wp-block-cover.mcw-tile .wp-block-cover__image-background {
	transition: transform .7s var(--mcw-ease);
}

.wp-block-cover.mcw-tile:hover .wp-block-cover__image-background { transform: scale(1.04); }

.wp-block-cover.mcw-tile .wp-block-cover__inner-container {
	position: static;
	width: 100%;
}

.mcw-tile .wp-block-cover__inner-container > * {
	position: relative;
	z-index: 2;
	margin: 0 !important;
	max-width: 30em;
}

.mcw-tile h3 {
	color: var(--mcw-white);
	font-size: clamp(1.15rem, 1rem + .35vw, 1.35rem);
	overflow-wrap: anywhere;
	font-weight: 500;
	margin-bottom: .45rem !important;
}

.mcw-tile-lg h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }

.mcw-tile h3 a {
	color: inherit;
	text-decoration: none;
}

/* Ganze Kachel klickbar */
.mcw-tile h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.mcw-tile p {
	font-size: .9rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, .85);
}

/* Pfeil-Kreis */
.wp-block-cover.mcw-tile .wp-block-cover__inner-container::after {
	content: "";
	position: relative;
	z-index: 2;
	display: block;
	width: 34px;
	height: 34px;
	margin-top: 18px;
	border: 1.5px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	background:
		center / 16px no-repeat
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
	transition: background-color .25s, border-color .25s;
}

.wp-block-cover.mcw-tile:hover .wp-block-cover__inner-container::after {
	background-color: var(--mcw-green-500);
	border-color: var(--mcw-green-500);
}

.mcw-tile:focus-within { outline: 2px solid var(--mcw-green-300); outline-offset: 3px; }


/* 12 Ansatz-Band ============================================================ */
/* Dunkle Sektion: Intro links, rechts "mcw-steps" mit vier
   "mcw-feature mcw-step" Gruppen, durch Linien getrennt. */

.mcw-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mcw-step {
	display: block;
	padding-inline: clamp(16px, 2vw, 28px);
	border-left: 1px solid rgba(255, 255, 255, .22);
}

.mcw-step::before { margin: 0 0 18px; }
.mcw-step > * { max-width: 18em; }

/* Intro schmaler, z. B. im Ansatz-Band */
.mcw-split.mcw-split-narrow { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: center; }

.mcw-section:not(.mcw-section-dark) .mcw-step { border-left-color: var(--mcw-line); }

.mcw-split > .mcw-intro + .mcw-steps { align-self: center; }


/* 13 Person ================================================================= */

.mcw-person {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.mcw-person .wp-block-image,
.mcw-person figure {
	margin: 0;
}

.mcw-person .wp-block-image img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--mcw-radius-lg);
	box-shadow: var(--mcw-shadow);
}

.mcw-quote {
	margin: 1.4rem 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: var(--mcw-font-head);
	font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.35rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.3;
	color: var(--mcw-green-700);
	text-wrap: balance;
}

.mcw-quote p { margin: 0; font-style: italic; }
.mcw-quote cite { display: block; margin-top: .6rem; font-family: var(--mcw-font-body); font-size: .85rem; font-style: normal; color: var(--mcw-muted); }


/* 14 Karten ================================================================= */

.mcw-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mcw-gap);
}

.mcw-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: clamp(24px, 2.6vw, 36px);
	background: var(--mcw-white);
	border: 1px solid var(--mcw-line);
	border-radius: var(--mcw-radius);
	transition: border-color .25s, box-shadow .25s, transform .25s var(--mcw-ease);
}

.mcw-card > * { margin: 0 !important; }
.mcw-card::before { color: var(--mcw-green-700); margin-bottom: .5rem; }
.mcw-card h3 { margin: 0; }
.mcw-card .mcw-arrow-link { margin-top: auto !important; padding-top: .5rem; }

.mcw-card:hover {
	border-color: var(--mcw-green-300);
	box-shadow: var(--mcw-shadow);
	transform: translateY(-2px);
}

/* Ganze Karte klickbar ueber den Pfeil-Link */
.mcw-card .mcw-arrow-link a::before {
	content: "";
	position: absolute;
	inset: 0;
}


/* 15 Logo-Leiste ============================================================ */

.mcw-eyebrow.mcw-logos__label { margin: clamp(40px, 5vw, 64px) 0 20px !important; }

.mcw-logos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	align-items: center;
}

.mcw-logos > * {
	display: grid;
	place-items: center;
	min-height: 88px;
	padding: 16px;
	border: 1px dashed var(--mcw-line);
	border-radius: var(--mcw-radius);
	font-size: .8rem;
	color: var(--mcw-muted);
	text-align: center;
}

.mcw-logos img {
	max-height: 52px;
	width: auto;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .25s, opacity .25s;
}

.mcw-logos img:hover { filter: none; opacity: 1; }
.mcw-logos .wp-block-image {
	margin: 0;
	border: 1px solid var(--mcw-line);
	background: var(--mcw-white);
	min-height: 112px;
}

.mcw-logos .wp-block-image img {
	max-height: 64px;
	max-width: 100%;
	object-fit: contain;
}


/* 16 News =================================================================== */

.mcw-news .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--mcw-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.mcw-news .wp-block-post {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	margin: 0;
}

.mcw-news .wp-block-post > * { margin: 0 !important; }

.mcw-news .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--mcw-radius);
	margin-bottom: .6rem !important;
	background: var(--mcw-green-100);
	aspect-ratio: 16 / 10;
}

.mcw-news .wp-block-post-featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--mcw-ease);
}

.mcw-news .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.04); }

.mcw-news .wp-block-post-date,
.mcw-news .wp-block-post-terms {
	font-size: .78rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mcw-muted);
}

.mcw-news .wp-block-post-terms a { color: var(--mcw-green-700); text-decoration: none; }

.mcw-news .wp-block-post-title {
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 500;
}

.mcw-news .wp-block-post-title a { color: var(--mcw-ink); text-decoration: none; }
.mcw-news .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.mcw-news .wp-block-post:hover .wp-block-post-title a { color: var(--mcw-green-700); }

.mcw-news .wp-block-post-excerpt__excerpt { font-size: .95rem; margin: 0; }

.mcw-news__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: end;
	gap: 16px 32px;
	margin-bottom: clamp(28px, 3.5vw, 48px) !important;
}

.mcw-news__head > * { margin: 0 !important; }


/* 17 CTA / Kontaktwege ====================================================== */

.mcw-cta__options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(32px, 4vw, 56px) !important;
}

.mcw-link-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	padding: 28px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--mcw-radius);
	background: rgba(255, 255, 255, .04);
	transition: background-color .25s, border-color .25s;
}

.mcw-link-card > * { margin: 0 !important; }
.mcw-link-card::before { color: var(--mcw-green-300); margin-bottom: .6rem; }
.mcw-link-card h3 a { color: var(--mcw-white); text-decoration: none; }
.mcw-link-card h3 a::after { content: ""; position: absolute; inset: 0; }
.mcw-link-card p { font-size: .92rem; }

.mcw-link-card:hover {
	background: rgba(112, 189, 131, .10);
	border-color: var(--mcw-green-300);
}

/* Auf hellem Grund */
.mcw-section:not(.mcw-section-dark) .mcw-link-card {
	background: var(--mcw-white);
	border-color: var(--mcw-line);
}

.mcw-section:not(.mcw-section-dark) .mcw-link-card h3 a { color: var(--mcw-ink); }
.mcw-section:not(.mcw-section-dark) .mcw-link-card::before { color: var(--mcw-green-700); }


/* 18 Band (Karriere) ======================================================== */

.mcw-band {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 48px;
	align-items: center;
	padding: clamp(28px, 3.5vw, 48px);
	border-radius: var(--mcw-radius-lg);
	background: var(--mcw-white);
	border: 1px solid var(--mcw-line);
}

.mcw-band h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem) !important; margin: 0 0 .4rem !important; }
.mcw-band p { margin: 0; }
.mcw-band__text > * { margin-block: 0; }


/* 19 Steckbrief ============================================================= */

/* Faktenleiste: Gruppe "mcw-facts" mit Gruppen "mcw-fact"
   (Absatz Label, Absatz Wert). */
.mcw-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	border: 1px solid var(--mcw-line);
	border-radius: var(--mcw-radius);
	background: var(--mcw-white);
	overflow: hidden;
}

.mcw-fact {
	padding: 22px 24px;
	border-right: 1px solid var(--mcw-line);
	margin-right: -1px !important;
}

.mcw-fact > * { margin: 0 !important; }

.mcw-fact p:first-child {
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--mcw-muted);
	margin-bottom: .45rem !important;
}

.mcw-fact p:last-child {
	font-family: var(--mcw-font-head);
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--mcw-ink);
}

.mcw-fact a { color: var(--mcw-green-700); }

/* Hero der Unterseite: Faktenleiste ueberlappt die Hero-Unterkante */
.mcw-section-facts { padding-block: 0; background: transparent; z-index: 3; }
.mcw-section-facts .mcw-facts { margin-top: -48px !important; box-shadow: var(--mcw-shadow); }

/* Fortschritt im Ansatz: "mcw-progress" mit vier "mcw-progress__step".
   Erledigte Schritte: "is-done", aktueller Schritt: "is-current". */
.mcw-progress {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	counter-reset: mcw-step;
}

.mcw-progress__step {
	position: relative;
	padding: 22px 22px 24px;
	border-top: 3px solid var(--mcw-line);
	background: var(--mcw-white);
	border-radius: 0 0 var(--mcw-radius) var(--mcw-radius);
	counter-increment: mcw-step;
}

.mcw-progress__step > * { margin: 0 !important; }
.mcw-progress__step p:first-child { font-weight: 600; color: var(--mcw-ink); margin-bottom: .35rem !important; }
.mcw-progress__step p:first-child::before { content: counter(mcw-step) ". "; color: var(--mcw-muted); }
.mcw-progress__step p { font-size: .92rem; }

.mcw-progress__step.is-done { border-top-color: var(--mcw-green-300); }
.mcw-progress__step.is-current { border-top-color: var(--mcw-green-700); background: var(--mcw-green-100); }

.mcw-progress__step.is-current::after {
	content: "Aktueller Stand";
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: .66rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mcw-green-700);
	font-weight: 600;
}

/* Bild im Split */
.mcw-media .wp-block-image,
.mcw-media figure { margin: 0; }

.mcw-media img,
.mcw-media.wp-block-image img {
	width: 100%;
	border-radius: var(--mcw-radius-lg);
	box-shadow: var(--mcw-shadow);
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* Fliesstext-Bereich */
.mcw-prose > * + * { margin-top: 1.1rem !important; }
.mcw-prose ul { padding-left: 1.2em; }
.mcw-prose li + li { margin-top: .4rem; }
.mcw-prose li::marker { color: var(--mcw-green-500); }

/* Callout: Weiter zur Markenseite */
.mcw-callout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 24px 48px;
	align-items: center;
	padding: clamp(28px, 4vw, 56px);
	border-radius: var(--mcw-radius-lg);
	background:
		radial-gradient(120% 160% at 100% 0%, rgba(112, 189, 131, .22) 0%, rgba(112, 189, 131, 0) 55%),
		var(--mcw-green-800);
	color: rgba(255, 255, 255, .8);
}

.mcw-callout > * { margin: 0 !important; }
.mcw-callout h2 { color: var(--mcw-white); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem) !important; margin: 0 0 .5rem !important; }
.mcw-callout p { margin: 0; }
.mcw-callout .mcw-eyebrow { color: var(--mcw-green-300); }

.mcw-callout .wp-block-button.mcw-btn-ghost .wp-block-button__link {
	border-color: rgba(255, 255, 255, .85);
	color: var(--mcw-white);
}


/* 20 Blocksy-Rahmen: Seiten, Header, Mobilmenue, Footer ===================== */
/* Header und Footer werden im Blocksy Header/Footer Builder aufgebaut
   (Aufbau siehe README). Farben, Schrift und Abstaende kommen von hier, damit
   sie unabhaengig vom Customizer zum Design passen. Ausnahme vom Grundsatz
   "keine IDs": #header, #offcanvas und #footer sind feste Blocksy-Container,
   nur so lassen sich dessen Customizer-Styles zuverlaessig ueberschreiben. */

/* Seiten beginnen direkt mit Hero oder Seitenkopf: Blocksy-Abstand und
   automatischer Seitentitel entfallen fuer alle Seiten. */
body.page .ct-container-full[data-vertical-spacing],
body.page .ct-container[data-vertical-spacing] {
	padding-top: 0;
	padding-bottom: 0;
}

body.page .hero-section { display: none; }

/* Sprungziele (Anker) nicht unter dem Header verstecken */
.mcw-section[id],
.wp-block-group[id] { scroll-margin-top: 96px; }

/* Header ------------------------------------------------------------------ */

#header [data-row*="middle"] {
	--height: 84px;
	background-color: var(--mcw-green-900);
	background-image: none;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#header [data-device="mobile"] [data-row*="middle"] { --height: 68px; }

#header .site-logo-container { --logo-max-height: 26px; }
#header [data-device="mobile"] .site-logo-container { --logo-max-height: 22px; }

#header [data-id="menu"] > ul > li > a {
	--theme-font-family: var(--mcw-font-body);
	--theme-font-weight: 500;
	--theme-font-size: 15px;
	--theme-text-transform: none;
	--theme-letter-spacing: 0;
	--theme-link-initial-color: rgba(255, 255, 255, .78);
	--theme-link-hover-color: var(--mcw-white);
	--theme-link-active-color: var(--mcw-white);
	position: relative;
	font-family: var(--mcw-font-body);
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
}

/* Aktiver Menuepunkt und Hover: gruene Unterstreichung direkt am Text */
#header [data-id="menu"] > ul > li > a {
	text-decoration-line: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 10px;
	transition: color .2s, text-decoration-color .2s;
}

#header [data-id="menu"] > ul > li:hover > a,
#header [data-id="menu"] > ul > li:is(.current-menu-item, .current-menu-ancestor, .current-page-ancestor, .current-menu-parent) > a {
	color: var(--mcw-white);
	text-decoration-color: var(--mcw-green-300);
}

/* Untermenue (z. B. Projekte) */
#header [data-id="menu"] .sub-menu {
	--dropdown-background-color: var(--mcw-green-800);
	background-color: var(--mcw-green-800);
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--mcw-radius);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
	padding-block: 8px;
}

#header [data-id="menu"] .sub-menu .ct-menu-link {
	--theme-link-initial-color: rgba(255, 255, 255, .78);
	--theme-link-hover-color: var(--mcw-white);
	color: var(--theme-link-initial-color);
	font-size: 14px;
	text-transform: none;
}

#header [data-id="menu"] .sub-menu .ct-menu-link:hover { color: var(--mcw-white); }

/* Button "Kontakt" */
#header .ct-header-cta .ct-button {
	--theme-button-background-initial-color: var(--mcw-green-500);
	--theme-button-background-hover-color: var(--mcw-green-300);
	--theme-button-text-initial-color: var(--mcw-white);
	--theme-button-text-hover-color: var(--mcw-green-900);
	min-height: 44px;
	padding-inline: 24px;
	border-radius: 999px;
	font-family: var(--mcw-font-body);
	font-size: 15px;
	font-weight: 500;
	text-transform: none;
	gap: .6em;
}

#header .ct-header-cta .ct-button::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
}

/* Menue-Button auf Mobil */
#header .ct-header-trigger {
	--theme-icon-color: var(--mcw-white);
	--theme-icon-hover-color: var(--mcw-green-300);
	color: var(--mcw-white);
}

/* Mobilmenue (Offcanvas) */
:root #offcanvas.ct-panel .ct-panel-inner {
	background: var(--mcw-green-900);
	color: rgba(255, 255, 255, .78);
}

#offcanvas .ct-toggle-close {
	--theme-icon-color: var(--mcw-white);
	--theme-icon-hover-color: var(--mcw-green-300);
	color: var(--mcw-white);
}

#offcanvas .mobile-menu .ct-menu-link,
#offcanvas .mobile-menu a {
	--theme-link-initial-color: var(--mcw-white);
	--theme-link-hover-color: var(--mcw-green-300);
	--theme-link-active-color: var(--mcw-green-300);
	color: var(--mcw-white);
	font-family: var(--mcw-font-head);
	font-size: 1.4rem;
	font-weight: 400;
	text-transform: none;
}

#offcanvas .mobile-menu .sub-menu a {
	font-family: var(--mcw-font-body);
	font-size: 1rem;
	color: rgba(255, 255, 255, .72);
}

#offcanvas .mobile-menu :is(.current-menu-item, .current-menu-ancestor) > a,
#offcanvas .mobile-menu :is(.current-menu-item, .current-menu-ancestor) > .ct-sub-menu-parent > a { color: var(--mcw-green-300); }

html #offcanvas .ct-header-cta { width: 100%; margin-top: 28px; }

html #offcanvas .ct-header-cta .ct-button {
	--theme-button-background-initial-color: var(--mcw-green-500);
	--theme-button-background-hover-color: var(--mcw-green-300);
	--theme-button-text-initial-color: var(--mcw-white);
	--theme-button-text-hover-color: var(--mcw-green-900);
	width: 100%;
	min-height: 50px;
	justify-content: center;
	border-radius: 999px;
	font-family: var(--mcw-font-body);
	font-size: 16px;
	font-weight: 500;
	text-transform: none;
}

/* Footer ------------------------------------------------------------------ */
/* Footer Builder: obere Zeile mit "Widget-Bereich 1" (darin das synchronisierte
   Muster "Footer", Klasse mcw-footer), untere Zeile mit Copyright links und
   Footer-Menue "Rechtliches" rechts. */

#footer {
	background: var(--mcw-green-900);
	border-top: 1px solid rgba(255, 255, 255, .08);
	color: rgba(255, 255, 255, .66);
	font-size: .94rem;
	--theme-text-color: rgba(255, 255, 255, .66);
	--theme-link-initial-color: rgba(255, 255, 255, .8);
	--theme-link-hover-color: var(--mcw-white);
	--theme-heading-color: var(--mcw-white);
}

#footer [data-row] {
	background-color: transparent;
	background-image: none;
	--theme-border-top: none;
	--theme-border-bottom: none;
}

#footer [data-row*="top"] > .ct-container,
#footer [data-row*="middle"] > .ct-container {
	padding-top: clamp(56px, 7vw, 88px);
	padding-bottom: clamp(40px, 5vw, 64px);
}

#footer [data-row*="bottom"] > .ct-container {
	padding-top: 24px;
	padding-bottom: 28px;
	border-top: 1px solid rgba(255, 255, 255, .1);
}

#footer .ct-footer-copyright,
#footer [data-row*="bottom"] { font-size: .85rem; color: rgba(255, 255, 255, .55); }
#footer .ct-footer-copyright p { margin: 0; }

#footer [data-id*="menu"] .ct-menu-link,
#footer [data-id*="menu"] a {
	--theme-link-initial-color: rgba(255, 255, 255, .7);
	--theme-link-hover-color: var(--mcw-white);
	font-size: .85rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

#footer .ct-widget { margin: 0; }
#footer .ct-widget > * { margin-block: 0; }

/* 21 Bildkarten ============================================================= */
/* Cover-Block "mcw-card-image mcw-icon mcw-i-..." mit Hintergrundbild.
   Inhalt: H3, Absatz, Absatz "mcw-arrow-link" (macht die Karte klickbar). */

.wp-block-cover.mcw-card-image {
	position: relative;
	min-height: 440px;
	padding: clamp(24px, 2.6vw, 34px);
	border-radius: var(--mcw-radius);
	overflow: hidden;
	align-items: flex-end;
	justify-content: flex-start;
	color: var(--mcw-white);
	isolation: isolate;
	margin: 0 !important;
}

.wp-block-cover.mcw-card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(6, 14, 10, .30) 0%, rgba(6, 14, 10, .55) 40%, rgba(6, 14, 10, .92) 100%);
	transition: opacity .3s;
}

/* Icon oben links */
.wp-block-cover.mcw-card-image.mcw-icon::before {
	position: absolute;
	top: clamp(24px, 2.6vw, 34px);
	left: clamp(24px, 2.6vw, 34px);
	z-index: 2;
	color: var(--mcw-white);
}

.wp-block-cover.mcw-card-image .wp-block-cover__image-background {
	transition: transform .7s var(--mcw-ease);
}

.wp-block-cover.mcw-card-image:hover .wp-block-cover__image-background { transform: scale(1.04); }

.wp-block-cover.mcw-card-image .wp-block-cover__inner-container {
	position: static;
	width: 100%;
}

.mcw-card-image .wp-block-cover__inner-container > * {
	position: relative;
	z-index: 2;
	margin: 0 !important;
}

.mcw-card-image .wp-block-cover__inner-container > * + * { margin-top: .75rem !important; }
.mcw-card-image h3 { color: var(--mcw-white); }
.mcw-card-image p { font-size: .94rem; line-height: 1.55; color: rgba(255, 255, 255, .86); }
.mcw-card-image .mcw-arrow-link { padding-top: .4rem; }
.mcw-card-image .mcw-arrow-link a { color: var(--mcw-green-300); }

.mcw-card-image .mcw-arrow-link a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
}

.mcw-card-image:focus-within { outline: 2px solid var(--mcw-green-300); outline-offset: 3px; }


/* 22 Panel ================================================================== */
/* Gruppe "mcw-panel" mit Gruppe "mcw-panel__content" (dunkelgruen) und
   Bild-Block "mcw-panel__media". */

.mcw-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	border-radius: var(--mcw-radius-lg);
	overflow: hidden;
	background: var(--mcw-green-700);
	box-shadow: var(--mcw-shadow);
}

.mcw-panel > * { margin: 0 !important; }

.mcw-panel__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 5vw, 72px);
	color: rgba(255, 255, 255, .85);
}

.mcw-panel__content > * { margin: 0 !important; }
.mcw-panel__content > * + * { margin-top: 1.1rem !important; }
.mcw-panel__content .mcw-eyebrow { color: rgba(255, 255, 255, .75); margin-bottom: 0 !important; }
.mcw-panel__content h2 { color: var(--mcw-white); margin: 0 !important; }
.mcw-panel__content p { color: inherit; }
.mcw-panel__content .wp-block-buttons { margin-top: 1.8rem !important; }

.mcw-panel__media,
.mcw-panel .wp-block-image.mcw-panel__media {
	position: relative;
	min-height: 360px;
	margin: 0;
}

.mcw-panel__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}


/* 23 Hinweis ================================================================ */

.mcw-note {
	padding-top: 1.1rem;
	border-top: 1px solid var(--mcw-line);
	font-size: .85rem;
	line-height: 1.55;
	color: var(--mcw-muted);
}


/* 24 Footer-Inhalt (synchronisiertes Muster "Footer") ======================= */

.mcw-footer {
	--theme-link-initial-color: rgba(255, 255, 255, .78);
	--theme-link-hover-color: var(--mcw-white);
	color: rgba(255, 255, 255, .66);
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: 40px clamp(24px, 4vw, 64px);
}

.mcw-footer > *,
.mcw-footer__brand > *,
.mcw-footer__col > * { margin-block: 0 !important; }

.mcw-footer__brand > * + * { margin-top: 1.1rem !important; }
.mcw-footer__brand .wp-block-image img { width: 180px; height: auto; }
.mcw-footer__claim {
	font-family: var(--mcw-font-head);
	font-size: 1.35rem;
	line-height: 1.3;
	color: var(--mcw-white);
	max-width: 16em;
}

.mcw-footer__title {
	font-size: .72rem !important;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--mcw-green-300);
	margin-bottom: 1.1rem !important;
}

.mcw-footer ul,
ul.mcw-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcw-footer li { margin: 0; }
.mcw-footer li + li { margin-top: .55rem; }

.mcw-footer a {
	color: var(--theme-link-initial-color);
	text-decoration: none;
	transition: color .2s;
}

.mcw-footer a:hover { color: var(--mcw-white); }
.mcw-footer__ext a::after {
	content: "";
	display: inline-block;
	width: .8em;
	height: .8em;
	margin-left: .35em;
	background: currentColor;
	opacity: .6;
	-webkit-mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
	mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
}

.mcw-footer p { margin: 0; }
.mcw-footer .mcw-buttons { margin-top: 1.4rem !important; }


/* 25 Seitenkopf ohne Bild =================================================== */
/* Gruppe (volle Breite, Tag section) mit "mcw-section mcw-section-dark
   mcw-pagehead". Darin "mcw-wrap" mit Eyebrow, H1, Lead. */

.mcw-pagehead {
	padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px);
}

.mcw-pagehead h1 {
	font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem);
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: -0.01em;
	max-width: 15em;
	margin: 0 0 .5em !important;
}

.mcw-pagehead .mcw-lead {
	max-width: 40em;
	color: rgba(255, 255, 255, .85);
	margin: 0 !important;
}

.mcw-pagehead .mcw-buttons { margin-top: 2rem !important; }
.mcw-pagehead .mcw-wrap > * { margin-block: 0; }

/* Brotkrumen-Zeile ueber der H1, z. B. "Projekte / McPipeChecker" */
.mcw-crumbs a { color: inherit; text-decoration: none; }
.mcw-crumbs a:hover { color: var(--mcw-white); }


/* 26 Zeitleiste ============================================================= */
/* Gruppe "mcw-timeline" mit Gruppen "mcw-timeline__item":
   Absatz (Jahr), Ueberschrift H3, Absatz (Text). */

.mcw-timeline {
	position: relative;
	display: grid;
	gap: 0;
	padding-left: 32px;
}

.mcw-timeline::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 8px;
	bottom: 8px;
	width: 1px;
	background: var(--mcw-line);
}

.mcw-timeline__item {
	position: relative;
	padding-bottom: clamp(28px, 3vw, 40px);
}

.mcw-timeline__item:last-child { padding-bottom: 0; }
.mcw-timeline__item > * { margin: 0 !important; }

.mcw-timeline__item::before {
	content: "";
	position: absolute;
	left: -32px;
	top: 5px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--mcw-white);
	border: 2px solid var(--mcw-green-500);
	box-sizing: border-box;
}

.mcw-timeline__item > p:first-child {
	font-family: var(--mcw-font-head);
	font-size: .95rem;
	font-weight: 500;
	letter-spacing: .08em;
	color: var(--mcw-green-700);
	margin-bottom: .3rem !important;
}

.mcw-timeline__item h3 {
	font-size: 1.25rem;
	font-weight: 500;
	margin-bottom: .35rem !important;
}

.mcw-section-dark .mcw-timeline::before { background: rgba(255, 255, 255, .2); }
.mcw-section-dark .mcw-timeline__item::before { background: var(--mcw-green-900); border-color: var(--mcw-green-300); }
.mcw-section-dark .mcw-timeline__item > p:first-child { color: var(--mcw-green-300); }


/* 27 Kontakt und Formular =================================================== */
/* Gruppe "mcw-contact": links Gruppe "mcw-contact__info" (Features mit Icons),
   rechts Gruppe "mcw-form" mit dem Pipedrive-Code im HTML-Block. */

.mcw-contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.mcw-contact > * { margin-block: 0 !important; }
.mcw-contact__info > * + * { margin-top: 1.1rem !important; }
.mcw-contact__info .mcw-features { margin-top: 2rem !important; }
.mcw-contact__info .mcw-feature p:last-child a { color: var(--mcw-green-700); text-decoration: none; }
.mcw-contact__info .mcw-feature p:last-child a:hover { text-decoration: underline; }

.mcw-form {
	padding: clamp(20px, 3vw, 40px);
	background: var(--mcw-white);
	border: 1px solid var(--mcw-line);
	border-radius: var(--mcw-radius-lg);
	box-shadow: var(--mcw-shadow);
	min-height: 520px;
}

.mcw-form > * { margin-block: 0 !important; }
.mcw-form > * + * { margin-top: 1rem !important; }
.mcw-form h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.mcw-form iframe { width: 100% !important; max-width: 100%; border: 0; }
.mcw-form .pipedriveWebForms { min-height: 420px; }

.mcw-form__hint { font-size: .82rem; color: var(--mcw-muted); }
.mcw-form__hint a { color: var(--mcw-green-700); }


/* 28 Rechtstexte ============================================================ */
/* Gruppe "mcw-legal" in einer Sektion: ruhiger Fliesstext fuer Impressum
   und Datenschutz. */

.mcw-legal {
	max-width: 820px;
	margin-inline: auto !important;
}

.mcw-legal > * { margin-block: 0 !important; }
.mcw-legal > * + * { margin-top: 1rem !important; }
.mcw-legal h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); margin-top: 2.6rem !important; }
.mcw-legal h3 { font-size: 1.12rem; font-weight: 600; margin-top: 1.8rem !important; }
.mcw-legal h2 + *, .mcw-legal h3 + * { margin-top: .6rem !important; }
.mcw-legal ul { padding-left: 1.2em; }
.mcw-legal li + li { margin-top: .3rem; }
.mcw-legal a { color: var(--mcw-green-700); word-break: break-word; }

.mcw-legal .mcw-todo,
p.mcw-todo {
	padding: 14px 18px;
	border-left: 3px solid #C98A1B;
	background: #FBF4E6;
	color: #6B4A0E;
	font-size: .92rem;
	border-radius: 0 var(--mcw-radius) var(--mcw-radius) 0;
}


/* 29 Erweiterungen fuer Karten, Listen und Stapel =========================== */

/* Vier Karten nebeneinander (Werte) */
.mcw-cards.mcw-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mcw-cards.mcw-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Karten ohne Link: kein Hover-Anheben */
.mcw-card.mcw-card-static:hover { transform: none; box-shadow: none; border-color: var(--mcw-line); }

.mcw-section-dark .mcw-card {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .14);
}

.mcw-section-dark .mcw-card::before { color: var(--mcw-green-300); }

/* Mehrere Splits untereinander (Projekte, Kooperationen) */
.mcw-stack > * { margin-block: 0 !important; }
.mcw-stack > * + * { margin-top: clamp(64px, 8vw, 120px) !important; }

/* Liste mit Haken: Listen-Block mit Klasse "mcw-checklist" */
ul.mcw-checklist {
	list-style: none;
	padding: 0 !important;
	margin: 0;
}

ul.mcw-checklist li {
	position: relative;
	padding-left: 1.9em;
}

ul.mcw-checklist li + li { margin-top: .55rem; }

ul.mcw-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .2em;
	width: 1.15em;
	height: 1.15em;
	background: var(--mcw-green-500);
	-webkit-mask: url("assets/icons/check.svg") center / contain no-repeat;
	mask: url("assets/icons/check.svg") center / contain no-repeat;
}

.mcw-section-dark ul.mcw-checklist li::before { background: var(--mcw-green-300); }

/* Unterzeile unter einem Zitat */
.mcw-quote-source {
	font-size: .9rem;
	color: var(--mcw-muted);
	margin-top: 1rem !important;
}

/* Grosses Zitat auf dunklem Grund, mittig */
.mcw-statement {
	max-width: 980px;
	margin-inline: auto !important;
	text-align: center;
}

.mcw-statement > * { margin-block: 0 !important; }
.mcw-statement .mcw-quote { margin-top: 0 !important; font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.8rem); }
.mcw-statement .mcw-quote-source { margin-top: 1.6rem !important; }
.mcw-section-dark .mcw-statement .mcw-quote { color: var(--mcw-white); }
.mcw-section-dark .mcw-statement .mcw-quote-source { color: rgba(255, 255, 255, .6); }

/* H1 ausserhalb eines Heros, z. B. im Personen-Block auf "Ueber uns" */
.mcw-person h1 {
	font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.2rem);
	line-height: 1.05;
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0 !important;
}

.mcw-person .mcw-lead { color: var(--mcw-ink); }


/* 30 Foerderung ============================================================= */
/* Gruppe "mcw-funding": Bild-Block mit dem Foerderlogo, daneben Gruppe mit Text. */

.mcw-funding {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
	padding: clamp(24px, 3.5vw, 48px);
	background: var(--mcw-white);
	border: 1px solid var(--mcw-line);
	border-radius: var(--mcw-radius-lg);
}

.mcw-funding > * { margin-block: 0 !important; }
.mcw-funding .wp-block-image { margin: 0; }
.mcw-funding .wp-block-image img { width: 100%; height: auto; }
.mcw-funding__text > * { margin-block: 0 !important; }
.mcw-funding__text > * + * { margin-top: .9rem !important; }
.mcw-funding__text h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }


/* 31 Seite nicht gefunden (404) ============================================ */

.mcw-404 .mcw-404__code {
	font-family: var(--mcw-font-head);
	font-size: clamp(5rem, 3rem + 10vw, 11rem);
	line-height: .9;
	font-weight: 500;
	color: var(--mcw-green-300);
	margin: 0 0 1.5rem !important;
	letter-spacing: -0.02em;
}


/* 32 Blog (Blocksy-Beitragsansicht und Archiv) ============================== */
/* News-Beitraege nutzen die Blocksy-Vorlagen. Hier nur Schrift und Farben. */

body.single-post .hero-section .page-title,
body:is(.archive, .blog, .search) .hero-section .page-title {
	font-family: var(--mcw-font-head);
	font-weight: 500;
	color: var(--mcw-ink);
	letter-spacing: -0.01em;
}

body.single-post .entry-content > :is(p, ul, ol) { font-size: 1.0625rem; line-height: 1.75; }
body.single-post .entry-content a { color: var(--mcw-green-700); }
body.single-post .entry-meta,
.entry-card .entry-meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mcw-muted); }

.entries .entry-card {
	border-radius: var(--mcw-radius);
	overflow: hidden;
}

.entries .entry-card .entry-title a { color: var(--mcw-ink); text-decoration: none; }
.entries .entry-card .entry-title a:hover { color: var(--mcw-green-700); }

/* Pagination im Query Loop der News-Seite */
.mcw-news .wp-block-query-pagination {
	margin-top: clamp(32px, 4vw, 56px) !important;
	gap: 8px;
	font-weight: 500;
}

.mcw-news .wp-block-query-pagination a { color: var(--mcw-green-700); text-decoration: none; }
.mcw-news .wp-block-query-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	border-radius: 999px;
}

.mcw-news .wp-block-query-pagination .page-numbers.current { background: var(--mcw-green-700); color: var(--mcw-white); }

.mcw-news .wp-block-query-no-results p {
	padding: 28px;
	border: 1px dashed var(--mcw-line);
	border-radius: var(--mcw-radius);
	color: var(--mcw-muted);
	text-align: center;
}


/* 33 Responsive ============================================================= */

@media (max-width: 999.98px) {
	.mcw-split,
	.mcw-split.mcw-split-narrow,
	.mcw-split-even,
	.mcw-tiles,
	.mcw-person {
		grid-template-columns: minmax(0, 1fr);
	}

	.mcw-split-reverse > :first-child { order: 0; }

	.mcw-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.mcw-hero .mcw-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 28px 0 0;
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, .28);
	}

	.mcw-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mcw-tiles__grid > .mcw-tile-lg { grid-column: 1 / -1; }
	.mcw-tiles__grid:has(> :nth-child(4)) > .mcw-tile-lg { grid-row: auto; }
	.mcw-tiles__grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.mcw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mcw-stat:nth-child(3) { border-left: 0; }
	.mcw-stat:nth-child(n+3) { border-top: 1px solid var(--mcw-line); }

	.mcw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.mcw-step:nth-child(odd) { border-left: 0; padding-left: 0; }

	.mcw-cards,
	.mcw-news .wp-block-post-template,
	.mcw-cta__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

	.mcw-person .wp-block-image { max-width: 440px; }

	.mcw-panel { grid-template-columns: minmax(0, 1fr); }
	.mcw-panel__media { order: -1; min-height: 300px; }

	.mcw-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mcw-footer__brand { grid-column: 1 / -1; }

	.mcw-contact,
	.mcw-funding { grid-template-columns: minmax(0, 1fr); }

	.mcw-cards.mcw-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 689.98px) {
	.mcw-hero .mcw-features,
	.mcw-tiles__grid,
	.mcw-steps,
	.mcw-cards,
	.mcw-news .wp-block-post-template,
	.mcw-cta__options,
	.mcw-progress,
	.mcw-band,
	.mcw-callout {
		grid-template-columns: minmax(0, 1fr);
	}

	.mcw-tiles__grid-4 { grid-template-columns: minmax(0, 1fr); }
	.mcw-tiles__grid:has(> .mcw-tile-lg) > .mcw-tile:nth-child(4):last-child { grid-column: auto; }
	.wp-block-cover.mcw-tile { min-height: 300px; }

	.mcw-step { border-left: 0; padding-left: 0; padding-right: 0; }
	.mcw-step + .mcw-step { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); }

	.mcw-stats { grid-template-columns: minmax(0, 1fr); }
	.mcw-stat + .mcw-stat { border-left: 0; border-top: 1px solid var(--mcw-line); }
	.mcw-stat { text-align: center; }
	.mcw-stat__label { max-width: 28ch; margin-inline: auto !important; }

	.mcw-fact { border-right: 0; border-bottom: 1px solid var(--mcw-line); margin-right: 0 !important; }

	.mcw-footer { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.mcw-cards.mcw-cards-4,
	.mcw-cards.mcw-cards-2 { grid-template-columns: minmax(0, 1fr); }
	.mcw-form { min-height: 0; }

	.wp-block-buttons.mcw-buttons > .wp-block-button { width: 100%; }
	.wp-block-buttons.mcw-buttons .wp-block-button__link { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.mcw-section *,
	.mcw-hero *,
	.mcw-tile * {
		transition: none !important;
	}
}
