/* ==========================================================================
   Showtime – Dark Mode (premium, cinematic).
   Aktiviert über <html data-theme="dark">. Höhere Spezifität als die Basis-
   Styles, daher in der Kaskade immer durchsetzungsfähig.
   ========================================================================== */

html[data-theme="dark"] {
	/* Grundflächen */
	--st-ink: #f2f0eb;
	--st-graphite: #0a0a0c;
	--st-charcoal: #141417;
	--st-text: #e7e4de;
	--st-muted: #a4a19c;
	--st-silver: #8b8986;
	--st-stone: #3a3835;
	--st-line: #2a2a2e;
	--st-pearl: #1b1b1f;
	--st-bg: #0f0f11;
	--st-surface: #17171a;
	--st-accent: #c4aa80;
	color-scheme: dark;
}

/* ---- Typografie & Flächen ---------------------------------------------- */
html[data-theme="dark"] body {
	background: var(--st-bg);
	color: var(--st-text);
}

/* ---- Buttons (kehrt die Rollen um: helle Fläche, dunkler Text) --------- */
html[data-theme="dark"] .st-btn { --b: #f2f0eb; --f: #141414; }
html[data-theme="dark"] .st-btn::before { background: #141414; }
html[data-theme="dark"] .st-btn--light { --b: #f2f0eb; --f: #141414; }
html[data-theme="dark"] .st-btn--outline { --b: #f2f0eb; background: transparent; color: #f2f0eb; }
html[data-theme="dark"] .st-btn--outline::before { background: #f2f0eb; }
html[data-theme="dark"] .st-btn--outline:hover { color: #141414; }
html[data-theme="dark"] .st-btn--outline-light { --b: rgba(255, 255, 255, .7); color: #fff; }
html[data-theme="dark"] .st-btn--outline-light::before { background: #fff; }

/* ---- Header ------------------------------------------------------------- */
html[data-theme="dark"] .st-header.is-scrolled,
html[data-theme="dark"] .st-has-hero .st-header.is-scrolled {
	background: color-mix(in srgb, var(--st-bg) 88%, transparent);
	border-color: var(--st-line);
}
html[data-theme="dark"] .st-has-hero .st-header:not(.is-scrolled) { color: #fff; }
html[data-theme="dark"] .st-has-hero .st-header:not(.is-scrolled) .st-header__cta { --b: #fff; --f: #141414; color: #fff; }
html[data-theme="dark"] .st-has-hero .st-header:not(.is-scrolled) .st-header__cta::before { background: #fff; }
html[data-theme="dark"] .st-menu .sub-menu { background: var(--st-surface); border-color: var(--st-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
html[data-theme="dark"] .st-drawer { background: #0a0a0c; }

/* ---- „Inverted“-Sektionen (bleiben dunkel, weißer Text) ----------------- */
html[data-theme="dark"] .st-footer { background: #060608; color: rgba(255, 255, 255, .72); }
html[data-theme="dark"] .st-services { background: #0a0a0c; }
html[data-theme="dark"] .st-extra--booth { background: #0a0a0c; border-color: #2a2a2e; }
html[data-theme="dark"] .st-day { background: #060608; }
html[data-theme="dark"] .st-day__stage { background: #000; }
html[data-theme="dark"] .st-day.is-pinned .st-day__stage { background: #000; }
html[data-theme="dark"] .st-fx__bar { background: #050505; }
html[data-theme="dark"] .st-fx__iris { background: radial-gradient(circle at 50% 50%, transparent 0, transparent var(--iris, 120%), #050505 calc(var(--iris, 120%) + 8%)); }

/* ---- Aktive Zustände (Filter, Kalender, Dots) --------------------------- */
html[data-theme="dark"] .st-filter a.is-active { background: #f2f0eb; color: #141414; }
html[data-theme="dark"] .st-mini-cal .is-b { background: #3a3835; }
html[data-theme="dark"] .st-quotes__dots button.is-active { background: #f2f0eb; }
html[data-theme="dark"] .st-social a:hover { background: #f2f0eb; color: #141414; }
html[data-theme="dark"] .st-skip { background: #f2f0eb; color: #141414; }

/* ---- Karten / Overlays -------------------------------------------------- */
html[data-theme="dark"] .st-world { background: var(--st-surface); color: var(--st-text); border-color: var(--st-line); }
html[data-theme="dark"] .st-extra__card { background: #1d1d21; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .st-scroll span::after { background: rgba(255, 255, 255, .7); }
html[data-theme="dark"] ::selection { background: #f2f0eb; color: #141414; }

/* ---- Plugin-Komponenten (stp-*) ----------------------------------------- */
html[data-theme="dark"] .stp-btn { background: #f2f0eb; color: #141414; border-color: #f2f0eb; }
html[data-theme="dark"] .stp-btn:hover,
html[data-theme="dark"] .stp-btn:focus-visible { background: transparent; color: #f2f0eb; }
html[data-theme="dark"] .stp-btn--ghost { background: transparent; color: #f2f0eb; border-color: #f2f0eb; }
html[data-theme="dark"] .stp-btn--ghost:hover { background: #f2f0eb; color: #141414; }
html[data-theme="dark"] .stp-form input,
html[data-theme="dark"] .stp-form select,
html[data-theme="dark"] .stp-form textarea {
	background: var(--st-surface);
	color: var(--st-text);
	border-color: var(--st-line);
}
html[data-theme="dark"] .stp-form input::placeholder,
html[data-theme="dark"] .stp-form textarea::placeholder { color: var(--st-muted); }
html[data-theme="dark"] .stp-notice { background: var(--st-surface); border-color: var(--st-line); }
html[data-theme="dark"] .stp-contact a { color: #f2f0eb; }
html[data-theme="dark"] .stp-faq__item { border-color: var(--st-line); }
html[data-theme="dark"] .stp-faq__q { color: var(--st-text); }
html[data-theme="dark"] .stp-faq__a { color: var(--st-muted); }
html[data-theme="dark"] .stp-faq__chip { background: var(--st-surface); color: var(--st-text); border-color: var(--st-line); }
html[data-theme="dark"] .stp-faq__chip:hover { border-color: #f2f0eb; color: #f2f0eb; }

/* ---- Konfigurator: Anlass-Kacheln (Startseite) -------------------------- */
html[data-theme="dark"] .stp-anl { --a-ink: #f2f0eb; --a-muted: #a4a19c; --a-line: #2a2a2e; color: #f2f0eb; }
html[data-theme="dark"] .stp-anl__item { background: var(--st-surface); border-color: var(--st-line); color: #e7e4de; }
html[data-theme="dark"] .stp-anl__item:hover,
html[data-theme="dark"] .stp-anl__item:focus-visible { border-color: #f2f0eb; }
html[data-theme="dark"] .stp-anl__promo { background: var(--st-surface); }

/* ---- Voll-Konfigurator (Pakete-Seite) ----------------------------------- */
html[data-theme="dark"] #showtime-wedding-configurator {
	--c-ink: #f2f0eb; --c-text: #e7e4de; --c-muted: #a4a19c; --c-line: #2a2a2e;
	--c-ivory: #17171a; --c-pearl: #1b1b1f; --c-champ: #c4aa80; --c-gold: #b08a45; --c-green: #7fa487;
	color: var(--c-text);
}
/* Helle Flächen → dunkle Flächen */
html[data-theme="dark"] #showtime-wedding-configurator .cfg-card,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-btn,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-acc,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-sum,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-chip,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-ev,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-dlg__box,
html[data-theme="dark"] #showtime-wedding-configurator input,
html[data-theme="dark"] #showtime-wedding-configurator select,
html[data-theme="dark"] #showtime-wedding-configurator textarea {
	background: #17171a;
	color: #e7e4de;
}
html[data-theme="dark"] #showtime-wedding-configurator .cfg-card.is-flag,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-ev.is-on,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-hintbox,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-notice,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-req,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-saved { background: #1b1b1f; }
html[data-theme="dark"] #showtime-wedding-configurator .cfg-tag { background: #24312a; color: #7fa487; }
/* Invertierte Elemente (dunkle Fläche + weißer Text) → helle Fläche + dunkler Text */
html[data-theme="dark"] #showtime-wedding-configurator .cfg-btn:hover,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-btn.is-on,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-badge,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-sale,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-chip.is-on,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-pop__box,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-steps .is-cur b { background: #f2f0eb; color: #141414; border-color: #f2f0eb; }
html[data-theme="dark"] #showtime-wedding-configurator .cfg-btn { border-color: #f2f0eb; }

/* ---- Theme-Toggle ------------------------------------------------------- */
.st-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--st-line);
	border-radius: 50%;
	background: transparent;
	color: var(--st-ink);
	cursor: pointer;
	transition: border-color .3s var(--st-ease), background .3s var(--st-ease), transform .3s var(--st-ease);
	-webkit-tap-highlight-color: transparent;
}
.st-theme-toggle:hover { border-color: var(--st-accent); }
.st-theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.st-theme-toggle .st-ico-moon { display: none; }
html[data-theme="dark"] .st-theme-toggle .st-ico-sun { display: none; }
html[data-theme="dark"] .st-theme-toggle .st-ico-moon { display: block; }
html[data-theme="dark"] .st-theme-toggle { border-color: var(--st-line); }

@media (prefers-reduced-motion: reduce) {
	.st-theme-toggle { transition: none; }
}

/* ---- Cinematischer Übergang beim Umschalten (View Transitions) ---------- */
/* Sanfte Überblendung mit leichtem Zoom – wie ein Kamera-Schnitt im Trailer. */
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: .5s;
	animation-timing-function: var(--st-ease-out);
}
::view-transition-old(root) { animation-name: st-theme-out; }
::view-transition-new(root) { animation-name: st-theme-in; }
@keyframes st-theme-out { to { opacity: 0; transform: scale(1.015); } }
@keyframes st-theme-in { from { opacity: 0; transform: scale(.988); } }

/* ---- Fehlende Flächen / Kontraste im Dark Mode -------------------------- */
/* Sticky-CTA: helle Primärfläche behält dunklen Text (sonst weiß auf weiß). */
html[data-theme="dark"] .st-sticky-cta__main { background: #f2f0eb; color: #141414; }
html[data-theme="dark"] .st-sticky-cta__main:active { background: #e7e4de; }
/* Tag-/Kategorie-Etikett auf dunklem Grund lesbar halten. */
html[data-theme="dark"] .st-show__tag { color: #c4aa80; }
/* Demo-Platzhalter entsättigen, damit sie im Dark Mode nicht blenden. */
html[data-theme="dark"] .st-placeholder {
	background:
		radial-gradient(120% 80% at 20% 10%, rgba(255, 255, 255, .05), transparent 60%),
		linear-gradient(150deg, #2a2a2e 0%, #1d1d21 45%, #141417 100%);
}