/* =====================================================================
   Fiete wichtelt – Website-Gestaltung
   Design-Richtung und Bausteine: flutter_app/lib/src/design/README.md
   Gleiche Werte wie flutter_app/lib/src/design/tokens.dart (WichtelColors …)
   ===================================================================== */

/* ---------- Schriften (SIL Open Font License 1.1, Lizenztexte in /images/fonts/) ---------- */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/images/fonts/Montserrat-Regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('/images/fonts/Montserrat-Medium.woff2') format('woff2');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('/images/fonts/Montserrat-SemiBold.woff2') format('woff2');
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('/images/fonts/Montserrat-Bold.woff2') format('woff2');
}
@font-face {
	font-family: 'Lilita One';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/images/fonts/LilitaOne-Regular.ttf') format('truetype');
}

/* ---------- Design-Tokens ---------- */
:root {
	--wf-fox: #c4500e;          /* Fuchsorange – Flächen mit weißer Schrift (4,7:1) */
	--wf-fox-bright: #ec6a1f;   /* nur Illustration/Glühen */
	--wf-rust: #8e3a0a;         /* Sockel, Links */
	--wf-fox-mist: #ffe4d1;
	--wf-pine: #173b35;         /* Tannennacht – Schrift, dunkle Flächen */
	--wf-pine-light: #24564d;
	--wf-pine-deep: #0b2420;
	--wf-moss: #4e6560;         /* Nebentext (5,6:1 auf Raureif) */
	--wf-pine-mist: #d6e6e0;
	--wf-brass: #d4a43b;        /* Messing – Lämpchen, Rahmen */
	--wf-brass-deep: #7a5a12;
	--wf-bulb: #ffe9a8;
	--wf-berry: #b3263e;        /* Fehler, sparsame Akzente */
	--wf-frost: #eef3f0;        /* Raureif – Seitenhintergrund */
	--wf-snow: #ffffff;
	--wf-field: #f5f8f6;
	--wf-line: #d5e0dc;
	--wf-cream: #fff6ea;

	/* Kompatibilität mit älteren Namen */
	--wf-primary: var(--wf-fox);
	--wf-text: var(--wf-pine);
	--wf-muted: var(--wf-moss);
	--wf-bg: var(--wf-frost);

	--wf-radius-sm: 8px;
	--wf-radius-md: 14px;
	--wf-radius: 24px;          /* Karten */
	--wf-radius-xl: 32px;

	--wf-space-1: 4px;
	--wf-space-2: 8px;
	--wf-space-3: 12px;
	--wf-space-4: 16px;
	--wf-space-6: 24px;
	--wf-space-8: 32px;
	--wf-space-12: 48px;

	--wf-font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wf-display: 'Lilita One', 'Montserrat', system-ui, sans-serif;
	--wf-measure: 68ch;
	--wf-shadow-card: 0 12px 28px rgba(23, 59, 53, 0.07), 0 1px 2px rgba(23, 59, 53, 0.05);
	--wf-focus: 0 0 0 3px var(--wf-frost), 0 0 0 5px var(--wf-pine);
}

/* Jaspr (jaspr_content) bringt ein eigenes Reset- und Inhalts-Theme mit, das NACH dieser Datei
   geladen wird. Deshalb hier dessen Variablen mit höherer Spezifität (html:root) überschreiben
   und eigene Regeln über .site / .site-main verankern. */
html:root {
	--primary: var(--wf-fox);
	--background: var(--wf-frost);
	--text: var(--wf-pine);
	--content-font: var(--wf-font);
	--content-headings: var(--wf-pine);
	--content-lead: var(--wf-moss);
	--content-links: var(--wf-rust);
	--content-bold: var(--wf-pine);
	--content-counters: var(--wf-fox);
	--content-bullets: var(--wf-fox);
	--content-hr: var(--wf-line);
	--content-quotes: var(--wf-pine);
	--content-quote-borders: var(--wf-brass);
	--content-captions: var(--wf-moss);
}

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

html body {
	margin: 0;
	font-family: var(--wf-font);
	font-size: 1.0625rem;      /* 17 px – gut lesbar auch für 60+ */
	line-height: 1.65;
	color: var(--wf-pine);
	background: var(--wf-frost);
	-webkit-font-smoothing: antialiased;
}

.site a {
	color: var(--wf-rust);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
.site a:hover { color: var(--wf-fox); }
.site a:focus-visible,
.site button:focus-visible {
	outline: none;
	box-shadow: var(--wf-focus);
	border-radius: 6px;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--wf-fox-mist); color: var(--wf-pine); }

/* ---------- Seitengerüst ---------- */
.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Kopfzeile: Tannennacht mit leisem Schneegestöber */
.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wf-space-3) var(--wf-space-6);
	padding: var(--wf-space-3) max(var(--wf-space-6), calc((100% - 1080px) / 2));
	color: var(--wf-frost);
	background-color: var(--wf-pine);
	background-image:
		radial-gradient(circle at 12% 30%, rgba(255, 255, 255, 0.16) 0 1.5px, transparent 2px),
		radial-gradient(circle at 47% 70%, rgba(255, 255, 255, 0.12) 0 1.2px, transparent 1.8px),
		radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.14) 0 1.6px, transparent 2.2px),
		radial-gradient(circle at 92% 64%, rgba(255, 255, 255, 0.1) 0 1.2px, transparent 1.8px);
	background-size: 140px 60px, 90px 50px, 170px 70px, 110px 40px;
	border-bottom: 3px solid var(--wf-brass);
}

.site .site-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	font-family: var(--wf-display);
	font-weight: 400;
	font-size: 1.75rem;
	letter-spacing: 0.01em;
	line-height: 1;
	color: var(--wf-snow);
	text-decoration: none;
}
.site .site-logo::before {
	content: '';
	width: 44px;
	height: 48px;
	flex: none;
	background: url('/images/fiete.svg') center / contain no-repeat;
	transform-origin: 50% 90%;
}
.site .site-logo:hover { color: var(--wf-bulb); }
@media (prefers-reduced-motion: no-preference) {
	.site .site-logo:hover::before { animation: wf-nod 0.6s ease-in-out; }
}
@keyframes wf-nod {
	0%, 100% { transform: rotate(0); }
	30% { transform: rotate(-8deg); }
	65% { transform: rotate(5deg); }
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wf-space-1) var(--wf-space-2);
}
.site-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--wf-space-4);
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.98rem;
	color: var(--wf-frost);
	text-decoration: none;
}
.site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: var(--wf-snow); }
.site-nav a:focus-visible { box-shadow: 0 0 0 3px var(--wf-bulb); }
/* Anmelden / Meine Gruppen = Hauptaktion im Menü: Messing-Pille */
.site-nav a.wichtel-login,
.site-nav a.wichtel-mine,
.site-nav a.wichtel-account {
	background: var(--wf-brass);
	color: var(--wf-pine-deep);
}
.site-nav a.wichtel-login:hover,
.site-nav a.wichtel-mine:hover,
.site-nav a.wichtel-account:hover { background: var(--wf-bulb); color: var(--wf-pine-deep); }

.site-main {
	flex: 1;
	width: 100%;
	max-width: 880px;
	margin: 0 auto;
	padding: var(--wf-space-8) var(--wf-space-6) var(--wf-space-12);
}

/* ---------- Typografie im Inhalt ---------- */
.site-main h1,
.site-main h2,
.site-main h3 {
	font-family: var(--wf-display);
	font-weight: 400;
	line-height: 1.1;
	color: var(--wf-pine);
	text-wrap: balance;
}
.site-main h1 {
	font-size: clamp(2.4rem, 6.5vw, 4rem);
	letter-spacing: -0.01em;
	margin: 0 0 var(--wf-space-4);
}
.site-main h2 {
	font-size: clamp(1.6rem, 3.6vw, 2.2rem);
	margin: var(--wf-space-12) 0 var(--wf-space-3);
}
.site-main h3 {
	font-size: 1.35rem;
	margin: var(--wf-space-8) 0 var(--wf-space-2);
}
.site-main p,
.site-main ul,
.site-main ol {
	max-width: var(--wf-measure);
}
.site-main strong { font-weight: 700; }
.site-main em { font-style: italic; color: var(--wf-moss); }

.site-main ul { padding-left: 1.3em; }
.site-main ul li::marker { color: var(--wf-fox); }
.site-main li + li { margin-top: var(--wf-space-2); }

/* Nummerierte Listen sind echte Abläufe („So funktioniert's“):
   große Fuchs-Ziffern in Messing-gerahmten Kreisen. */
.site-main ol {
	list-style: none;
	counter-reset: wf-step;
	padding: 0;
	display: grid;
	gap: var(--wf-space-4);
}
.site-main ol > li {
	counter-increment: wf-step;
	position: relative;
	padding: 2px 0 0 60px;
	min-height: 44px;
}
.site-main ol > li + li { margin-top: 0; }
.site-main ol > li::before {
	content: counter(wf-step);
	position: absolute;
	left: 0;
	top: -2px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-family: var(--wf-display);
	font-size: 1.4rem;
	color: var(--wf-snow);
	background: var(--wf-fox);
	box-shadow: 0 0 0 3px var(--wf-frost), 0 0 0 5px var(--wf-brass);
}

.site-main blockquote {
	margin: var(--wf-space-6) 0;
	padding: var(--wf-space-4) var(--wf-space-6);
	border-left: 4px solid var(--wf-brass);
	background: var(--wf-snow);
	border-radius: 0 var(--wf-radius-md) var(--wf-radius-md) 0;
}

.site-main hr {
	border: 0;
	height: 1px;
	background: var(--wf-line);
	margin: var(--wf-space-12) 0;
}

/* ---------- Hero der Startseite: Text links, Losautomat zum Ausprobieren rechts ----------
   Markdown (content/index.md):
     <div class="hero"><div class="hero__text"><h1>…</h1><p>…</p></div>
     <div class="automat-demo" data-names="Anna, Ben, …"><img class="automat-demo__static" …></div></div>
   automat-demo.js ersetzt die statische Grafik durch den spielbaren Automaten. */
.site-main .hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	align-items: start;
	gap: var(--wf-space-6) var(--wf-space-8);
	margin-bottom: var(--wf-space-6);
}
.site-main .hero__text { padding-top: 120px; }
.site-main .hero h1 {
	font-size: clamp(2.6rem, 7vw, 4.4rem);
	margin: 0 0 var(--wf-space-4);
	padding: 0;
	border: 0;
}
.site-main .hero__text p {
	font-size: 1.2rem;
	color: var(--wf-moss);
	max-width: 40ch;
	margin: 0;
}
@media (max-width: 720px) {
	.site-main .hero { grid-template-columns: minmax(0, 1fr); }
	.site-main .hero__text { padding-top: 0; }
	.site-main .hero .automat-demo { justify-self: center; }
}

/* ---------- Losautomat (automat-demo.js) – gleiche Optik wie SlotMachineReveal ---------- */
.automat-demo {
	--ad-item: 42px;
	width: 100%;
	max-width: 340px;
	display: grid;
	gap: var(--wf-space-3);
}
.automat-demo__static { display: block; width: 100%; max-width: 300px; margin: 0 auto; }

.ad-stage { position: relative; padding-top: 92px; }
.ad-fiete {
	position: absolute;
	top: 0;
	left: 50%;
	width: 100px;
	height: auto;
	margin-left: -50px;
	z-index: 2;
	transform-origin: 50% 100%;
	user-select: none;
}
.ad-paws {
	position: absolute;
	top: 87px;
	left: 50%;
	width: 84px;
	height: 14px;
	margin-left: -42px;
	z-index: 3;
	pointer-events: none;
}
.ad-paws::before,
.ad-paws::after {
	content: '';
	position: absolute;
	top: 0;
	width: 26px;
	height: 14px;
	border-radius: 50%;
	background: var(--wf-fox-bright);
	border: 2px solid var(--wf-rust);
}
.ad-paws::before { left: 0; }
.ad-paws::after { right: 0; }

.ad-cabinet {
	position: relative;
	padding: 18px 10px 12px;
	border: 3px solid var(--wf-brass);
	border-radius: 26px;
	background: linear-gradient(135deg, var(--wf-pine-light), var(--wf-pine) 60%, #102b26);
	box-shadow: 0 16px 30px rgba(23, 59, 53, 0.28);
}
.ad-row { display: flex; align-items: center; gap: 6px; }
.ad-frame {
	position: relative;
	flex: 1;
	min-width: 0;
	padding: 14px;
	border-radius: 18px;
	background: rgba(212, 164, 59, 0.2);
}
.ad-bulb {
	position: absolute;
	left: 0;
	top: 0;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	border-radius: 50%;
	background: #6b5420;
}
.ad-bulb::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--wf-bulb);
	box-shadow: 0 0 7px 2px rgba(255, 233, 168, 0.7);
	opacity: 0;
}
.ad-bulb.is-on::after { opacity: 1; }
.automat-demo.is-done .ad-bulb::after { animation: ad-blink 0.24s steps(1) 4; }
@keyframes ad-blink { 50% { opacity: 0; } }

.ad-reel {
	position: relative;
	height: calc(3 * var(--ad-item));
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(#b9c7c1, #fff 36%, #fff 64%, #b9c7c1);
}
.ad-payline {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: calc(var(--ad-item) * 0.92);
	transform: translateY(-50%);
	background: rgba(255, 228, 209, 0.65);
	border-block: 1.5px solid rgba(212, 164, 59, 0.55);
}
.ad-item {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	will-change: transform, opacity;
	pointer-events: none;
}
.ad-item > span {
	grid-area: 1 / 1;
	max-width: calc(100% - 28px);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-family: var(--wf-display);
	font-size: calc(var(--ad-item) * 0.5);
	line-height: 1.2;
	color: var(--wf-pine);
}
.ad-item.is-winner > .ad-name { color: var(--wf-fox); }
.ad-shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(rgba(23, 59, 53, 0.55), rgba(23, 59, 53, 0) 30%, rgba(23, 59, 53, 0) 70%, rgba(23, 59, 53, 0.55));
}
.ad-pointer {
	position: absolute;
	top: 50%;
	margin-top: -10px;
	border: 10px solid transparent;
}
.ad-pointer--l { left: 0; border-left: 11px solid var(--wf-brass); border-right-width: 0; }
.ad-pointer--r { right: 0; border-right: 11px solid var(--wf-brass); border-left-width: 0; }

/* Hebel: Stange klappt nach unten, Knauf kommt dabei auf einen zu. */
.ad-lever {
	position: relative;
	flex: none;
	width: 44px;
	height: calc(3 * var(--ad-item) + 28px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: none;
	cursor: grab;
	--ad-shaft: calc(1.2 * var(--ad-item));
}
.ad-lever:disabled { cursor: default; }
.ad-lever:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--wf-bulb); }
.ad-lever__shaft {
	position: absolute;
	left: 19px;
	bottom: 50%;
	width: 6px;
	height: var(--ad-shaft);
	border-radius: 3px;
	background: linear-gradient(90deg, #f0cf7a, var(--wf-brass), var(--wf-brass-deep));
	transform-origin: 50% 100%;
}
.ad-lever__base {
	position: absolute;
	left: 4px;
	right: 4px;
	top: 50%;
	height: 18px;
	margin-top: -9px;
	border-radius: 9px;
	background: var(--wf-pine-deep);
	border: 2px solid var(--wf-brass);
}
.ad-lever__knob {
	position: absolute;
	left: 9px;
	top: calc(50% - var(--ad-shaft) - 13px);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: radial-gradient(circle at 32% 30%, #ff9a5c, var(--wf-fox-bright) 45%, var(--wf-rust));
}
.ad-lever:not(:disabled):hover .ad-lever__knob { transform: translateY(4px); }
.ad-lever.is-pulled .ad-lever__shaft { animation: ad-shaft 0.7s ease-in-out; }
.ad-lever.is-pulled .ad-lever__knob { animation: ad-knob 0.7s ease-in-out; }
@keyframes ad-shaft { 50% { transform: scaleY(-1); } }
@keyframes ad-knob { 50% { transform: translateY(calc(2 * var(--ad-shaft))) scale(1.25); } }

.ad-slot {
	width: 44px;
	height: 7px;
	margin: 10px auto 0;
	border-radius: 4px;
	background: var(--wf-pine-deep);
	border: 1.5px solid rgba(212, 164, 59, 0.7);
}

.automat-demo .ad-result {
	margin: var(--wf-space-1) 0 0;
	min-height: 2.6em;
	display: grid;
	place-items: center;
	text-align: center;
	font-weight: 600;
	color: var(--wf-moss);
	max-width: none;
}
.automat-demo.is-done .ad-result {
	font-family: var(--wf-display);
	font-weight: 400;
	font-size: 1.6rem;
	line-height: 1.15;
	color: var(--wf-fox);
	animation: ad-pop 0.45s cubic-bezier(.3, 1.6, .5, 1);
}
.automat-demo.is-done .ad-fiete { animation: ad-hop 0.6s ease-out; }
@keyframes ad-pop { from { transform: scale(0.85); opacity: 0; } }
@keyframes ad-hop { 40% { transform: translateY(-14px) rotate(-3deg); } }

.ad-confetti {
	position: absolute;
	top: 150px;
	width: 7px;
	height: 11px;
	margin-left: -3.5px;
	z-index: 4;
	pointer-events: none;
}

/* Knopf „Hebel ziehen“: Automatenknopf in Tannennacht (die Hauptaktion der Seite bleibt orange). */
.site .ad-pull {
	min-height: 48px;
	padding: 12px 22px;
	border: 0;
	border-top: 2px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--wf-radius-md);
	background: var(--wf-pine);
	color: var(--wf-frost);
	font: 700 1.02rem/1.2 var(--wf-font);
	box-shadow: 0 5px 0 var(--wf-pine-deep);
	cursor: pointer;
	transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.site .ad-pull:hover { background: var(--wf-pine-light); }
.site .ad-pull:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 0 0 var(--wf-pine-deep); }
.site .ad-pull:disabled { opacity: 0.6; cursor: default; }
.site .ad-pull:focus-visible { box-shadow: 0 5px 0 var(--wf-pine-deep), var(--wf-focus); }

.ad-names { display: grid; gap: 4px; }
.ad-names__label { font-size: 0.9rem; font-weight: 600; color: var(--wf-pine); }
.ad-names__input {
	min-height: 44px;
	padding: 8px 14px;
	border: 1.5px solid var(--wf-line);
	border-radius: var(--wf-radius-md);
	background: var(--wf-snow);
	color: var(--wf-pine);
	font: 500 1rem/1.3 var(--wf-font);
}
.ad-names__input:focus { outline: none; border-color: var(--wf-fox); box-shadow: 0 0 0 3px rgba(196, 80, 14, 0.18); }
.automat-demo .ad-names__hint { margin: 0; font-size: 0.85rem; color: var(--wf-moss); max-width: none; }
.automat-demo .ad-names__hint.is-error { color: var(--wf-berry); font-weight: 600; }

.ad-cta {
	display: grid;
	gap: 6px;
	justify-items: center;
	text-align: center;
	padding: var(--wf-space-4);
	border-radius: var(--wf-radius);
	background: var(--wf-snow);
	border: 2px solid var(--wf-fox);
	animation: ad-pop 0.4s ease-out;
}
.ad-cta[hidden] { display: none; }
.site a.ad-cta__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--wf-radius-md);
	background: var(--wf-fox);
	color: var(--wf-snow);
	font-weight: 700;
	text-decoration: none;
	border-top: 2px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 5px 0 var(--wf-rust);
	transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.site a.ad-cta__button:hover { color: var(--wf-snow); background: #d15a15; }
.site a.ad-cta__button:active { transform: translateY(5px); box-shadow: 0 0 0 var(--wf-rust); }
.site a.ad-cta__button:focus-visible { box-shadow: 0 5px 0 var(--wf-rust), var(--wf-focus); }
.automat-demo .ad-cta__text { margin: 0; font-size: 0.95rem; color: var(--wf-moss); max-width: none; }

/* Vertrauenszeile direkt unter der App-Box bzw. dem Haupt-Knopf.
   Markdown: <p class="trust-line"><span>Kostenlos</span><span>ohne Anmeldung</span>…</p> */
.trust-line {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--wf-space-2) var(--wf-space-4);
	margin: calc(-1 * var(--wf-space-2)) auto var(--wf-space-8);
	padding: 0;
	max-width: none;
	list-style: none;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--wf-moss);
}
.site-main .trust-line { max-width: none; }
.trust-line > span,
.trust-line > li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.trust-line > span::before,
.trust-line > li::before {
	content: '';
	width: 18px;
	height: 18px;
	flex: none;
	border-radius: 50%;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.5L13 6.5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat,
		var(--wf-pine-light);
}

/* ---------- Ratgeber-Artikel ---------- */
/* Seiten ohne Bühne (Ratgeber usw.): ruhige Überschrift mit Messinglinie. */
:is(.site-main, .site-main > .content) > h1:first-child {
	padding-bottom: var(--wf-space-4);
	border-bottom: 3px solid var(--wf-brass);
	max-width: var(--wf-measure);
}
.site-main h1 + p > em:only-child {
	display: inline-block;
	padding: var(--wf-space-2) var(--wf-space-4);
	background: var(--wf-fox-mist);
	border-radius: var(--wf-radius-sm);
	color: var(--wf-pine);
	font-style: normal;
	font-size: 0.95rem;
}
/* Ratgeber-Übersicht: Linklisten als Karten */
.site-main ul:has(> li > a:only-child) {
	list-style: none;
	padding: 0;
	display: grid;
	gap: var(--wf-space-3);
}
.site-main ul:has(> li > a:only-child) > li { margin: 0; }
.site-main ul > li > a:only-child {
	display: block;
	padding: var(--wf-space-4) var(--wf-space-6);
	min-height: 44px;
	background: var(--wf-snow);
	border: 1px solid var(--wf-line);
	border-radius: var(--wf-radius);
	box-shadow: var(--wf-shadow-card);
	font-weight: 700;
	color: var(--wf-pine);
	text-decoration: none;
}
.site-main ul > li > a:only-child:hover {
	border-color: var(--wf-fox);
	color: var(--wf-rust);
}

/* ---------- Fußzeile ---------- */
.site-footer {
	position: relative;
	padding: var(--wf-space-12) var(--wf-space-6) var(--wf-space-8);
	text-align: center;
	color: var(--wf-pine-mist);
	background: var(--wf-pine);
	font-size: 0.95rem;
	border-top: 3px solid var(--wf-brass);
}
.site-footer::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -30px;
	width: 52px;
	height: 57px;
	margin-left: -26px;
	background: url('/images/fiete.svg') center / contain no-repeat;
}
.site-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--wf-space-1);
	color: var(--wf-snow);
}
.site-footer a:hover { color: var(--wf-bulb); }

/* ---------- Flutter-Box ---------- */
.wichtel-app-host {
	position: relative;
	width: 100%;
	overflow: hidden;
	margin: var(--wf-space-6) 0;
}
/* Flutter zeichnet hier hinein. Liegt im normalen Fluss: Die Box wächst mit dem
   Inhalt der App (dynamische Höhe, Technik in embed.css). */
.wichtel-app-canvas {
	position: relative;
	overflow: hidden;
}
/* Platzhalter, bis Flutter geladen ist – optisch wie die spätere WichtelCard,
   mit Fiete, der schon mal vorbeischaut. */
.wichtel-app-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	pointer-events: none;
}
.wichtel-app-placeholder__card {
	position: relative;
	width: min(520px, calc(100% - 32px));
	padding: 56px var(--wf-space-6) var(--wf-space-6);
	border-radius: var(--wf-radius);
	background: var(--wf-snow);
	border: 1px solid var(--wf-line);
	box-shadow: var(--wf-shadow-card);
	display: grid;
	gap: var(--wf-space-4);
}
.wichtel-app-placeholder__card::before {
	content: '';
	position: absolute;
	left: 50%;
	top: -34px;
	width: 70px;
	height: 77px;
	margin-left: -35px;
	background: url('/images/fiete.svg') center / contain no-repeat;
}
.wichtel-app-placeholder__card > div {
	border-radius: var(--wf-radius-md);
	background: var(--wf-field);
	border: 1px solid var(--wf-line);
}
.wichtel-app-placeholder__title  { height: 30px; width: 62%; margin: 0 auto; border-radius: 8px !important; }
.wichtel-app-placeholder__field  { height: 58px; }
.wichtel-app-placeholder__button {
	height: 52px;
	background: var(--wf-fox-mist) !important;
	border-color: transparent !important;
	box-shadow: 0 5px 0 var(--wf-pine-mist);
}
@media (prefers-reduced-motion: no-preference) {
	.wichtel-app-placeholder__card > div { animation: wichtel-pulse 1.4s ease-in-out infinite; }
	.wichtel-app-placeholder__field { animation-delay: 0.15s !important; }
	.wichtel-app-placeholder__button { animation-delay: 0.3s !important; }
}
@keyframes wichtel-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

/* Ausweg, falls die App nicht lädt (Technik in embed.css): Karte mit Fiete
   und dem Automatenknopf wie in der App (PrimaryButton). */
.site .wichtel-app-fallback {
	background: var(--wf-frost);
	color: var(--wf-pine);
	font-weight: 500;
}
.site .wichtel-app-fallback::before {
	content: '';
	width: 84px;
	height: 92px;
	background: url('/images/fiete.svg') center / contain no-repeat;
}
.site .wichtel-app-fallback p { margin: 0; max-width: 36ch; }
.site a.wichtel-app-fallback__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 26px;
	border-radius: var(--wf-radius-md);
	background: var(--wf-fox);
	color: var(--wf-snow);
	font-weight: 700;
	font-size: 1.05rem;
	text-decoration: none;
	border-top: 2px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 5px 0 var(--wf-rust);
	transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}
.site a.wichtel-app-fallback__button:hover {
	background: #d15a15;
	color: var(--wf-snow);
}
.site a.wichtel-app-fallback__button:active {
	transform: translateY(5px);
	box-shadow: 0 0 0 var(--wf-rust);
}
.site a.wichtel-app-fallback__button:focus-visible {
	box-shadow: 0 5px 0 var(--wf-rust), var(--wf-focus);
}

/* Menü-Sichtbarkeit je nach Login-Status steht in embed.css (Agent „Einbettung“). */

/* ---------- Seite „Keine Einladungen mehr“ (keine-einladungen.js) ---------- */
.optout { margin: 1.5rem 0; padding: 1.25rem 1.5rem; background: var(--wf-cream, #FFF6EA);
	border-left: 4px solid var(--wf-brass, #D4A43B); border-radius: 8px; }
.optout > p { margin: 0; display: none; }
.optout[data-state="idle"] .optout__missing,
.optout[data-state="missing"] .optout__missing,
.optout[data-state="ready"] .optout__ready,
.optout[data-state="busy"] .optout__busy,
.optout[data-state="done"] .optout__done,
.optout[data-state="error"] .optout__error { display: block; }
.optout__button { font: inherit; font-weight: 700; color: #fff; background: var(--wf-fox, #C4500E);
	border: 0; border-radius: 8px; padding: 0.8rem 1.4rem; cursor: pointer; }
.optout__button:hover, .optout__button:focus-visible { background: var(--wf-rust, #8E3A0A); }
.optout__button:focus-visible { outline: 3px solid var(--wf-brass, #D4A43B); outline-offset: 2px; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 560px) {
	.site-header { justify-content: center; }
	.site-nav { justify-content: center; }
	.site-main { padding: var(--wf-space-6) var(--wf-space-4) var(--wf-space-12); }
	body { font-size: 1rem; }
}

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