/* =====================================================================
   MF-Systeme · Showcase Design-System
   Ein gemeinsames, premium Fundament für alle Branchen-Demos.
   Jede Demo überschreibt nur die Theme-Variablen (:root) — „nur in grün"
   ist dann ein Vier-Zeilen-Diff. Kein externes CDN, keine Cookies, DSGVO-clean.
   ===================================================================== */

@font-face {
	font-family: 'Space Grotesk';
	src: url('/assets/space-grotesk-700.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'Space Grotesk';
	src: url('/assets/space-grotesk-500.woff2') format('woff2');
	font-weight: 500;
	font-display: swap;
}

/* ---- Theme-Tokens (Default: elegantes Nachtblau) ---- */
:root {
	--brand: #4f7cff;
	--brand-2: #8a5cff;
	--accent: #22d3ee;
	--ink: #11162a;
	--muted: #5b6478;
	--bg: #ffffff;
	--surface: #f6f8fc;
	--surface-2: #eef2fb;
	--line: #e4e9f3;
	--on-brand: #ffffff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 10px 30px rgba(17, 22, 42, 0.08);
	--shadow-lg: 0 30px 70px rgba(17, 22, 42, 0.16);
	--maxw: 1120px;
	--display: 'Space Grotesk', system-ui, sans-serif;
	--body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--grad: linear-gradient(120deg, var(--brand), var(--brand-2));
}

/* ---- Reset ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
}
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	font-family: var(--body);
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	overflow-x: hidden;
}
img {
	max-width: 100%;
	display: block;
}
a {
	color: inherit;
	text-decoration: none;
}
h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
}
section {
	padding: clamp(56px, 8vw, 112px) 0;
}
.wrap {
	width: min(100% - 40px, var(--maxw));
	margin-inline: auto;
}
.eyebrow {
	display: inline-block;
	font-family: var(--display);
	font-weight: 500;
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--brand);
	margin-bottom: 14px;
}
.sechead {
	max-width: 640px;
	margin-bottom: 44px;
}
.sechead.center {
	margin-inline: auto;
	text-align: center;
}
.sechead h2 {
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	margin-bottom: 14px;
}
.sechead p {
	color: var(--muted);
	font-size: 1.05rem;
}
.lead {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	color: var(--muted);
}

/* ---- Buttons ---- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 14px 24px;
	border-radius: 100px;
	font-weight: 600;
	font-size: 0.98rem;
	background: var(--grad);
	color: var(--on-brand);
	border: none;
	cursor: pointer;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		opacity 0.18s ease;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 45%, transparent);
}
.btn.ghost {
	background: transparent;
	color: var(--ink);
	border: 1.5px solid var(--line);
	box-shadow: none;
}
.btn.ghost:hover {
	border-color: var(--brand);
	color: var(--brand);
	box-shadow: none;
}
.btn.light {
	background: #fff;
	color: var(--ink);
	box-shadow: var(--shadow);
}

/* ---- Demo-Ribbon (macht unmissverständlich: Beispielseite von MF-Systeme) ---- */
.demo-ribbon {
	background: var(--ink);
	color: #fff;
	font-size: 0.86rem;
	text-align: center;
	padding: 9px 16px;
	display: flex;
	gap: 14px;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}
.demo-ribbon strong {
	font-family: var(--display);
}
.demo-ribbon a {
	color: var(--accent);
	font-weight: 600;
	white-space: nowrap;
}
.demo-ribbon a:hover {
	text-decoration: underline;
}

/* ---- Nav ---- */
.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(160%) blur(14px);
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	border-bottom: 1px solid var(--line);
}
.nav .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 11px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	white-space: nowrap;
}
.brand .mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: var(--grad);
	color: var(--on-brand);
	font-size: 1rem;
}
.nav nav {
	display: flex;
	gap: 26px;
	align-items: center;
}
.nav nav a {
	font-size: 0.95rem;
	color: var(--muted);
	font-weight: 500;
}
.nav nav a:hover {
	color: var(--ink);
}
.nav .btn {
	padding: 11px 20px;
}
.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.burger span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--ink);
	margin: 5px 0;
	transition: 0.2s;
}
@media (max-width: 860px) {
	.nav nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(84vw, 340px);
		flex-direction: column;
		justify-content: flex-start;
		align-items: stretch;
		gap: 2px;
		padding: 88px 26px 28px;
		overflow-y: auto;
		background: var(--bg);
		box-shadow: var(--shadow-lg);
		transform: translateX(100%);
		transition: transform 0.28s ease;
	}
	.nav nav.open {
		transform: translateX(0);
		/* Großer Spread-Shadow = abdunkelnder Hintergrund ohne Extra-Element */
		box-shadow: var(--shadow-lg), 0 0 0 100vmax rgba(5, 8, 18, 0.5);
	}
	.nav nav a {
		font-size: 1.08rem;
		color: var(--ink);
		padding: 14px 4px;
		border-bottom: 1px solid var(--line);
	}
	.nav nav .btn {
		margin-top: 16px;
		width: 100%;
		justify-content: center;
		font-size: 1rem;
		padding: 14px 20px;
	}
	.burger {
		display: block;
		z-index: 60;
	}
	.burger.open span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}
	.burger.open span:nth-child(2) {
		opacity: 0;
	}
	.burger.open span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}
	.brand {
		font-size: 1.02rem;
	}
}

/* ---- Hero ---- */
.hero {
	position: relative;
	padding: clamp(64px, 10vw, 128px) 0;
	overflow: hidden;
}
.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 80% at 85% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
		radial-gradient(50% 70% at 0% 110%, color-mix(in srgb, var(--brand-2) 20%, transparent), transparent 60%);
	z-index: -1;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}
.hero h1 {
	font-size: clamp(2.4rem, 6vw, 4.1rem);
	margin-bottom: 20px;
}
.hero .lead {
	margin-bottom: 30px;
	max-width: 30ch;
}
.hero .cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}
.hero-meta {
	display: flex;
	gap: 28px;
	margin-top: 34px;
	flex-wrap: wrap;
}
.hero-meta div {
	font-size: 0.9rem;
	color: var(--muted);
}
.hero-meta strong {
	display: block;
	font-family: var(--display);
	font-size: 1.5rem;
	color: var(--ink);
}
@media (max-width: 860px) {
	.hero-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

/* ---- Foto-Zonen (Platzhalter, die bewusst nach „hier kommt euer Foto" aussehen) ---- */
.photo {
	position: relative;
	border-radius: var(--radius);
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--surface)), var(--surface-2));
	overflow: hidden;
	box-shadow: var(--shadow);
	aspect-ratio: 4 / 3;
	display: grid;
	place-items: center;
	isolation: isolate;
}
.photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--brand) 22%, transparent) 1px, transparent 0);
	background-size: 22px 22px;
	opacity: 0.5;
	z-index: -1;
}
.photo .ph-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.82rem;
	color: color-mix(in srgb, var(--ink) 55%, transparent);
	background: color-mix(in srgb, var(--bg) 70%, transparent);
	padding: 7px 13px;
	border-radius: 100px;
	font-weight: 500;
	backdrop-filter: blur(4px);
}
.photo.tall {
	aspect-ratio: 3 / 4;
}
.photo.wide {
	aspect-ratio: 16 / 10;
}
.photo svg {
	width: 46px;
	height: 46px;
	color: color-mix(in srgb, var(--brand) 60%, transparent);
	position: absolute;
	opacity: 0.35;
}
/* Echtes Bild einsetzen: <div class="photo has-img" style="background-image:url(...)"> */
.photo {
	background-size: cover;
	background-position: center;
}
.photo.has-img::after,
.photo.has-img .ph-label,
.photo.has-img svg {
	display: none;
}

/* ---- Belegungskalender (Ferienwohnung) ---- */
.cal {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}
.cal .dow {
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--muted);
	padding-bottom: 4px;
}
.cal .d {
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border-radius: 9px;
	border: 1px solid var(--line);
	font-size: 0.88rem;
}
.cal .d.out {
	opacity: 0.25;
}
.cal .d.booked {
	background: color-mix(in srgb, var(--ink) 8%, transparent);
	color: var(--muted);
	text-decoration: line-through;
	border-color: transparent;
}
.cal .d.free {
	border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
	color: var(--brand);
	font-weight: 600;
}
.callegend {
	display: flex;
	gap: 18px;
	margin-top: 14px;
	font-size: 0.85rem;
	color: var(--muted);
	flex-wrap: wrap;
}
.callegend span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}
.callegend i {
	width: 14px;
	height: 14px;
	border-radius: 4px;
	display: inline-block;
}

/* ---- Karten / Grids ---- */
.grid {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
}
@media (min-width: 720px) {
	.grid.cols-2 {
		grid-template-columns: repeat(2, 1fr);
	}
	.grid.cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.grid.cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}
.card {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 28px;
	box-shadow: var(--shadow);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}
.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}
.card .ico {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--brand) 12%, var(--surface));
	color: var(--brand);
	margin-bottom: 16px;
}
.card .ico svg {
	width: 25px;
	height: 25px;
}
.card h3 {
	font-size: 1.2rem;
	margin-bottom: 9px;
}
.card p {
	color: var(--muted);
	font-size: 0.97rem;
}
.alt {
	background: var(--surface);
}

/* ---- Leistungs-/Preisliste (Friseur, Handwerk) ---- */
.pricelist {
	display: grid;
	gap: 10px;
}
.pricerow {
	display: flex;
	align-items: baseline;
	gap: 14px;
	padding: 16px 20px;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
}
.pricerow .nm {
	font-weight: 600;
}
.pricerow .ds {
	color: var(--muted);
	font-size: 0.9rem;
}
.pricerow .leader {
	flex: 1;
	border-bottom: 2px dotted var(--line);
	transform: translateY(-4px);
}
.pricerow .pr {
	font-family: var(--display);
	font-weight: 700;
	white-space: nowrap;
	color: var(--brand);
}

/* ---- Speisekarte (Restaurant) ---- */
.menu-cat {
	font-family: var(--display);
	font-size: 1.35rem;
	margin: 30px 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--line);
	display: flex;
	align-items: center;
	gap: 10px;
}
.menu-item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 16px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
}
.menu-item .nm {
	font-weight: 600;
}
.menu-item .pr {
	font-family: var(--display);
	font-weight: 700;
	color: var(--brand);
}
.menu-item .ds {
	grid-column: 1 / 2;
	color: var(--muted);
	font-size: 0.9rem;
}
.tag-mini {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 2px 7px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--brand) 14%, transparent);
	color: var(--brand);
	vertical-align: middle;
}

/* ---- Buchungs-/Reservierungs-Mockup ---- */
.booking {
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow-lg);
}
.booking h3 {
	font-size: 1.15rem;
	margin-bottom: 4px;
}
.booking .sub {
	color: var(--muted);
	font-size: 0.9rem;
	margin-bottom: 18px;
}
.daystrip {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}
.daystrip .day {
	text-align: center;
	padding: 10px 0;
	border-radius: 12px;
	border: 1px solid var(--line);
	cursor: pointer;
	font-size: 0.85rem;
	transition: 0.15s;
}
.daystrip .day span {
	display: block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.1rem;
}
.daystrip .day.off {
	opacity: 0.4;
	cursor: not-allowed;
}
.daystrip .day.sel,
.daystrip .day:not(.off):hover {
	background: var(--grad);
	color: var(--on-brand);
	border-color: transparent;
}
.slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 9px;
}
.slot {
	padding: 11px 0;
	text-align: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9rem;
	transition: 0.15s;
}
.slot:hover,
.slot.sel {
	background: color-mix(in srgb, var(--brand) 12%, transparent);
	border-color: var(--brand);
	color: var(--brand);
}
.slot.taken {
	opacity: 0.35;
	text-decoration: line-through;
	cursor: not-allowed;
}

/* ---- Öffnungszeiten ---- */
.hours {
	display: grid;
	gap: 2px;
}
.hours div {
	display: flex;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.96rem;
}
.hours div span:first-child {
	color: var(--muted);
}
.hours div.today {
	font-weight: 700;
	color: var(--brand);
}

/* ---- Bewertungen ---- */
.stars {
	color: #f5a623;
	letter-spacing: 2px;
	font-size: 1rem;
}
.review p {
	font-size: 1rem;
	margin: 10px 0 14px;
}
.review .who {
	font-weight: 600;
	font-size: 0.9rem;
}

/* ---- Galerie ---- */
.gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-rows: 160px;
	gap: 14px;
}
.gallery .photo:nth-child(1) {
	grid-column: span 2;
	grid-row: span 2;
}
.gallery .photo {
	aspect-ratio: auto;
	height: 100%;
}
@media (max-width: 720px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 130px;
	}
}

/* ---- CTA-Band ---- */
.cta-band {
	background: var(--grad);
	color: var(--on-brand);
	border-radius: var(--radius);
	padding: clamp(32px, 5vw, 60px);
	text-align: center;
}
.cta-band h2 {
	font-size: clamp(1.7rem, 4vw, 2.6rem);
	margin-bottom: 12px;
}
.cta-band p {
	opacity: 0.9;
	max-width: 48ch;
	margin: 0 auto 26px;
}

/* ---- Formular (nicht funktional, nur Optik) ---- */
.form {
	display: grid;
	gap: 14px;
}
.form .row {
	display: grid;
	gap: 14px;
	grid-template-columns: 1fr 1fr;
}
.form label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
	display: block;
	margin-bottom: 6px;
}
.form input,
.form textarea,
.form select {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font: inherit;
	background: var(--bg);
	color: var(--ink);
}
.form input:focus,
.form textarea:focus,
.form select:focus {
	outline: 2px solid var(--brand);
	border-color: transparent;
}
@media (max-width: 560px) {
	.form .row {
		grid-template-columns: 1fr;
	}
}

/* ---- Footer ---- */
.ft {
	background: var(--ink);
	color: #cfd6e6;
	padding: 56px 0 30px;
}
.ft .cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 36px;
	margin-bottom: 36px;
}
.ft h4 {
	font-family: var(--display);
	color: #fff;
	margin-bottom: 14px;
	font-size: 1rem;
}
.ft a {
	color: #cfd6e6;
	display: block;
	padding: 4px 0;
	font-size: 0.93rem;
}
.ft a:hover {
	color: #fff;
}
.ft .madeby {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 22px;
	display: flex;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	font-size: 0.86rem;
	align-items: center;
}
.ft .madeby a {
	display: inline;
	color: var(--accent);
	font-weight: 600;
}
@media (max-width: 720px) {
	.ft .cols {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* ---- Reveal-Animation ---- */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}
.reveal.in {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
	html {
		scroll-behavior: auto;
	}
}

/* ---- Utilities ---- */
.center {
	text-align: center;
}
.mt {
	margin-top: 26px;
}
.badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 13px;
	border-radius: 100px;
	background: color-mix(in srgb, var(--brand) 12%, var(--surface));
	color: var(--brand);
	font-size: 0.82rem;
	font-weight: 600;
}
