/* ==========================================================================
   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;
	--st-accent-ink: #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; }

/* ---- 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-color: var(--st-surface); background-image: linear-gradient(to top, rgba(16, 16, 19, .94), rgba(16, 16, 19, .72) 55%, rgba(16, 16, 19, .42)), var(--img, none); background-size: cover; background-position: center; 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;
}
/* Vergleichstabelle: klebende Beschriftungs-Spalte muss in beiden Themes deckend sein */
html[data-theme="dark"] #showtime-wedding-configurator .cfg-compare tbody th,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-compare thead th:first-child {
	background: #17171a;
	color: #e7e4de;
}
/* Rückruf-Formular: Telefonfeld (höhere Spezifität als der generische input-Override) */
html[data-theme="dark"] #showtime-wedding-configurator .cfg-quick__call input[type="tel"],
html[data-theme="dark"] #showtime-wedding-configurator .cfg-quick__call input[type=tel] {
	background: #1b1b1f;
	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; }
html[data-theme="dark"] #showtime-wedding-configurator .cfg-btn {
	color: #e7e4de;
	-webkit-text-fill-color: #e7e4de;
}
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-bar .cfg-btn {
	color: #141414;
	-webkit-text-fill-color: #141414;
}


/* ---- 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%);
}

/* ==========================================================================
   Kontrast-Garantie – Konfigurator & Einladungs-Shop (Light & Dark).
   Regel: inaktive Flächen = dunkle Fläche + heller Text + klare Kontur;
   aktive/gewählte Elemente = helle Fläche + dunkler Text (immer lesbar).
   ========================================================================== */

/* ---- Photobox-Designer (Druckdesign: Champagner, Reinweiß, Sand, …) ----- */
html[data-theme="dark"] .stp-pbd__chip,
html[data-theme="dark"] .stp-pbd__lay { border-color: var(--st-line, #2a2a2e); }
html[data-theme="dark"] .stp-pbd__chip.is-on,
html[data-theme="dark"] .stp-pbd__lay.is-on {
	background: #f2f0eb;
	color: #141414;
	-webkit-text-fill-color: #141414;
	border-color: var(--st-accent, #c4aa80);
	box-shadow: inset 0 0 0 1px var(--st-accent, #c4aa80), 0 8px 20px -12px rgba(0, 0, 0, .55);
}

/* ---- front.css: aktive Zustände & „lichte“ Buttons auf dunklen Flächen ---- */
html[data-theme="dark"] .stp-tabs button.is-active { background: #f2f0eb; color: #141414; border-color: #f2f0eb; }
html[data-theme="dark"] .stp-btn--light,
html[data-theme="dark"] .stp-btn--outline-light:hover,
html[data-theme="dark"] .stp-btn--outline-light:focus-visible,
html[data-theme="dark"] .stp-lightbox .stp-btn,
html[data-theme="dark"] .stp-icon { color: #141414; }
html[data-theme="dark"] .stp-day.is-booked { background: #2a2a2e; color: #8b8986; }

/* Druck-/Fotostreifen-Mocks: Papier bleibt hell, Schrift bleibt dunkel. */
html[data-theme="dark"] .stp-pb-strip__names,
html[data-theme="dark"] .stp-pbf__names,
html[data-theme="dark"] .stp-pb-wall__strip em { color: #141414; }

/* ---- Einladungs-Verkaufsseite (.ish) ------------------------------------ */
html[data-theme="dark"] .ish-filter button { background: #17171a; color: #e7e4de; border-color: #2a2a2e; }
html[data-theme="dark"] .ish-filter button.is-on {
	background: #f2f0eb; color: #141414; -webkit-text-fill-color: #141414;
	border-color: var(--st-accent, #c4aa80);
}
html[data-theme="dark"] .ish-feat,
html[data-theme="dark"] .ish-pricebox,
html[data-theme="dark"] .ish-start,
html[data-theme="dark"] .ish-plan,
html[data-theme="dark"] .ish-perk { background: #17171a; border-color: #2a2a2e; }
html[data-theme="dark"] .ish-pricebox { background: #1b1b1f; }
html[data-theme="dark"] .ish-form input:not([type="checkbox"]),
html[data-theme="dark"] .ish-form select { background: #17171a; color: #e7e4de; border-color: #2a2a2e; }
html[data-theme="dark"] .ish-num__chips span,
html[data-theme="dark"] .ish-picked { background: #1b1b1f; color: #e7e4de; }
html[data-theme="dark"] .ish-flow__nav { background: rgba(23, 23, 26, .92); color: #e7e4de; border-color: #2a2a2e; }
html[data-theme="dark"] .ish-card__pick:hover,
html[data-theme="dark"] .ish-card.is-picked .ish-card__pick { background: #f2f0eb; color: #141414; }
/* ==========================================================================
   Control borders in dark mode (WCAG 1.4.11): inputs, chips, tabs and filters
   need a visible edge; the subtle separator token (--st-line) is not enough
   on dark surfaces. Interactive elements only, no layout dividers.
   ========================================================================== */
html[data-theme="dark"] {
	--st-control-line: #6a6a70;
}
html[data-theme="dark"] .stp-form input,
html[data-theme="dark"] .stp-form select,
html[data-theme="dark"] .stp-form textarea,
html[data-theme="dark"] .stp-login input,
html[data-theme="dark"] .stp-config input,
html[data-theme="dark"] .stp-config textarea,
html[data-theme="dark"] .stp-avail input,
html[data-theme="dark"] .stp-live input,
html[data-theme="dark"] .stp-gallery__numbers input,
html[data-theme="dark"] .stp-proof textarea,
html[data-theme="dark"] .stp-pbd__fields input,
html[data-theme="dark"] .stp-tabs button,
html[data-theme="dark"] .stp-pbd__chip,
html[data-theme="dark"] .stp-pbg__cat,
html[data-theme="dark"] .stp-faq__chip,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-chip,
html[data-theme="dark"] #showtime-wedding-configurator input,
html[data-theme="dark"] #showtime-wedding-configurator select,
html[data-theme="dark"] #showtime-wedding-configurator textarea,
html[data-theme="dark"] #showtime-wedding-configurator .cfg-ev,
html[data-theme="dark"] .st-theme-toggle {
	border-color: var(--st-control-line);
}
html[data-theme="dark"] .stp-pbd__chip.is-on,
html[data-theme="dark"] .stp-pbg__cat.is-on,
html[data-theme="dark"] .stp-tabs button.is-active,
html[data-theme="dark"] .stp-faq__chip[aria-pressed="true"] {
	border-color: #f2f0eb;
}

/* Hover states on dark surfaces: light surface + dark text. */
html[data-theme="dark"] .st-has-hero .st-header:not(.is-scrolled) .st-header__cta:hover,
html[data-theme="dark"] .st-has-hero .st-header:not(.is-scrolled) .st-header__cta:focus-visible {
	background: #fff;
	color: #141414;
	border-color: #fff;
}
html[data-theme="dark"] .st-btn--outline-light:hover,
html[data-theme="dark"] .st-btn--outline-light:focus-visible {
	background: #fff;
	color: #141414;
	border-color: #fff;
}
html[data-theme="dark"] #showtime-wedding-configurator .cfg-quick__call input[type=tel] {
	border-color: var(--st-control-line);
}

/* ==========================================================================
   Contact page: open editorial form (light + dark), inspired by the
   image/form split of high-end studio sites. Scoped to the contact page.
   ========================================================================== */
body:not(.home):has(.stp-contact) .stp-form {
	max-width: none;
	margin: 0;
	padding: 0 0 0 clamp(1.4rem, 4vw, 3.4rem);
	background: transparent;
	border: 0;
	border-left: 1px solid var(--st-line);
	align-self: start;
}
body:not(.home):has(.stp-contact) .stp-form input[type="text"],
body:not(.home):has(.stp-contact) .stp-form input[type="email"],
body:not(.home):has(.stp-contact) .stp-form input[type="tel"],
body:not(.home):has(.stp-contact) .stp-form input[type="date"],
body:not(.home):has(.stp-contact) .stp-form select {
	min-height: 46px;
	padding: .8rem 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--st-ink) 38%, var(--st-line));
	border-radius: 0;
	box-shadow: none;
}
body:not(.home):has(.stp-contact) .stp-form textarea {
	padding: .9rem 1rem;
	background: transparent;
	border: 1px solid color-mix(in srgb, var(--st-ink) 30%, var(--st-line));
	border-radius: 0;
	box-shadow: none;
	min-height: 148px;
}
body:not(.home):has(.stp-contact) .stp-form select {
	padding-right: 1.4rem;
}
body:not(.home):has(.stp-contact) .stp-form input:focus,
body:not(.home):has(.stp-contact) .stp-form select:focus,
body:not(.home):has(.stp-contact) .stp-form textarea:focus {
	outline: 2px solid var(--st-accent);
	outline-offset: 3px;
	border-color: var(--st-accent);
}
body:not(.home):has(.stp-contact) .stp-form label {
	margin-bottom: .25rem;
}
body:not(.home):has(.stp-contact) .stp-form input[type="submit"],
body:not(.home):has(.stp-contact) .stp-form .stp-btn {
	margin-top: .4rem;
}
html[data-theme="dark"] body:not(.home):has(.stp-contact) .stp-form input,
html[data-theme="dark"] body:not(.home):has(.stp-contact) .stp-form select,
html[data-theme="dark"] body:not(.home):has(.stp-contact) .stp-form textarea {
	border-color: var(--st-control-line);
	background: transparent;
}
html[data-theme="dark"] body:not(.home):has(.stp-contact) .stp-form input:focus,
html[data-theme="dark"] body:not(.home):has(.stp-contact) .stp-form select:focus,
html[data-theme="dark"] body:not(.home):has(.stp-contact) .stp-form textarea:focus {
	border-color: var(--st-accent);
}
@media (max-width: 900px) {
	body:not(.home):has(.stp-contact) .stp-form {
		padding-left: 0;
		border-left: 0;
		border-top: 1px solid var(--st-line);
		padding-top: 1.6rem;
	}
}

/* ==========================================================================
   Album-Auswahl & Fotoprodukte (.stp-mert) – Dark Mode.
   Der Mert-Konfigurator nutzt eigene Tokens (--mt-*) und helle Flächen; ohne
   Override bleibt der Text im Dark Mode unlesbar. Gleiche Regel wie oben:
   inaktive Fläche = dunkel + heller Text; aktive/gewählte Fläche = hell + dunkler Text.
   ========================================================================== */
html[data-theme="dark"] .stp-mert {
	--mt-ink: #f2f0eb;
	--mt-mute: #a4a19c;
	--mt-soft: #8b8986;
	--mt-line: #2a2a2e;
	--mt-bg: #17171a;
	--mt-acc: #c4aa80;
	color: var(--mt-ink);
}
/* Helle Flächen → dunkle Flächen */
html[data-theme="dark"] .stp-mert .mt-chip,
html[data-theme="dark"] .stp-mert .mt-qty,
html[data-theme="dark"] .stp-mert .mw-card,
html[data-theme="dark"] .stp-mert .mw-acc button,
html[data-theme="dark"] .stp-mert .mw-steps__n,
html[data-theme="dark"] .stp-mert figcaption,
html[data-theme="dark"] .stp-mert .mw-hero figcaption,
html[data-theme="dark"] .stp-mert input[type="text"],
html[data-theme="dark"] .stp-mert input[type="email"],
html[data-theme="dark"] .stp-mert input[type="tel"],
html[data-theme="dark"] .stp-mert input[type="url"],
html[data-theme="dark"] .stp-mert input[type="date"],
html[data-theme="dark"] .stp-mert textarea {
	background: #17171a;
	color: #e7e4de;
	border-color: #2a2a2e;
}
/* Aktive Flächen (werden über --mt-ink hell) → dunkler Text */
html[data-theme="dark"] .stp-mert .mt-chip.is-on,
html[data-theme="dark"] .stp-mert .mt-btn,
html[data-theme="dark"] .stp-mert .mw-steps .is-on .mw-steps__n,
html[data-theme="dark"] .stp-mert .mw-steps .is-done .mw-steps__n,
html[data-theme="dark"] .stp-mert .mw-card.is-on .mw-tick {
	color: #141414;
}
html[data-theme="dark"] .stp-mert .mw-steps .is-on .mw-steps__n {
	box-shadow: 0 0 0 4px #17171a, 0 0 0 5px #2a2a2e;
}
html[data-theme="dark"] .stp-mert .mw-acc button.is-on,
html[data-theme="dark"] .stp-mert .mw-acc button[aria-selected="true"] {
	background: #1b1b1f;
	color: #f2f0eb;
}
/* Kontur, die im Light Mode „unsichtbar“ (weiß) war, im Dark Mode sichtbar setzen */
html[data-theme="dark"] .stp-mert .mt-chip,
html[data-theme="dark"] .stp-mert .mw-card,
html[data-theme="dark"] .stp-mert .mt-qty,
html[data-theme="dark"] .stp-mert input,
html[data-theme="dark"] .stp-mert textarea {
	border-color: #6a6a70;
}
html[data-theme="dark"] .stp-mert .mw-card:hover { border-color: #a4a19c; }
html[data-theme="dark"] .stp-mert .mw-card.is-on {
	border-color: #f2f0eb;
	box-shadow: inset 0 0 0 1px #f2f0eb;
}
/* Farbfelder: weißer Ring → dunkle Seite, damit die Farben sauber sitzen */
html[data-theme="dark"] .stp-mert .mt-sw__b i {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), 0 0 0 3px #17171a, 0 0 0 4px transparent;
}
html[data-theme="dark"] .stp-mert .mt-sw__b.is-on i {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), 0 0 0 3px #17171a, 0 0 0 4px #f2f0eb;
}
html[data-theme="dark"] .stp-mert .mt-sw__b:focus-visible i {
	box-shadow: 0 0 0 3px #17171a, 0 0 0 5px #c4aa80;
}
/* Mobile Leiste: helles, halbtransparentes Panel → dunkles Panel */
html[data-theme="dark"] .stp-mert .mw-bar {
	background: rgba(23, 23, 26, .96);
	border-color: #2a2a2e;
}
/* Platzhalter & Validierungstext */
html[data-theme="dark"] .stp-mert input::placeholder,
html[data-theme="dark"] .stp-mert textarea::placeholder { color: #8b8986; }
html[data-theme="dark"] .stp-mert .mt-err { color: #e09a9a; }
/* Formular-Labels & Hinweise bleiben über --mt-* lesbar (automatisch). */
html[data-theme="dark"] .stp-mert .mw-model b,
html[data-theme="dark"] .stp-mert .mt-field > span,
html[data-theme="dark"] .stp-mert .mw-k,
html[data-theme="dark"] .stp-mert .mt-form label { color: #a4a19c; }
html[data-theme="dark"] .stp-mert .mw-model.is-on b { color: #f2f0eb; }
/* Format-/Einband-Mock: Papier bleibt hell, Schrift bleibt dunkel (wie .stp-pb-*). */
html[data-theme="dark"] .stp-mert .mw-prev__book span { color: #141414; }
/* Häkchen im Auswahlkreis: dunkler Haken auf heller Fläche (sonst weiß auf weiß). */
html[data-theme="dark"] .stp-mert .mw-card.is-on .mw-tick {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.3l3 3 6-6.6' fill='none' stroke='%23141414' stroke-width='1.8'/%3E%3C/svg%3E");
}
/* Foto-Upload: gestrichelte Abwurffläche im Dark Mode sichtbar machen. */
html[data-theme="dark"] .stp-mert .stp-up__drop { border-color: #6a6a70; }
