/*
Theme Name: CDU Custom Theme
Theme URI: https://www.capotalist.de
Author: Marek Slowig
Description: Modern One-Pager Theme inspiriert vom Corporate Design der CDU.
Version: 0.3.1
*/

:root {
	color-scheme: light;
	--color-brand: #52b7c1;
	--color-brand-dark: #2b6a73;
	--color-dark: #121722;
	--color-darker: #123348;
	--color-light: #f1f6f8;
	--color-white: #ffffff;
	--color-primary: var(--color-brand);
	--color-primary-dark: var(--color-brand-dark);
	--color-accent: #e3000f;
	--color-contrast: #ffffff;
	--color-muted: #6a717d;
	--color-border: rgba(10, 16, 30, 0.08);
	--color-border-strong: rgba(10, 16, 30, 0.12);
	--color-hero-glow: rgba(82, 183, 193, 0.45);
	--shadow-card: 0 25px 45px -35px rgba(5, 5, 5, 0.45);
	--radius-large: 32px;
	--radius-medium: 20px;
	--radius-small: 12px;
	--social-rail-bg: var(--color-primary);
	--social-rail-bg-hover: var(--color-primary-dark);
	--social-rail-border: rgba(5, 5, 5, 0.12);
	--goal-accent: var(--color-primary);
	--goal-accent-dark: var(--color-primary-dark);
}

:root[data-theme='dark'] {
	color-scheme: dark;
	--color-dark: #f4f7fb;
	--color-darker: #03060d;
	--color-light: #0f1624;
	--color-white: #060b13;
	--color-muted: #a9b3c4;
	--color-border: rgba(255, 255, 255, 0.08);
	--color-border-strong: rgba(255, 255, 255, 0.15);
	--color-contrast: #f7f9fc;
	--color-hero-glow: rgba(82, 183, 193, 0.55);
	--shadow-card: 0 25px 55px -35px rgba(0, 0, 0, 0.85);
	--social-rail-bg: #050505;
	--social-rail-bg-hover: #111111;
	--social-rail-border: rgba(255, 255, 255, 0.2);
}


.site-footer {
	background: var(--color-darker);
	color: var(--color-contrast);
	padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 4rem);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1rem, 4vw, 2.5rem);
	align-items: center;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
	text-align: center;
}

.footer-logo svg {
	max-width: 160px;
	height: auto;
	display: block;
	margin: 0 auto;
}

.footer-logo svg .footer-bar {
	opacity: 0;
	transform: translateX(-15px);
	animation: footerBarSlide 6s ease-in-out infinite;
}

.footer-logo svg .footer-bar--1 {
	animation-delay: 2s;
}

.footer-logo svg .footer-bar--2 {
	animation-delay: 1s;
}

.footer-logo svg .footer-bar--3 {
	animation-delay: 0s;
}

@keyframes footerBarSlide {
	0% {
		opacity: 0;
		transform: translateX(-15px);
	}
	20% {
		opacity: 1;
		transform: translateX(0);
	}
	60% {
		opacity: 1;
		transform: translateX(0);
	}
	80% {
		opacity: 0;
		transform: translateX(10px);
	}
	100% {
		opacity: 0;
		transform: translateX(10px);
	}
}

.site-footer__brand p {
	margin: 0;
	font-weight: 600;
}

.site-footer__links {
	text-align: center;
}

.site-footer__social {
	text-align: center;
}

.footer-heading {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.85);
}

.footer-nav {
	display: flex;
	justify-content: center;
}

.footer-social {
	list-style: none;
	display: flex;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	align-items: center;
	justify-content: center;
}

.scroll-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1.25rem, 4vw, 2.5rem);
	width: 56px;
	height: 56px;
	border-radius: 999px;
	border: 1px solid var(--color-border-strong);
	background: var(--color-darker);
	color: var(--color-contrast);
	font-size: 1.4rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 15px 35px -20px rgba(0, 0, 0, 0.55);
	text-decoration: none;
	z-index: 1200;
	transition: opacity 200ms ease, transform 200ms ease, background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.js-ready .scroll-top {
	opacity: 0;
	pointer-events: none;
	transform: translateY(12px);
}

.js-ready .scroll-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.scroll-top:hover {
	background: var(--color-primary);
	border-color: transparent;
	color: var(--color-contrast);
}

[data-theme='dark'] .scroll-top {
	background: var(--color-primary);
	border-color: transparent;
	color: var(--color-contrast);
}

.footer-social__link {
	width: 48px;
	height: 48px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--social-rail-bg);
	color: var(--color-contrast);
	font-weight: 700;
	border: 2px solid var(--social-rail-border);
	transition: transform 200ms ease, background-color 200ms ease;
}

.footer-social__link:hover {
	background: var(--social-rail-bg-hover);
	transform: translateY(-3px);
}

.footer-social__icon {
	width: 22px;
	height: 22px;
	display: block;
	object-fit: contain;
}

.cookie-manage-link {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.cookie-consent {
	position: fixed;
	left: clamp(1rem, 4vw, 2rem);
	right: clamp(1rem, 4vw, 2rem);
	bottom: clamp(1rem, 4vw, 2rem);
	background: rgba(10, 16, 30, 0.95);
	color: var(--color-contrast);
	padding: clamp(1rem, 4vw, 1.5rem);
	border-radius: var(--radius-medium);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	z-index: 9999;
}

.cookie-consent__headline {
	margin: 0;
	font-weight: 700;
}

.cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cookie-consent__actions .button {
	flex: 1;
	min-width: 160px;
}

.cookie-consent .button--ghost,
.cookie-consent .cdu-button--ghost {
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--color-contrast);
}

.cookie-consent .button--ghost:hover,
.cookie-consent .cdu-button--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
}

[data-cookie-manage] {
	color: var(--color-contrast);
}

@media (min-width: 768px) {
	.cookie-consent {
		flex-direction: row;
		align-items: center;
	}
	.cookie-consent__text {
		flex: 2;
	}
	.cookie-consent__actions {
		flex: 1;
		justify-content: flex-end;
	}
}

.cookie-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
}

.cookie-modal__dialog {
	background: var(--color-white);
	color: var(--color-dark);
	width: min(520px, calc(100% - 2rem));
	border-radius: var(--radius-medium);
	padding: 1.5rem;
	box-shadow: var(--shadow-card);
}

[data-theme='dark'] .cookie-modal__dialog {
	background: var(--color-darker);
	color: var(--color-contrast);
}

.cookie-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.cookie-modal__close {
	background: none;
	border: none;
	color: inherit;
	font-size: 1.5rem;
	cursor: pointer;
}

.cookie-toggle {
	display: flex;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--color-border);
}

.cookie-toggle:last-of-type {
	border-bottom: none;
}

.cookie-toggle strong {
	display: block;
	margin-bottom: 0.25rem;
}

.cookie-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.cookie-modal[hidden],
.cookie-consent[hidden] {
	display: none !important;
}

/*
Utility classes: add these names in Gutenberg "Erweiterte Einstellungen → Zusätzliche CSS-Klassen"
to reuse the preset layouts when composing blocks inside the editor.
*/

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	font-family: 'Source Sans 3', 'Inter', system-ui, sans-serif;
	margin: 0;
	min-height: 100vh;
	color: var(--color-dark);
	background-color: var(--color-white);
	line-height: 1.6;
}

body,
.contact-card,
.site-footer,
.hero,
.section--band {
	transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
	text-decoration: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Source Sans 3', 'Inter', system-ui, sans-serif;
	line-height: 1.2;
	margin: 0 0 0.4em;
}

p {
	margin: 0 0 1em;
}

.cdu-heading-xl {
	font-size: clamp(2.25rem, 6vw, 3.8rem);
	font-weight: 700;
	line-height: 1.1;
	margin: 0 0 0.6em;
}

.cdu-heading-lg {
	font-size: clamp(1.5rem, 4.5vw, 2.5rem);
	font-weight: 600;
	margin: 0 0 0.5em;
}

.cdu-text-lead {
	font-size: 1.2rem;
	color: rgba(16, 16, 16, 0.75);
}

.cdu-text-muted {
	color: var(--color-muted);
}

.cdu-hero .cdu-text-lead,
.section--band .cdu-text-lead,
.section--highlight .cdu-text-lead,
.cdu-section--band .cdu-text-lead,
.cdu-section--highlight .cdu-text-lead {
	color: rgba(255, 255, 255, 0.85);
}

.eyebrow,
.cdu-eyebrow {
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}

.button,
.cdu-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-weight: 600;
	border-radius: 999px;
	padding: 0.95rem 1.8rem;
	transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease, color 250ms ease;
	border: 2px solid transparent;
}

.button--primary,
.cdu-button--primary {
	background: var(--color-primary);
	color: var(--color-contrast);
	box-shadow: 0 15px 35px -20px rgba(227, 0, 15, 0.9);
}

.button--primary:hover,
.cdu-button--primary:hover {
	transform: translateY(-2px);
	background: var(--color-primary-dark);
}

.button--ghost,
.cdu-button--ghost {
	border-color: var(--color-dark);
	color: var(--color-dark);
	background: transparent;
}

.button--ghost:hover,
.cdu-button--ghost:hover {
	color: var(--color-contrast);
	background: var(--color-dark);
}


.hero,
.cdu-hero {
	position: relative;
	min-height: 100vh;
	padding: 2rem clamp(1.5rem, 6vw, 6rem) 5rem;
	background: radial-gradient(circle at 5% 10%, var(--color-hero-glow), transparent 55%),
		linear-gradient(135deg, #1f4e65 0%, #123348 50%, #0b2232 100%);
	color: var(--color-contrast);
	overflow: hidden;
}

.hero--compact {
	min-height: auto;
	padding: 1.5rem clamp(1.5rem, 6vw, 4rem) 3rem;
	background: linear-gradient(135deg, #1f4e65 0%, #123348 50%, #0b2232 100%);
}

.hero--compact .hero__body {
	flex-direction: column;
	gap: 2.5rem;
}

.hero--compact .hero__content {
	max-width: 780px;
}

.hero--compact .hero__portrait {
	max-width: 320px;
	margin-left: auto;
}

.page-main {
	background: var(--color-light);
}

.hero::after {
	content: '';
	position: absolute;
	width: 380px;
	height: 380px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	right: -120px;
	bottom: -120px;
}

.hero__nav-shell {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	align-items: center;
	margin-bottom: 4rem;
	position: relative;
}

.hero__nav-tools {
	display: flex;
	align-items: center;
	gap: 1.3rem;
	margin-left: auto;
	position: relative;
	z-index: 40;
}

.hero__nav {
	display: flex;
	flex: 1;
	justify-content: center;
	position: relative;
	z-index: 10;
}

.hero__branding {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.hero__logo {
	display: flex;
	align-items: center;
	max-width: clamp(200px, 24vw, 520px);
	aspect-ratio: 3907 / 861;
}

.hero__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hero__wordmark {
	font-weight: 700;
	letter-spacing: 0.05em;
	font-size: 1.25rem;
}

.hero__tagline {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
}

.hero__nav {
	display: flex;
	gap: 1.5rem;
}

.primary-menu {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

.primary-menu a {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	position: relative;
	display: inline-flex;
	align-items: center;
	column-gap: 0.35rem;
	padding-bottom: 0.4rem;
	transition: color 200ms ease;
}

.primary-menu a:hover {
	color: var(--color-contrast);
}

.primary-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 2px;
	width: 100%;
	background: linear-gradient(90deg, transparent 0%, currentColor 25%, currentColor 75%, transparent 100%);
	opacity: 0;
	transform: scaleX(0);
	transform-origin: center;
	transition: opacity 220ms ease, transform 220ms ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item > a::after,
.primary-menu .current-menu-ancestor > a::after {
	opacity: 1;
	transform: scaleX(1);
}

.hero__nav-toggle {
	display: none;
	flex-direction: column;
	gap: 0.4rem;
	background: transparent;
	border: none;
	cursor: pointer;
}

.theme-toggle {
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.05);
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	color: var(--color-contrast);
	cursor: pointer;
	transition: border-color 200ms ease, background-color 200ms ease;
}

.theme-toggle:hover {
	border-color: rgba(255, 255, 255, 0.7);
	background: rgba(255, 255, 255, 0.12);
}

.theme-toggle__icon {
	font-size: 1rem;
	line-height: 1;
	opacity: 0.35;
	transition: opacity 200ms ease;
}

:root:not([data-theme='dark']) .theme-toggle__icon:first-child,
:root[data-theme='dark'] .theme-toggle__icon:last-child {
	opacity: 1;
}

.hero__cta .button--ghost {
	border-color: rgba(255, 255, 255, 0.55);
	color: var(--color-contrast);
}

.hero__cta .button--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: var(--color-contrast);
}

.hero__nav-toggle span {
	width: 32px;
	height: 2px;
	background: var(--color-contrast);
}

.hero__content {
	max-width: 730px;
}

.hero__body {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 3rem;
	align-items: center;
}

.hero__portrait {
	justify-self: center;
	width: clamp(220px, 28vw, 420px);
	height: auto;
	border-radius: var(--radius-large);
	overflow: hidden;
}

.hero__portrait img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.hero__kicker {
	text-transform: uppercase;
	letter-spacing: 0.25em;
	font-size: 0.85rem;
	color: var(--color-primary);
	margin-bottom: 1rem;
	font-weight: 600;
}

.hero__lead {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.85);
}

.hero__cta {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	flex-wrap: wrap;
}

.section,
.cdu-section {
	padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 5rem);
	background: var(--color-white);
}

.section--light,
.cdu-section--light {
	background: var(--color-light);
}

.section--split,
.cdu-section--split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2.5rem;
	align-items: center;
}

.section--band,
.cdu-section--band {
	background: var(--color-darker);
	color: var(--color-contrast);
}

.section--highlight,
.cdu-section--highlight {
	background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
	color: var(--color-contrast);
	text-align: left;
}

.section--content,
.cdu-section--content {
	background: var(--color-white);
}

.section--content .page-content,
.cdu-section--content .cdu-page-content {
	max-width: 820px;
	margin: 0 auto;
}

.cdu-page-content > *:first-child {
	margin-top: 0;
}

.cdu-page-content > *:last-child {
	margin-bottom: 0;
}

.dialog-shell {
	display: flex;
	justify-content: center;
	align-items: center;
}

.dialog-widget-wrap {
	width: min(480px, 100%);
}

.dialog-widget,
.cdu-dialog-widget {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(6px);
	border-radius: var(--radius-large);
	padding: clamp(1.8rem, 4vw, 2.5rem);
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: 0 35px 85px -70px rgba(0, 0, 0, 0.8);
	color: var(--color-contrast);
	text-align: left;
}

.dialog-widget__eyebrow {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	margin: 0 0 0.5rem;
	opacity: 0.85;
}

.dialog-widget h3 {
	margin: 0 0 0.75rem;
}

.dialog-widget p:last-of-type {
	margin-bottom: 1.25rem;
}


.dialog-widget .button {
	width: 100%;
	justify-content: center;
	background: var(--color-contrast);
	color: var(--color-primary-dark);
	border-color: transparent;
}

.dialog-widget .button:hover {
	background: var(--color-contrast);
	color: var(--color-primary);
	opacity: 0.95;
}

@media (max-width: 768px) {
	.section--highlight .pill-list,
	.cdu-section--highlight .cdu-pill-list {
		justify-content: center;
	}

	.dialog-widget,
	.cdu-dialog-widget {
		text-align: center;
	}
}

.section--contact,
.cdu-section--contact {
	background: var(--color-light);
}

.section--goals,
.cdu-section--goals {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
	position: relative;
}

:root[data-theme='dark'] .section--goals,
:root[data-theme='dark'] .cdu-section--goals {
	background: linear-gradient(135deg, rgba(6, 11, 19, 0.92) 0%, rgba(9, 19, 29, 0.82) 100%);
}

.section__intro,
.cdu-section__intro {
	max-width: 620px;
	margin-bottom: 3rem;
}

.grid,
.cdu-grid {
	display: grid;
	gap: 1.5rem;
}

.grid--three,
.cdu-grid--three {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.cdu-card {
	padding: 2rem;
	border-radius: var(--radius-medium);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
	border: 1px solid var(--color-border);
}

.panel,
.cdu-panel {
	padding: 2.5rem;
	border-radius: var(--radius-large);
	border: 1px solid var(--color-border-strong);
	background: var(--color-white);
	box-shadow: 0 30px 80px -60px rgba(16, 16, 16, 0.6);
}

.stack,
.cdu-stack {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.goals {
	display: grid;
	grid-template-columns: minmax(320px, 460px) minmax(0, 1fr);
	gap: clamp(1.75rem, 6vw, 4.5rem);
	align-items: stretch;
}

.goals__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
	justify-items: center;
}


.goals__grid[data-floating='true'] {
	position: relative;
	min-height: clamp(420px, 42vw, 600px);
	display: block;
	padding: clamp(0.5rem, 2vw, 1.5rem);
	border-radius: var(--radius-large);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.goals__grid[data-floating='true'] .goal-bubble {
	position: absolute;
	top: var(--base-y, 50%);
	left: var(--base-x, 50%);
	transform: translate(-50%, -50%) translate(calc(var(--float-x, 0px) + var(--offset-x, 0px)), calc(var(--float-y, 0px) + var(--offset-y, 0px))) scale(var(--float-scale, 1));
}


.goal-bubble {
	--goal-accent: var(--color-primary);
	--goal-accent-dark: var(--color-primary-dark);
	--base-x: 50%;
	--base-y: 50%;
	--float-x: 0px;
	--float-y: 0px;
	--offset-x: 0px;
	--offset-y: 0px;
	--float-duration: 0.35s;
	border: none;
	border-radius: 50%;
	padding: 0;
	width: clamp(130px, 12vw, 170px);
	height: clamp(130px, 12vw, 170px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ffffff;
	background: linear-gradient(145deg, var(--goal-accent), var(--goal-accent-dark));
	box-shadow: 0 20px 50px -40px rgba(5, 5, 5, 0.75);
	opacity: 0.65;
	transition: transform var(--float-duration, 8s) ease-in-out, opacity 250ms ease, box-shadow 250ms ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transform: translate(calc(var(--float-x, 0px) + var(--offset-x, 0px)), calc(var(--float-y, 0px) + var(--offset-y, 0px)));
	will-change: transform;
}

.goal-bubble span {
	padding: 1rem;
	line-height: 1.3;
}

.goal-bubble::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
	opacity: 0;
	transition: opacity 250ms ease;
}


.goal-bubble:hover,
.goal-bubble:focus-visible {
	opacity: 0.9;
	box-shadow: 0 30px 55px -35px rgba(5, 5, 5, 0.6);
}

.goal-bubble.is-active {
	opacity: 1;
	box-shadow: 0 35px 60px -30px rgba(5, 5, 5, 0.6);
}

.goal-bubble.is-active::after {
	opacity: 1;
}

.goals__panel {
	position: relative;
	border-radius: var(--radius-large);
	padding: clamp(2rem, 4vw, 3rem);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
	border: 1px solid rgba(255, 255, 255, 0.15);
	min-height: 260px;
	overflow: hidden;
	box-shadow: 0 45px 110px -90px rgba(0, 0, 0, 0.65);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}


.goal-panel {
	opacity: 0;
	position: absolute;
	inset: 0;
	padding: clamp(2rem, 4vw, 3rem);
	transition: opacity 300ms ease, transform 400ms ease;
	pointer-events: none;
	transform: translateX(45px) scale(0.98);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}


.goal-panel h3 {
	font-size: clamp(1.4rem, 3vw, 2.1rem);
	margin-bottom: 1rem;
}

.goal-panel.is-active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
	transform: translateX(0) scale(1);
}

.stat-band,
.cdu-stat-band {
	margin: 0 auto;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 1.5rem;
	max-width: 1100px;
}

.stat-band li,
.cdu-stat-band li {
	background: rgba(255, 255, 255, 0.08);
	border-radius: var(--radius-medium);
	padding: 2rem;
	text-align: center;
	min-height: 160px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-band strong,
.cdu-stat-band strong {
	display: block;
	font-size: 2.4rem;
	margin-bottom: 0.6rem;
	color: var(--color-primary);
}

.news-card,
.cdu-news-card {
	border-radius: var(--radius-medium);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
	padding: 0;
	border: 1px solid var(--color-border);
}

.news-card__link,
.cdu-news-card__link {
	display: block;
	height: 100%;
	padding: 2rem;
	transition: transform 250ms ease, box-shadow 250ms ease;
}

.news-card__link:hover,
.cdu-news-card__link:hover {
	transform: translateY(-6px);
	box-shadow: 0 25px 50px -30px rgba(0, 0, 0, 0.35);
}

.news-card__media {
	position: relative;
	padding-bottom: 56%;
	margin: -2rem -2rem 1.5rem;
	overflow: hidden;
	border-radius: var(--radius-medium) var(--radius-medium) 0 0;
	background: rgba(0, 0, 0, 0.05);
}

.news-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card__meta,
.cdu-news-card__meta {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: var(--color-muted);
	margin-bottom: 1rem;
}

.news-card__source {
	font-weight: 600;
	color: var(--color-dark);
}

.news-card--feed .news-card__meta {
	text-transform: none;
	letter-spacing: 0;
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.news-card__cta,
.cdu-news-card__cta {
	display: inline-flex;
	gap: 0.35rem;
	font-weight: 600;
	color: var(--color-primary);
}

.news-card__excerpt {
	margin: 0 0 0.85rem;
	color: var(--color-muted);
}

.news-feeds {
	margin-top: clamp(2rem, 5vw, 4rem);
}

.news-feeds__head {
	margin-bottom: 1.5rem;
}

.news-feeds__grid {
	margin-top: 0;
}

.news-feed-groups {
	display: grid;
	gap: clamp(1.25rem, 4vw, 2.5rem);
}

.news-feed-group {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border-radius: var(--radius-medium);
	border: 1px solid var(--color-border);
	background: var(--color-white);
	box-shadow: var(--shadow-card);
}

.news-feed-group__head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: baseline;
	margin-bottom: 1rem;
}

.news-feed-group__head h4 {
	margin: 0;
	font-size: 1.15rem;
}

.news-feed-group__link {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-primary);
}

.news-feed-group__items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.news-feed-group__status {
	margin: 0;
}

.news-feed-group__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-top: 1rem;
}

.news-feed-nav__button {
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: var(--color-white);
	color: var(--color-dark);
	font-size: 1.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.news-feed-nav__button:hover:not(:disabled) {
	background: var(--color-light);
	color: var(--color-primary);
	transform: translateY(-2px);
}

.news-feed-nav__button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

.news-feed-group__status[data-feed-status] {
	font-weight: 600;
	color: var(--color-muted);
	font-size: 0.95rem;
}

[data-feed-item][data-feed-hidden='true'] {
	display: none;
}

.pill-list,
.cdu-pill-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	padding: 0;
	margin: 2rem 0 0;
}

.pill-list li,
.cdu-pill-list li {
	border: 1px solid rgba(255, 255, 255, 0.4);
	padding: 0.85rem 1.8rem;
	border-radius: 999px;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.1);
}

.contact-card,
.cdu-contact-card {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2.5rem;
	padding: 3rem;
	border-radius: var(--radius-large);
	background: var(--color-white);
	box-shadow: 0 50px 120px -90px rgba(16, 16, 16, 1);
	border: 1px solid var(--color-border);
	width: 100%;
	box-sizing: border-box;
}

.contact-list,
.cdu-contact-list {
	list-style: none;
	margin: 2rem 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-weight: 600;
}

.contact-form,
.cdu-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

.contact-form label,
.cdu-contact-form label {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	gap: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.cdu-contact-form input,
.cdu-contact-form textarea {
	padding: 0.9rem 1.1rem;
	border-radius: var(--radius-small);
	border: 1px solid var(--color-border-strong);
	font-size: 1rem;
	font-family: inherit;
	resize: vertical;
	background-color: var(--color-white);
	color: var(--color-dark);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
	color: var(--color-muted);
}

.contact-form__hint,
.cdu-contact-form__hint {
	margin: 0;
	font-size: 0.85rem;
	color: var(--color-muted);
}

.contact-form__status {
	min-height: 1.2rem;
	margin: 0;
	font-weight: 600;
	color: var(--color-primary);
}

.contact-form__status[data-state='error'] {
	color: var(--color-accent);
}

[data-contact-form][data-sending='true'] .button {
	opacity: 0.65;
	pointer-events: none;
}

.site-footer {
	background: var(--color-darker);
	color: var(--color-contrast);
	padding: 2rem clamp(1.5rem, 5vw, 4rem);
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	align-items: center;
}

.footer-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.footer-menu {
	list-style: none;
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: center;
	font-weight: 600;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.85);
	transition: color 200ms ease;
}

.footer-menu a:hover {
	color: var(--color-primary);
}

.social-links {
	list-style: none;
	display: flex;
	gap: 1.2rem;
	margin: 0;
	padding: 0;
}

.social-links a {
	color: rgba(255, 255, 255, 0.8);
	font-weight: 600;
}

.social-links a:hover {
	color: var(--color-accent);
}

.social-rail {
	position: fixed;
	top: 50%;
	right: 1.5rem;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	z-index: 90;
}

.social-rail__link {
	width: 58px;
	height: 58px;
	border-radius: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--color-contrast);
	background: var(--social-rail-bg);
	border: 2px solid var(--social-rail-border);
	transition: transform 200ms ease, background-color 200ms ease, color 200ms ease;
 	box-shadow: 0 20px 35px -25px rgba(0, 0, 0, 0.45);
}

.social-rail__link:hover {
	transform: translateX(-4px);
	background: var(--social-rail-bg-hover);
	color: var(--color-contrast);
	border-color: transparent;
}

.social-rail__link span[aria-hidden='true'] {
	font-size: 0.85rem;
}

.social-rail__icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
	display: block;
}

/* Motion + states */
[data-animate] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 600ms ease, transform 600ms ease;
}

.animate-in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.goal-bubble {
		transition: none !important;
	}
}

/* Navigation behaviour */
@media (max-width: 960px) {
	.hero__nav {
		position: absolute;
		top: calc(100% + 0.5rem);
		left: 50%;
		right: auto;
		width: min(420px, calc(100vw - 2rem));
		min-width: 0;
		transform: translate(-50%, -10px);
		background: rgba(5, 5, 5, 0.98);
		border-radius: var(--radius-medium);
		padding: 1rem 2rem;
		flex-direction: column;
		align-items: flex-start;
		opacity: 0;
		pointer-events: none;
		z-index: 30;
		transition: opacity 250ms ease, transform 250ms ease;
		box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
		border: 1px solid rgba(255, 255, 255, 0.08);
	}

	.hero__nav-tools {
		width: 100%;
		justify-content: flex-end;
	}

	.hero__nav-toggle {
		display: flex;
	}

	.hero__nav.is-open {
		opacity: 1;
		pointer-events: all;
		transform: translate(-50%, 0);
	}

	.hero__nav {
		flex: none;
	}

	.primary-menu {
		flex-direction: column;
		width: 100%;
		gap: 1rem;
	}

	.primary-menu li,
	.primary-menu a {
		width: 100%;
	}

	.social-rail {
		position: fixed;
		top: auto;
		bottom: 1rem;
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		flex-direction: row;
		gap: 0.5rem;
		background: rgba(5, 5, 5, 0.85);
		padding: 0.5rem 0.9rem;
		border-radius: 999px;
		box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.85);
		backdrop-filter: blur(6px);
	}
	.scroll-top {
		right: 1rem;
		bottom: 1rem;
	}

	.social-rail__link {
		width: 48px;
		height: 48px;
		border-radius: 50%;
	}
}

@media (max-width: 720px) {
	.hero {
		padding-top: 1.5rem;
	}

	.hero__nav-shell {
		flex-direction: column;
		align-items: flex-start;
	}

	.goals {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		min-height: auto;
	}

	.goals__grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}

	.goals__grid[data-floating='true'] {
		display: block;
		min-height: clamp(320px, 70vw, 420px);
		padding: 1rem;
	}

	.goal-panel {
		position: relative;
		transform: none;
		opacity: 1;
		pointer-events: auto;
		transition: opacity 300ms ease;
		padding: 1.5rem;
	}

	.goal-panel:not(.is-active) {
		display: none;
	}

	.goals__panel {
		min-height: auto;
		padding: 1.5rem;
	}

	.goals__grid[data-floating='true'] .goal-bubble {
		position: absolute;
	}

	.contact-card {
		padding: 2rem;
	}

	.hero__cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.footer-nav {
		justify-content: center;
		width: 100%;
	}

	.footer-menu,
	.footer-social {
		justify-content: center;
	}

	.site-footer__links,
	.site-footer__social {
		text-align: center;
		width: 100%;
	}

	.site-footer__brand {
		text-align: center;
		width: 100%;
	}
}
