/*!
 * FAIST Weihnachten – Landingpage
 * Corporate: FAIST-Rot #FF0827, Schrift D-DIN Pro, „// Eyebrow“-Stil
 * Alle Regeln sind unter #fxw gekapselt, damit Theme-Styles nicht stören.
 */

body.fxw-body {
	margin: 0;
	background: #fff;
}

#fxw {
	--fxw-red: #FF0827;
	--fxw-xmas: #E8201A;
	--fxw-ink: #1A1A1A;
	--fxw-text: #333;
	--fxw-muted: #6B6B6B;
	--fxw-soft: #F5F5F5;
	--fxw-line: #E3E3E3;
	--fxw-font: "D-DIN Pro", "DIN Pro", "DIN Next LT Pro", "DIN 2014", "Bahnschrift", "Helvetica Neue", Arial, sans-serif;
	--fxw-gutter: clamp(20px, 5vw, 72px);
	--fxw-max: 1280px;
	--fxw-section: clamp(72px, 11vw, 150px);
	--fxw-top: var(--wp-admin--admin-bar--height, 0px);

	font-family: var(--fxw-font);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.6;
	color: var(--fxw-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	overflow-x: clip;
}

#fxw *,
#fxw *::before,
#fxw *::after {
	box-sizing: border-box;
}

#fxw h1,
#fxw h2,
#fxw h3,
#fxw p,
#fxw blockquote,
#fxw address,
#fxw figure {
	margin: 0;
	padding: 0;
	font-family: var(--fxw-font);
	letter-spacing: normal;
	text-transform: none;
}

#fxw h1,
#fxw h2,
#fxw h3 {
	font-weight: 400;
	color: var(--fxw-ink);
	line-height: 1.15;
	text-wrap: balance;
}

#fxw p {
	text-wrap: pretty;
}

/* Schutz gegen globale Theme-Regeln für Strukturelemente */
#fxw header,
#fxw footer,
#fxw main,
#fxw section,
#fxw nav,
#fxw article {
	margin: 0;
	max-width: none;
	float: none;
	border: 0;
	box-shadow: none;
}

#fxw button {
	text-transform: none;
	letter-spacing: normal;
	width: auto;
	height: auto;
	text-shadow: none;
}

#fxw a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

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

#fxw :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 4px;
}

#fxw .fxw-wrap {
	width: 100%;
	max-width: var(--fxw-max);
	margin: 0 auto;
}

#fxw .fxw-section {
	padding: var(--fxw-section) var(--fxw-gutter);
}

/* Layout richtet sich nach der verfügbaren Breite (Seite oder Theme-Spalte) */
#fxw .fxw-main {
	display: block;
	container: fxw / inline-size;
}

#fxw .fxw-eyebrow {
	font-size: clamp(16px, 1.5vw, 21px);
	line-height: 1.2;
	color: var(--fxw-red);
	margin-bottom: clamp(14px, 1.6vw, 22px);
}

#fxw .fxw-eyebrow--light {
	color: rgba(255, 255, 255, 0.92);
}

#fxw .fxw-h2 {
	font-size: clamp(28px, 3.4vw, 46px);
	line-height: 1.18;
	color: var(--fxw-ink);
}

#fxw .fxw-arrow {
	display: inline-block;
	margin-left: 0.5em;
	transition: transform 0.25s ease;
}

/* ---------- Kopfleiste (Pill wie auf faist.com) ---------- */

#fxw .fxw-bar {
	position: fixed;
	z-index: 50;
	top: calc(var(--fxw-top) + 14px);
	left: 50%;
	transform: translateX(-50%);
	width: min(calc(100% - 2 * 16px), 560px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 12px 10px 22px;
	border-radius: 100px;
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(12.5px);
	backdrop-filter: blur(12.5px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#fxw .fxw-bar__logo {
	display: block;
	width: 104px;
	flex: none;
}

#fxw .fxw-bar__logo .fxw-logo {
	width: 100%;
	height: auto;
}

#fxw .fxw-bar__link {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 100px;
	font-size: 15px;
	color: #4D4D4D;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#fxw .fxw-bar__link:hover {
	background: rgba(0, 0, 0, 0.06);
	color: var(--fxw-ink);
}

#fxw .fxw-bar__link:hover .fxw-arrow {
	transform: translateX(3px);
}

#fxw .fxw-bar__right {
	display: flex;
	align-items: center;
	gap: 2px;
}

#fxw .fxw-bar__divider {
	width: 1px;
	height: 20px;
	margin: 0 6px;
	background: rgba(0, 0, 0, 0.14);
}

/* Sprachumschalter DE / EN */
#fxw .fxw-lang {
	display: flex;
	align-items: center;
	gap: 2px;
}

/* Alle Elemente der Leiste im gleichen Schriftschnitt und mit gleicher Zeilenhöhe,
   damit DE, EN und „Zur Website“ exakt auf einer Linie stehen. */
#fxw .fxw-lang__item,
#fxw .fxw-bar__link {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	min-height: 40px;
	margin: 0;
	border: 0;
	font-family: var(--fxw-font);
	font-weight: 400;
	line-height: 1;
	vertical-align: middle;
}

#fxw .fxw-lang__item {
	min-width: 40px;
	padding: 0 8px;
	border-radius: 100px;
	font-size: 15px;
	letter-spacing: 0.04em;
	color: #6B6B6B;
	transition: background-color 0.2s ease, color 0.2s ease;
}

#fxw a.fxw-lang__item:hover {
	color: var(--fxw-red);
	background: rgba(0, 0, 0, 0.04);
}

#fxw .fxw-lang__item.is-current {
	color: var(--fxw-ink);
	background: rgba(0, 0, 0, 0.08);
}

#fxw .fxw-bar__link-text,
#fxw .fxw-bar__link .fxw-arrow {
	line-height: 1;
}

@media (max-width: 400px) {
	#fxw .fxw-bar {
		padding-left: 18px;
		gap: 8px;
	}
	#fxw .fxw-bar__logo {
		width: 92px;
	}
	#fxw .fxw-bar__link {
		padding: 0 12px;
	}
	#fxw .fxw-bar__link-text {
		display: none;
	}
	#fxw .fxw-bar__link .fxw-arrow {
		margin-left: 0;
	}
}

/* ---------- Hero ---------- */

#fxw .fxw-hero {
	position: relative;
	isolation: isolate;
	background: var(--fxw-xmas);
	color: #fff;
	overflow: hidden;
}

#fxw .fxw-hero__media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 952 / 1022;
}

#fxw .fxw-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 0;
}

/* weicher Übergang vom Bild in die rote Fläche */
#fxw .fxw-hero__media::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 12%;
	background: linear-gradient(to bottom, rgba(232, 32, 26, 0), var(--fxw-xmas));
	pointer-events: none;
}

#fxw .fxw-snow {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	pointer-events: none;
}

#fxw .fxw-hero__content {
	position: relative;
	z-index: 2;
	padding: 0 var(--fxw-gutter) clamp(56px, 12vw, 80px);
	margin-top: -6%;
}

#fxw .fxw-hero__title {
	color: #fff;
	font-weight: 400;
	margin-bottom: 22px;
}

#fxw .fxw-hero__line1 {
	display: block;
	font-size: clamp(44px, 12.5vw, 108px);
	font-size: clamp(44px, 12.5cqw, 108px);
	line-height: 0.98;
	letter-spacing: -0.01em;
}

#fxw .fxw-hero__line2 {
	display: block;
	margin-top: 0.45em;
	font-size: clamp(22px, 5.6vw, 40px);
	font-size: clamp(22px, 5.6cqw, 40px);
	line-height: 1.15;
}

#fxw .fxw-hero__lead {
	max-width: 34em;
	font-size: clamp(17px, 1.35vw, 20px);
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 30px;
}

#fxw .fxw-hero__cta {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 100px;
	background: #fff;
	color: var(--fxw-ink);
	font-size: 17px;
	box-shadow: 0 6px 24px rgba(120, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#fxw .fxw-hero__cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 30px rgba(120, 0, 0, 0.3);
}

#fxw .fxw-hero__cta:hover .fxw-arrow--down {
	transform: translateY(3px);
}

#fxw .fxw-hero__cta:focus-visible {
	outline-color: #fff;
	outline-offset: 4px;
}

/* Desktop: Text links auf der roten Fläche, Kugel rechts */
@container fxw (min-width: 860px) {
	#fxw .fxw-hero {
		display: flex;
		align-items: center;
		min-height: 560px;
		height: min(100vh, 61.1cqw);
		height: min(100svh, 61.1cqw);
	}

	#fxw .fxw-hero__media {
		position: absolute;
		inset: 0;
		aspect-ratio: auto;
		height: 100%;
	}

	#fxw .fxw-hero__media img {
		object-position: 100% 35%;
	}

	#fxw .fxw-hero__media::after {
		display: none;
	}

	#fxw .fxw-hero__content {
		width: min(48%, 780px);
		margin: 0;
		padding: 9vh 0 0 var(--fxw-gutter);
	}

	#fxw .fxw-hero__line1 {
		font-size: clamp(50px, 5.4cqw, 108px);
	}

	#fxw .fxw-hero__line2 {
		font-size: clamp(22px, 2.3cqw, 42px);
	}

	/* per Shortcode in einer Theme-Spalte: Höhe wächst mit dem Inhalt */
	#fxw.fxw--embedded .fxw-hero {
		height: auto;
		min-height: 61.1cqw;
		padding: 48px 0;
	}

	#fxw.fxw--embedded .fxw-hero__content {
		padding-top: 4cqw;
	}
}

/* breite, flache Bildschirme */
@media (min-width: 860px) and (max-height: 640px) {
	#fxw:not(.fxw--embedded) .fxw-hero__content {
		padding-top: 72px;
	}
	#fxw:not(.fxw--embedded) .fxw-hero__lead {
		display: none;
	}
}

/* ---------- Grußwort ---------- */

#fxw .fxw-intro__grid {
	display: grid;
	gap: clamp(24px, 4vw, 80px);
}

#fxw .fxw-intro__text p {
	font-size: clamp(18px, 1.5vw, 21px);
	line-height: 1.65;
	color: #4D4D4D;
}

#fxw .fxw-intro__text p + p {
	margin-top: 1em;
}

@container fxw (min-width: 900px) {
	#fxw .fxw-intro__grid {
		grid-template-columns: 1.1fr 1fr;
		align-items: end;
	}
}

/* ---------- Geschichte ---------- */

#fxw .fxw-story {
	background: var(--fxw-soft);
}

#fxw .fxw-story__inner {
	max-width: 720px;
	margin: 0 auto;
}

#fxw .fxw-story__head {
	margin-bottom: clamp(36px, 5vw, 56px);
}

#fxw .fxw-story__title {
	font-size: clamp(38px, 6vw, 72px);
	line-height: 1.04;
	color: var(--fxw-ink);
}

#fxw .fxw-story__meta {
	margin-top: 18px;
	font-size: 15px;
	color: var(--fxw-muted);
}

#fxw .fxw-story__body p {
	font-size: clamp(18px, 1.45vw, 20px);
	line-height: 1.75;
	color: #333;
}

#fxw .fxw-story__body p + p {
	margin-top: 1.15em;
}

#fxw .fxw-story__body .fxw-story__lead {
	font-size: clamp(20px, 1.8vw, 24px);
	line-height: 1.6;
	color: var(--fxw-ink);
}

#fxw .fxw-quote {
	margin: clamp(36px, 5vw, 56px) 0;
	padding: 0 0 0 clamp(18px, 2.4vw, 28px);
	border-left: 3px solid var(--fxw-red);
}

#fxw .fxw-story__body .fxw-quote p {
	font-size: clamp(24px, 2.7vw, 34px);
	line-height: 1.3;
	color: var(--fxw-ink);
}

#fxw .fxw-quote + p {
	margin-top: 0;
}

#fxw .fxw-moral {
	margin-top: clamp(48px, 7vw, 80px);
	padding-top: clamp(36px, 5vw, 48px);
	border-top: 1px solid var(--fxw-line);
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	align-items: start;
}

#fxw .fxw-moral__mark {
	width: 40px;
	height: auto;
	margin-top: 4px;
}

#fxw .fxw-moral p {
	font-size: clamp(21px, 2vw, 26px);
	line-height: 1.4;
	color: var(--fxw-ink);
}

/* ---------- Dank ---------- */

#fxw .fxw-thanks__head {
	max-width: 760px;
	margin-bottom: clamp(36px, 5vw, 64px);
}

#fxw .fxw-cards {
	display: grid;
	gap: 16px;
}

#fxw .fxw-card {
	position: relative;
	padding: clamp(28px, 3vw, 44px);
	background: var(--fxw-soft);
	border-radius: 4px;
	overflow: hidden;
}

#fxw .fxw-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 56px;
	height: 3px;
	background: var(--fxw-red);
}

#fxw .fxw-card__label {
	font-size: 15px;
	color: var(--fxw-red);
	margin-bottom: 16px;
}

#fxw .fxw-card__title {
	font-size: clamp(24px, 2.2vw, 30px);
	line-height: 1.2;
	margin-bottom: 18px;
}

#fxw .fxw-card p:not(.fxw-card__label) {
	font-size: 17px;
	line-height: 1.65;
	color: #4D4D4D;
}

#fxw .fxw-card p:not(.fxw-card__label) + p {
	margin-top: 0.9em;
}

@container fxw (min-width: 900px) {
	#fxw .fxw-cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

/* ---------- Wünsche (rotes Band wie auf faist.com) ---------- */

#fxw .fxw-wish {
	background: var(--fxw-red);
	color: #fff;
	text-align: center;
}

#fxw .fxw-wish__inner {
	max-width: 900px;
}

#fxw .fxw-wish__title {
	font-size: clamp(32px, 4.6vw, 60px);
	line-height: 1.1;
	color: #fff;
}

#fxw .fxw-wish__text {
	max-width: 36em;
	margin: 26px auto 0;
	font-size: clamp(18px, 1.6vw, 22px);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.92);
}

#fxw .fxw-wish__sign {
	margin-top: 40px;
	font-size: 18px;
	line-height: 1.5;
}

#fxw .fxw-wish__from,
#fxw .fxw-wish__team {
	display: block;
}

#fxw .fxw-wish__team {
	color: rgba(255, 255, 255, 0.8);
	font-size: 16px;
}

#fxw .fxw-share {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	margin-top: 40px;
	padding: 0 26px;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	border-radius: 100px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

#fxw .fxw-share svg {
	width: 20px;
	height: 20px;
}

#fxw .fxw-share:hover {
	background: #fff;
	color: var(--fxw-red);
}

#fxw .fxw-share:focus-visible {
	outline-color: #fff;
}

/* ---------- Footer ---------- */

#fxw .fxw-footer {
	padding: clamp(40px, 5vw, 64px) var(--fxw-gutter) calc(clamp(40px, 5vw, 64px) + env(safe-area-inset-bottom, 0px));
	background: #fff;
	font-size: 15px;
	line-height: 1.6;
	color: #4D4D4D;
}

#fxw .fxw-footer__inner {
	display: grid;
	gap: 24px;
	align-items: center;
}

#fxw .fxw-footer__logo {
	display: block;
	width: 120px;
}

#fxw .fxw-footer__logo .fxw-logo {
	width: 100%;
	height: auto;
}

#fxw .fxw-footer__address {
	font-style: normal;
}

#fxw .fxw-footer a:hover {
	color: var(--fxw-red);
}

#fxw .fxw-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
}

#fxw .fxw-footer__nav a {
	display: inline-block;
	padding: 6px 0;
}

@media (min-width: 900px) {
	#fxw .fxw-footer__inner {
		grid-template-columns: auto 1fr auto;
		gap: 48px;
	}
}

/* ---------- Einblend-Animation ---------- */

#fxw.fxw-anim [data-fxw-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
	#fxw *,
	#fxw *::before,
	#fxw *::after {
		transition: none !important;
		animation: none !important;
	}
	#fxw .fxw-snow {
		display: none;
	}
}

html:has(#fxw) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(#fxw) {
		scroll-behavior: auto;
	}
}

#fxw .fxw-story {
	scroll-margin-top: calc(var(--fxw-top) + 72px);
}

@media print {
	#fxw .fxw-bar,
	#fxw .fxw-snow,
	#fxw .fxw-share,
	#fxw .fxw-hero__cta {
		display: none !important;
	}
	#fxw.fxw-anim [data-fxw-reveal] {
		opacity: 1;
		transform: none;
	}
}
