/*
 * Teaser „Opening soon“. Übersetzung von site/src/pages/teaser-b.astro
 * (Fassung B, Abnahme Ben 01.10.2026) in reines CSS. Werte aus DESIGN.md:
 * Waldgrund, Kynttilä, Koivu, Lumi, Lapland Night; Cormorant 300 und Jost.
 */

:root {
	--forest-ground: #162418;
	--brass: #c9a84c;
	--cream: #f0ebe0;
	--cream-display: #faf7f2;
	--night: #1a1a18;
	--font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

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

body {
	min-height: 100svh;
	background: var(--forest-ground);
	color: var(--cream);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.74;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--brass);
	color: var(--night);
}

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

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

a {
	color: inherit;
}

/* Hintergrund: Waldloop, abgedunkelt, bleibt hinter der Karte. */
.t-bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: var(--forest-ground);
}

.t-bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: t-fade 2.4s ease-out 0.3s both;
}

.t-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 24, 0.25);
}

/* Die Karte: doppelter Goldrahmen. */
.t-wrap {
	min-height: 100svh;
	padding: 16px;
}

.t-frame {
	display: flex;
	min-height: calc(100svh - 32px);
	border: 1px solid rgba(201, 168, 76, 0.34);
	padding: 6px;
	animation: t-open 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.t-inner {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid rgba(201, 168, 76, 0.18);
	padding: 0 20px;
	animation: t-open 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.t-lockup {
	width: 184px;
	height: auto;
	margin-top: 24px;
}

.t-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
}

.t-claim {
	font-family: var(--font-display);
	font-weight: 300;
	font-size: 46px;
	line-height: 1.06;
	color: var(--cream-display);
	text-wrap: balance;
	font-variant-numeric: lining-nums tabular-nums;
}

.t-claim em {
	display: block;
	font-style: italic;
	color: var(--brass);
}

.t-open {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 40px;
}

.t-open::before,
.t-open::after {
	content: "";
	display: block;
	height: 1px;
	width: 24px;
	background: rgba(201, 168, 76, 0.6);
}

.t-open span {
	font-family: var(--font-display);
	font-size: 21px;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--brass);
}

.t-line {
	margin-top: 40px;
	max-width: 30ch;
	font-family: var(--font-display);
	font-size: 27px;
	line-height: 1.38;
	color: rgba(240, 235, 224, 0.82);
	text-wrap: balance;
	font-variant-numeric: lining-nums tabular-nums;
}

.t-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding-bottom: 18px;
}

.t-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.t-contact a {
	font-size: 17px;
	color: var(--cream);
	text-decoration: underline;
	text-decoration-color: rgba(201, 168, 76, 0.6);
	text-underline-offset: 6px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.t-contact a:hover {
	color: var(--brass);
	text-decoration-color: var(--brass);
}

.t-sep {
	display: none;
}

/* Impressum und Datenschutz: Label-Typografie, nie unter 11px. */
.t-legal {
	display: flex;
	gap: 24px;
	justify-content: center;
}

.t-legal a {
	display: block;
	padding: 8px 0;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: rgba(240, 235, 224, 0.72);
	text-decoration: none;
	transition: color 0.2s ease;
}

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

/* Ein Auftritt: der Rahmen zieht sich auf, dann erscheint der Inhalt von oben nach unten. */
.t-in {
	animation: t-fade 0.9s ease-out both;
}

.t-lockup.t-in {
	animation-delay: 0.7s;
}

.t-claim.t-in {
	animation-delay: 0.85s;
}

.t-open.t-in {
	animation-delay: 1.05s;
}

.t-line.t-in {
	animation-delay: 1.2s;
}

.t-foot.t-in {
	animation-delay: 1.35s;
}

@keyframes t-open {
	from {
		clip-path: inset(50% 0 50% 0);
	}
	to {
		clip-path: inset(0 0 0 0);
	}
}

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

@media (min-width: 768px) {
	.t-wrap {
		padding: 28px;
	}
	.t-frame {
		min-height: calc(100svh - 56px);
		padding: 8px;
	}
	.t-inner {
		padding: 0 48px;
	}
	.t-lockup {
		width: 248px;
		margin-top: 40px;
	}
	.t-main {
		padding: 32px 0;
	}
	.t-claim {
		font-size: 88px;
		line-height: 1.02;
	}
	.t-open {
		gap: 24px;
	}
	.t-open::before,
	.t-open::after {
		width: 64px;
	}
	.t-open span {
		font-size: 34px;
		letter-spacing: 0.18em;
	}
	.t-foot {
		gap: 18px;
		padding-bottom: 36px;
	}
	.t-contact {
		flex-direction: row;
		gap: 32px;
	}
	.t-sep {
		display: block;
		width: 1px;
		height: 12px;
		background: rgba(201, 168, 76, 0.4);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
