/* ==========================================================================
   100M FREISTIL – Frontend
   Maße aus den Sketch-Entwürfen: Smartphone 393 px, Tablet 768 px,
   Desktop-Raster 1184 px. Zwischen 393 und 768 px skalieren Typo und
   Abstände linear; ab 768 px gelten die Desktop-Werte.
   ========================================================================== */

/* Schriften ------------------------------------------------------------- */
@font-face {
	font-family: "URW Geometric";
	src: url("../fonts/URWGeometric-Medium.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "URW Geometric";
	src: url("../fonts/URWGeometric-SemiBold.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "URW Geometric";
	src: url("../fonts/URWGeometric-ExtraBold.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* Tokens ---------------------------------------------------------------- */
:root {
	--ink: #707E86;
	--muted: #9BA4AA;
	--stroke: #B6BFC6;
	--line: #DDDDDD;
	--surface: #F2F2F2;
	--surface-hover: #EBEBEB;
	--tile: #F7F7F7;
	--tile-hover: #F0F0F0;
	--coral: #F0737E;
	--coral-hover: #DD6A73;
	--pill-hover: #E6E6E7;
	--white: #FFFFFF;

	--font: "URW Geometric", system-ui, -apple-system, "Segoe UI", sans-serif;
	--emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;

	/* 393 → 768 px: f(min, max) = min + (max − min) · (100vw − 393px) / 375 */
	--vw: (100vw - 393px) / 375;
	--gutter: clamp(16px, calc(16px + 8 * var(--vw)), 24px);
	--fs-display: clamp(30px, calc(30px + 8 * var(--vw)), 38px);
	--lh-display: clamp(36px, calc(36px + 11 * var(--vw)), 47px);
	--s-section: clamp(80px, calc(80px + 20 * var(--vw)), 100px);
	--s-top: clamp(64px, calc(64px + 16 * var(--vw)), 80px);
	--s-head: clamp(56px, calc(56px + 8 * var(--vw)), 64px);
	--s-chips: clamp(32px, calc(32px + 8 * var(--vw)), 40px);
	--s-media: clamp(64px, calc(64px + 16 * var(--vw)), 80px);
	--s-footer: clamp(32px, calc(32px + 8 * var(--vw)), 40px);
	--s-text: clamp(24px, calc(24px + 16 * var(--vw)), 40px);
	--pill-bottom: clamp(20px, calc(20px + 4 * var(--vw)), 24px);
	--fade: clamp(0px, calc(100 * var(--vw)), 100px);

	/* Einzug der Leitsätze: 0 (393) → 62 (768) → 100 px (1232). */
	--indent: clamp(0px, min(calc(62 * var(--vw)), calc(62px + 38 * (100vw - 768px) / 464)), 100px);

	--radius: 12px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Basis ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	overflow-x: clip;
}
body {
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 600;
	font-size: 17px;
	line-height: 23px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
	overflow-x: clip;
}
img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}
a {
	color: inherit;
	text-decoration: none;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}
ul[role="list"] {
	list-style: none;
	padding: 0;
}
strong {
	font-weight: 800;
}
:focus-visible {
	outline: 2px solid var(--coral);
	outline-offset: 3px;
	border-radius: 4px;
}
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.fs-skip {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 100;
	padding: 12px 20px;
	background: var(--ink);
	color: var(--white);
	border-radius: 27px;
	font-weight: 800;
	transform: translateY(-200%);
	transition: transform 150ms var(--ease);
}
.fs-skip:focus {
	transform: none;
}

/* Raster ---------------------------------------------------------------- */
.fs-shell {
	width: min(1184px, 100% - 2 * var(--gutter));
	margin-inline: auto;
}

/* Kopf ------------------------------------------------------------------ */
.fs-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 24px;
	view-transition-name: fs-header;
}
.fs-header__logo {
	flex: none;
	width: 80px;
	height: 80px;
	border-radius: 50%;
}
.fs-header__logo img {
	width: 80px;
	height: 80px;
}
.fs-header__claim {
	color: var(--muted);
	font-weight: 500;
	font-size: 13px;
	line-height: 1;
	text-align: right;
}

/* Inhaltsfluss: Abstände zwischen den Blöcken ------------------------------ */
.fs-main {
	padding-top: var(--s-top);
}
.fs-flow > * + * {
	margin-top: var(--s-head);
}
.fs-flow > .fs-divider,
.fs-divider {
	display: block;
	height: 1px;
	margin: var(--s-section) 0;
	border: 0;
	background: var(--line);
}
.fs-flow > .fs-divider + * {
	margin-top: 0;
}
.fs-flow > .fs-lede + .fs-projects {
	margin-top: var(--s-chips);
}
.fs-flow > .fs-marquee + * {
	margin-top: var(--s-section);
}
.fs-flow > .fs-facts + .fs-images {
	margin-top: var(--s-media);
}
.fs-flow > .fs-images + .fs-images {
	margin-top: 24px;
}
.fs-flow > :first-child {
	margin-top: 0;
}
.fs-flow > :last-child.fs-divider {
	margin-bottom: 0;
}

/* Leitsatz -------------------------------------------------------------- */
.fs-lede {
	padding-inline: var(--indent);
}
.fs-lede--flush {
	padding-inline: 0;
}
.fs-lede__title {
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	font-weight: 500;
	color: var(--muted);
	text-wrap: pretty;
}
.fs-lede__title strong {
	font-weight: 800;
	color: var(--ink);
}
/* Schnitte mit abweichenden Höhenmetriken nicht an der Grundlinie stapeln (sonst +1 px Zeilenhöhe). */
.fs-lede__title > *,
.fs-next__title > * {
	vertical-align: top;
}
.fs-lede__meta {
	margin-top: 24px;
	color: var(--muted);
}

/* Buttons --------------------------------------------------------------- */
.fs-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
	padding-inline-start: var(--indent);
}
.fs-buttons--flush {
	padding-inline-start: 0;
}
.fs-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 54px;
	padding: 0 32px;
	border-radius: 27px;
	font-size: 17px;
	line-height: 1;
	font-weight: 800;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 120ms var(--ease);
}
.fs-btn:active {
	transform: scale(0.97);
}
.fs-btn--primary {
	background: var(--coral);
	color: var(--white);
	--fs-arrow-ink: var(--coral);
}
.fs-btn--primary:hover {
	background: var(--coral-hover);
	--fs-arrow-ink: var(--coral-hover);
}
.fs-btn--primary .fs-icon--arrow {
	flex: none;
	color: var(--white);
}
.fs-btn--primary .fs-icon--arrow path {
	transition: transform 220ms var(--ease), stroke 180ms var(--ease);
}
.fs-btn--primary:hover .fs-icon--arrow path {
	transform: translateX(1.5px);
}
.fs-btn--secondary {
	padding: 0 31px;
	border: 1px solid var(--stroke);
	background: var(--white);
	color: var(--ink);
}
.fs-btn--secondary:hover {
	border-color: var(--ink);
}

/* Chips ----------------------------------------------------------------- */
.fs-chips,
.fs-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 11px 10px;
}
.fs-chips {
	padding-inline-start: var(--indent);
	margin-bottom: var(--s-head);
}
.fs-chip {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	font-family: inherit;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	height: 38px;
	padding: 0 19px;
	border: 1px solid var(--stroke);
	border-radius: 19px;
	background: var(--white);
	color: var(--ink);
	font-size: 15px;
	line-height: 1;
	font-weight: 800;
	white-space: nowrap;
	transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}
.fs-chip--static {
	cursor: default;
}
button.fs-chip:hover {
	border-color: var(--ink);
}
.fs-chip.is-active,
.fs-chip[aria-pressed="true"] {
	border-color: var(--ink);
	background: var(--ink);
	color: var(--white);
}

/* Projektraster --------------------------------------------------------- */
.fs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
.fs-card[hidden] {
	display: none;
}
.fs-card__link {
	display: block;
	border-radius: var(--radius);
}
.fs-card__media {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
	transition: transform 180ms ease-out;
}
.fs-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fs-card__link:hover .fs-card__media {
	transform: scale(1.01);
}
.fs-card__title {
	display: block;
	margin-top: 20px;
	font-size: 24px;
	line-height: 1;
	font-weight: 800;
	color: var(--ink);
}
.fs-card__teaser {
	display: block;
	margin-top: 4px;
	color: var(--muted);
	transition: color 180ms var(--ease);
}
.fs-card__link:hover .fs-card__teaser {
	color: var(--ink);
}
.fs-projects__empty {
	padding-inline-start: var(--indent);
	color: var(--muted);
}
.fs-card.is-entering {
	animation: fs-card-in 300ms var(--ease) both;
	animation-delay: calc(var(--i, 0) * 40ms);
}
@keyframes fs-card-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* Kundenlogos ----------------------------------------------------------- */
.fs-marquee {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%);
	touch-action: pan-y;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}
.fs-marquee.is-dragging {
	cursor: grabbing;
}
.fs-marquee {
	position: relative;
}
/* Nur bei Tastaturfokus sichtbar – für alle anderen bleibt das Laufband unverändert. */
.fs-marquee__toggle {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	height: 38px;
	padding: 0 19px;
	border: 1px solid var(--ink);
	border-radius: 19px;
	background: var(--white);
	color: var(--ink);
	font: 800 15px/1 var(--font);
	white-space: nowrap;
	cursor: pointer;
	transform: translate(-50%, -50%);
	opacity: 0;
	pointer-events: none;
}
.fs-marquee__toggle:focus-visible {
	opacity: 1;
	pointer-events: auto;
}
.fs-marquee__track {
	display: flex;
	gap: 16px;
	width: max-content;
	padding-inline: var(--gutter);
	will-change: transform;
}
html:not(.js) .fs-marquee {
	overflow-x: auto;
}
.fs-marquee__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 220px;
	height: 116px;
	border-radius: var(--radius);
	background: var(--tile);
	transition: background-color 180ms var(--ease);
}
.fs-marquee__item:hover {
	background: var(--tile-hover);
}
.fs-marquee__item img {
	width: auto;
	height: auto;
	max-width: 152px;
	max-height: 48px;
	pointer-events: none;
}

/* Bildreihen ------------------------------------------------------------ */
.fs-images {
	display: grid;
	gap: 24px;
}
.fs-images__frame {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--surface);
}
.fs-images--single .fs-images__frame {
	aspect-ratio: 16 / 9;
}
.fs-images--pair .fs-images__frame {
	aspect-ratio: 1 / 1;
}
.fs-images__frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Abschnittstitel ------------------------------------------------------- */
.fs-intro {
	display: grid;
	gap: 24px;
}
.fs-intro__title {
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	font-weight: 800;
	color: var(--ink);
}
.fs-intro__text {
	color: var(--muted);
}

/* Leistungskarten ------------------------------------------------------- */
.fs-services {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding: 0;
	list-style: none;
}
.fs-service {
	min-height: 283px;
	padding: 32px;
	border-radius: var(--radius);
	background: var(--surface);
	transition: background-color 180ms var(--ease);
}
.fs-service:hover {
	background: var(--surface-hover);
}
.fs-service__icon {
	display: block;
	width: 48px;
	height: 48px;
}
.fs-service__icon img {
	width: 48px;
	height: 48px;
}
.fs-service__title {
	margin-top: 16px;
	font-size: 24px;
	line-height: 24px;
	font-weight: 800;
	color: var(--ink);
}
.fs-service__text {
	margin-top: 16px;
	color: var(--muted);
}

/* Projekt-Detail -------------------------------------------------------- */
.fs-project__title {
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	font-weight: 800;
	color: var(--ink);
}
.fs-project__head .fs-tags {
	margin-top: 16px;
}
.fs-project__body {
	margin-top: var(--s-chips);
}
.fs-facts {
	display: grid;
	gap: 32px;
}
.fs-facts__text {
	max-width: 681px;
	font-size: 20px;
	line-height: 30px;
	color: var(--ink);
}
.fs-facts__text p + p {
	margin-top: 30px;
}
.fs-facts__text a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--stroke);
}
.fs-facts__row {
	display: grid;
	grid-template-columns: 157px 1fr;
	padding: 12px 0;
	border-top: 1px solid var(--line);
}
.fs-facts__row dt {
	color: var(--muted);
}
.fs-facts__row dd {
	color: var(--ink);
}

/* Nächstes Projekt ------------------------------------------------------- */
.fs-next__link {
	display: block;
}
.fs-next__label {
	display: block;
	font-size: 13px;
	line-height: 1;
	font-weight: 500;
	color: var(--muted);
}
.fs-next__title {
	display: block;
	margin-top: 16px;
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	font-weight: 800;
	color: var(--ink);
}
.fs-next__title .fs-icon--arrow-large {
	display: inline-block;
	width: 32px;
	height: 32px;
	margin-left: 4px;
	vertical-align: -4px;
	transition: transform 220ms var(--ease);
}
.fs-next__link:hover .fs-icon--arrow-large {
	transform: translateX(8px);
}
.fs-next__teaser {
	display: block;
	margin-top: 16px;
	color: var(--muted);
}

/* Kontakt --------------------------------------------------------------- */
.fs-contact {
	display: grid;
	gap: var(--s-top);
}
.fs-contact__media {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	background: var(--surface);
}
.fs-contact__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fs-contact__title {
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	font-weight: 500;
	color: var(--muted);
}
.fs-contact__title > strong,
.fs-contact__title > span {
	display: block;
}
.fs-contact__title strong {
	color: var(--ink);
}
.fs-wave {
	display: inline-block;
	font-family: var(--emoji);
	font-weight: 400;
	transform-origin: 70% 75%;
}
.fs-contact__text {
	margin-top: var(--s-text);
	color: var(--muted);
}
.fs-contact__text p + p {
	margin-top: 23px;
}
.fs-contact__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px 64px;
	margin-top: var(--s-head);
}
.fs-contact__address {
	color: var(--ink);
}
.fs-contact__label {
	display: block;
	color: var(--muted);
}

/* Rechtstexte ----------------------------------------------------------- */
.fs-legal {
	padding-inline: var(--indent);
	font-size: 20px;
	line-height: 30px;
	color: var(--ink);
}
.fs-legal > h2 {
	font-size: 24px;
	line-height: 24px;
	font-weight: 800;
	color: var(--ink);
}
.fs-legal > h3 {
	font-size: 20px;
	line-height: 30px;
	font-weight: 800;
}
.fs-legal > * + h2 {
	margin-top: var(--s-head);
}
.fs-legal > * + h3 {
	margin-top: 32px;
}
.fs-legal > h2 + *,
.fs-legal > h3 + *,
.fs-legal > * + .fs-infobox,
.fs-legal > * + ul,
.fs-legal > * + ol {
	margin-top: 24px;
}
.fs-legal > p + p,
.fs-legal > ul + p,
.fs-legal > ol + p {
	margin-top: 30px;
}
.fs-legal ul,
.fs-legal ol {
	padding-left: 1.2em;
}
.fs-legal li + li {
	margin-top: 8px;
}
.fs-legal a,
.fs-infobox a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: text-decoration-color 180ms var(--ease);
}
.fs-legal a:hover,
.fs-infobox a:hover {
	text-decoration-color: var(--stroke);
}
.fs-infobox {
	padding: 24px;
	border-left: 2px solid var(--muted);
	border-radius: 0 var(--radius) var(--radius) 0;
	background: var(--surface);
	font-size: 20px;
	line-height: 30px;
	color: var(--ink);
}

/* Fuß ------------------------------------------------------------------- */
.fs-footer {
	margin-top: var(--s-section);
	padding-top: var(--s-footer);
	border-top: 1px solid var(--line);
	font-size: 13px;
	line-height: 1;
	font-weight: 500;
	color: var(--muted);
}
.fs-footer a {
	transition: color 180ms var(--ease);
}
.fs-footer a:hover {
	color: var(--ink);
}
.fs-footer__social {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 32px;
}
.fs-footer__social a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.fs-footer__social .fs-icon {
	width: 16px;
	height: 16px;
}

/* Pill-Navigation --------------------------------------------------------
   „sticky“ statt „fixed“: schwebt beim Scrollen unten im Fenster und landet
   am Seitenende exakt auf seinem Platz unter dem Footer. */
.fs-pill {
	position: sticky;
	bottom: var(--pill-bottom);
	z-index: 50;
	width: max-content;
	margin: var(--s-footer) auto;
	padding: 6px 8px;
	border-radius: 24px;
	background: var(--surface);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	view-transition-name: fs-pill;
}
.fs-pill__list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fs-pill__link {
	display: flex;
	align-items: center;
	height: 36px;
	padding: 0 20px;
	border-radius: 18px;
	font-size: 14px;
	line-height: 1;
	font-weight: 500;
	color: var(--ink);
	white-space: nowrap;
	transition: background-color 180ms var(--ease);
}
.fs-pill__link:hover {
	background: var(--pill-hover);
}
.fs-pill__link.is-current {
	background: var(--white);
}

/* Einblenden beim Scrollen (nur mit JavaScript) ------------------------- */
html.js .fs-reveal {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 300ms ease-out, transform 300ms ease-out;
}
html.js .fs-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Seitenwechsel --------------------------------------------------------- */
@view-transition {
	navigation: auto;
}
::view-transition-old(root) {
	animation: 160ms ease-out both fs-page-out;
}
::view-transition-new(root) {
	animation: 320ms ease-out both fs-page-in;
}
@keyframes fs-page-out {
	to {
		opacity: 0;
	}
}
@keyframes fs-page-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* Breakpoints ----------------------------------------------------------- */
@media (min-width: 600px) {
	.fs-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.fs-images--pair {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.fs-intro {
		grid-template-columns: repeat(2, 1fr);
	}
	.fs-services {
		grid-template-columns: repeat(2, 1fr);
	}
	.fs-footer {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
	}
	.fs-footer__social {
		flex-direction: row;
		margin-top: 0;
	}
}

@media (min-width: 900px) {
	.fs-contact {
		grid-template-columns: repeat(2, 1fr);
		align-items: center;
		gap: 24px;
	}
	.fs-contact__media {
		order: 2;
	}
	.fs-contact__body {
		max-width: 480px;
	}
}

@media (min-width: 1024px) {
	.fs-grid,
	.fs-services {
		grid-template-columns: repeat(3, 1fr);
	}
	.fs-facts {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
		align-items: start;
	}
	.fs-facts__text {
		grid-column: 1 / 3;
	}
	.fs-facts__credits {
		grid-column: 3;
	}
}

/* Bewegung reduzieren --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	html.js .fs-reveal {
		opacity: 1;
		transform: none;
	}
	@view-transition {
		navigation: none;
	}
}
