/* ===== Grid-Grundlage ===== */
.grid-12 {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(1rem, 2vw, 2.5rem);
}

/* ===== Hero ===== */
.hero {
	position: relative;
	min-height: 86vh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background: var(--primary);
}
.hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.1s var(--ease-out);
}
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}
.hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, oklch(10% 0.02 250 / 0.82) 0%, oklch(10% 0.02 250 / 0.35) 48%, oklch(10% 0.02 250 / 0.15) 100%);
	z-index: 2;
}
.hero__content {
	position: relative;
	z-index: 3;
	width: 100%;
	padding-block: var(--space-lg) var(--space-md);
}
.hero__eyebrow { color: var(--accent); margin-bottom: 1rem; }
.hero__title {
	color: #fff;
	font-size: var(--text-h1);
	max-width: 16ch;
	margin-bottom: 0.6em;
}
.hero__subtitle {
	color: oklch(92% 0.01 90);
	font-size: var(--text-lg);
	max-width: 46ch;
	margin-bottom: var(--space-sm);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__dots {
	position: absolute;
	right: clamp(1.5rem, 4vw, 3rem);
	bottom: var(--space-md);
	z-index: 3;
	display: flex;
	gap: 0.6rem;
}
.hero__dots button {
	width: 28px;
	height: 3px;
	background: oklch(100% 0 0 / 0.35);
	border: none;
	padding: 0;
	transition: background var(--dur-base) var(--ease-out);
}
.hero__dots button.is-active { background: var(--accent); }

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	font-weight: 600;
	font-size: 0.98rem;
	padding: 0.85em 1.6em;
	border-radius: var(--radius-sm);
	transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
	border: 1px solid transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #1a0f06; }
.btn-primary:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline { border-color: oklch(100% 0 0 / 0.55); color: #fff; }
.btn-outline:hover { background: oklch(100% 0 0 / 0.1); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ===== Section-Rhythmus: weit – eng – weit ===== */
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-lg); }
.section--roomy { padding-block: var(--space-3xl); }
.section--dark { background: var(--primary); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--sunken { background: var(--surface-sunken); }

.section-head { margin-bottom: var(--space-lg); max-width: 60ch; }
.section-head p { color: var(--text-muted); font-size: var(--text-lg); }

/* Diagonaler Sektionstrenner statt runder Karten mit Farbbalken */
.diagonal-top {
	clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
}
.diagonal-bottom {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5vw));
}
.diagonal-band {
	clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
	margin-block: -1px;
}

/* ===== Dominante Spalte + schmale Faktenspalte ===== */
.lede-grid {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 7.5fr) minmax(0, 4fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: start;
}
.lede-grid__main p { font-size: var(--text-lg); color: var(--text-muted); max-width: 62ch; }
.fact-list {
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}
.fact-list dl { display: contents; }
.fact-list > div {
	border-bottom: 1px solid var(--line);
	padding: 1.1rem 0;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}
.fact-list dt { color: var(--text-muted); font-size: var(--text-sm); }
.fact-list dd { margin: 0; font-weight: 600; text-align: right; }

/* ===== Leistungen: Karten mit Hover-Kippung ===== */
.services-grid {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: var(--line);
	border: 1px solid var(--line);
}
.service-card {
	background: var(--surface);
	padding: var(--space-sm) var(--space-xs);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
	transform-style: preserve-3d;
	will-change: transform;
}
.service-card:hover {
	transform: translateY(-4px) rotateX(2deg);
	box-shadow: 0 18px 40px oklch(20% 0.02 250 / 0.12), inset 0 2px 0 var(--accent);
	z-index: 2;
	position: relative;
}
.service-card__num {
	font-family: var(--font-mono);
	color: var(--accent);
	font-size: var(--text-sm);
}
.service-card__icon { color: var(--accent); width: 2em; height: 2em; }
.service-card h3 { margin-bottom: 0.3em; }
.service-card p { color: var(--text-muted); font-size: 0.97rem; }
.service-card__link {
	margin-top: auto;
	font-family: var(--font-mono);
	font-size: var(--text-sm);
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--primary);
}
.service-card__link .icon { width: 1em; height: 1em; transition: transform var(--dur-fast) var(--ease-out); }
.service-card:hover .service-card__link .icon { transform: translateX(4px); }

/* ===== Vollflächiger Bruch (asymmetrisches Bild-Modul) ===== */
.breakout {
	grid-column: 1 / -1;
	position: relative;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	align-items: center;
	min-height: 60vh;
}
.breakout__media {
	grid-column: 1 / 8;
	grid-row: 1;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.breakout__media img { width: 100%; height: 100%; object-fit: cover; }
.breakout__text {
	grid-column: 7 / 13;
	grid-row: 1;
	background: var(--primary);
	color: #fff;
	padding: var(--space-lg);
	margin-left: -8%;
	position: relative;
	z-index: 2;
	box-shadow: var(--shadow-md);
}
.breakout__text h2 { color: #fff; }
.breakout__text p { color: var(--text-on-dark-muted); }

/* ===== Projektfotos ===== */
.media-frame { aspect-ratio: 4 / 3; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Kontakt / Fakten-Karten ===== */
.contact-rows { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-row { display: flex; align-items: center; gap: 0.8rem; }
.contact-row .icon { color: var(--accent); flex-shrink: 0; }
.contact-row a { font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
	background: var(--primary);
	color: var(--text-on-dark-muted);
	padding-block: var(--space-xl) var(--space-md);
}
.footer-grid {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
}
.footer-brand { grid-column: span 5; }
.footer-brand .site-logo svg { height: 40px; }
.footer-brand .site-logo__name { color: #fff; }
.footer-brand p { color: var(--text-on-dark-muted); max-width: 40ch; margin-top: 1rem; }
.footer-col { grid-column: span 3; }
.footer-col h4 { color: #fff; font-size: var(--text-base); margin-bottom: 0.9rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
	grid-column: 1 / -1;
	border-top: 1px solid var(--line-on-dark);
	padding-top: var(--space-xs);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	font-size: var(--text-sm);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-legal ul { display: contents; }
.footer-legal a:hover { color: var(--accent); }
