/* ==========================================================================
   alle freiheit × Automotive – Landingpage
   Mobile first. Tokens aus dem alle-freiheit-Designsystem (global.css):
   Kanit · Ink · Cream · Brand-Rot · Accent-Gelb · eckige Kanten · keine Schatten.
   ========================================================================== */

/* Fonts (lokal gehostet, DSGVO-freundlich) -------------------------------- */
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/kanit-latin-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/kanit-latin-500-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Kanit";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/kanit-latin-600-normal.woff2") format("woff2");
}

/* Tokens ----------------------------------------------------------------- */
:root {
	--ink: #353535;
	--ink-deep: #2b2b2b;
	--cream: #fffdfd;
	--white: #ffffff;
	--brand: #af291c;
	--brand-dark: #8f2117;
	--accent: #ffdf00;

	--surface: #3535350d;
	--line: #35353533;
	--faint: #35353566;
	--muted: #353535b3;

	--line-inverse: #fffdfd26;
	--faint-inverse: #fffdfd66;
	--muted-inverse: #fffdfdd9;
	--overlay: #353535b3;

	--font: "Kanit", ui-sans-serif, system-ui, sans-serif;

	--gutter: 1.25rem;
	--section-y: 4.5rem;
	--heading-gap: 2.5rem;
	--page: 90rem;

	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);

	interpolate-size: allow-keywords;
}

@media (min-width: 48rem) {
	:root {
		--gutter: 2rem;
		--section-y: 6rem;
		--heading-gap: 3.5rem;
	}
}

@media (min-width: 64.0625rem) {
	:root {
		--gutter: 3rem;
		--section-y: 8rem;
		--heading-gap: 5rem;
	}
}

/* Base ------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

@media (min-width: 48rem) {
	body {
		font-size: 1.125rem;
	}
}

@media (min-width: 64.0625rem) {
	body {
		font-size: 1.25rem;
	}
}

img,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ol,
ul {
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-weight: 400;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

a {
	color: inherit;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--brand);
	outline-offset: 3px;
}

.on-dark :focus-visible {
	outline-color: var(--accent);
}

::selection {
	background: var(--accent);
	color: var(--ink);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 100;
	background: var(--ink);
	color: var(--cream);
	padding: 0.5rem 1rem;
	text-decoration: none;
}

.skip-link:focus {
	top: 1rem;
}

/* Layout ----------------------------------------------------------------- */
.wrap {
	width: 100%;
	max-width: var(--page);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-y);
}

.on-dark {
	background: var(--ink);
	color: var(--cream);
}

/* Type roles ------------------------------------------------------------- */
.t-hero {
	font-size: clamp(2.25rem, 10vw, 7.625rem);
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.t-heading {
	font-size: clamp(1.875rem, 7vw, 3.375rem);
	line-height: 1.15;
}

.t-lead {
	font-size: clamp(1.25rem, 4.6vw, 2rem);
	line-height: 1.3;
}

.t-small {
	font-size: 0.9375rem;
	line-height: 1.5;
}

.muted {
	color: var(--muted);
}

.on-dark .muted {
	color: var(--muted-inverse);
}

.section-head {
	display: grid;
	gap: 1.25rem;
	margin-bottom: var(--heading-gap);
	max-width: 52rem;
}

.section-head .t-lead,
.section-head p {
	max-width: 44rem;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 3.25rem;
	padding: 0.875rem 1.5rem;
	border: 0;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition:
		background-color 0.2s,
		color 0.2s,
		transform 0.2s var(--ease-out);
}

.btn:active {
	transform: scale(0.98);
}

.btn svg {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.btn--brand {
	background: var(--brand);
	color: var(--white);
}

.btn--brand:hover {
	background: var(--brand-dark);
}

.btn--accent {
	background: var(--accent);
	color: var(--ink);
}

.btn--accent:hover {
	background: var(--cream);
}

.btn--ghost {
	background: transparent;
	color: inherit;
	box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--ghost:hover {
	box-shadow: inset 0 0 0 1.5px var(--brand);
	color: var(--brand);
}

.on-dark .btn--ghost {
	box-shadow: inset 0 0 0 1.5px var(--faint-inverse);
}

.on-dark .btn--ghost:hover {
	box-shadow: inset 0 0 0 1.5px var(--accent);
	color: var(--accent);
}

.btn--block {
	width: 100%;
}

/* Reveal on scroll ------------------------------------------------------- */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(1.5rem);
	transition:
		opacity 0.8s var(--ease-out),
		transform 0.8s var(--ease-out);
	transition-delay: var(--delay, 0s);
}

.js [data-reveal].is-in {
	opacity: 1;
	transform: none;
}

/* Graustufen → Farbe, sobald im Bild (Anlehnung an die Referenzkacheln) */
.js [data-colorize] {
	filter: grayscale(1);
	transition: filter 1.2s var(--ease-out);
	will-change: filter; /* eigene Ebene → Übergang ohne Neuzeichnen der Seite */
}

.js [data-colorize].is-in {
	filter: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: relative;
	z-index: 20;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
}

.site-header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: var(--ink);
}

.site-header__logo svg {
	height: 2.25rem;
	width: auto;
}

.contact-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.3125rem 0.875rem 0.3125rem 0.3125rem;
	background: var(--surface);
	border: 0;
	text-align: left;
	transition: background-color 0.2s;
}

.contact-chip:hover {
	background: var(--accent);
}

.contact-chip__img {
	position: relative;
	flex-shrink: 0;
}

.contact-chip img {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--surface);
}

.online-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 0.75rem;
	height: 0.75rem;
	border-radius: 50%;
	background: #3fae49;
	border: 2px solid var(--cream);
}

.contact-chip__text {
	display: grid;
	line-height: 1.15;
}

.contact-chip__label {
	font-size: 0.75rem;
	color: var(--muted);
}

.contact-chip__name {
	font-size: 0.9375rem;
	font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	overflow: hidden;
	min-height: calc(100svh - 4.25rem);
	display: flex;
	align-items: center;
	padding-block: 2.5rem 5.5rem;
}

.hero .wrap {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1.75rem;
}

.hero__mark {
	position: absolute;
	z-index: 0;
	right: -30vw;
	bottom: -10vw;
	width: 86vw;
	max-width: 58rem;
	color: var(--brand);
	opacity: 0.06;
	pointer-events: none;
	animation: float 7s ease-in-out infinite;
	will-change: transform;
}

@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-1rem);
	}
}

@media (min-width: 48rem) {
	.hero__mark {
		right: -14rem;
		bottom: -8rem;
		width: 70vw;
	}
}

.hero__title {
	max-width: 72rem;
}

.rotator {
	display: inline-block;
	margin-top: 0.12em;
	padding: 0.02em 0.28em 0.06em;
	background: var(--ink);
	color: var(--accent);
	white-space: nowrap;
}

.rotator.is-in {
	animation: clip-in 0.8s var(--ease-out) both;
}

.rotator.is-out {
	animation: clip-out 0.6s cubic-bezier(0.55, 0, 0.8, 0.2) both;
}

@keyframes clip-out {
	from {
		clip-path: inset(0 0 0 0);
	}
	to {
		clip-path: inset(0 100% 0 0);
	}
}

@keyframes clip-in {
	from {
		clip-path: inset(0 100% 0 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

.hero__lead {
	max-width: 40rem;
	font-size: clamp(1.1875rem, 4.4vw, 1.75rem);
	line-height: 1.4;
}

.hero__lead strong {
	font-weight: 500;
}

.scroll-cue {
	position: absolute;
	left: var(--gutter);
	bottom: 1.75rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--ink);
}

@media (min-width: 90rem) {
	.scroll-cue {
		left: calc((100% - var(--page)) / 2 + var(--gutter));
	}
}

.scroll-cue__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--brand);
	color: var(--white);
}

.scroll-cue__icon svg {
	width: 1.25rem;
	height: 1.25rem;
	animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
	0%,
	100% {
		transform: translateY(-2px);
	}
	50% {
		transform: translateY(3px);
	}
}

.js .hero__intro > * {
	animation: rise 0.9s var(--ease-out) both;
}

.js .hero__intro > :nth-child(2) {
	animation-delay: 0.12s;
}

.js .hero__intro > :nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(1.25rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Ergebnisse (Zahlen)
   ========================================================================== */
.results {
	position: relative;
	overflow: hidden;
}

.results__head {
	display: grid;
	gap: 1.25rem;
	margin-bottom: 2.5rem;
}

.stats {
	counter-reset: stat;
}

.stat {
	display: grid;
	gap: 0.25rem 2rem;
	padding-block: 1.5rem 1.75rem;
	border-top: 1px solid var(--line-inverse);
}

.stat:last-child {
	border-bottom: 1px solid var(--line-inverse);
}

.stat__value {
	font-size: clamp(3.25rem, 15.5vw, 9.5rem);
	font-weight: 500;
	line-height: 1;
	color: var(--accent);
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.stat__label {
	font-size: clamp(1.1875rem, 4.6vw, 1.75rem);
	line-height: 1.25;
	margin-top: 0.5rem;
}

.stat__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-top: 0.625rem;
}

.stat__note {
	font-size: 0.9375rem;
	color: var(--muted-inverse);
	max-width: 30rem;
}

@media (min-width: 64.0625rem) {
	.stat {
		grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		align-items: end;
		padding-block: 2.25rem;
	}

	.stat__text {
		padding-bottom: 0.75rem;
	}
}

/* Odometer / Kilometerzähler */
.odo {
	display: inline-flex;
	align-items: flex-start;
	height: 1em;
	overflow: hidden;
	line-height: 1;
}

.odo__digit {
	display: inline-block;
	height: 1em;
	overflow: hidden;
}

.odo__strip {
	display: flex;
	flex-direction: column;
	transform: translateY(0);
	transition: transform var(--odo-duration, 1.8s) cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--odo-delay, 0s);
}

.odo__digit .odo__strip {
	align-items: center;
}

.odo__strip > span {
	display: block;
	height: 1em;
	line-height: 1;
	text-align: center;
}

.odo__char {
	display: inline-block;
	height: 1em;
	line-height: 1;
}

.odo__char--sep {
	margin-inline: 0.01em;
}

/* ==========================================================================
   OK-Kosmos Teil 1: Plattform (vertikaler Slider)
   ========================================================================== */
.platform .section-head {
	margin-bottom: 1.5rem;
}

.showcase {
	position: relative;
	display: grid;
}

.showcase__media {
	position: sticky;
	top: 0;
	z-index: 2;
	height: 54svh;
	padding-block: 0.75rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	background: var(--cream);
}

.showcase__media::after {
	/* weicher Übergang, wenn der Text darunter durchläuft */
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 2.5rem;
	background: linear-gradient(var(--cream), #fffdfd00);
	pointer-events: none;
}

.showcase__frame {
	position: relative;
	flex: 1;
	min-height: 0;
	background: var(--surface);
	overflow: hidden;
}

.showcase__frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transform: scale(1.04);
	transition:
		opacity 0.6s var(--ease-out),
		transform 1s var(--ease-out);
}

.showcase__frame img.is-active {
	opacity: 1;
	transform: none;
}

.showcase__progress {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.showcase__count {
	min-width: 3.25rem;
	font-variant-numeric: tabular-nums;
}

.showcase__bars {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.375rem;
}

.showcase__bars span {
	height: 3px;
	background: var(--line);
	position: relative;
	overflow: hidden;
}

.showcase__bars span::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--brand);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s var(--ease-out);
}

.showcase__bars span.is-done::after {
	transform: scaleX(1);
}

.showcase__label {
	color: var(--muted);
	font-weight: 400;
	white-space: nowrap;
}

.showcase__steps {
	position: relative;
	z-index: 1;
}

.step {
	/* Mobile: gleichmäßige Abstände zwischen den Textblöcken */
	padding-block: 3.75rem;
	display: grid;
	align-content: start;
	gap: 0.875rem;
	opacity: 0.28;
	transition: opacity 0.5s var(--ease-out);
}

.step:last-child {
	padding-bottom: 18svh;
}

/* Mobile: der erste Text startet tiefer, damit er nach dem Andocken des Bildes
   nicht sofort darunter verschwindet */
@media (max-width: 64rem) {
	.step:first-child {
		padding-top: calc(12svh + 2.5rem);
	}
}

.step.is-active {
	opacity: 1;
}

.step__num {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--brand);
	letter-spacing: 0.08em;
}

.step__title {
	font-size: clamp(1.625rem, 6.4vw, 2.75rem);
	line-height: 1.15;
}

.step__text {
	max-width: 34rem;
	color: var(--muted);
}

.step__text strong {
	font-weight: 500;
	color: var(--ink);
}

.step__aside {
	margin-top: 0.5rem;
	padding-left: 1rem;
	border-left: 3px solid var(--brand);
	max-width: 32rem;
	font-size: 1rem;
}

.step__aside a {
	font-weight: 500;
}

@media (min-width: 48rem) {
	.showcase__frame {
		flex: 1;
		width: auto;
		aspect-ratio: 4 / 5;
		align-self: flex-start;
	}
}

@media (min-width: 64.0625rem) {
	.showcase {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		column-gap: 5rem;
	}

	.showcase__media {
		grid-column: 2;
		grid-row: 1;
		height: 100svh;
		padding-block: 8svh;
		background: none;
	}

	.showcase__media::after {
		display: none;
	}

	.showcase__steps {
		grid-column: 1;
		grid-row: 1;
	}

	.step,
	.step:last-child {
		min-height: 90svh;
		align-content: center;
		padding-block: 3rem;
	}
}

/* ==========================================================================
   OK-Kosmos Teil 2: Strategie & Marketing
   ========================================================================== */

/* Meilensteine */
.timeline {
	position: relative;
	display: grid;
	gap: 0;
	margin-top: 0.5rem;
}

.timeline li {
	position: relative;
	padding: 0 0 1.5rem 2rem;
}

.timeline li::before {
	content: "";
	position: absolute;
	left: 0.3125rem;
	top: 0.5rem;
	bottom: -0.5rem;
	width: 1px;
	background: var(--line-inverse);
}

.timeline li:last-child::before {
	display: none;
}

.timeline li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35rem;
	width: 0.6875rem;
	height: 0.6875rem;
	background: var(--accent);
}

.timeline li:last-child::after {
	animation: blink 2s ease-in-out infinite;
	will-change: opacity;
}

@keyframes blink {
	50% {
		opacity: 0.35;
	}
}

.timeline__when {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--accent);
}

.timeline__what {
	display: block;
	line-height: 1.35;
}

@media (min-width: 64.0625rem) {
	.timeline {
		grid-template-columns: repeat(4, 1fr);
		gap: 1.5rem;
		margin-top: 1rem;
	}

	.timeline li {
		padding: 1.75rem 0 0;
	}

	.timeline li::before {
		left: 0;
		right: -1.5rem;
		top: 0.3125rem;
		bottom: auto;
		width: auto;
		height: 1px;
	}

	.timeline li::after {
		top: 0;
	}

	.timeline__what {
		font-size: 1rem;
	}
}

/* Akkordeon */

.acc {
	border-bottom: 1px solid var(--line-inverse);
}

.acc summary {
	list-style: none;
	display: grid;
	grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
	align-items: center;
	gap: 0.75rem;
	padding-block: 1.25rem;
	border-top: 1px solid var(--line-inverse);
	cursor: pointer;
	transition: color 0.2s;
}

.acc summary::-webkit-details-marker {
	display: none;
}

.acc summary::marker {
	content: none;
}

.acc summary:hover {
	color: var(--accent);
}

.acc__num {
	align-self: center;
	font-size: 1.125rem;
	line-height: 1;
	font-weight: 500;
	color: var(--accent);
	letter-spacing: 0.06em;
}

.acc__title {
	display: grid;
	gap: 0.125rem;
}

.acc__name {
	display: block;
	font-size: clamp(1.375rem, 5.2vw, 2.25rem);
	line-height: 1.2;
}

.acc__icon {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	box-shadow: inset 0 0 0 1.5px var(--faint-inverse);
	transition:
		transform 0.35s var(--ease-out),
		background-color 0.2s;
}

.acc__icon svg {
	width: 1rem;
	height: 1rem;
}

.acc__icon svg {
	transition: transform 0.35s var(--ease-out);
}

.acc[open] .acc__icon svg {
	transform: rotate(45deg);
}

.acc[open] .acc__icon {
	background: var(--accent);
	color: var(--ink);
	box-shadow: none;
}

.acc::details-content {
	height: 0;
	overflow: clip;
	transition:
		height 0.5s var(--ease-out),
		content-visibility 0.5s allow-discrete;
}

.acc[open]::details-content {
	height: auto;
}

.acc__body {
	display: grid;
	gap: 1.75rem;
	padding: 0.25rem 0 2.5rem;
}

.acc__copy {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

.acc__claim {
	font-size: clamp(1.25rem, 4.6vw, 1.75rem);
	line-height: 1.3;
	color: var(--cream);
}

.acc__copy p:not(.acc__claim) {
	color: var(--muted-inverse);
}

.acc__media img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--ink-deep);
}

.acc__media figcaption {
	margin-top: 0.625rem;
	font-size: 0.875rem;
	color: var(--faint-inverse);
}

@media (min-width: 48rem) {
	.acc summary {
		grid-template-columns: 4rem minmax(0, 1fr) 2.75rem;
		padding-block: 1.75rem;
	}

	.acc__icon {
		width: 2.75rem;
		height: 2.75rem;
	}

	.acc__num {
		font-size: 1.375rem;
	}

	.acc__body {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 3rem;
		padding-left: 4.75rem;
	}
}

@media (min-width: 64.0625rem) {
	.acc__body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
		gap: 5rem;
	}
}

/* Kennzahlen-Kacheln */
.metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
	margin-top: 0.25rem;
}

.metric {
	display: grid;
	gap: 0.25rem;
	align-content: start;
}

.metric__kicker {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--faint-inverse);
}

.metric__value {
	font-size: clamp(1.75rem, 7.5vw, 2.75rem);
	font-weight: 500;
	line-height: 1.05;
	color: var(--accent);
	white-space: nowrap;
}

.metric__label {
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--muted-inverse);
}

.channels__outro {
	margin-top: 3rem;
	max-width: 44rem;
}

/* ==========================================================================
   Agentur
   ========================================================================== */
.agency__grid {
	display: grid;
	gap: 2.5rem;
}

.agency__photo {
	margin-inline: calc(var(--gutter) * -1);
}

.agency__photo img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 40%;
}

.agency__photo figcaption {
	padding: 0.75rem var(--gutter) 0;
	font-size: 0.875rem;
	color: var(--muted);
}

.agency__copy {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

.agency__copy p:not(.t-lead) {
	color: var(--muted);
}

@media (min-width: 48rem) {
	.agency__photo {
		margin-inline: 0;
	}

	.agency__photo figcaption {
		padding-inline: 0;
	}
}

@media (min-width: 64.0625rem) {
	.agency__grid {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
		gap: 5rem;
		align-items: start;
	}

	.agency__photo {
		position: sticky;
		top: 2rem;
	}
}

.facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.fact {
	display: grid;
	gap: 0.25rem;
	align-content: start;
}

.fact__value {
	white-space: nowrap;
	font-size: clamp(1.75rem, 7vw, 2.5rem);
	font-weight: 500;
	line-height: 1.05;
	color: var(--brand);
}

.fact__label {
	font-size: 0.9375rem;
	line-height: 1.35;
	color: var(--muted);
}

@media (min-width: 48rem) and (max-width: 64rem) {
	.facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.clients {
	margin-top: 1.5rem;
	font-size: 1rem;
	color: var(--muted);
}

.clients strong {
	color: var(--ink);
	font-weight: 500;
}

/* ==========================================================================
   Kundenstimmen
   ========================================================================== */
.voices {
	overflow: hidden;
}

.voices__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.carousel-nav {
	display: none;
	gap: 0.5rem;
}

@media (min-width: 48rem) {
	.carousel-nav {
		display: flex;
	}
}

.carousel-nav button {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	background: transparent;
	border: 1px solid var(--line);
	transition:
		border-color 0.2s,
		color 0.2s,
		opacity 0.2s;
}

.carousel-nav button:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.carousel-nav button:disabled {
	opacity: 0.3;
	pointer-events: none;
}

.carousel-nav svg {
	width: 1.25rem;
	height: 1.25rem;
}

.carousel {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.carousel::-webkit-scrollbar {
	display: none;
}

.carousel__track > li {
	display: flex;
}

.carousel__track {
	display: flex;
	gap: 0.75rem;
	width: max-content;
	padding-inline: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
	padding-bottom: 0.25rem;
}

.voice {
	scroll-snap-align: start;
	scroll-margin-left: var(--gutter);
	width: min(86vw, 29rem);
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--surface);
}

@media (min-width: 48rem) {
	.voice {
		padding: 2.5rem 2.25rem 2rem;
	}
}

@media (min-width: 64.0625rem) {
	.voice {
		width: calc((min(100vw, var(--page)) - 2 * var(--gutter) - 1.5rem) / 3);
	}
}

.voice__mark {
	width: 2.25rem;
	height: auto;
	color: var(--brand);
}

.voice blockquote {
	font-size: clamp(1.125rem, 4.4vw, 1.3125rem);
	line-height: 1.45;
}

.voice figcaption {
	margin-top: auto;
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr);
	gap: 0.875rem;
	align-items: center;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line);
}

.voice figcaption img.voice__avatar {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 50%;
	object-fit: cover;
}

.voice__who {
	font-size: 0.9375rem;
	line-height: 1.35;
}

.voice__who strong {
	display: block;
	font-weight: 500;
}

.voice__who span {
	display: block;
	color: var(--muted);
}

.voice__logo {
	grid-column: 1 / -1;
	height: 2.5rem;
	width: auto;
	max-width: 8rem;
	object-fit: contain;
	object-position: left center;
	margin-top: 0.25rem;
}

.voice__logo--ok {
	height: 2.25rem;
}

.voice__logos {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	margin-top: 0.25rem;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1.25rem;
}

.carousel-dots button {
	width: 2rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	position: relative;
}

.carousel-dots button::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 3px;
	background: var(--line);
	transition: background-color 0.3s;
}

.carousel-dots button[aria-current="true"]::after {
	background: var(--brand);
}

@media (min-width: 64.0625rem) {
	.carousel-dots {
		display: none;
	}
}

.voices__cta {
	margin-top: 3rem;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.voices__cta p {
	font-size: clamp(1.25rem, 4.6vw, 1.75rem);
	line-height: 1.3;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact__grid {
	display: grid;
	gap: 3rem;
}

@media (min-width: 64.0625rem) {
	.contact__grid {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
		gap: 6rem;
		align-items: start;
	}
}

.person {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

.person__top {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.person__img {
	position: relative;
	flex-shrink: 0;
}

.person__img img {
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--ink-deep);
}

.person__img .online-dot {
	width: 1rem;
	height: 1rem;
	border-color: var(--ink);
	right: 2px;
	bottom: 2px;
}

.person__name {
	font-size: 1.5rem;
	line-height: 1.2;
}

.person__role {
	font-size: 0.9375rem;
	color: var(--muted-inverse);
}

.person__quote {
	font-size: clamp(1.1875rem, 4.4vw, 1.5rem);
	line-height: 1.4;
}

.person__actions {
	display: grid;
	gap: 0.625rem;
}

@media (min-width: 30rem) {
	.person__actions {
		grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	}
}

.person__direct {
	display: grid;
	gap: 0.375rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line-inverse);
	font-size: 1rem;
}

.person__direct a {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
	color: var(--muted-inverse);
	transition: color 0.2s;
}

.person__direct a:hover {
	color: var(--accent);
}

.person__direct svg {
	width: 1.125rem;
	height: 1.125rem;
}

/* Formular */
.form {
	display: grid;
	gap: 1.25rem;
}

.form__row {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 48rem) {
	.form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.field {
	display: grid;
	gap: 0.375rem;
}

.field label,
.field legend {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--muted-inverse);
	padding: 0;
}

.field .req {
	color: var(--accent);
}

.field input,
.field textarea {
	width: 100%;
	min-height: 3.25rem;
	padding: 0.75rem 0.875rem;
	background: #fffdfd0f;
	border: 0;
	border-bottom: 2px solid var(--faint-inverse);
	border-radius: 0;
	color: var(--cream);
	font-size: 1.0625rem;
	transition:
		border-color 0.2s,
		background-color 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.field textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-bottom-color: var(--accent);
	background: #fffdfd1a;
}

.field input::placeholder,
.field textarea::placeholder {
	color: var(--faint-inverse);
}

.field.is-invalid input,
.field.is-invalid textarea {
	border-bottom-color: #ff8a7d;
}

.field__error {
	display: none;
	font-size: 0.875rem;
	color: #ff8a7d;
}

.field.is-invalid .field__error {
	display: block;
}

fieldset.field {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.chip {
	position: relative;
}

.chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.chip span {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	min-height: 2.5rem;
	padding: 0.4375rem 0.875rem;
	box-shadow: inset 0 0 0 1.5px var(--faint-inverse);
	font-size: 0.9375rem;
	cursor: pointer;
	transition:
		background-color 0.2s,
		color 0.2s,
		box-shadow 0.2s;
	user-select: none;
}

.chip span:hover {
	box-shadow: inset 0 0 0 1.5px var(--accent);
}

.chip input:checked + span {
	background: var(--accent);
	color: var(--ink);
	box-shadow: none;
}

.chip input:focus-visible + span {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.consent {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
	font-size: 0.9375rem;
	color: var(--muted-inverse);
}

.consent input {
	width: 1.375rem;
	height: 1.375rem;
	margin: 0.125rem 0 0;
	accent-color: var(--accent);
}

.consent a {
	color: var(--cream);
}

.consent.is-invalid {
	color: #ff8a7d;
}

.hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form__status {
	font-size: 1rem;
	padding: 0.875rem 1rem;
	background: #ff8a7d1f;
	color: #ffc2bb;
}

.form__status[hidden] {
	display: none;
}

.form__status a {
	color: var(--cream);
}

.form .btn[aria-busy="true"] {
	opacity: 0.7;
	pointer-events: none;
}

.thanks {
	display: grid;
	gap: 1.25rem;
	padding: 1.75rem;
	background: #fffdfd0f;
	border-left: 4px solid var(--accent);
}

.thanks[hidden] {
	display: none;
}

.thanks__top {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.thanks__top img {
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
}

.thanks h3 {
	font-size: clamp(1.5rem, 5.5vw, 2rem);
	line-height: 1.2;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	padding-block: 3.5rem;
}

.site-footer .wrap {
	display: grid;
	justify-items: center;
	gap: 1.75rem;
	text-align: center;
}

.site-footer__logo {
	width: 11rem;
	color: var(--ink);
}

.site-footer__address {
	font-style: normal;
	font-size: 0.9375rem;
	color: var(--muted);
	line-height: 1.6;
}

.site-footer__address a {
	text-decoration: none;
}

.site-footer__address a:hover {
	color: var(--brand);
}

.legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem 1rem;
	font-size: 0.9375rem;
}

.legal a {
	text-decoration: none;
	padding: 0.25rem 0;
}

.legal a:hover {
	color: var(--brand);
}

.social {
	display: flex;
	gap: 0.625rem;
}

.social a {
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	background: var(--ink);
	color: var(--cream);
	transition: background-color 0.2s;
}

.social a:hover {
	background: var(--brand);
}

.social svg {
	width: 1.25rem;
	height: 1.25rem;
}

/* Desktop: Logo links, Rechtliches mittig, Social rechts */
@media (min-width: 64.0625rem) {
	.site-footer .wrap {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas: "logo legal social";
		align-items: end;
		gap: 2rem;
		text-align: left;
	}

	.site-footer__logo {
		grid-area: logo;
		justify-self: start;
		width: 14rem;
	}

	.site-footer__address {
		display: none;
	}

	.site-footer nav {
		grid-area: legal;
		align-self: end;
		margin-bottom: 0.125rem;
	}

	.legal {
		gap: 0;
	}

	.legal li + li::before {
		content: "|";
		margin-inline: 0.75rem;
		color: var(--ink);
	}

	.social {
		grid-area: social;
		justify-self: end;
		gap: 0.75rem;
		margin-bottom: 0.5rem; /* bündig mit der Unterkante des Logo-Schriftzugs */
	}

	.social a {
		width: 4rem;
		height: 4rem;
	}

	.social svg {
		width: 1.75rem;
		height: 1.75rem;
	}
}

/* ==========================================================================
   Kontakt-Popup (Bottom Sheet auf Mobile, Dialog auf Desktop)
   ========================================================================== */
.sheet {
	width: 100%;
	max-width: 100%;
	max-height: 92svh;
	margin: auto 0 0;
	padding: 0;
	border: 0;
	background: var(--cream);
	color: var(--ink);
	overflow: auto;
	overscroll-behavior: contain;
}

.sheet::backdrop {
	background: #1f1f1fb3;
}

.sheet[open] {
	animation: sheet-up 0.45s var(--ease-out);
}

.sheet[open]::backdrop {
	animation: fade 0.3s ease-out;
}

@keyframes sheet-up {
	from {
		transform: translateY(100%);
	}
	to {
		transform: none;
	}
}

@keyframes fade {
	from {
		opacity: 0;
	}
}

@media (min-width: 48rem) {
	.sheet {
		width: min(34rem, calc(100% - 4rem));
		margin: auto;
	}

	.sheet[open] {
		animation: sheet-pop 0.4s var(--ease-out);
	}
}

@keyframes sheet-pop {
	from {
		opacity: 0;
		transform: translateY(1.5rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.sheet__inner {
	position: relative;
	display: grid;
	gap: 1.25rem;
	padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 48rem) {
	.sheet__inner {
		padding: 2.25rem;
	}
}

.sheet__grip {
	justify-self: center;
	width: 2.75rem;
	height: 4px;
	background: var(--line);
}

@media (min-width: 48rem) {
	.sheet__grip {
		display: none;
	}
}

.sheet__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	background: var(--surface);
	border: 0;
	transition: background-color 0.2s;
}

.sheet__close:hover {
	background: var(--accent);
}

.sheet__close svg {
	width: 1.125rem;
	height: 1.125rem;
}

.sheet__person {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-right: 3rem;
}

.sheet__person img {
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.sheet__person .online-dot {
	width: 1rem;
	height: 1rem;
	right: 2px;
	bottom: 2px;
}

.sheet__name {
	font-size: 1.5rem;
	line-height: 1.2;
}

.sheet__role {
	font-size: 0.9375rem;
	color: var(--muted);
}

.sheet__quote {
	font-size: 1.1875rem;
	line-height: 1.45;
}

.sheet__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.icon-action {
	display: grid;
	justify-items: center;
	gap: 0.375rem;
	padding: 0.875rem 0.5rem;
	background: var(--surface);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition:
		background-color 0.2s,
		color 0.2s;
}

.icon-action:hover {
	background: var(--ink);
	color: var(--cream);
}

.icon-action svg {
	width: 1.375rem;
	height: 1.375rem;
}

.sheet__foot {
	font-size: 0.9375rem;
	text-align: center;
}

.sheet__foot a {
	color: var(--muted);
}

.sheet__foot a:hover {
	color: var(--brand);
}

/* Schwebender Kontakt-Button – Milchglas */
.fab {
	position: fixed;
	right: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom));
	z-index: 30;
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.4375rem 1.25rem 0.4375rem 0.4375rem;
	background: #fffdfdb8;
	-webkit-backdrop-filter: blur(16px) saturate(170%);
	backdrop-filter: blur(16px) saturate(170%);
	border: 1px solid #fffdfd99;
	box-shadow: 0 0.5rem 1.75rem #1f1f1f2e;
	color: var(--ink);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.15;
	text-align: left;
	opacity: 0;
	transform: translateY(1rem);
	pointer-events: none;
	transition:
		opacity 0.35s var(--ease-out),
		transform 0.45s var(--ease-out),
		background-color 0.2s;
}

.fab.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.fab:hover {
	background: #fffdfde6;
}

.fab img {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	object-fit: cover;
}

.fab__text {
	display: grid;
}

.fab__sub {
	font-size: 0.8125rem;
	font-weight: 400;
	color: var(--muted);
}

/* Ohne Milchglas-Unterstützung: deckender Hintergrund */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.fab {
		background: var(--cream);
	}
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		scroll-behavior: auto !important;
	}

	.js [data-reveal] {
		opacity: 1;
		transform: none;
	}

}
