/*
Theme Name: EWG Ebstorf
Theme URI: https://ewg-ebstorf.de/
Author: Ebstorfer Wirtschaftsgemeinschaft
Description: Modernes, voll responsives Theme der Ebstorfer Wirtschaftsgemeinschaft – mit aufklappbarem Flyer, Instagram-Feed, Gutschein-Betrieben und lokal eingebundenen Schriften (DSGVO-freundlich). Inhalte der Startseite lassen sich im Customizer pflegen.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ewg-ebstorf
*/

/* ---------- Schriften (lokal) ---------- */
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/fira-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/fira-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/fira-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: italic; font-weight: 800; font-display: swap; src: url("assets/fonts/fira-sans-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/caveat-latin-700-normal.woff2") format("woff2"); }

/* ---------- Grundwerte ---------- */
:root {
	--blue-950: #071a3a;
	--blue-900: #0b2a5b;
	--blue-800: #103a7c;
	--blue-700: #164a9a;
	--blue-500: #2a6bd1;
	--yellow: #ffe500;
	--yellow-600: #f2c800;
	--ink: #0d1b2e;
	--ink-soft: #46546a;
	--paper: #f6f3ea;
	--card: #ffffff;
	--line: rgba(13, 27, 46, 0.12);
	--radius: 22px;
	--radius-sm: 12px;
	--shadow: 0 18px 50px -18px rgba(7, 26, 58, 0.35);
	--header-h: 76px;
	--wrap: 1180px;
	--gutter: clamp(18px, 4vw, 40px);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--font: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-script: "Caveat", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue-700); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--blue-900); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: fixed; left: 12px; top: -80px; z-index: 200;
	background: var(--yellow); color: var(--blue-900); font-weight: 800;
	padding: 10px 16px; border-radius: 10px; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 780px; }

/* ---------- Typo-Bausteine ---------- */
.kicker {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 800; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--blue-700); margin: 0 0 14px;
}
.kicker::before { content: ""; width: 34px; height: 4px; border-radius: 2px; background: var(--yellow); }
.kicker--light { color: #fff; }

.h-display {
	font-weight: 800; font-style: italic;
	font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
	letter-spacing: -0.02em; line-height: 1.02;
}
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; }

/* ---------- Knöpfe ---------- */
.btn {
	--bg: var(--yellow); --fg: var(--blue-900);
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 12px 24px;
	border: 2px solid transparent; border-radius: 999px;
	background: var(--bg); color: var(--fg);
	font-weight: 800; font-size: 1rem; line-height: 1.1; text-decoration: none;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-3px); color: var(--fg); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.45); }
.btn:active { transform: translateY(0); }
.btn svg { transition: transform 0.25s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn--yellow:hover { background: #fff36b; }
.btn--blue { --bg: var(--blue-700); --fg: #fff; }
.btn--blue:hover { background: var(--blue-500); }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn--ghost-dark { --bg: transparent; --fg: var(--blue-900); border-color: rgba(11, 42, 91, 0.35); }
.btn--ghost-dark:hover { border-color: var(--blue-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-row--center { justify-content: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-700); text-decoration: underline; }

/* ---------- Kopfzeile ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--header-h);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
/* Hintergrund und Unschärfe liegen auf einem eigenen Element: Ein backdrop-filter
   direkt auf der Kopfzeile würde das bildschirmfüllende Handy-Menü darin einsperren. */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(11, 42, 91, 0.92);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
	opacity: 0; transition: opacity 0.35s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner {
	width: min(100% - 2 * var(--gutter), 1320px); height: 100%; margin-inline: auto;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 800; font-style: italic; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; }
.brand__logo { width: 52px; height: 52px; transition: transform 0.6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.06); }
.brand__dot { color: var(--yellow); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__list a {
	position: relative; display: block; padding: 10px 14px;
	color: #fff; font-weight: 600; font-size: 0.98rem; text-decoration: none; border-radius: 999px;
}
.nav__list a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 2px;
	background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__insta {
	display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 9px 16px;
	border-radius: 999px; background: var(--yellow); color: var(--blue-900);
	font-weight: 800; font-size: 0.9rem; text-decoration: none; transition: transform 0.25s var(--ease);
}
.nav__insta:hover { color: var(--blue-900); transform: translateY(-2px); }

.burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--yellow); color: var(--blue-900); position: relative; z-index: 110; }
.burger__box { display: grid; gap: 5px; justify-items: center; }
.burger__box span { display: block; width: 22px; height: 3px; border-radius: 2px; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
	.burger { display: grid; place-items: center; }
	.brand { position: relative; z-index: 110; }
	.nav {
		position: fixed; inset: 0; z-index: 105;
		flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px;
		padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
		background: linear-gradient(160deg, var(--blue-950), var(--blue-800));
		clip-path: circle(0 at calc(100% - 44px) 38px);
		visibility: hidden;
		transition: clip-path 0.55s var(--ease), visibility 0s 0.55s;
		overflow-y: auto;
	}
	.nav.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path 0.55s var(--ease), visibility 0s; }
	.nav__list { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
	.nav__list a { padding: 8px 0; font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 800; font-style: italic; border-radius: 0; }
	.nav__list a::after { left: 0; right: auto; width: 60px; bottom: 2px; height: 4px; }
	.nav__list li { opacity: 0; transform: translateX(-20px); transition: opacity 0.4s, transform 0.4s var(--ease); }
	.nav.is-open .nav__list li { opacity: 1; transform: none; }
	.nav.is-open .nav__list li:nth-child(1) { transition-delay: 0.12s; }
	.nav.is-open .nav__list li:nth-child(2) { transition-delay: 0.17s; }
	.nav.is-open .nav__list li:nth-child(3) { transition-delay: 0.22s; }
	.nav.is-open .nav__list li:nth-child(4) { transition-delay: 0.27s; }
	.nav.is-open .nav__list li:nth-child(5) { transition-delay: 0.32s; }
	.nav.is-open .nav__list li:nth-child(6) { transition-delay: 0.37s; }
	.nav.is-open .nav__list li:nth-child(n+7) { transition-delay: 0.42s; }
	.nav__insta { margin-left: 0; font-size: 1rem; padding: 12px 20px; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand__text { font-size: 1rem; } .brand__logo { width: 44px; height: 44px; } }

/* ---------- Startbereich ---------- */
.hero, .page-hero {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	background:
		radial-gradient(900px 520px at 85% 0%, rgba(42, 107, 209, 0.75), transparent 62%),
		radial-gradient(700px 500px at 0% 100%, rgba(22, 74, 154, 0.9), transparent 60%),
		linear-gradient(160deg, var(--blue-950), var(--blue-900) 45%, var(--blue-800));
}
.hero::before, .page-hero::before, .flyer-section::before, .section--blue::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: soft-light;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero { min-height: min(100svh, 920px); display: flex; flex-direction: column; padding-top: var(--header-h); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__glow {
	position: absolute; left: var(--gx, 70%); top: var(--gy, 30%); width: 620px; height: 620px;
	translate: -50% -50%; border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 229, 0, 0.16), transparent 62%);
	transition: left 0.5s ease-out, top 0.5s ease-out;
}
.hero__grid {
	flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center; gap: clamp(24px, 5vw, 70px);
	padding-block: clamp(36px, 7vw, 90px);
}
.hero__title {
	font-weight: 800; font-style: italic; letter-spacing: -0.03em; line-height: 0.95;
	font-size: clamp(2.7rem, 1.2rem + 7.2vw, 6.4rem); margin: 0 0 22px;
}
.hero__line { display: block; }
.hero__line--yellow { color: var(--yellow); }
.hero__text { font-size: clamp(1.08rem, 1rem + 0.55vw, 1.4rem); max-width: 34em; color: rgba(255, 255, 255, 0.88); margin: 0; }

.hero__in { animation: ewg-in 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
/* Sicherheitsnetz: Falls der Browser die Animation nicht abspielt, zeigt das Skript die Inhalte trotzdem. */
.anim-done .hero__in { animation: none; }
@keyframes ewg-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero__badge {
	position: relative; width: min(100%, 460px); aspect-ratio: 1; margin-inline: auto;
	display: grid; place-items: center; perspective: 900px;
}
.hero__logo {
	width: 70%; height: auto;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
	transition: transform 0.25s ease-out;
	filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
	animation: ewg-float 6s ease-in-out infinite;
}
@keyframes ewg-float { 50% { translate: 0 -12px; } }
.hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: ewg-spin 38s linear infinite; }
.hero__ring text { font-family: var(--font); font-weight: 800; font-style: italic; font-size: 19.5px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--yellow); }
@keyframes ewg-spin { to { rotate: 360deg; } }

.marquee {
	position: relative; z-index: 2; margin: 0 -2% -14px; padding: 13px 0;
	background: var(--yellow); color: var(--blue-900);
	transform: rotate(-1.4deg); box-shadow: 0 -8px 30px -10px rgba(0, 0, 0, 0.4);
	overflow: hidden;
}
.marquee__track { display: flex; width: max-content; animation: ewg-marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; flex: none; }
.marquee__group span { display: inline-flex; align-items: center; font-weight: 800; font-style: italic; font-size: clamp(0.95rem, 0.9rem + 0.4vw, 1.2rem); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.marquee__group span::after { content: ""; width: 9px; height: 9px; margin: 0 22px; border-radius: 50%; background: var(--blue-700); }
@keyframes ewg-marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; text-align: left; padding-top: 24px; }
	.hero__badge { order: -1; width: min(62vw, 300px); margin-inline: 0; }
	.hero__ring text { font-size: 21px; }
}

/* ---------- Unterseiten-Kopf ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(44px, 7vw, 90px); }
.page-hero--small { padding-bottom: clamp(32px, 5vw, 60px); }
.page-hero .h-display { font-size: clamp(2.2rem, 1.3rem + 4.4vw, 4.4rem); overflow-wrap: anywhere; hyphens: auto; }
.page-hero .lead { color: rgba(255, 255, 255, 0.88); }

/* ---------- Abschnitte ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 130px) 0; }
.section--tight { padding: clamp(40px, 6vw, 80px) 0; }
.section--blue {
	isolation: isolate; color: #fff;
	background: radial-gradient(800px 500px at 100% 0%, rgba(42, 107, 209, 0.55), transparent 60%), linear-gradient(200deg, var(--blue-800), var(--blue-950));
}
.section--blue .lead, .section--blue p { color: rgba(255, 255, 255, 0.88); }
.section-head { margin-bottom: clamp(28px, 4vw, 52px); }
.section-head .h-display { margin: 0; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }

/* Einblenden beim Scrollen (nur mit JavaScript aktiv) */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Flyer ---------- */
.flyer-section {
	position: relative; isolation: isolate; overflow: hidden; color: #fff;
	padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 9vw, 120px);
	background:
		radial-gradient(700px 420px at 15% 0%, rgba(255, 229, 0, 0.1), transparent 60%),
		radial-gradient(900px 600px at 90% 100%, rgba(42, 107, 209, 0.5), transparent 60%),
		linear-gradient(180deg, #06142e, var(--blue-900));
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.flyer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(28px, 5vw, 70px); }
.flyer-copy .lead { color: rgba(255, 255, 255, 0.86); }
.flyer-copy .h-display { font-size: clamp(2.3rem, 1.4rem + 4vw, 4.2rem); }

.flyer-stage { container-type: inline-size; min-width: 0; }
.flyer-box {
	--fw: min(100cqw, 760px);
	height: calc(var(--fw) * 0.86);
	display: grid; place-items: center;
	perspective: 1800px;
}
.flyer {
	position: relative; width: var(--fw); aspect-ratio: 297 / 210;
	transform-style: preserve-3d; cursor: pointer;
	transform: scale(1.18) rotateX(8deg) rotateY(-16deg);
	transition: transform 1.1s var(--ease);
	-webkit-tap-highlight-color: transparent;
}
.flyer:not(.is-open) { animation: ewg-flyer-idle 5s ease-in-out infinite; }
@keyframes ewg-flyer-idle { 50% { transform: scale(1.18) rotateX(5deg) rotateY(-9deg) translateY(-10px); } }
.flyer.is-open { transform: scale(1) rotateX(0deg) rotateY(0deg); }
.flyer:focus-visible { outline-offset: 12px; }

.flyer__panel {
	position: absolute; top: 0; height: 100%; width: 33.3334%;
	transform-style: preserve-3d;
	transition: transform 1.05s cubic-bezier(0.6, 0.05, 0.2, 1);
}
.flyer__panel--m { left: 33.3333%; }
.flyer__panel--l { left: 0; transform-origin: right center; transform: translateZ(2px) rotateY(180deg); transition-delay: 0.35s; }
.flyer__panel--r { left: 66.6666%; transform-origin: left center; transform: translateZ(1px) rotateY(-180deg); transition-delay: 0s; }
.flyer.is-open .flyer__panel--l { transform: translateZ(0) rotateY(0deg); transition-delay: 0s; }
.flyer.is-open .flyer__panel--r { transform: translateZ(0) rotateY(0deg); transition-delay: 0.4s; }

.flyer__face {
	position: absolute; inset: 0; display: block;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
	background-color: #fff; background-repeat: no-repeat; background-size: 300% 100%;
	box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
}
.flyer__face::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.flyer__face--in { background-image: var(--flyer-innen); }
.flyer__face--out { background-image: var(--flyer-aussen); transform: rotateY(180deg); }
.flyer__panel--l .flyer__face--in { background-position: 0% 0; }
.flyer__panel--m .flyer__face--in { background-position: 50% 0; }
.flyer__panel--r .flyer__face--in { background-position: 100% 0; }
/* Rückseiten: Außenbogen ist gespiegelt angeordnet */
.flyer__panel--l .flyer__face--out { background-position: 100% 0; }
.flyer__panel--m .flyer__face--out { background-position: 50% 0; }
.flyer__panel--r .flyer__face--out { background-position: 0% 0; }
/* Falzschatten */
.flyer__panel--l .flyer__face--in::after { background: linear-gradient(90deg, transparent 88%, rgba(0, 0, 0, 0.14)); }
.flyer__panel--m .flyer__face--in::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), transparent 9%, transparent 91%, rgba(0, 0, 0, 0.12)); }
.flyer__panel--r .flyer__face--in::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.14), transparent 12%); }

.flyer-hint { margin: 6px 0 0; text-align: center; font-family: var(--font-script); font-size: 1.7rem; color: var(--yellow); rotate: -2deg; transition: opacity 0.4s; }
.flyer-hint.is-hidden { opacity: 0; }

@media (max-width: 900px) {
	.flyer-grid { grid-template-columns: 1fr; }
	.flyer-box { height: calc(var(--fw) * 1.08); }
	.flyer { transform: scale(1.45) rotateX(8deg) rotateY(-16deg); }
	@keyframes ewg-flyer-idle { 50% { transform: scale(1.45) rotateX(5deg) rotateY(-9deg) translateY(-8px); } }
}

/* Programm der Abende */
.program { position: relative; z-index: 1; margin-top: clamp(48px, 7vw, 90px); }
.program__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 24px; }
.program__head .h-display { margin: 0; font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem); }
.program__head p { margin: 0; font-family: var(--font-script); font-size: 1.7rem; color: var(--yellow); }
.program__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.door {
	position: relative; display: flex; gap: 16px; padding: 18px 18px 18px 16px;
	border-radius: 18px 18px 14px 14px; background: #fcf3e0; color: #4a0d14;
	box-shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.8);
	transition: transform 0.35s var(--ease), opacity 0.8s var(--ease), box-shadow 0.35s var(--ease);
}
.door:hover { transform: translateY(-5px) rotate(-0.6deg); }
.door__day { flex: none; width: 54px; text-align: center; }
.door__num { display: block; font-weight: 800; font-style: italic; font-size: 2.3rem; line-height: 1; color: #b01222; font-variant-numeric: tabular-nums; }
.door__wd { display: block; margin-top: 4px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #8a5a2b; }
.door__body { min-width: 0; }
.door__name { margin: 2px 0 4px; font-size: 1.05rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.door__paten { margin: 0 0 3px; font-size: 0.9rem; font-style: italic; color: #b01222; }
.door__addr { margin: 0; font-size: 0.88rem; color: #6b4a3a; }
.door__badge { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: #b01222; color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.js .door.is-past.reveal.is-in, .door.is-past { opacity: 0.55; }
.door.is-next { background: #fff; box-shadow: 0 0 0 3px var(--yellow), 0 22px 44px -20px rgba(0, 0, 0, 0.9); }
.door.is-today .door__badge { background: var(--blue-700); }

/* Großansicht */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(4, 12, 28, 0.96); color: #fff; }
.lightbox::backdrop { background: rgba(4, 12, 28, 0.9); }
.lightbox[open] { display: flex; flex-direction: column; animation: ewg-fade 0.3s ease both; }
@keyframes ewg-fade { from { opacity: 0; } }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); flex: none; }
.lightbox__tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.lightbox__tabs button { border: 0; background: none; color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 999px; }
.lightbox__tabs button[aria-selected="true"] { background: var(--yellow); color: var(--blue-900); }
.lightbox__close { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--blue-900); font-size: 1.8rem; line-height: 1; }
.lightbox__scroll { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; padding: 0 var(--gutter) 20px; display: grid; }
.lightbox__scroll img { width: max(100%, 1100px); max-width: none; margin: auto; border-radius: 4px; }
.lightbox__hint { margin: 0; padding: 8px; text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); flex: none; }
@media (min-width: 1160px) { .lightbox__hint { display: none; } .lightbox__scroll img { width: min(100%, 1500px); } }

/* ---------- Aktuelles ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.news-card {
	position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
	padding: clamp(22px, 3vw, 34px); border-radius: var(--radius);
	background: var(--card); color: var(--ink); text-decoration: none;
	box-shadow: 0 1px 0 var(--line), 0 12px 34px -22px rgba(7, 26, 58, 0.4);
	transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.8s var(--ease);
}
.news-card::before {
	content: ""; position: absolute; right: -60px; top: -60px; width: 140px; height: 140px; border-radius: 50%;
	background: var(--yellow); transform: scale(0.35); opacity: 0.9; transition: transform 0.5s var(--ease);
}
a.news-card:hover { color: var(--ink); transform: translateY(-8px); box-shadow: var(--shadow); }
a.news-card:hover::before { transform: scale(1); }
.news-card__date { position: relative; padding: 6px 14px; border-radius: 999px; background: var(--blue-900); color: #fff; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.news-card__title { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 800; font-style: italic; }
.news-card p { color: var(--ink-soft); margin-bottom: 18px; }
.news-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-700); }
.news-card__more svg { transition: transform 0.3s var(--ease); }
a.news-card:hover .news-card__more svg { transform: translateX(6px); }

/* ---------- Über uns ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.about-text { max-width: 62ch; }
.stats { display: grid; gap: 16px; }
.stat {
	padding: 24px 26px; border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.stat__num { display: block; font-weight: 800; font-style: italic; font-size: clamp(2.8rem, 2rem + 3vw, 4.4rem); line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.stat__script { display: block; font-family: var(--font-script); font-size: clamp(2.2rem, 1.8rem + 2vw, 3.2rem); line-height: 1; color: var(--yellow); rotate: -2deg; margin-bottom: 6px; }
.stat__label { display: block; margin-top: 8px; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Gutschein ---------- */
.voucher-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.voucher-stage { perspective: 1400px; }
.voucher {
	position: relative; aspect-ratio: 2 / 1; cursor: pointer;
	transform-style: preserve-3d; transform: rotate(-3deg);
	transition: transform 0.9s cubic-bezier(0.5, 0.1, 0.2, 1.2);
	-webkit-tap-highlight-color: transparent;
}
.voucher:hover { transform: rotate(-1deg) translateY(-6px); }
.voucher.is-flipped { transform: rotate(2deg) rotateY(180deg); }
.voucher__face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 10px; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 30px 60px -26px rgba(7, 26, 58, 0.7); }
.voucher__face--back { transform: rotateY(180deg); }
.voucher-hint { margin: 22px 0 0; text-align: center; font-family: var(--font-script); font-size: 1.6rem; color: var(--blue-700); rotate: -2deg; }
.voucher-hint--light { color: var(--yellow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 0.92rem; font-weight: 600; }
.chips .chips__more { background: var(--yellow); box-shadow: none; font-weight: 800; }
@media (max-width: 860px) { .voucher-grid { grid-template-columns: 1fr; } .voucher-grid--hero .voucher-stage { order: 2; } }

/* ---------- Instagram ---------- */
.insta-section { background: #fff; }
.insta { container-type: inline-size; width: min(100%, 860px); margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.insta iframe { display: block; width: 100%; height: calc(100cqw * 0.667 + 160px); border: 0; background: #fff; animation: ewg-fade 0.6s ease both; }
.insta__consent { position: relative; display: grid; place-items: center; min-height: clamp(420px, 60vw, 560px); padding: 24px; }
.insta__tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.insta__tiles i { background: linear-gradient(135deg, var(--blue-700), var(--blue-950)); background-size: 300% 300%; animation: ewg-shimmer 7s ease-in-out infinite; }
.insta__tiles i:nth-child(2n) { background-image: linear-gradient(135deg, var(--yellow), var(--yellow-600) 40%, var(--blue-700)); animation-delay: -2s; }
.insta__tiles i:nth-child(3n) { animation-delay: -4s; }
@keyframes ewg-shimmer { 50% { background-position: 100% 100%; } }
.insta__box { position: relative; width: min(100%, 520px); padding: clamp(22px, 4vw, 36px); border-radius: var(--radius); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-align: center; box-shadow: var(--shadow); }
.insta__box h3 { font-size: 1.5rem; font-weight: 800; font-style: italic; }
.insta__box p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.insta__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 18px; color: #fff; background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.insta__icon svg { width: 30px; height: 30px; }
.insta__box .btn-row { margin-top: 20px; }
.insta__remember { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.88rem; color: var(--ink-soft); cursor: pointer; }
.insta__remember input { width: 18px; height: 18px; accent-color: var(--blue-700); }
.insta-revoke { text-align: center; margin: 16px 0 0; font-size: 0.9rem; }

/* ---------- Betriebe ---------- */
.shops__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.shops__search { flex: 1 1 280px; max-width: 460px; }
.shops__search input {
	width: 100%; min-height: 54px; padding: 12px 22px; border-radius: 999px;
	border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.shops__search input:focus { outline: 0; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(42, 107, 209, 0.2); }
.shops__count { margin: 0; color: var(--ink-soft); }
.shops__count strong { color: var(--blue-700); font-size: 1.3em; }
.shops__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.shop { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(7, 26, 58, 0.5); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.8s var(--ease); }
.shop:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.shop[hidden] { display: none; }
.shop__initial { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--blue-900); color: var(--yellow); font-weight: 800; font-style: italic; font-size: 1.4rem; box-shadow: inset 0 0 0 3px var(--yellow); transition: rotate 0.5s var(--ease); }
.shop:hover .shop__initial { rotate: -14deg; }
.shop__body { min-width: 0; }
.shop__name { font-size: 1.1rem; font-weight: 800; margin: 2px 0 4px; overflow-wrap: anywhere; }
.shop__addr { margin: 0 0 6px; color: var(--ink-soft); font-size: 0.95rem; }
.shop__links { margin: 0; display: flex; gap: 14px; font-size: 0.9rem; font-weight: 600; }
.shops__empty { padding: 30px; text-align: center; color: var(--ink-soft); }

/* ---------- Weihnachtsbäume: Bestellseite ---------- */
.tree-hero { padding-top: calc(var(--header-h) + clamp(44px, 7vw, 90px)); }
.tree-hero__inner { position: relative; z-index: 1; }
.tree-hero .h-display { font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.6rem); }
.tree-hero .lead { color: rgba(255, 255, 255, 0.88); }
.tree-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: clamp(28px, 4vw, 44px); }
.tree-facts li { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.tree-facts__num { font-weight: 800; font-style: italic; font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); line-height: 1; color: var(--yellow); }
.tree-facts__text { font-weight: 800; font-style: italic; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); line-height: 1.15; color: var(--yellow); }
.tree-facts__label { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

.order-card { padding: clamp(22px, 4vw, 44px); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.order-card .h-display { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); margin-bottom: 8px; }
.order-card--done { text-align: center; }
.order-card--done .lead { margin-inline: auto; }
.order-done__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; background: #1f7a4a; color: #fff; font-size: 2.2rem; font-weight: 800; }
.order-form__note { color: var(--ink-soft); margin-bottom: 24px; }
.order-form__alert { padding: 12px 16px; border-radius: var(--radius-sm); background: #fde8e8; color: #8f1420; font-weight: 600; border-left: 5px solid #b01222; }
.order-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { margin: 0; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .order-count label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
	width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm);
	border: 2px solid var(--line); background: #fff; font: inherit; color: var(--ink);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue-700); box-shadow: 0 0 0 4px rgba(42, 107, 209, 0.2); }
.field [aria-invalid="true"] { border-color: #b01222; }
.field__error { display: block; margin-top: 6px; color: #b01222; font-size: 0.9rem; font-weight: 600; }
.order-count { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin: 24px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); }
.stepper { display: inline-flex; align-items: stretch; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; }
.stepper button { width: 54px; border: 0; background: none; font-size: 1.6rem; font-weight: 800; color: var(--blue-700); transition: background 0.2s; }
.stepper button:hover { background: var(--yellow); }
.stepper input { width: 76px; min-height: 54px; padding: 0; border: 0; border-radius: 0; background: none; text-align: center; font-weight: 800; font-size: 1.4rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; }
.order-total { margin: 0; text-align: right; }
.order-total__label { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.order-total__sum { display: block; font-style: italic; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); line-height: 1.1; color: var(--blue-700); font-variant-numeric: tabular-nums; }
.order-total__hint { display: block; font-size: 0.88rem; color: var(--ink-soft); }
.check { margin: 22px 0; }
.check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin-top: 2px; accent-color: var(--blue-700); }
.order-form__submit { width: 100%; min-height: 60px; font-size: 1.1rem; }
.order-form__privacy { margin: 16px 0 0; font-size: 0.88rem; color: var(--ink-soft); text-align: center; }
@media (max-width: 560px) {
	.field-grid { grid-template-columns: 1fr; }
	.order-count { justify-content: flex-start; }
	.order-total { text-align: left; }
}

/* ---------- Fließtext (Impressum, Datenschutz, Beiträge) ---------- */
.prose { overflow-wrap: break-word; hyphens: auto; }
.prose > * { max-width: 100%; }
.prose h1 { font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.3rem); margin-top: 1.6em; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.8em; font-style: italic; font-weight: 800; }
.prose h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); margin-top: 1.6em; }
.prose h4 { font-size: 1.08rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; list-style: revert; }
.prose li { margin-bottom: 0.35em; }
.prose img { border-radius: var(--radius-sm); margin: 1em 0; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose td, .prose th { padding: 8px 12px; border: 1px solid var(--line); text-align: left; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 20px; border-left: 5px solid var(--yellow); font-style: italic; }
.prose iframe { width: 100%; }
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em 0; } }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 46px; min-height: 46px; padding: 0 14px; border-radius: 999px; background: #fff; font-weight: 800; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.pagination .page-numbers.current { background: var(--blue-900); color: #fff; }

/* ---------- Fußbereich ---------- */
.site-footer { position: relative; color: #fff; background: var(--blue-950); padding: clamp(56px, 8vw, 100px) 0 28px; border-top: 8px solid var(--yellow); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 1fr; gap: clamp(26px, 4vw, 50px); }
.footer-claim { margin: 14px 0 0; font-family: var(--font-script); font-size: 2.2rem; line-height: 1; color: var(--yellow); rotate: -3deg; transform-origin: left; }
.footer-title { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: 2px; color: var(--yellow); }
.contact-list a { overflow-wrap: anywhere; }
.footer-links { display: grid; gap: 8px; }
.social { display: grid; gap: 10px; justify-items: start; }
.social a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.3); font-weight: 800; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.social a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--blue-900); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 6vw, 70px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 22px; }
@media (max-width: 940px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Weniger Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
	.js .reveal { opacity: 1; transform: none; }
	/* Das Laufband läuft immer – bei „Bewegung reduzieren“ nur etwas ruhiger. */
	.marquee__track { animation-duration: 110s !important; animation-iteration-count: infinite !important; }
	.snow { display: none; }
}

@media print {
	.site-header, .marquee, .snow, .burger, .insta-section, .btn-row { display: none !important; }
	.hero, .page-hero, .section--blue, .flyer-section, .site-footer { background: none !important; color: #000 !important; }
}
