/* Brand tokens */
:root {
	--c-1: #9884b5;
	--c-2: #79c2c4;
	--c-3: #7ce1ce;
	--c-4: #ff9f82;
	--c-5: #126d76;
	--c-6: #f9f2eb;

	--bg-0: #0b0f14;
	--bg-1: #0f141b;
	--bg-2: #111824;
	--text-0: #e8ecf2;
	--text-1: #b8c2d0;
	--muted: #7b8696;

	--radius-lg: 18px;
	--radius-md: 12px;
	--radius-sm: 8px;
	--container: clamp(960px, 86vw, 1320px);

	--brand-gradient: linear-gradient(135deg, var(--c-3) 0%, var(--c-2) 18%, var(--c-1) 46%, var(--c-4) 92%);
	--neutral-gradient: linear-gradient(135deg, #a7b5c6 0%, #d7dfe7 100%);

	/* Section backgrounds */
	--section-bg-a: transparent; /* current site background */
	--section-bg-b: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
	--section-callout-bg: linear-gradient(180deg, rgba(8,12,18,.15), rgba(8,12,18,.15)), var(--brand-gradient);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.theme-dark {
	margin: 0;
	font-family: Inter, Manrope, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
	color: var(--text-0);
	background:
		radial-gradient(1200px 800px at -10% -20%, #152234 0%, transparent 60%),
		radial-gradient(800px 600px at 120% 0%, rgba(18,109,118,0.35) 0%, transparent 60%),
		radial-gradient(900px 700px at 50% 120%, rgba(152,132,181,0.25) 0%, transparent 70%),
		linear-gradient(180deg, var(--bg-1), var(--bg-0));
	min-height: 100dvh;
}

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

/* Utilities */
.gtext {
	background: var(--brand-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.tag {
	display: inline-flex; align-items: center; gap: .5rem;
	padding: .35rem .7rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.06);
	color: var(--text-1);
	border: 1px solid rgba(255,255,255,0.08);
	font-size: .78rem; letter-spacing: .02em;
}
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
	height: 48px; padding: 0 1.2rem;
	border-radius: 14px; font-weight: 600; letter-spacing: .02em;
	border: 1px solid transparent; text-decoration: none;
	transition: transform .5s cubic-bezier(.2,.7,0,1), background .3s, border-color .3s, color .3s;
	will-change: transform;
}
.btn-primary { background: var(--brand-gradient); color: #0b0f14; border: none !important; }
.btn-primary:hover { transform: scale(1.01); background: var(--neutral-gradient); color: #0b0f14; }
.btn-ghost { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); color: var(--text-0); }
.btn-ghost:hover { transform: translateY(-2px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.28); }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: saturate(140%) blur(10px);
	background: linear-gradient(180deg, rgba(10,14,20,0.85), rgba(10,14,20,0.35) 70%, rgba(10,14,20,0));
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-0); }
.brand img.brand-logo { height: 56px; width: auto; display: block; transition: transform .4s cubic-bezier(.2,.7,0,1), filter .4s; }
.brand:hover .brand-logo { transform: translateY(-1px); filter: brightness(1.08) saturate(1.05) drop-shadow(0 0 14px rgba(124,225,206,.2)); }
.brand-text { display:none; }
.main-nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 18px; justify-content: center; }
.main-nav a {
	text-decoration: none; color: var(--text-1); padding: 10px 12px; border-radius: 12px;
	transition: color .2s, background .3s;
}
.main-nav a:hover { color: var(--text-0); background: rgba(255,255,255,0.06); }
.main-nav a.active { color: var(--text-0); background: rgba(255,255,255,0.08); }
.cta { transition: color .2s, background .3s; }
.cta { display: inline-flex; transition: color .2s, background .3s; align-items: center; gap: .6rem; text-decoration: none; padding: 10px 14px; border-radius: 12px; background: var(--brand-gradient); color: #0b0f14; font-weight: 700; }
.cta:hover { transform: scale(1.01); background: var(--neutral-gradient); color: #0b0f14;}

/* Transition overlay for page transitions */
#transitionOverlay {
	position: fixed; inset: 0; background: var(--brand-gradient);
	transform: translateY(100%); z-index: 1000; pointer-events: none;
}
.covering { transform: translateY(0%); transition: transform .6s cubic-bezier(.2,.7,0,1); }

/* Hero */
.hero {
	position: relative; overflow: clip;
	padding: clamp(72px, 9vw, 120px) 0 clamp(40px, 6vw, 80px);
	background:
		radial-gradient(1100px 500px at 10% -30%, rgba(124,225,206,.18), transparent 60%),
		radial-gradient(900px 600px at 100% 0%, rgba(121,194,196,.12), transparent 60%),
		linear-gradient(180deg, rgba(8,12,18,.9), rgba(8,12,18,.65) 60%, rgba(8,12,18,0));
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: min(6vw, 64px); align-items: center; }
.eyebrow { margin: 0 0 12px; }
.hero h1 {
	margin: 0 0 12px;
	font-family: Manrope, Inter, system-ui, sans-serif;
	font-weight: 800; line-height: 1.02;
	font-size: clamp(34px, 5vw, 68px);
	letter-spacing: -0.02em;
}
.hero .hero-title--narrow { max-width: 80%; }
.hero p.lead {
	color: var(--text-1); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; margin: 0 0 24px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-letters {
	position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto;
}
.hero-letters img {
	width: 100%; height: 100%; object-fit: contain; opacity: .95;
	/* Soft fade to edges using CSS masking to simulate “verblassen/verschwimmen” */
	-webkit-mask-image: radial-gradient(120% 100% at 80% 40%, black 55%, transparent 82%);
	mask-image: radial-gradient(120% 100% at 80% 40%, black 55%, transparent 82%);
	filter: blur(.6px) saturate(110%);
	transition: transform 1.2s cubic-bezier(.2,.7,0,1);
	will-change: transform;
}
.hero-letters::after {
	content: "";
	position: absolute; inset: -8%;
	background: url("/assets/img/buchstaben.png") center / contain no-repeat;
	filter: blur(16px) saturate(120%);
	opacity: .45;
	pointer-events: none;
	-webkit-mask-image: radial-gradient(100% 100% at 90% 40%, black 38%, transparent 78%);
	mask-image: radial-gradient(100% 100% at 90% 40%, black 38%, transparent 78%);
}

/* Sections */
section { padding: clamp(48px, 7vw, 96px) 0; }
.section-title {
	margin: 0 0 28px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.01em; font-weight: 800;
}
.muted { color: var(--muted); }
.section-callout { background: var(--section-callout-bg); color: #0b0f14; }
.section-callout .muted { color: #2a3a4a; }
.section-callout .feature-card { background: rgba(255,255,255,.88); border-color: rgba(0,0,0,.08); }
.section-callout .feature-card p { color: #2a3a4a; }
.section-divider { border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero-grid-50 { grid-template-columns: 1fr 1fr; }
.cards {
	display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.card {
	grid-column: span 2; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.08);
	border-radius: var(--radius-lg);
	padding: 24px;
	transition: transform .6s cubic-bezier(.2,.7,0,1), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.26); }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--text-1); line-height: 1.6; }
.card .icon { width: 36px; height: 36px; margin-bottom: 10px; opacity: .95; }
.card .btn { margin-top: 12px; }

.projects {
	display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px;
}
.project {
	grid-column: span 4; position: relative; overflow: clip; border-radius: 18px;
	background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.08);
	min-height: 220px;
}
.project img {
	width: 100%; height: 100%; object-fit: cover; display: block; opacity: .92;
}
.project a.lightbox-trigger { display: block; }
[data-lightbox] { cursor: zoom-in; }
.project::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(80% 80% at 30% 20%, rgba(124,225,206,.35), transparent 60%),
		radial-gradient(80% 60% at 70% 80%, rgba(152,132,181,.3), transparent 60%);
	filter: blur(20px);
	opacity: .35; pointer-events: none;
}
.project .meta { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(180deg, transparent, rgba(8,12,18,.9)); }
.project h4 { margin: 0; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature-card { grid-column: span 2; padding: 22px; border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.08);
	transition: transform .6s cubic-bezier(.2,.7,0,1), border-color .3s;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.26); }
.feature-card .icon { width: 40px; height: 40px; margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--text-1); }
.feature-card .stat-number { font-size: clamp(28px, 3.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }

/* Service detail sections (Leistungen) */
.section-service { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); }
.service-grid {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: clamp(20px, 5vw, 48px);
	align-items: center;
}
.service-grid--reverse .service-media { order: -1; }
.service-copy p { margin: 0 0 16px; }
.service-copy .muted { color: var(--text-1); }
.service-list {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
.service-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: start;
	column-gap: 10px;
}
.service-list li::before {
	content: "•";
	color: var(--c-3);
	font-size: 1.2rem;
	line-height: 1;
	padding-top: 3px;
}
.service-media {
	position: relative;
	overflow: clip;
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.08);
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.service-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .96;
}

/* Logo grids */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; align-items: center; }
/* Use 4x column width by default; center rows when fewer than 4 items */
.logo-item {
	display: flex; align-items: center; justify-content: center; padding: 18px;
	flex: 0 0 calc((100% - (18px * 3)) / 4); /* 4 columns with 3 gaps */
	max-width: calc((100% - (18px * 3)) / 4);
}
/* If at least 4 items exist in the row, spread them across the width */
.logo-grid:has(.logo-item:nth-child(4)) { justify-content: space-between; }
.logo-item img { max-width: 160px; width: 100%; height: auto; display: block; opacity: .95; filter: saturate(110%); transition: transform .35s cubic-bezier(.2,.7,0,1); }
.logo-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.logo-item a:hover img { transform: scale(1.06); }
.sponsor-item { text-align: center; flex-direction: column; }
.sponsor-item h4 { margin: 0 0 8px; font-size: .95rem; color: var(--text-1); }
.sponsor-item img { margin-top: 8px; }

/* Duo image composition (Über uns) */
.duo-figure { position: relative; height: clamp(260px, 36vw, 420px); }
.duo-card {
	position: absolute; overflow: clip; border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.10);
	box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.duo-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .96; }
.duo-card--a { top: 0; right: 0; width: 70%; height: 76%; }
.duo-card--b { left: 0; bottom: 0; width: 58%; height: 50%; }
.duo-figure::after {
	content: ""; position: absolute; inset: 10% 28% 20% 28%;
	background: radial-gradient(60% 60% at 50% 50%, rgba(124,225,206,.35), transparent 70%);
	filter: blur(12px); opacity: .5; pointer-events: none;
}

/* Testimonials */
.section-testimonials {
	background: linear-gradient(135deg, rgba(124,225,206,.16), rgba(121,194,196,.08) 42%, rgba(152,132,181,.18));
	border-block: 1px solid rgba(255,255,255,0.07);
}
.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.testimonial-card {
	background: rgba(10,14,20,0.75);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: var(--radius-lg);
	padding: 20px;
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.stars { color: #ffb13a; font-size: 1.1rem; letter-spacing: .08em; }
.testimonial-card p { margin: 10px 0 16px; color: var(--text-0); line-height: 1.5; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.avatar {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 50%;
	background: linear-gradient(180deg, #9d0b0b, #7c0a0a);
	font-weight: 800; color: #fff; letter-spacing: .01em;
}
.person-name { margin: 0; font-weight: 700; }
.person-role { margin: 2px 0 0; font-size: .95rem; }

/* Team teaser */
.section-team-teaser .team-teaser { align-items: center; gap: clamp(28px, 5vw, 48px); }
.team-teaser-media {
	position: relative;
	overflow: clip;
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
	border: 1px solid rgba(255,255,255,.10);
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.team-teaser-media img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .96; }

/* Career section */
.section-career {
	background: linear-gradient(135deg, rgba(124,225,206,.16), rgba(121,194,196,.08) 42%, rgba(152,132,181,.18));
	border-block: 1px solid rgba(255,255,255,0.07);
}
.section-career .section-title { margin-bottom: 10px; }
.career-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin-top: 18px;
}
.career-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 24px;
	align-items: center;
	padding: 18px;
	border-radius: var(--radius-lg);
	background: rgba(10,14,20,0.78);
	border: 1px solid rgba(255,255,255,0.08);
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
	transition: transform .5s cubic-bezier(.2,.7,0,1), border-color .3s;
}
.career-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.career-icon {
	width: 170px; height: 170px;
	display: grid; place-items: center;
	border-radius: 14px;
}
.career-icon img { width: 140px; height: 140px; opacity: .95; }
.career-content h3 { margin: 0 0 8px; font-size: 1.15rem; }
.career-content p { margin: 0 0 12px; }
.career-label {
	margin: 0 0 6px;
	color: #fdd4c6;
	font-weight: 700;
	letter-spacing: .01em;
	font-size: .95rem;
}
.career-cta {
	margin-top: 18px;
}
.career-cta-card {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: center;
	padding: 18px 20px;
	border-radius: var(--radius-lg);
	background: rgba(10,14,20,0.82);
	border: 1px solid rgba(255,255,255,0.10);
	box-shadow: 0 12px 32px rgba(0,0,0,.35);
	transition: transform .5s cubic-bezier(.2,.7,0,1), border-color .3s;
}
.career-cta-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.18); }
.career-cta-label {
	margin: 0;
	color: #fdd4c6;
	font-weight: 700;
	letter-spacing: .01em;
	font-size: .95rem;
}

/* CTA box */
.cta-box {
	background: var(--section-callout-bg);
	color: #0b0f14;
	border-radius: var(--radius-lg);
	padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.cta-box .muted { color: #2a3a4a; }

/* Tertiary button (dark with white text) */
.btn-tertiary {
	background: linear-gradient(180deg, rgba(12,17,24,0.95), rgba(10,14,20,0.95));
	color: #e8ecf2;
	border: 1px solid rgba(255,255,255,0.14);
}
.btn-tertiary:hover {
	transform: translateY(-2px);
	background: linear-gradient(180deg, rgba(18,26,36,0.98), rgba(14,20,28,0.98));
	border-color: rgba(255,255,255,0.28);
	color: #ffffff;
}

/* Footer */
.site-footer {
	border-top: 1px solid rgba(255,255,255,0.06);
	background: linear-gradient(180deg, rgba(8,12,18,.3), rgba(8,12,18,.8));
}
.footer-grid {
	display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 24px; padding: 36px 0;
}
.f-brand p { color: var(--text-1); }
.f-brand img { height: auto; width: auto; max-width: 100%; display: block; margin-bottom: 8px; transition: transform .35s cubic-bezier(.2,.7,0,1), filter .35s; }
.f-brand img:hover { transform: translateY(-1px); filter: brightness(1.08) saturate(1.05) drop-shadow(0 0 14px rgba(124,225,206,.2)); }
.f-nav, .f-legal { display: grid; align-content: start; gap: 10px; }
.f-nav a, .f-legal a { color: var(--text-1); text-decoration: none; }
.f-nav a:hover, .f-legal a:hover { color: var(--text-0); }
.footer-bottom { padding: 16px 0 28px; color: var(--muted); font-size: .9rem; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s ease; }
.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 900px) {
	.service-grid { grid-template-columns: 1fr; }
	.service-grid--reverse .service-media { order: 0; }
}
@media (max-width: 720px) {
	.hero .hero-title--narrow { max-width: 100%; }
}
@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-letters { max-width: 420px; }
	.cards .card { grid-column: span 6; }
	.projects .project { grid-column: span 12; }
	.features .feature-card { grid-column: span 3; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.header-inner { grid-template-columns: auto 1fr auto; gap: 14px; }
	.main-nav { display: none; } /* Keep minimal header for MVP; can add drawer later */
	.hero { padding-top: 72px; }
	.hero-letters { max-width: 320px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.cards .card { grid-column: span 2; }
	.features { grid-template-columns: repeat(2, 1fr); }
	.features .feature-card { grid-column: span 2; }
	.logo-item {
		flex: 0 0 calc((100% - 18px) / 2);
		max-width: calc((100% - 18px) / 2);
	}
	.logo-grid { justify-content: center; }
	.footer-grid { grid-template-columns: 1fr; }
	.duo-figure { height: clamp(220px, 44vw, 320px); }
	.duo-card--a, .duo-card--b { transform: none; }
	.duo-card--a { width: 72%; height: 54%; top: 0; right: 0; }
	.duo-card--b { width: 58%; height: 50%; left: 0; bottom: 0; }
	.testimonial-grid { grid-template-columns: 1fr; }
	.testimonial-card { grid-column: span 1; }
	.career-grid { grid-template-columns: 1fr; }
	.career-cta-card { grid-template-columns: 1fr; }
}

/* Lightbox for project images */
.lightbox {
	position: fixed; inset: 0; z-index: 1000;
	display: none; align-items: center; justify-content: center;
	background: rgba(0,0,0,.88);
}
.lightbox.is-open { display: flex; }
.lightbox img {
	max-width: 90vw; max-height: 90vh;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.45);
}


