/* ---------- Header: im Dokumentfluss statt über dem Inhalt ---------- */

body.page #header-placeholder {
	position: sticky;
	top: 0;
	z-index: 1000;
}

body.page .navbar {
	position: relative;
	top: auto;
	left: auto;
	right: auto;
}

/* ---------- Gemeinsame Variablen (Hero + Zusatzbereich) ---------- */

.landing,
.landing-more {
	--ml-bg: #faf7f5;
	--ml-surface: #ffffff;
	--ml-border: #e6d9dd;
	--ml-text: #1f1b24;
	--ml-text-muted: #5b5563;
	--ml-accent: #c2185b;
	--ml-accent-hover: #a3134c;
	--ml-accent-text: #ffffff;
	--ml-radius: 20px;
	--ml-shadow: 0 18px 50px rgba(31, 27, 36, 0.18);
	--ml-card-shadow: 0 2px 12px rgba(31, 27, 36, 0.06);
	--ml-side-padding: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}

/* Kanalgesteuerte Elemente (data-channel-key / data-channel-section)
   bleiben verborgen, solange keine Übersetzung vorhanden ist. */
.landing [hidden],
.landing-more[hidden],
.landing-more [hidden] {
	display: none !important;
}

/* ---------- Landing-Section ---------- */

.landing {
	box-sizing: border-box;
	width: 100%;
	background: var(--ml-bg);
	color: var(--ml-text);
	padding-top: 0;
	padding-right: 0;
	padding-bottom: calc(clamp(32px, 6vw, 80px) + env(safe-area-inset-bottom, 0px));
	padding-left: 0;
}

.landing *,
.landing *::before,
.landing *::after {
	box-sizing: inherit;
}

.landing__inner {
	max-width: 1120px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	justify-items: center;
	text-align: center;
}

/* ---------- Bild (Mobile: randlos, volle Breite) ---------- */

.landing__media {
	position: relative;
	margin: 0;
	width: 100%;
	animation: landing-fade-up 0.6s ease-out both;
}

.landing__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	background: #e9e4e0;
}

/* ---------- Bildhinweis "KI-generiert" ---------- */

.landing__figcaption {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.5);
	color: #ffffff;
	font-size: 11px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	pointer-events: none;
}

/* ---------- Text ---------- */

.landing__content {
	width: 100%;
	max-width: 560px;
	padding: 0 var(--ml-side-padding);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	animation: landing-fade-up 0.6s ease-out 0.12s both;
}

.landing__title {
	margin: 0;
	font-size: clamp(1.35rem, 1.05rem + 1.8vw, 2.4rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.landing__text {
	margin: 0;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
	line-height: 1.6;
	color: var(--ml-text-muted);
}

/* ---------- Button ---------- */

.landing__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 360px;
	min-height: 52px;
	margin-top: 8px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: var(--ml-accent);
	color: var(--ml-accent-text);
	font: inherit;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(194, 24, 91, 0.35);
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.landing__cta:hover {
	background: var(--ml-accent-hover);
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(194, 24, 91, 0.4);
}

.landing__cta:active {
	transform: translateY(1px);
}

.landing__cta:focus-visible {
	outline: 3px solid var(--ml-accent);
	outline-offset: 3px;
}

/* ---------- Badges unter dem Button (ab 18 / KI-Hinweis) ---------- */

.landing__notice {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 6px 0 0;
	padding: 0;
}

.landing__badge {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--ml-border);
	border-radius: 999px;
	background: var(--ml-surface);
	color: var(--ml-text-muted);
	font-size: 0.82rem;
	line-height: 1.3;
}

/* ---------- Zusatzbereich unter dem Hero ---------- */

.landing-more {
	box-sizing: border-box;
	width: 100%;
	background: var(--ml-bg);
	color: var(--ml-text);
	padding-top: 0;
	padding-right: var(--ml-side-padding);
	padding-bottom: calc(clamp(40px, 6vw, 80px) + env(safe-area-inset-bottom, 0px));
	padding-left: var(--ml-side-padding);
}

.landing-more *,
.landing-more *::before,
.landing-more *::after {
	box-sizing: inherit;
}

.landing-more__section {
	max-width: 1120px;
	margin: 0 auto;
	padding-top: 32px;
}

.landing-more__title {
	margin: 0 0 20px;
	font-size: clamp(1.3rem, 1.1rem + 1.2vw, 1.9rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-align: center;
}

/* ---------- Karten-Raster (Mobile 1 Spalte) ---------- */

.landing-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.landing-card {
	padding: 20px 20px 18px;
	border-radius: 16px;
	background: var(--ml-surface);
	box-shadow: var(--ml-card-shadow);
	text-align: left;
}

.landing-card__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--ml-accent);
	color: var(--ml-accent-text);
	font-size: 0.95rem;
	font-weight: 700;
}

.landing-card__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.landing-card__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--ml-text-muted);
}

/* ---------- Hinweiskasten "physische Ausführung" ---------- */

.landing-highlight {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 22px;
	border: 1px solid var(--ml-border);
	border-radius: var(--ml-radius);
	background: linear-gradient(135deg, #fdf0f4 0%, var(--ml-surface) 100%);
	box-shadow: var(--ml-card-shadow);
	text-align: center;
}

.landing-highlight .landing-more__title {
	margin-bottom: 12px;
}

.landing-highlight__text {
	margin: 0;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
	line-height: 1.6;
}

.landing-highlight__note {
	margin: 12px 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--ml-text-muted);
}

@media (min-width: 900px) {
	.landing-highlight {
		padding: 36px 40px;
	}
}

/* ---------- FAQ ---------- */
.landing-faq {
	max-width: 760px;
	margin: 0 auto;
	border-top: 1px solid var(--ml-border);
}

.landing-faq__item {
	border-bottom: 1px solid var(--ml-border);
}

.landing-faq__question {
	position: relative;
	display: block;
	min-height: 48px;
	padding: 14px 40px 14px 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.landing-faq__question::-webkit-details-marker {
	display: none;
}

.landing-faq__question::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	font-size: 1.4rem;
	font-weight: 400;
	color: var(--ml-accent);
}

.landing-faq__item[open] .landing-faq__question::after {
	content: "–";
}

.landing-faq__question:focus-visible {
	outline: 3px solid var(--ml-accent);
	outline-offset: 2px;
}

.landing-faq__answer {
	margin: 0;
	padding: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--ml-text-muted);
}

/* ---------- Zweiter Start-Button unten ---------- */

.landing-more__cta {
	max-width: 1120px;
	margin: 36px auto 0;
	display: flex;
	justify-content: center;
}

/* ---------- Tablet hochkant: Karten nebeneinander ---------- */

@media (min-width: 720px) {
	.landing-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
	}
}

/* ---------- Desktop / Tablet quer ---------- */

@media (min-width: 900px) {
	.landing {
		padding-top: clamp(20px, 5vw, 72px);
		padding-right: var(--ml-side-padding);
		padding-left: var(--ml-side-padding);
	}

	.landing__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: center;
		gap: 64px;
		text-align: left;
	}

	.landing__media {
		width: 100%;
		max-width: 520px;
		justify-self: end;
	}

	.landing__image {
		border-radius: var(--ml-radius);
		box-shadow: var(--ml-shadow);
	}

	.landing__figcaption {
		right: 14px;
		bottom: 14px;
	}

	.landing__content {
		padding: 0;
		justify-self: start;
		align-items: flex-start;
		gap: 18px;
	}

	.landing__notice {
		justify-content: flex-start;
	}

	.landing__cta {
		width: auto;
		min-width: 220px;
	}

	.landing-more__section {
		padding-top: 56px;
	}

	.landing-more__title {
		margin-bottom: 28px;
	}

	.landing-card {
		padding: 24px;
	}
}

/* ---------- Handy im Querformat ---------- */

@media (orientation: landscape) and (max-height: 500px) and (max-width: 899px) {
	.landing {
		padding-top: 16px;
		padding-right: var(--ml-side-padding);
		padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		padding-left: var(--ml-side-padding);
	}

	.landing__inner {
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 28px;
		text-align: left;
	}

	.landing__media {
		width: min(42vw, 80vh);
		width: min(42vw, 80svh);
	}

	.landing__image {
		border-radius: var(--ml-radius);
		box-shadow: var(--ml-shadow);
	}

	.landing__content {
		padding: 0;
		align-items: flex-start;
		gap: 10px;
	}

	.landing__title {
		font-size: 1.25rem;
	}

	.landing__text {
		font-size: 0.95rem;
		line-height: 1.5;
	}

	.landing__notice {
		justify-content: flex-start;
		margin-top: 2px;
	}

	.landing__cta {
		width: auto;
		min-height: 46px;
	}

	.landing-more__section {
		padding-top: 24px;
	}
}

/* ---------- Sehr kleine Geräte ---------- */

@media (max-width: 360px) {
	.landing,
	.landing-more {
		--ml-side-padding: max(14px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
	}

	.landing__inner {
		gap: 18px;
	}

	.landing-card {
		padding: 16px;
	}

	.landing__badge {
		font-size: 0.78rem;
	}
}

/* ---------- Animation ---------- */

@keyframes landing-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.landing__media,
	.landing__content {
		animation: none;
	}

	.landing__cta {
		transition: none;
	}
}
