/*
Theme Name: maschenerina
Theme URI: https://maschenerina.de/
Author: maschenerina
Description: Schlankes Block-Theme für den maschenerina-Shop (handgefärbte Wolle & Strickzubehör). Ersetzt Flatsome. Basiert vollständig auf WordPress- und WooCommerce-Blöcken, ohne Page-Builder.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.1
WC requires at least: 10.0
WC tested up to: 11.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maschenerina
*/

/* ==========================================================================
   Farben, Schriften, Abstände und Buttons stehen in theme.json.
   Hier nur, was theme.json (noch) nicht abbilden kann.
   ========================================================================== */

/* ---------- Grundlagen ---------- */

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

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta-dunkel);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--weiss);
}

/* ---------- Header ---------- */

.masche-header-wrap {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}

@media (max-width: 600px) {
	/* Admin-Leiste scrollt auf Mobilgeräten mit. */
	.admin-bar .masche-header-wrap { top: 0; }
}

.masche-header {
	transition: box-shadow 0.2s ease;
	box-shadow: 0 1px 0 var(--wp--preset--color--sand);
}

.masche-header .wp-block-site-logo img {
	height: auto;
}

.masche-topbar p {
	margin: 0;
}

.masche-topbar a {
	color: inherit;
	text-decoration: none;
}

.masche-header .wp-block-navigation .wp-block-navigation-item__content {
	padding-block: 0.4em;
}

.masche-header .wp-block-navigation__submenu-container {
	border-radius: 14px;
	border: 1px solid var(--wp--preset--color--sand) !important;
	box-shadow: var(--wp--preset--shadow--weich);
	padding: 0.5rem 0;
	min-width: 240px !important;
}

.masche-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.45em 1.2em;
	font-weight: 500;
}

.masche-header .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	border-radius: 14px;
}

.masche-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50);
}

.masche-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	box-shadow: none;
	border: 0 !important;
	padding: 0 0 0 1rem;
}

.masche-header-icons .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--terracotta-dunkel);
	color: var(--wp--preset--color--weiss);
	border-color: transparent;
}

.masche-header-icons .wp-block-search__button {
	background: transparent;
	color: inherit;
	box-shadow: none;
	padding: 0.4em;
	margin: 0;
}

.masche-header-icons .wp-block-search__input {
	border-radius: 999px;
	border-color: var(--wp--preset--color--sand-dunkel);
}

/* ---------- Handschrift-Akzent ("Eyebrow") ---------- */

.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--caveat) !important;
	font-weight: 700 !important;
	color: var(--wp--preset--color--terracotta);
	font-size: clamp(1.5rem, 1.25rem + 1vw, 1.9rem) !important;
	line-height: 1 !important;
	letter-spacing: 0.3px;
	text-transform: none !important;
	margin-bottom: 0.25rem !important;
}

/* ---------- Buttons ---------- */

.wp-element-button,
.wp-block-button__link {
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--preset--shadow--button-hover);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
	background: transparent;
	color: var(--wp--preset--color--tinte);
	border: 1.5px solid var(--wp--preset--color--sand-dunkel);
	box-shadow: none;
	padding: calc(0.85em - 1.5px) calc(1.7em - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--tinte);
	background: var(--wp--preset--color--weiss-warm);
}

.wp-block-button.is-style-salbei > .wp-block-button__link {
	background: var(--wp--preset--color--salbei-dunkel);
	color: var(--wp--preset--color--weiss);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--wp--preset--color--salbei-dunkel) 30%, transparent);
}

.wp-block-button.is-style-salbei > .wp-block-button__link:hover {
	background: var(--wp--preset--color--tinte);
}

/* ---------- Karten, Bänder, Bilder ---------- */

.is-style-karte {
	background: var(--wp--preset--color--weiss-warm);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--weich);
	overflow: hidden;
}

.is-style-karte-hover {
	background: var(--wp--preset--color--weiss-warm);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--weich);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.is-style-karte-hover:hover,
.is-style-karte-hover:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--karte-hover);
}

.is-style-band {
	background: var(--wp--preset--color--salbei-hell);
	border-radius: 24px;
}

.wp-block-image.is-style-weich img,
.wp-block-cover.is-style-weich,
.wp-block-media-text.is-style-weich .wp-block-media-text__media img {
	border-radius: 24px;
}

/* Ganze Karte klickbar machen: Link in der Überschrift spannt sich über die Karte. */
.masche-kachel {
	position: relative;
}

.masche-kachel h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.masche-kachel h3 a {
	text-decoration: none;
	color: inherit;
}

.masche-kachel .wp-block-image:not(.masche-social-icon) img {
	aspect-ratio: 1;
	object-fit: cover;
	width: 100%;
	transition: transform 0.4s ease;
}

.masche-kachel:hover .wp-block-image:not(.masche-social-icon) img {
	transform: scale(1.04);
}

.masche-kachel .wp-block-image {
	overflow: hidden;
	margin: 0;
}

/* Hero: schwebende Hinweise auf dem Bild */
.masche-hero-bild {
	position: relative;
}

.masche-hero-badges {
	position: absolute;
	left: clamp(0.75rem, 3vw, 1.5rem);
	bottom: clamp(0.75rem, 3vw, 1.5rem);
	z-index: 2;
}

.masche-hero-badges p {
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 92%, transparent);
	backdrop-filter: blur(6px);
	border-radius: 999px;
	padding: 0.4em 1em;
	box-shadow: var(--wp--preset--shadow--weich);
	margin: 0;
}

.masche-social-icon {
	flex-shrink: 0;
}

.masche-vorteil img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

/* ---------- WooCommerce: Produktkarten ---------- */

.wc-block-product-template .wc-block-product,
.wp-block-woocommerce-product-template .wc-block-product {
	background: var(--wp--preset--color--weiss-warm);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: 20px;
	box-shadow: var(--wp--preset--shadow--weich);
	overflow: hidden;
	padding-bottom: 1rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}

.wc-block-product-template .wc-block-product:hover,
.wc-block-product-template .wc-block-product:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--karte-hover);
}

.wc-block-product-template .wc-block-product > * {
	padding-inline: 1rem;
}

.wc-block-product-template .wc-block-product > .wc-block-components-product-image {
	padding-inline: 0;
	margin-bottom: 0.9rem !important;
}

.wc-block-product-template .wc-block-components-product-image img {
	aspect-ratio: 1;
	object-fit: cover;
}

.wc-block-product-template .wp-block-post-title {
	margin-block: 0 0.35rem;
}

.wc-block-product-template .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--tinte);
}

.wc-block-product-template .wp-block-post-title a:hover {
	color: var(--wp--preset--color--terracotta-dunkel);
}

.wc-block-product-template .wp-block-woocommerce-product-button {
	margin-top: auto;
}

.wc-block-product-template .wp-block-woocommerce-product-button .wp-element-button {
	font-size: var(--wp--preset--font-size--small);
	padding: 0.6em 1.3em;
	box-shadow: none;
}

/* Handy, zwei Karten nebeneinander: Button volle Breite, damit „In den Warenkorb“ einzeilig bleibt */
@media (max-width: 600px) {
	.wc-block-product-template .wc-block-product > * {
		padding-inline: 0.75rem;
	}
	.wc-block-product-template .wp-block-woocommerce-product-button .wp-element-button {
		width: 100%;
		padding-inline: 0.4em;
		font-size: 0.875rem;
		text-align: center;
		line-height: 1.15;
	}
}

.masche-kategorie-label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem !important;
	margin-bottom: 0.15rem !important;
}

.masche-kategorie-label a {
	color: var(--wp--preset--color--salbei-dunkel);
	text-decoration: none;
	pointer-events: none;
}

/* Lagerstatus in Karten: nur anzeigen, wenn etwas nicht lieferbar ist. */
.wc-block-product-template .wc-block-components-product-stock-indicator--in-stock,
.wc-block-product-template .wc-block-components-product-stock-indicator--available-on-backorder {
	display: none;
}

.wc-block-product-template .wc-block-components-product-stock-indicator {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--terracotta-dunkel);
	font-weight: 600;
	margin: 0 0 0.35rem;
}

/* Sale-/Neu-Badge als Pille */
.wc-block-components-product-sale-badge {
	background: var(--wp--preset--color--terracotta-dunkel) !important;
	color: var(--wp--preset--color--weiss) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 700;
	text-transform: none !important;
	padding: 0.3em 0.9em !important;
	font-size: 0.8rem !important;
}

/* „Neu“-Badge (functions.php) */
.wc-block-components-product-image {
	position: relative;
}

.masche-badge-neu {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	background: var(--wp--preset--color--salbei-dunkel);
	color: var(--wp--preset--color--weiss);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 700;
	font-size: 0.8rem;
	line-height: 1;
	padding: 0.45em 0.9em;
	pointer-events: none;
}

/* Kategorie über dem Produkttitel: nur die erste anzeigen */
.masche-kategorie-label a ~ a,
.masche-kategorie-label .wp-block-post-terms__separator {
	display: none;
}

/* Preise */
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	color: var(--wp--preset--color--salbei-dunkel);
	font-weight: 700;
}

.wc-block-components-product-price del,
.wp-block-woocommerce-product-price del {
	color: var(--wp--preset--color--tinte);
	opacity: 0.55;
	font-weight: 400;
}

.masche-preis-hinweis {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--tinte);
	opacity: 0.8;
	margin: 0.25rem 0 0;
	font-weight: 400;
}

.masche-preis-hinweis a {
	color: inherit;
}

/* ---------- WooCommerce: Shop-Archiv ---------- */

.masche-shop-layout {
	gap: var(--wp--preset--spacing--60) !important;
}

.masche-filter-spalte .wp-block-woocommerce-product-filters {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 120px);
}

.masche-filter-spalte h3 {
	font-size: var(--wp--preset--font-size--medium) !important;
	margin: 1.5rem 0 0.6rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.woocommerce-breadcrumb,
.wc-block-breadcrumbs {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
}

.woocommerce-breadcrumb a,
.wc-block-breadcrumbs a {
	color: inherit;
	opacity: 0.75;
	text-decoration: none;
}

.wp-block-woocommerce-catalog-sorting select,
.woocommerce-ordering select {
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--sand-dunkel);
	background-color: var(--wp--preset--color--weiss-warm);
	padding: 0.5em 2.2em 0.5em 1em;
	font-family: inherit;
}

.masche-kategorie-text {
	border-top: 1px solid var(--wp--preset--color--sand);
	padding-top: var(--wp--preset--spacing--50);
}

.wp-block-query-pagination {
	gap: 0.4rem;
}

.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination a {
	display: inline-grid;
	place-items: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.6rem;
	border-radius: 999px;
	text-decoration: none;
}

.wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--tinte);
	color: var(--wp--preset--color--creme);
}

/* ---------- WooCommerce: Produktseite ---------- */

.masche-produkt-galerie .woocommerce-product-gallery__image img,
.masche-produkt-galerie .woocommerce-product-gallery .flex-viewport,
.masche-produkt-galerie .woocommerce-product-gallery__wrapper > div:first-child img {
	border-radius: 24px;
}

.masche-produkt-galerie .flex-control-thumbs {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.75rem !important;
}

.masche-produkt-galerie .flex-control-thumbs li {
	width: calc(25% - 0.45rem) !important;
	margin: 0 !important;
	float: none !important;
}

.masche-produkt-galerie .flex-control-thumbs img {
	border-radius: 12px;
	opacity: 0.65;
	transition: opacity 0.2s ease;
}

.masche-produkt-galerie .flex-control-thumbs img.flex-active,
.masche-produkt-galerie .flex-control-thumbs img:hover {
	opacity: 1;
}

.masche-produkt-info .wp-block-post-title {
	margin-top: 0.25rem;
}

.masche-produkt-info .wp-block-woocommerce-product-summary {
	margin-block: 1.25rem;
}

.masche-produkt-info .wp-block-woocommerce-product-summary p {
	margin-block: 0 0.45rem;
}

.masche-produkt-info .wp-block-woocommerce-product-summary img {
	vertical-align: middle;
	max-height: 28px;
	width: auto;
	margin-right: 0.5rem;
}

.masche-produkt-info form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: stretch;
	margin-block: 1.5rem;
}

.masche-produkt-info form.variations_form {
	display: block;
}

.masche-produkt-info form.cart .quantity {
	border-radius: 999px;
	overflow: hidden;
}

.masche-produkt-info .single_add_to_cart_button {
	flex: 1 1 220px;
	min-height: 3rem;
}

.masche-produkt-info .stock.out-of-stock {
	color: var(--wp--preset--color--terracotta-dunkel);
	font-weight: 600;
}

.masche-produkt-info .product_meta,
.masche-produkt-info .wp-block-woocommerce-product-meta {
	font-size: var(--wp--preset--font-size--small);
	opacity: 0.85;
}

.masche-produkt-info .wp-block-woocommerce-product-meta a {
	color: inherit;
}

.masche-infobox ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.masche-infobox li {
	padding-left: 1.6rem;
	position: relative;
	margin-bottom: 0.35rem;
}

/* „Jeder Strang ist ein Unikat“ nur bei handgefärbter Wolle (Body-Klasse aus functions.php) */
.masche-infobox .masche-nur-wolle { display: none; }
.masche-wolle .masche-infobox .masche-nur-wolle { display: list-item; }

.masche-infobox li::before {
	content: "♥";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--terracotta);
}

/* Produkt-Tabs */
.wp-block-woocommerce-product-details .wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	border-bottom: 1px solid var(--wp--preset--color--sand) !important;
	padding: 0 !important;
	margin: 0 0 1.5rem !important;
}

.wp-block-woocommerce-product-details .wc-tabs li {
	border: 0 !important;
	background: transparent !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

.wp-block-woocommerce-product-details .wc-tabs li::before,
.wp-block-woocommerce-product-details .wc-tabs li::after {
	display: none !important;
}

.wp-block-woocommerce-product-details .wc-tabs li a {
	display: block;
	padding: 0.75em 1.1em !important;
	font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 700;
	color: var(--wp--preset--color--tinte) !important;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	margin-bottom: -1px;
}

.wp-block-woocommerce-product-details .wc-tabs li.active a {
	border-bottom-color: var(--wp--preset--color--terracotta);
}

/* ---------- WooCommerce: Formulare, Hinweise, Mini-Warenkorb ---------- */

.woocommerce-store-notice,
.wc-block-components-notice-banner {
	border-radius: 14px;
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
	border-radius: 12px !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer {
	background: var(--wp--preset--color--creme);
}

/* ---------- Formulare allgemein (Kontaktformular, Suche) ---------- */

:where(input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], textarea, select) {
	font: inherit;
	color: inherit;
	border: 1px solid var(--wp--preset--color--sand-dunkel);
	border-radius: 12px;
	background: var(--wp--preset--color--weiss-warm);
	padding: 0.7em 1em;
	max-width: 100%;
}

:where(input, textarea, select):focus {
	border-color: var(--wp--preset--color--terracotta-dunkel);
}

/* ---------- Footer ---------- */

.masche-footer a {
	color: inherit;
	text-decoration: none;
	opacity: 0.85;
}

.masche-footer a:hover {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.masche-footer .wp-block-list {
	list-style: none;
	padding: 0;
}

.masche-footer .wp-block-list li {
	margin-bottom: 0.45rem;
}

.masche-footer-rechtliches a {
	opacity: 0.7;
}

.masche-footer .wp-block-social-links .wp-social-link {
	background: color-mix(in srgb, var(--wp--preset--color--creme) 12%, transparent) !important;
	color: var(--wp--preset--color--creme) !important;
}

/* ---------- Kleinkram ---------- */

.masche-trenner-text {
	display: flex;
	align-items: center;
	gap: 1rem;
}

hr.wp-block-separator:not(.has-text-color) {
	border-color: var(--wp--preset--color--sand);
	opacity: 1;
}

@media (max-width: 781px) {
	.masche-mobil-zentriert {
		text-align: center;
	}
	.masche-mobil-zentriert .wp-block-buttons {
		justify-content: center;
	}
}

/* ==========================================================================
   Effekte – modern & hochwertig
   Fast alles reines CSS. Browser ohne Unterstützung zeigen die Seite einfach
   statisch; bei „Bewegung reduzieren“ (Betriebssystem) ist alles ruhig.
   ========================================================================== */

/* Weiche Überblendung zwischen Seiten */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

/* Feine Papier-Struktur im Hintergrund */
body {
	overflow-x: clip;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .2 0 0 0 0 .18 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Kopfbereich: beim Scrollen schlanker und mattglasig (Klasse von masche.js) ---------- */

.masche-header {
	position: relative;
	background-color: var(--wp--preset--color--creme);
	transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.masche-header .wp-block-site-logo img { transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.masche-gescrollt .masche-header {
	background-color: color-mix(in srgb, var(--wp--preset--color--creme) 76%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
	padding-top: 0.3rem !important;
	padding-bottom: 0.3rem !important;
	box-shadow: 0 1px 0 color-mix(in srgb, var(--wp--preset--color--sand-dunkel) 60%, transparent), 0 12px 32px rgba(60, 52, 42, 0.08);
}
.masche-gescrollt .masche-header .wp-block-site-logo img { width: 88px !important; }
@media (max-width: 599px) { .masche-gescrollt .masche-header .wp-block-site-logo img { width: 76px !important; } }

/* Handymenü: Einträge bauen sich nacheinander auf */
.masche-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-size: 1.6rem;
}
@media (prefers-reduced-motion: no-preference) {
	.masche-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
		animation: masche-rein 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}
	.masche-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: 0.07s; }
	.masche-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: 0.14s; }
	.masche-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: 0.21s; }
}

/* Menü: Unterstrich wächst von links */
.masche-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { position: relative; }
.masche-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0.15em; height: 2px; border-radius: 2px;
	background: var(--wp--preset--color--terracotta); transform: scaleX(0); transform-origin: right;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-header .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.masche-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1); transform-origin: left;
}
.masche-header .wp-block-navigation__submenu-container { padding: 0.45rem !important; }
.masche-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 10px; transition: background-color 0.15s; }
.masche-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--sand); }
.masche-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }

/* ---------- Buttons: Lichtreflex und Pfeil ---------- */

.wp-block-button__link { position: relative; overflow: hidden; isolation: isolate; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
	translate: -110% 0; transition: translate 0.75s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover::before { translate: 110% 0; }

/* Klasse „masche-pfeil“ (Block → Erweitert → Zusätzliche CSS-Klasse) */
.masche-pfeil .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: 0.45em; transition: translate 0.25s ease; }
.masche-pfeil .wp-block-button__link:hover::after { translate: 4px 0; }

.masche-link-pfeil { margin: 0; }
.masche-link-pfeil a {
	display: inline-flex; align-items: center; gap: 0.45em; text-decoration: none;
	color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand); font-weight: 700;
	border-bottom: 1.5px solid var(--wp--preset--color--sand-dunkel); padding-bottom: 0.2em;
	transition: color 0.2s, border-color 0.2s;
}
.masche-link-pfeil a::after { content: "→"; transition: translate 0.25s ease; }
.masche-link-pfeil a:hover { color: var(--wp--preset--color--terracotta-dunkel); border-color: var(--wp--preset--color--terracotta-dunkel); }
.masche-link-pfeil a:hover::after { translate: 4px 0; }

.masche-kopf-reihe h2 { margin: 0; }

/* ---------- Hero ---------- */

@keyframes masche-rein { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes masche-strich { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes masche-schweben { 50% { translate: 0 -9px; } }
@keyframes masche-drehen { to { rotate: 360deg; } }
@keyframes masche-treiben { 50% { translate: 3vw 2vw; scale: 1.08; } }

.masche-hero { position: relative; isolation: isolate; }
.masche-hero::before, .masche-hero::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; aspect-ratio: 1;
}
.masche-hero::before { width: min(52vw, 760px); right: -10vw; top: -14vw; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--salbei) 22%, transparent), color-mix(in srgb, var(--wp--preset--color--salbei) 0%, transparent) 66%); }
.masche-hero::after { width: min(44vw, 620px); left: -14vw; bottom: -16vw; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--terracotta) 20%, transparent), color-mix(in srgb, var(--wp--preset--color--terracotta) 0%, transparent) 66%); }
.masche-hero h1 { font-size: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem) !important; line-height: 1.02; letter-spacing: -0.03em; }
.masche-hero h1 em { font-style: normal; white-space: nowrap; position: relative; }
.masche-hero h1 em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 0.34em; pointer-events: none;
	background: var(--wp--preset--color--terracotta);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M3 15C38 4 70 4 100 12s72 9 97-5' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M3 15C38 4 70 4 100 12s72 9 97-5' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.masche-hero-vertrauen {
	list-style: none; padding: 0; margin-top: var(--wp--preset--spacing--40);
	display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; font-size: 0.9rem; opacity: 0.85;
}
.masche-hero-collage { position: relative; }
.masche-hero-haupt { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--wp--preset--shadow--karte-hover); }
.masche-hero-haupt img { width: 100%; aspect-ratio: 5/4; object-fit: cover; display: block; }
@keyframes masche-kenburns { from { scale: 1; } to { scale: 1.08; translate: -1.5% -1%; } }
.masche-stempel { position: absolute; top: -38px; left: -38px; width: 136px; height: 136px; z-index: 2; margin: 0 !important; }
.masche-stempel svg { width: 100%; height: 100%; display: block; }
.masche-stempel circle { fill: var(--wp--preset--color--weiss-warm); }
.masche-stempel text {
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 13px; letter-spacing: 2.4px;
	fill: var(--wp--preset--color--terracotta-dunkel); text-transform: uppercase;
}
.masche-stempel-herz { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; color: var(--wp--preset--color--terracotta); }
.masche-neu-karte {
	position: absolute; left: -30px; bottom: -30px; z-index: 2; max-width: 300px;
	display: flex; gap: 0.85rem; align-items: center; text-decoration: none; color: var(--wp--preset--color--tinte);
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 90%, transparent); border-radius: 20px; padding: 0.6rem 1.1rem 0.6rem 0.6rem;
	box-shadow: var(--wp--preset--shadow--karte-hover);
}
.masche-neu-karte:hover { color: var(--wp--preset--color--tinte); }
.masche-neu-karte img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.masche-neu-karte small { display: block; font-family: var(--wp--preset--font-family--caveat); font-weight: 700; font-size: 1.15rem; line-height: 1; color: var(--wp--preset--color--terracotta-dunkel); }
.masche-neu-karte strong { display: block; font-family: var(--wp--preset--font-family--quicksand); font-size: 0.95rem; line-height: 1.3; margin: 0.15rem 0; }
.masche-neu-karte-preis { font-weight: 700; color: var(--wp--preset--color--salbei-dunkel); font-size: 0.9rem; }

@media (prefers-reduced-motion: no-preference) {
	.masche-hero-text > * { animation: masche-rein 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.masche-hero-text > :nth-child(2) { animation-delay: 0.08s; }
	.masche-hero-text > :nth-child(3) { animation-delay: 0.16s; }
	.masche-hero-text > :nth-child(4) { animation-delay: 0.24s; }
	.masche-hero-text > :nth-child(5) { animation-delay: 0.32s; }
	.masche-hero-collage { animation: masche-rein 1.1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.masche-hero h1 em::after { animation: masche-strich 1.1s 0.75s cubic-bezier(0.6, 0, 0.2, 1) both; }
	.masche-stempel svg { animation: masche-drehen 26s linear infinite; }
	.masche-neu-karte { animation: masche-schweben 6s ease-in-out infinite; }
	.masche-hero-haupt img { animation: masche-kenburns 22s ease-in-out infinite alternate; }
	.masche-hero::before { animation: masche-treiben 18s ease-in-out infinite; }
	.masche-hero::after { animation: masche-treiben 22s ease-in-out infinite reverse; }
}
@media (max-width: 781px) {
	.masche-hero-vertrauen { justify-content: center; }
	.masche-stempel { width: 100px; height: 100px; top: -26px; left: -6px; }
	.masche-neu-karte { left: 12px; right: 12px; bottom: -34px; max-width: none; }
	.masche-hero-collage { margin-bottom: 30px; }
}

/* ---------- Vorteile: Icons in Kreisen ---------- */

.masche-vorteile { border-radius: 28px; }
.masche-vorteil-icon {
	width: 78px; height: 78px; border-radius: 50%; margin: 0 !important;
	background: var(--wp--preset--color--weiss-warm); box-shadow: var(--wp--preset--shadow--weich);
	display: grid; place-items: center; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-vorteil .masche-vorteil-icon img { width: 46px; height: 46px; object-fit: contain; }
.masche-vorteil:hover .masche-vorteil-icon { transform: translateY(-5px) rotate(-6deg); }

/* ---------- Kategorien als Bento-Raster ---------- */

.masche-bento { grid-auto-rows: clamp(190px, 19vw, 280px); }
.masche-bento-kachel {
	position: relative; overflow: hidden; isolation: isolate; border-radius: 24px;
	background: var(--wp--preset--color--sand); box-shadow: var(--wp--preset--shadow--weich); transition: box-shadow 0.3s ease;
}
.masche-bento-kachel:hover { box-shadow: var(--wp--preset--shadow--karte-hover); }
.masche-bento > .masche-bento-kachel.gross { grid-column: span 2; grid-row: span 2; }
.masche-bento > .masche-bento-kachel.quer { grid-column: span 2; }
.masche-bento-kachel .wp-block-image { position: absolute; inset: 0; margin: 0; z-index: -2; }
.masche-bento-kachel .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.masche-bento-kachel::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(46, 42, 36, 0.78), rgba(46, 42, 36, 0.12) 50%, rgba(46, 42, 36, 0) 75%);
}
.masche-bento-kachel:hover .wp-block-image img { scale: 1.06; }
/* Der Textkasten deckt die ganze Kachel ab (Text unten), damit der Link (h3 a::after) überall greift. */
.masche-bento-text {
	position: absolute; inset: 0; margin: 0 !important; color: #fff;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: var(--wp--preset--spacing--40); padding-right: calc(var(--wp--preset--spacing--40) + 3.4rem);
}
.masche-bento-text h3 { color: #fff; margin: 0; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.45rem); }
.masche-bento-kachel.gross .masche-bento-text h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }
.masche-bento-text h3 a { color: inherit; text-decoration: none; }
.masche-bento-text h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.masche-bento-text p { margin: 0.25rem 0 0; font-size: var(--wp--preset--font-size--small); opacity: 0.88; }
.masche-bento-text::after {
	content: "→"; position: absolute; right: var(--wp--preset--spacing--40); bottom: var(--wp--preset--spacing--40);
	width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 94%, transparent); color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.1rem;
	rotate: -45deg; transition: rotate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.3s, color 0.3s;
}
.masche-bento-kachel:hover .masche-bento-text::after { rotate: 0deg; background: var(--wp--preset--color--terracotta-dunkel); color: var(--wp--preset--color--weiss); }
@media (max-width: 781px) {
	.masche-bento { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 170px; }
	.masche-bento-text { padding: 0.85rem; padding-right: 3.4rem; }
	.masche-bento-text h3 { font-size: 1rem; }
	.masche-bento-kachel.gross .masche-bento-text h3 { font-size: 1.5rem; }
	.masche-bento-text::after { width: 2.2rem; height: 2.2rem; font-size: 0.95rem; right: 0.85rem; bottom: 0.85rem; }
}

/* ---------- Produktkarten: zweites Foto beim Darüberfahren ---------- */

.wc-block-product .wc-block-components-product-image a { position: relative; display: block; overflow: hidden; }
.wc-block-product .wc-block-components-product-image img { transition: scale 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease; }
.wc-block-product .masche-bild-2 { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; }
@media (hover: hover) {
	.wc-block-product:hover .wc-block-components-product-image img { scale: 1.05; }
	.wc-block-product:hover .masche-bild-2 { opacity: 1; }
}

/* Auf dem Handy seitlich wischen (Klasse „masche-wischen“ an der Produktsammlung) */
@media (max-width: 781px) {
	.masche-wischen .wc-block-product-template {
		display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem !important;
		margin-inline: calc(-1 * var(--wp--style--root--padding-right, 1rem)) !important;
		padding: 0.25rem var(--wp--style--root--padding-right, 1rem) 1.25rem !important;
		scroll-padding-inline: var(--wp--style--root--padding-right, 1rem); scrollbar-width: none;
	}
	.masche-wischen .wc-block-product-template::-webkit-scrollbar { display: none; }
	.masche-wischen .wc-block-product-template > .wc-block-product { flex: 0 0 68% !important; max-width: none !important; scroll-snap-align: start; }
}

/* ---------- Über mich: Collage mit Unterschrift ---------- */

.masche-ueber-collage { position: relative; padding: 0 0 14% 14%; }
.masche-ueber-collage .masche-gross-bild { margin: 0; }
.masche-ueber-collage .masche-gross-bild img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px; box-shadow: var(--wp--preset--shadow--karte-hover); }
.masche-ueber-collage .masche-klein-bild { position: absolute; left: 0; bottom: 0; width: 40%; margin: 0; rotate: -4deg; }
.masche-ueber-collage .masche-klein-bild img {
	width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 28% 50%;
	border: 6px solid var(--wp--preset--color--creme); border-radius: 22px; box-shadow: var(--wp--preset--shadow--karte-hover);
}
.masche-unterschrift {
	position: absolute; right: 4%; bottom: 2%; margin: 0 !important; rotate: -6deg;
	font-family: var(--wp--preset--font-family--caveat); font-weight: 700; line-height: 1;
	font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--wp--preset--color--terracotta-dunkel);
}
@keyframes masche-schwebt-hoch { from { translate: 0 40px; } to { translate: 0 -20px; } }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.masche-ueber-collage .masche-klein-bild { animation: masche-schwebt-hoch linear both; animation-timeline: view(); }
	}
}

/* ---------- Fußbereich: großer Schriftzug ---------- */

.masche-footer { overflow: clip; }
.masche-footer-gross {
	margin: var(--wp--preset--spacing--50) 0 -0.12em !important; text-align: center; white-space: nowrap;
	color: var(--wp--preset--color--terracotta); font-family: var(--wp--preset--font-family--caveat); font-weight: 700;
	font-size: clamp(2rem, calc((100vw - 2.5rem) / 9.8), 10rem); line-height: 0.95; letter-spacing: -0.01em;
}

/* ---------- Shop: Unterkategorien als Pillen ---------- */

.masche-unterkategorien { display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding: 0.15rem 0 0.35rem; margin-top: var(--wp--preset--spacing--30); }
.masche-unterkategorien::-webkit-scrollbar { display: none; }
.masche-unterkategorien a {
	flex: none; border: 1.5px solid var(--wp--preset--color--sand-dunkel); border-radius: 999px; padding: 0.45em 1.1em;
	background: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte); text-decoration: none;
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.9rem; line-height: 1.3;
	transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.masche-unterkategorien a:hover { border-color: var(--wp--preset--color--tinte); color: var(--wp--preset--color--tinte); }
.masche-unterkategorien a span { font-weight: 500; opacity: 0.55; margin-left: 0.3em; }
.masche-unterkategorien a[aria-current="page"] { background: var(--wp--preset--color--tinte); border-color: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme); }

/* ---------- Produktseite: mitlaufende Kaufleiste (assets/masche.js) ---------- */

.masche-kaufleiste {
	position: fixed; left: 50%; bottom: 1rem; z-index: 150; translate: -50% 160%;
	width: min(720px, calc(100% - 2rem)); display: flex; align-items: center; gap: 0.85rem;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 86%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
	border: 1px solid var(--wp--preset--color--sand); border-radius: 999px; padding: 0.45rem 0.45rem 0.45rem 0.5rem;
	box-shadow: var(--wp--preset--shadow--karte-hover); transition: translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-kaufleiste.ist-sichtbar { translate: -50% 0; }
.masche-kaufleiste img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.masche-kaufleiste-name {
	flex: 1; min-width: 0; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.95rem; line-height: 1.25;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.masche-kaufleiste-preis { display: block; color: var(--wp--preset--color--salbei-dunkel); font-family: var(--wp--preset--font-family--hind); }
.masche-kaufleiste-preis del { opacity: 0.55; font-weight: 400; color: var(--wp--preset--color--tinte); }
.masche-kaufleiste .wp-element-button { flex: none; padding: 0.7em 1.4em; box-shadow: none; }
@keyframes masche-aufleuchten { 0%, 100% { box-shadow: none; } 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--terracotta) 35%, transparent); } }
.masche-blinkt { animation: masche-aufleuchten 1.2s ease 2; border-radius: 14px; }

/* ==========================================================================
   Bausteine v3 – funktionieren auf Handy, Tablet und Desktop
   (gleicher Code in Theme und Vorschau)
   ========================================================================== */

/* ---------- Lesefortschritt unter dem Kopfbereich ---------- */

.masche-fortschritt {
	position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
	background: linear-gradient(90deg, var(--wp--preset--color--terracotta), var(--wp--preset--color--salbei));
	transform-origin: left center; transform: scaleX(var(--masche-scroll, 0)); border-radius: 0 3px 3px 0;
}

/* ---------- Einblenden beim Scrollen (masche.js) ---------- */

.masche-js .masche-warte { opacity: 0; translate: 0 36px; }
.masche-js .masche-da {
	opacity: 1; translate: 0 0;
	transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: var(--masche-verz, 0s);
}

/* ---------- Antippen fühlt sich an wie eine App ---------- */

.wp-element-button:active, .wp-block-button__link:active, .btn:active,
.masche-unterkategorien a:active, .unterkats a:active, .pille:active,
.masche-stapel-steuerung button:active, .icon-knopf:active {
	scale: 0.95; transition: scale 0.1s ease;
}
@media (hover: none) {
	.wc-block-product-template .wc-block-product:hover, .is-style-karte-hover:hover, .pk:hover, .karte-hover:hover {
		transform: none;
	}
	.wc-block-product:active, .pk:active, .masche-bento-kachel:active, .bento-kachel:active { scale: 0.985; transition: scale 0.12s ease; }
}

/* ---------- Ins-Warenkorb-Flug ---------- */

.masche-flieger {
	position: fixed; z-index: 500; object-fit: cover; pointer-events: none;
	border-radius: 20px; box-shadow: 0 18px 40px rgba(46, 42, 36, 0.3); will-change: transform;
}
@keyframes masche-huepf { 0% { scale: 1; } 30% { scale: 1.28; } 55% { scale: 0.9; } 75% { scale: 1.08; } 100% { scale: 1; } }
.masche-huepf { animation: masche-huepf 0.65s cubic-bezier(0.3, 1.5, 0.5, 1); }

/* ---------- Farbstapel ---------- */

@property --masche-stapel-farbe { syntax: "<color>"; inherits: true; initial-value: #EBE4DB; }

.masche-farben {
	position: relative; isolation: isolate;
	background-color: var(--wp--preset--color--creme);
	background-color: color-mix(in srgb, var(--masche-stapel-farbe) 17%, var(--wp--preset--color--creme));
	transition: --masche-stapel-farbe 0.9s ease;
}
.masche-farbstapel { position: relative; width: min(400px, 100%); margin-inline: auto; padding-bottom: 0.5rem; isolation: isolate; }
.masche-farbstapel::before {
	content: ""; position: absolute; inset: -14% -20% -4%; z-index: -1; pointer-events: none;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--masche-stapel-farbe) 60%, transparent), transparent);
	filter: blur(24px);
}

/* Ohne JavaScript: einfache, wischbare Reihe */
.masche-stapel-karten { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.masche-stapel-karte {
	position: relative; flex: 0 0 78%; aspect-ratio: 4/5; scroll-snap-align: center;
	display: block; border-radius: 26px; overflow: hidden; color: inherit; text-decoration: none;
	background: var(--wp--preset--color--sand); box-shadow: 0 22px 48px rgba(46, 42, 36, 0.2);
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
.masche-stapel-karte img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; display: block; }
.masche-stapel-info {
	position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
	display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
	padding: 0.75rem 1rem; border-radius: 18px; color: var(--wp--preset--color--tinte);
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.masche-stapel-info strong { font-family: var(--wp--preset--font-family--quicksand); font-size: 1rem; line-height: 1.25; }
.masche-stapel-preis { font-weight: 700; color: var(--wp--preset--color--salbei-dunkel); white-space: nowrap; }
.masche-stapel-steuerung, .masche-stapel-hinweis { display: none; }

/* Mit JavaScript: Stapel */
.masche-farbstapel.ist-aktiv .masche-stapel-karten { display: block; position: relative; aspect-ratio: 4/5; overflow: visible; padding: 0; }
.masche-farbstapel.ist-aktiv .masche-stapel-karte {
	position: absolute; inset: 0; touch-action: pan-y; cursor: grab;
	transform-origin: 50% 85%;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease, box-shadow 0.4s ease;
}
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-pos="0"] { transform: none; }
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-pos="1"] { transform: translate(14px, 12px) rotate(5deg) scale(0.95); box-shadow: 0 14px 30px rgba(46, 42, 36, 0.15); }
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-pos="2"] { transform: translate(-16px, 20px) rotate(-6deg) scale(0.91); box-shadow: 0 10px 24px rgba(46, 42, 36, 0.12); }
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-pos="3"] { transform: translate(0, 26px) scale(0.86); opacity: 0; }
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-pos="1"] .masche-stapel-info,
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-pos="2"] .masche-stapel-info { opacity: 0; }
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-flug="links"] { transform: translate(-135%, -30px) rotate(-24deg) !important; opacity: 0; }
.masche-farbstapel.ist-aktiv .masche-stapel-karte[data-flug="rechts"] { transform: translate(135%, -30px) rotate(24deg) !important; opacity: 0; }
.masche-farbstapel .masche-stapel-karte.ist-ziehen { cursor: grabbing; }
.masche-farbstapel .ist-ziehen, .masche-farbstapel .ohne-uebergang { transition: none !important; }
.masche-stapel-info { transition: opacity 0.3s ease; }

.masche-farbstapel.ist-aktiv .masche-stapel-steuerung {
	display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.2rem;
}
.masche-stapel-steuerung button {
	width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
	background: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte);
	border: 1px solid var(--wp--preset--color--sand-dunkel); box-shadow: var(--wp--preset--shadow--weich);
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.masche-stapel-steuerung button:hover { background: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme); border-color: var(--wp--preset--color--tinte); }
.masche-stapel-zaehler {
	min-width: 11rem; text-align: center; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.95rem;
	font-variant-numeric: tabular-nums;
}
.masche-farbstapel.ist-aktiv .masche-stapel-hinweis {
	display: block; position: absolute; top: -1.4rem; right: -0.5rem; z-index: 30; margin: 0; rotate: 8deg;
	font-family: var(--wp--preset--font-family--caveat); font-weight: 700; font-size: 1.6rem; line-height: 1;
	color: var(--wp--preset--color--terracotta-dunkel); pointer-events: none; transition: opacity 0.4s ease;
}
.masche-farbstapel.ist-benutzt .masche-stapel-hinweis { opacity: 0; }
.masche-farben-tipp { opacity: 0.75; }

@keyframes masche-stupsen {
	0%, 100% { translate: 0 0; rotate: 0deg; }
	25% { translate: -28px 0; rotate: -5deg; }
	55% { translate: 18px 0; rotate: 3deg; }
	80% { translate: -6px 0; rotate: -1deg; }
}
.masche-stapel-karte.stupst { animation: masche-stupsen 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: no-preference) {
	@keyframes masche-wippen { 50% { translate: 0 -5px; } }
	.masche-farbstapel.ist-aktiv:not(.ist-benutzt) .masche-stapel-hinweis { animation: masche-wippen 2.4s ease-in-out infinite; }
}
@media (max-width: 600px) {
	.masche-farbstapel { width: min(320px, 82%); }
	.masche-farbstapel.ist-aktiv .masche-stapel-hinweis { right: -1rem; font-size: 1.35rem; }
}

/* ---------- Wollfinder: Karten schieben sich beim Scrollen übereinander ---------- */

.masche-wollfinder { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--50); margin-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--40); }
.masche-finder-karte {
	--masche-finder-bg: var(--wp--preset--color--weiss-warm);
	position: sticky; top: calc(var(--masche-kopf, 120px) + 1rem + var(--i, 0) * 16px);
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	min-height: min(470px, calc(100svh - var(--masche-kopf, 120px) - 3rem));
	border-radius: 28px; overflow: hidden; background: var(--masche-finder-bg);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand-dunkel) 55%, transparent);
	box-shadow: 0 -12px 34px rgba(60, 52, 42, 0.08), 0 18px 40px rgba(60, 52, 42, 0.08);
}
.masche-finder-karte:nth-child(2) { --masche-finder-bg: var(--wp--preset--color--salbei-hell); }
.masche-finder-karte:nth-child(3) { --masche-finder-bg: color-mix(in srgb, var(--wp--preset--color--terracotta) 13%, var(--wp--preset--color--weiss-warm)); }
.masche-finder-karte:nth-child(4) { --masche-finder-bg: var(--wp--preset--color--sand); }
.masche-finder-bild { position: relative; min-height: 220px; overflow: hidden; }
.masche-finder-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.masche-finder-text { padding: clamp(1.25rem, 0.8rem + 2.4vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 0.85rem; }
.masche-finder-text > * { margin: 0; }
.masche-finder-nr { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; color: var(--wp--preset--color--terracotta-dunkel); }
.masche-finder-text h3 { font-size: var(--wp--preset--font-size--x-large); line-height: 1.1; }
.masche-finder-beschreibung { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.masche-finder-daten { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.masche-finder-daten li {
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 60%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand-dunkel) 75%, transparent); border-radius: 14px;
	padding: 0.45rem 0.8rem; font-size: 0.9rem; line-height: 1.3; font-weight: 600;
}
.masche-finder-daten small { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.masche-finder-link { margin-top: 0.4rem !important; }
.masche-finder-link .wp-element-button { display: inline-flex; gap: 0.45em; text-decoration: none; }
.masche-finder-link .wp-element-button::after { content: "→"; transition: translate 0.25s ease; }
.masche-finder-link .wp-element-button:hover::after { translate: 4px 0; }
@media (max-width: 781px) {
	.masche-finder-karte {
		grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 0;
		top: calc(var(--masche-kopf, 120px) + 0.5rem + var(--i, 0) * 10px);
	}
	.masche-finder-bild { min-height: 0; height: clamp(130px, 24svh, 220px); }
	.masche-finder-text { padding: 1.1rem 1.2rem 1.3rem; gap: 0.6rem; }
	.masche-finder-text h3 { font-size: 1.5rem; }
	.masche-finder-beschreibung { -webkit-line-clamp: 2; font-size: var(--wp--preset--font-size--small); }
	.masche-finder-daten li { font-size: 0.8rem; padding: 0.35rem 0.6rem; }
}

/* ---------- Produktseite: Leuchten in der Produktfarbe ---------- */

.masche-produkt-galerie, .galerie { isolation: isolate; }
.masche-produkt-galerie { position: relative; }
.masche-produkt-galerie::before, .galerie::before {
	content: ""; position: absolute; inset: -6% -8% -2%; z-index: -1; pointer-events: none;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--masche-produktfarbe, transparent) 50%, transparent), transparent);
	filter: blur(28px);
}
.masche-stapel-steuerung svg { width: 22px; height: 22px; }

/* ==========================================================================
   Nachtmodus (augenschonend)
   Warm statt kaltblau, kein reines Schwarz/Weiß, Bilder leicht gedimmt.
   Aktiv über <html data-modus="dunkel"> – Standard ist hell,
   der Mond-Knopf im Kopfbereich schaltet um (wird gemerkt).
   ========================================================================== */

:root[data-modus="dunkel"] {
	color-scheme: dark;
	--wp--preset--color--creme: #15120F;
	--wp--preset--color--weiss-warm: #1F1B17;
	--wp--preset--color--sand: #2B2621;
	--wp--preset--color--sand-dunkel: #463E35;
	--wp--preset--color--salbei-hell: #1B2520;
	--wp--preset--color--salbei: #7DB898;
	--wp--preset--color--salbei-dunkel: #93CBAD;
	--wp--preset--color--terracotta: #E48D72;
	--wp--preset--color--terracotta-dunkel: #EA9F86;
	--wp--preset--color--tinte: #EDE5DA;
	--wp--preset--color--espresso: #0E1311;
	--wp--preset--color--weiss: #15120F;
	--wp--preset--shadow--weich: 0 12px 30px rgba(0, 0, 0, 0.35);
	--wp--preset--shadow--karte-hover: 0 18px 44px rgba(0, 0, 0, 0.5);
	--wp--preset--shadow--button: 0 8px 22px rgba(0, 0, 0, 0.4);
	--wp--preset--shadow--button-hover: 0 12px 28px rgba(0, 0, 0, 0.5);
}
:root[data-modus="dunkel"] body { background-image: none; }
:root[data-modus="dunkel"] :where(.wp-element-button, .wp-block-button__link):hover { background-color: #F4B9A6; }

/* Bilder etwas gedimmt – angenehmer bei Nacht */
:root[data-modus="dunkel"] img { filter: brightness(0.9); }
/* Schwarzes Logo und schwarze Strich-Icons hell machen */
:root[data-modus="dunkel"] .wp-block-site-logo img,
:root[data-modus="dunkel"] .masche-vorteil-icon img,
:root[data-modus="dunkel"] .wp-block-woocommerce-product-summary img,
:root[data-modus="dunkel"] .wp-block-woocommerce-product-details img[src$=".png"] {
	filter: invert(1) hue-rotate(180deg) brightness(1.05);
}

/* Text auf den dunklen Flächen (Infoleiste, Fußbereich) */
:root[data-modus="dunkel"] .masche-topbar.has-creme-color,
:root[data-modus="dunkel"] .masche-footer.has-creme-color,
:root[data-modus="dunkel"] .masche-footer .has-creme-color,
:root[data-modus="dunkel"] .masche-footer a:not(.wp-element-button),
:root[data-modus="dunkel"] .masche-topbar a {
	color: var(--wp--preset--color--tinte) !important;
}
:root[data-modus="dunkel"] .masche-footer .wp-social-link {
	color: var(--wp--preset--color--tinte) !important;
	background: color-mix(in srgb, var(--wp--preset--color--tinte) 12%, transparent) !important;
}
:root[data-modus="dunkel"] .masche-footer hr.wp-block-separator {
	background-color: var(--wp--preset--color--sand) !important;
	color: var(--wp--preset--color--sand) !important;
}

/* WooCommerce-Formulare, Mini-Warenkorb, Hinweise */
:root[data-modus="dunkel"] .wc-block-components-text-input input,
:root[data-modus="dunkel"] .wc-block-components-combobox .wc-block-components-combobox-control input,
:root[data-modus="dunkel"] .wc-blocks-components-select .wc-blocks-components-select__select,
:root[data-modus="dunkel"] .wc-block-components-textarea,
:root[data-modus="dunkel"] .woocommerce form .form-row .input-text {
	background-color: var(--wp--preset--color--weiss-warm) !important;
	color: var(--wp--preset--color--tinte) !important;
	border-color: var(--wp--preset--color--sand-dunkel) !important;
}
:root[data-modus="dunkel"] .wc-block-components-text-input label,
:root[data-modus="dunkel"] .wc-blocks-components-select__label {
	color: color-mix(in srgb, var(--wp--preset--color--tinte) 72%, transparent) !important;
}
:root[data-modus="dunkel"] .wc-block-components-drawer,
:root[data-modus="dunkel"] .wc-block-components-notice-banner {
	background-color: var(--wp--preset--color--weiss-warm);
	color: var(--wp--preset--color--tinte);
}

/* ---------- Umschalter (Mond/Sonne) mit Kreis-Übergang ---------- */

.masche-modus-knopf { display: none; }
:root[data-modus] .masche-modus-knopf {
	display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0;
	border: 0; border-radius: 999px; background: transparent; color: inherit; cursor: pointer;
}
.masche-modus-knopf:hover { background: var(--wp--preset--color--sand); }
.masche-modus-knopf svg {
	grid-area: 1 / 1; width: 22px; height: 22px;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
:root[data-modus="dunkel"] .masche-modus-knopf .masche-mond,
:root:not([data-modus="dunkel"]) .masche-modus-knopf .masche-sonne { transform: rotate(90deg) scale(0.3); opacity: 0; }

@keyframes masche-modus-kreis {
	from { clip-path: circle(0 at var(--masche-modus-x, 50%) var(--masche-modus-y, 0)); }
	to { clip-path: circle(var(--masche-modus-r, 150%) at var(--masche-modus-x, 50%) var(--masche-modus-y, 0)); }
}
.masche-modus-wechsel::view-transition-old(root),
.masche-modus-wechsel::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.masche-modus-wechsel::view-transition-new(root) { animation: masche-modus-kreis 0.7s cubic-bezier(0.6, 0, 0.2, 1); }

/* ---------- Lebende Farb-Collagen aus den Produktfotos ---------- */

.masche-collage { position: absolute; inset: 0; display: grid; }
.masche-collage-kachel {
	position: relative; isolation: isolate; display: block; overflow: hidden;
	background: var(--farbe, var(--wp--preset--color--sand));
	-webkit-tap-highlight-color: transparent;
}
.masche-collage .masche-collage-kachel img {
	position: absolute; inset: 0; z-index: auto; width: 100%; height: 100%; object-fit: cover;
	transition: scale 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.55s ease;
}
.masche-collage-kachel.wechselt img { opacity: 0; }

/* Wollfinder: Mosaik – 1 große + 5 kleine Kacheln, Farbname beim Darüberfahren */
.masche-finder-bild .masche-collage {
	gap: 6px; padding: 6px 0 6px 6px;
	grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr));
}
.masche-finder-bild .masche-collage-kachel { border-radius: 14px; }
.masche-finder-bild .masche-collage-kachel:first-child { grid-column: span 2; grid-row: span 2; border-radius: 22px; }
.masche-collage-kachel span {
	position: absolute; left: 0.5rem; bottom: 0.5rem; max-width: calc(100% - 1rem);
	padding: 0.25em 0.75em; border-radius: 999px; pointer-events: none;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 88%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 700; font-size: 0.78rem; line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0; translate: 0 6px; transition: opacity 0.25s ease, translate 0.25s ease;
}
.masche-collage-kachel:first-child span { opacity: 1; translate: 0 0; font-size: 0.85rem; left: 0.7rem; bottom: 0.7rem; }
.masche-collage-kachel.wechselt span { opacity: 0; }
@media (hover: hover) {
	.masche-finder-bild .masche-collage-kachel:hover img { scale: 1.08; }
	.masche-collage-kachel:hover span, .masche-collage-kachel:focus-visible span { opacity: 1; translate: 0 0; }
}
@media (max-width: 781px) {
	.masche-finder-bild { height: clamp(150px, 26svh, 240px); }
	.masche-finder-bild .masche-collage { padding: 6px 6px 0; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
	.masche-finder-bild .masche-collage-kachel:nth-child(n+6) { display: none; }
	.masche-finder-bild .masche-collage-kachel { border-radius: 12px; }
	.masche-finder-bild .masche-collage-kachel:first-child { border-radius: 18px; }
	.masche-collage-kachel:first-child span { font-size: 0.75rem; left: 0.5rem; bottom: 0.5rem; }
}

/* Kategorie-Kacheln: Farbwand (gleichmäßiges Raster), die ganze Kachel bleibt ein Link */
.masche-bento-bild {
	position: absolute; inset: 0; z-index: -2; overflow: hidden;
	transition: scale 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-bento-bild > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.masche-collage--wand {
	gap: 3px; background: var(--wp--preset--color--sand);
	grid-template-columns: repeat(var(--spalten, 2), minmax(0, 1fr));
	grid-template-rows: repeat(var(--zeilen, 2), minmax(0, 1fr));
}
.masche-bento-kachel:hover .masche-bento-bild, .bento-kachel:hover .masche-bento-bild { scale: 1.05; }

/* ---------- Farbband auf Shop- & Kategorieseiten (nach Farbton sortiert) ---------- */

.masche-farbband { margin-top: var(--wp--preset--spacing--40); }
.masche-farbband-reihe { display: flex; gap: 6px; height: clamp(84px, 8vw, 120px); }
.masche-farbband-kachel {
	position: relative; isolation: isolate; display: block; flex: 1 1 0; min-width: 0;
	border-radius: 16px; overflow: hidden; background: var(--farbe, var(--wp--preset--color--sand));
	transition: flex-grow 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
	-webkit-tap-highlight-color: transparent;
}
.masche-farbband-kachel img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-farbband-kachel span {
	position: absolute; left: 0.45rem; bottom: 0.45rem; max-width: calc(100% - 0.9rem);
	padding: 0.2em 0.65em; border-radius: 999px; pointer-events: none;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 88%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 700; font-size: 0.75rem; line-height: 1.3;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0; translate: 0 5px; transition: opacity 0.25s ease 0.1s, translate 0.25s ease 0.1s;
}
@media (hover: hover) {
	.masche-farbband-kachel:hover, .masche-farbband-kachel:focus-visible { flex-grow: 2.8; }
	.masche-farbband-kachel:hover img { scale: 1.06; }
	.masche-farbband-kachel:hover span, .masche-farbband-kachel:focus-visible span { opacity: 1; translate: 0 0; }
}
.masche-farbband-verlauf {
	height: 4px; margin-top: 8px; border-radius: 4px; background: var(--verlauf); opacity: 0.85;
}
@keyframes masche-band-rein { from { opacity: 0; translate: 0 14px; scale: 0.92; } }
@keyframes masche-band-linie { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
	.masche-farbband-kachel { animation: masche-band-rein 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
	.masche-farbband-verlauf { animation: masche-band-linie 1.1s 0.25s cubic-bezier(0.6, 0, 0.2, 1) both; }
}
@media (max-width: 781px) {
	.masche-farbband-reihe {
		height: 84px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
		margin-inline: calc(-1 * var(--wp--style--root--padding-right, var(--rand, 1rem)));
		padding-inline: var(--wp--style--root--padding-right, var(--rand, 1rem));
		scroll-padding-inline: var(--wp--style--root--padding-right, var(--rand, 1rem));
	}
	.masche-farbband-reihe::-webkit-scrollbar { display: none; }
	.masche-farbband-kachel { flex: 0 0 74px; border-radius: 14px; scroll-snap-align: start; }
}

/* Handy: Leuchteffekte ragen bewusst über den Rand – hier abschneiden statt am <body>.
   (Mobile Browser rechnen sonst die Überbreite in die Seitenbreite ein und zoomen heraus.
   „clip“ statt „hidden“: Sticky-Elemente wie der Wollfinder funktionieren weiter.) */
main, .masche-hero, .masche-farben { overflow-x: clip; }

/* ---------- Tablet (Geräte-Test): Burger-Menü & Hero untereinander bis 1023 px ---------- */
@media (min-width: 600px) and (max-width: 1023px) {
	/* WordPress-Navigation: Overlay-Menü auch auf Tablets im Hochformat (Core schaltet erst bei 600 px um) */
	.masche-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.masche-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 1023px) {
	.masche-hero .wp-block-columns { flex-wrap: wrap !important; }
	.masche-hero .wp-block-column { flex-basis: 100% !important; }
	.masche-hero-text { text-align: center; max-width: 640px; margin-inline: auto; }
	.masche-hero-text .wp-block-buttons, .masche-hero-vertrauen { justify-content: center; }
	.masche-hero-collage { width: min(100%, 640px); margin-inline: auto; }
}

/* ==========================================================================
   Seite „Über mich“ – Vorlage page-ueber-mich.html, Muster maschenerina/ueber-*
   (gleicher Code in Theme und Vorschau, getestet auf Handy, Tablet, Desktop)
   ========================================================================== */

@keyframes masche-ueber-schreiben { from { clip-path: inset(-30% 100% -30% 0); } to { clip-path: inset(-30% -5% -30% 0); } }
@keyframes masche-ueber-schweben { 50% { translate: 0 -8px; } }
@keyframes masche-ueber-zoom { from { scale: 1.02; } to { scale: 1.1; translate: 1% -1.5%; } }
@keyframes masche-ueber-puls {
	from { box-shadow: 0 0 0 0 rgba(201, 104, 77, 0.55), 0 14px 34px rgba(0, 0, 0, 0.35); }
	to { box-shadow: 0 0 0 26px rgba(201, 104, 77, 0), 0 14px 34px rgba(0, 0, 0, 0.35); }
}
@keyframes masche-ueber-wackeln { 30% { rotate: -9deg; } 70% { rotate: 7deg; } }
@keyframes masche-ueber-rein { from { opacity: 0; translate: 0 26px; } }

.masche-ueber-hero h1 { font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.1rem) !important; overflow-wrap: break-word; text-wrap: balance; }
#podcast { scroll-margin-top: calc(var(--masche-kopf, 90px) + 1rem); }

/* ---------- Hero: Porträt im Bogen, Stempel, schwebende Kärtchen, Unterschrift ---------- */

.masche-ueber-portraet { position: relative; isolation: isolate; width: min(100%, 470px); margin: 0 auto !important; padding-bottom: 28px; }
.masche-ueber-portraet > * { margin-block: 0 !important; }
.masche-ueber-portraet::before {
	content: ""; position: absolute; z-index: -1; inset: 26px -22px 6px 22px; pointer-events: none;
	border: 2px solid color-mix(in srgb, var(--wp--preset--color--terracotta) 50%, transparent);
	border-radius: 999px 999px 36px 36px;
}
.masche-ueber-bogen {
	margin: 0; overflow: hidden; isolation: isolate; border-radius: 999px 999px 36px 36px;
	background: var(--wp--preset--color--sand); box-shadow: var(--wp--preset--shadow--karte-hover);
}
.masche-ueber-bogen img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }

.masche-ueber-portraet .masche-ueber-stempel { top: 5%; left: auto; right: -40px; }

.masche-ueber-chip {
	position: absolute; z-index: 3; margin: 0 !important;
	display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap;
	padding: 0.45rem 1rem 0.45rem 0.45rem; border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 88%, transparent);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 90%, transparent);
	box-shadow: var(--wp--preset--shadow--karte-hover);
	color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand);
	font-weight: 700; font-size: 0.9rem; line-height: 1.2;
}
.masche-ueber-chip::before {
	content: ""; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%;
	background: #A54A33 var(--masche-chip-icon) center / 58% no-repeat;
}
.masche-ueber-chip--ort {
	left: -34px; top: 17%;
	--masche-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-5.6-6.5-11a6.5 6.5 0 0 1 13 0c0 5.4-6.5 11-6.5 11Z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E");
}
.masche-ueber-chip--beutel {
	right: -26px; bottom: 15%;
	--masche-chip-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M6.4 6.3c3.3 1.7 6.3 5.3 7.3 11.5M9.6 4.5c3.6 2.6 6.5 6.4 7.9 10.4M4.1 10.7c3.4.4 6.7 2.9 8.4 9'/%3E%3C/svg%3E");
}
.masche-ueber-chip--beutel::before { background-color: #2F5F48; }

.masche-ueber-unterschrift {
	position: absolute; z-index: 3; left: -6px; bottom: -4px; margin: 0 !important; rotate: -7deg;
	font-family: var(--wp--preset--font-family--caveat); font-weight: 700; line-height: 1;
	font-size: clamp(2.4rem, 1.8rem + 2vw, 3.4rem); color: var(--wp--preset--color--terracotta-dunkel);
	text-shadow: 0 2px 14px var(--wp--preset--color--creme), 0 0 3px var(--wp--preset--color--creme);
}

@media (prefers-reduced-motion: no-preference) {
	.masche-ueber-portraet { animation: masche-ueber-rein 1.1s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.masche-ueber-bogen img { animation: masche-ueber-zoom 24s ease-in-out infinite alternate; }
	.masche-ueber-chip--ort { animation: masche-ueber-schweben 6s ease-in-out infinite; }
	.masche-ueber-chip--beutel { animation: masche-ueber-schweben 7s 1.2s ease-in-out infinite; }
	.masche-ueber-unterschrift { animation: masche-ueber-schreiben 1.3s 1s cubic-bezier(0.6, 0, 0.3, 1) both; }
}

/* Tablet quer & kleine Laptops: Porträt sitzt nah am Rand – Kärtchen weniger weit hinausschieben */
@media (min-width: 1024px) and (max-width: 1320px) {
	.masche-ueber-chip--ort { left: -10px; }
	.masche-ueber-portraet .masche-ueber-stempel { right: -26px; }
}
@media (max-width: 1023px) {
	.masche-ueber-portraet { width: min(78%, 400px); }
}
@media (max-width: 781px) {
	.masche-ueber-portraet { width: min(76%, 320px); padding-bottom: 22px; }
	.masche-ueber-portraet::before { inset: 16px -14px 4px 14px; }
	.masche-ueber-portraet .masche-ueber-stempel { width: 92px; height: 92px; top: 2%; right: -26px; }
	.masche-ueber-chip { font-size: 0.8rem; gap: 0.45rem; padding: 0.35rem 0.8rem 0.35rem 0.35rem; }
	.masche-ueber-chip::before { width: 1.75rem; height: 1.75rem; }
	.masche-ueber-chip--ort { left: -30px; top: 15%; }
	.masche-ueber-chip--beutel { right: -30px; bottom: 13%; }
}

/* ---------- Zahlen, die hochzählen (masche.js) ---------- */

.masche-ueber-zahlen {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border-radius: 28px; background: var(--wp--preset--color--weiss-warm);
	border: 1px solid var(--wp--preset--color--sand); box-shadow: var(--wp--preset--shadow--weich);
}
.masche-ueber-zahlen > .masche-ueber-zahl { margin: 0 !important; padding: 0.25rem 0.75rem; text-align: center; }
.masche-ueber-zahl + .masche-ueber-zahl { border-left: 1px solid var(--wp--preset--color--sand); }
.masche-ueber-zahl > * { margin-block: 0 !important; }
.masche-ueber-zahl-wert {
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; line-height: 1;
	font-size: clamp(2.4rem, 1.6rem + 2.8vw, 3.8rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--terracotta-dunkel);
}
.masche-ueber-zahl:nth-child(even) .masche-ueber-zahl-wert { color: var(--wp--preset--color--salbei-dunkel); }
.masche-ueber-zahl .masche-ueber-zahl-text {
	margin-top: 0.5rem !important; font-size: var(--wp--preset--font-size--small); font-weight: 600; line-height: 1.35;
	color: color-mix(in srgb, var(--wp--preset--color--tinte) 78%, transparent);
}
@media (max-width: 781px) {
	.masche-ueber-zahlen { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0.5rem; }
	.masche-ueber-zahlen > .masche-ueber-zahl { padding: 1.1rem 0.5rem; }
	.masche-ueber-zahl:nth-child(odd) { border-left: 0; }
	.masche-ueber-zahl:nth-child(n+3) { border-top: 1px solid var(--wp--preset--color--sand); }
}

/* ---------- Alltag: Karten mit Strich-Icons, die sich selbst zeichnen ---------- */

.masche-ueber-karten {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50) !important;
}
.masche-ueber-karten > .masche-ueber-karte { margin: 0 !important; }
.masche-ueber-karte {
	position: relative; display: flex; flex-direction: column; align-items: flex-start;
	padding: var(--wp--preset--spacing--40); border-radius: 24px;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--weich);
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.masche-ueber-karte > * { margin-block: 0 !important; }
.masche-ueber-karte h3 { margin-top: 1.1rem !important; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }
.masche-ueber-karte p { margin-top: 0.4rem !important; font-size: var(--wp--preset--font-size--small); line-height: 1.55; color: color-mix(in srgb, var(--wp--preset--color--tinte) 82%, transparent); }
.masche-ueber-icon {
	display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; flex: none;
	background: var(--masche-icon-bg, var(--wp--preset--color--salbei-hell));
	color: var(--masche-icon-farbe, var(--wp--preset--color--salbei-dunkel));
}
.masche-ueber-icon svg {
	width: 32px; height: 32px; overflow: visible;
	fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.masche-ueber-karte:nth-child(2) .masche-ueber-icon {
	--masche-icon-bg: color-mix(in srgb, var(--wp--preset--color--terracotta) 16%, var(--wp--preset--color--weiss-warm));
	--masche-icon-farbe: var(--wp--preset--color--terracotta-dunkel);
}
.masche-ueber-karte:nth-child(3) .masche-ueber-icon { --masche-icon-bg: var(--wp--preset--color--sand); --masche-icon-farbe: var(--wp--preset--color--tinte); }
.masche-ueber-karte--herz { background: var(--wp--preset--color--terracotta-dunkel); border-color: transparent; color: var(--wp--preset--color--weiss); justify-content: space-between; }
.masche-ueber-karte--herz .masche-ueber-icon {
	--masche-icon-bg: color-mix(in srgb, var(--wp--preset--color--weiss) 16%, transparent);
	--masche-icon-farbe: var(--wp--preset--color--weiss);
}
.masche-ueber-karte--herz h3 {
	color: inherit; font-family: var(--wp--preset--font-family--caveat); font-weight: 700;
	font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.2rem); line-height: 1.05; letter-spacing: 0;
}
/* Strich zeichnet sich, sobald die Karte ins Bild kommt (Klasse von masche.js) */
.masche-js .masche-ueber-icon svg > * { stroke-dasharray: 1 3; stroke-dashoffset: 1.2; }
.masche-js .masche-ueber-icon.ist-gezeichnet svg > * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.6, 0, 0.25, 1) 0.25s; }
@media (hover: hover) {
	.masche-ueber-karte:hover { translate: 0 -6px; box-shadow: var(--wp--preset--shadow--karte-hover); }
	.masche-ueber-karte:hover .masche-ueber-icon svg { animation: masche-ueber-wackeln 0.6s ease; }
}
@media (hover: none) {
	.masche-ueber-karte:active { scale: 0.985; transition: scale 0.12s ease; }
}
@media (max-width: 1023px) {
	.masche-ueber-karten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
	.masche-ueber-karten { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
	.masche-ueber-karte { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: center; padding: 1rem 1.1rem; }
	.masche-ueber-karte .masche-ueber-icon { grid-row: span 2; width: 56px; height: 56px; }
	.masche-ueber-karte .masche-ueber-icon svg { width: 28px; height: 28px; }
	.masche-ueber-karte h3 { margin-top: 0 !important; }
	.masche-ueber-karte p { margin-top: 0.15rem !important; }
	.masche-ueber-karte--herz .masche-ueber-icon { grid-row: auto; }
}

/* ---------- Aus meinem Färbetopf: dunkler Abschnitt mit lebender Farbwand ---------- */

.masche-ueber-faerbetopf {
	position: relative; isolation: isolate; overflow-x: clip;
	background: var(--wp--preset--color--espresso) !important; color: #F3EDE5;
}
.masche-ueber-faerbetopf::before {
	content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; aspect-ratio: 1;
	width: min(70vw, 900px); right: -18vw; top: 50%; translate: 0 -50%;
	background: radial-gradient(circle, rgba(201, 104, 77, 0.24), rgba(201, 104, 77, 0) 64%);
}
.masche-ueber-faerbetopf :is(h1, h2, h3) { color: inherit; }
.masche-ueber-faerbetopf :is(.eyebrow, .is-style-eyebrow) { color: #EBA48E; }
.masche-ueber-faerbetopf .masche-ueber-leise { color: rgba(243, 237, 229, 0.72); }
.masche-ueber-faerbetopf a:not([class]) { color: #F3EDE5; }
:root[data-modus="dunkel"] .masche-ueber-faerbetopf { color: var(--wp--preset--color--tinte); }

.masche-farbwand { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.masche-farbwand > img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.masche-farbwand .masche-collage--wand { gap: clamp(5px, 0.8vw, 9px); background: transparent; }
.masche-farbwand .masche-collage-kachel { border-radius: clamp(10px, 1.3vw, 16px); }
.masche-farbwand .masche-collage-kachel:first-child span { opacity: 0; translate: 0 6px; font-size: 0.78rem; left: 0.5rem; bottom: 0.5rem; }
@media (hover: hover) {
	.masche-farbwand .masche-collage-kachel:hover img { scale: 1.1; }
	.masche-farbwand .masche-collage-kachel:hover span { opacity: 1; translate: 0 0; }
}
@media (hover: none) {
	.masche-farbwand .masche-collage-kachel:active { scale: 0.94; transition: scale 0.12s ease; }
}
/* Tablet & Handy: Text über der Farbwand, beides mittig */
@media (max-width: 1023px) {
	.masche-ueber-faerbetopf .wp-block-columns { flex-wrap: wrap !important; }
	.masche-ueber-faerbetopf .wp-block-column { flex-basis: 100% !important; }
	.masche-ueber-faerbetopf .spalten { flex-direction: column; align-items: stretch; }
	.masche-ueber-faerbetopf-text { text-align: center; max-width: 640px; margin-inline: auto !important; }
	.masche-ueber-faerbetopf-text :is(.wp-block-buttons, .knoepfe) { justify-content: center; }
	.masche-farbwand { max-width: 640px; margin-inline: auto; }
}

/* ---------- Strickpodcast & Kanäle ---------- */

.masche-kanaele {
	display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--50) !important;
}
.masche-kanaele > *, .masche-kanal-liste > * { margin: 0 !important; }
.masche-kanal-liste { display: grid; grid-auto-rows: 1fr; gap: var(--wp--preset--spacing--40); }

/* Video: lädt erst nach Klick (masche.js), ohne JavaScript öffnet der Knopf YouTube */
.masche-video {
	position: relative; isolation: isolate; overflow: hidden; align-self: stretch; justify-self: stretch; width: 100%; min-width: 0; aspect-ratio: 16 / 10;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: var(--wp--preset--spacing--40); border-radius: 28px; cursor: pointer;
	background: #1D2B24; color: #fff; box-shadow: var(--wp--preset--shadow--karte-hover);
}
.masche-video::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(to top, rgba(17, 24, 20, 0.88), rgba(17, 24, 20, 0.3) 55%, rgba(17, 24, 20, 0.12));
}
.masche-video-bild { position: absolute !important; inset: 0; z-index: -2; margin: 0 !important; }
.masche-video-bild img { width: 100%; height: 100% !important; object-fit: cover; transition: scale 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.masche-video-text { max-width: 36rem; margin: 0 !important; }
.masche-video-text > * { margin-block: 0 !important; }
.masche-video .masche-video-folge {
	display: inline-block; padding: 0.3em 0.9em; border-radius: 999px;
	background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.78rem;
	letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
}
.masche-video h3 { margin-top: 0.6rem !important; color: #fff; font-size: clamp(1.2rem, 0.95rem + 1vw, 1.7rem); line-height: 1.2; }
.masche-video .masche-video-hinweis { margin-top: 0.4rem !important; font-size: 0.8rem; line-height: 1.4; color: rgba(255, 255, 255, 0.72); }
.masche-video-knopf, .masche-video .wp-block-buttons { margin: 0 !important; }
.masche-video .masche-video-knopf a {
	position: absolute; left: 50%; top: 42%; translate: -50% -50%; z-index: 2;
	display: block; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%;
	background: #A54A33; color: transparent; font-size: 0; line-height: 0; overflow: hidden;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
	transition: scale 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease;
}
.masche-video .masche-video-knopf a.wp-block-button__link::before { display: none; }
.masche-video .masche-video-knopf a::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; translate: 3px 0;
	background: #fff;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15c0 .8.9 1.3 1.6.9l12-7.5c.6-.4.6-1.4 0-1.8l-12-7.5C7.9 3.2 7 3.7 7 4.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15c0 .8.9 1.3 1.6.9l12-7.5c.6-.4.6-1.4 0-1.8l-12-7.5C7.9 3.2 7 3.7 7 4.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.masche-video:hover .masche-video-knopf a, .masche-video .masche-video-knopf a:focus-visible { scale: 1.1; background-color: #8A3A26; transform: none; }
.masche-video:hover .masche-video-bild img { scale: 1.05; }
.masche-video.spielt { padding: 0; cursor: auto; background: #000; aspect-ratio: 16 / 9 !important; }
.masche-video.spielt::before, .masche-video.spielt > :not(iframe) { display: none; }
.masche-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: no-preference) {
	.masche-video:not(.spielt) .masche-video-knopf a { animation: masche-ueber-puls 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
}

/* Kanal-Karten */
.masche-kanal {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; flex-direction: column; justify-content: flex-end; gap: 0.35rem; min-height: 190px;
	padding: var(--wp--preset--spacing--40); padding-right: calc(var(--wp--preset--spacing--40) + 3.2rem);
	border-radius: 24px; color: var(--wp--preset--color--weiss);
	background: var(--wp--preset--color--terracotta-dunkel) !important;
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.masche-kanal--instagram { background: var(--wp--preset--color--salbei-dunkel) !important; }
.masche-kanal > * { margin-block: 0 !important; }
.masche-kanal::before {
	content: ""; position: absolute; z-index: -1; width: 220px; aspect-ratio: 1; right: -70px; top: -90px; border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--weiss) 12%, transparent);
	transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-kanal::after {
	content: "→"; position: absolute; right: var(--wp--preset--spacing--40); top: var(--wp--preset--spacing--40);
	width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
	background: var(--wp--preset--color--weiss); color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.1rem;
	rotate: -45deg; transition: rotate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-kanal-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: auto !important; border-radius: 50%; background: color-mix(in srgb, var(--wp--preset--color--weiss) 16%, transparent); }
.masche-kanal-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.masche-kanal .masche-kanal-name { margin-top: 1.4rem !important; font-family: var(--wp--preset--font-family--caveat); font-weight: 700; font-size: 1.5rem; line-height: 1; opacity: 0.9; }
.masche-kanal h3 { color: inherit; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.15; }
.masche-kanal h3 a { color: inherit; text-decoration: none; }
.masche-kanal h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.masche-kanal p:last-child { font-size: var(--wp--preset--font-size--small); line-height: 1.45; opacity: 0.88; }
@media (hover: hover) {
	.masche-kanal:hover { translate: 0 -5px; box-shadow: var(--wp--preset--shadow--karte-hover); }
	.masche-kanal:hover::before { scale: 1.35; }
	.masche-kanal:hover::after { rotate: 0deg; }
}
@media (hover: none) {
	.masche-video:active, .masche-kanal:active { scale: 0.985; transition: scale 0.12s ease; }
}
@media (max-width: 1023px) {
	.masche-kanaele { grid-template-columns: minmax(0, 1fr); }
	.masche-kanal-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
}
@media (max-width: 599px) {
	.masche-video { aspect-ratio: 4 / 3.4; border-radius: 22px; }
	.masche-video .masche-video-knopf a { width: 68px; height: 68px; top: 38%; }
	.masche-video .masche-video-knopf a::after { width: 24px; height: 24px; }
	.masche-kanal-liste { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
	.masche-kanal { min-height: 0; border-radius: 22px; }
	.masche-kanal-icon { margin-bottom: 0 !important; }
	.masche-kanal .masche-kanal-name { margin-top: 0.9rem !important; }
}

/* Nachtmodus: große Farbflächen gedämpft statt grell (augenschonend) */
:root[data-modus="dunkel"] .masche-kanal { background: color-mix(in srgb, var(--wp--preset--color--terracotta) 22%, var(--wp--preset--color--weiss-warm)) !important; color: var(--wp--preset--color--tinte); }
:root[data-modus="dunkel"] .masche-kanal--instagram { background: color-mix(in srgb, var(--wp--preset--color--salbei) 20%, var(--wp--preset--color--weiss-warm)) !important; }
:root[data-modus="dunkel"] .masche-kanal::before,
:root[data-modus="dunkel"] .masche-kanal-icon { background: color-mix(in srgb, var(--wp--preset--color--tinte) 8%, transparent); }
:root[data-modus="dunkel"] .masche-kanal::after { background: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme); }
:root[data-modus="dunkel"] .masche-ueber-karte--herz { background: color-mix(in srgb, var(--wp--preset--color--terracotta) 22%, var(--wp--preset--color--weiss-warm)); color: var(--wp--preset--color--terracotta-dunkel); }
:root[data-modus="dunkel"] .masche-ueber-karte--herz .masche-ueber-icon { --masche-icon-bg: color-mix(in srgb, var(--wp--preset--color--terracotta) 22%, transparent); --masche-icon-farbe: var(--wp--preset--color--terracotta-dunkel); }

/* ==========================================================================
   Farbfinder: Wolle nach Lieblingsfarbe und Garnart (Farbpillen, masche.js Abschnitt 10)
   Auf Wollseiten anstelle des Farbbands; gleicher Code in Theme und Vorschau.
   ========================================================================== */

@property --masche-ff-farbe { syntax: "<color>"; inherits: true; initial-value: #00000000; }
@keyframes masche-ff-auf { from { opacity: 0; translate: 0 16px; scale: 0.92; } }
@keyframes masche-ff-hoch { from { opacity: 0; translate: 0 14px; } }
@keyframes masche-ff-tick { from { opacity: 0; translate: 0 -0.5em; } }
@keyframes masche-ff-info { from { opacity: 0; translate: 0 -8px; } }

.masche-farbfinder {
	--ff-rand: clamp(1.1rem, 2.6vw, 1.75rem);
	position: relative; margin-top: var(--wp--preset--spacing--40); padding: var(--ff-rand); border-radius: 28px;
	background: color-mix(in srgb, var(--masche-ff-farbe) 11%, var(--wp--preset--color--weiss-warm));
	border: 1px solid color-mix(in srgb, var(--masche-ff-farbe) 30%, var(--wp--preset--color--sand));
	box-shadow: var(--wp--preset--shadow--weich);
	transition: --masche-ff-farbe 0.6s ease;
	overflow: hidden;
}
.masche-farbfinder > * { margin-block: 0; }

/* Kopf: Frage, Status, Zurücksetzen */
.masche-ff-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1rem; flex-wrap: wrap; }
.masche-ff-kopf p { margin: 0; }
.masche-ff-frage {
	font-family: var(--wp--preset--font-family--caveat); font-weight: 700; line-height: 1;
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--wp--preset--color--terracotta);
}
.masche-ff-status { margin-top: 0.3rem !important; font-size: var(--wp--preset--font-size--small); color: color-mix(in srgb, var(--wp--preset--color--tinte) 80%, transparent); min-height: 1.5em; }
.masche-ff-status strong { color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand); }
.masche-ff-zurueck, .masche-ff-mehr {
	border: 1.5px solid var(--wp--preset--color--sand-dunkel); border-radius: 999px; background: var(--wp--preset--color--weiss-warm);
	color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.85rem;
	padding: 0.45em 1.1em; cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.masche-ff-zurueck:hover, .masche-ff-mehr:hover { border-color: var(--wp--preset--color--tinte); }
.masche-ff-zurueck:active, .masche-ff-mehr:active { scale: 0.95; }
.masche-ff-zurueck[hidden], .masche-ff-mehr[hidden] { display: none; }

.masche-ff-zahl { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-variant-numeric: tabular-nums; display: inline-block; }

/* Garn-Umschalter: Segmente, darunter gleitet ein Marker zum gewählten Garn */
.masche-ff-garne {
	position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; max-width: 100%;
	margin-top: 1rem !important; padding: 4px; border-radius: 999px;
	background: color-mix(in srgb, var(--wp--preset--color--sand) 65%, transparent);
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}
.masche-ff-schieber {
	position: absolute; left: 0; top: 0; width: var(--sb, 0); height: var(--sh, 0); translate: var(--sx, 0) var(--sy, 0);
	border-radius: 999px; background: var(--wp--preset--color--tinte); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); pointer-events: none;
}
.masche-ff-garne.ist-bereit .masche-ff-schieber { transition: translate 0.5s cubic-bezier(0.3, 1.25, 0.5, 1), width 0.5s cubic-bezier(0.3, 1.25, 0.5, 1), height 0.3s; }
.masche-ff-garne button {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.4rem; height: 2.4rem; padding: 0 1rem;
	border: 0; border-radius: 999px; background: none; color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.88rem; line-height: 1; white-space: nowrap;
	cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color 0.3s, opacity 0.3s, background-color 0.2s;
}
.masche-ff-garne button[aria-pressed="true"] { color: var(--wp--preset--color--creme); }
.masche-ff-garne .masche-ff-zahl { font-size: 0.74rem; opacity: 0.6; }
.masche-ff-garne button:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) {
	.masche-ff-garne button:not(:disabled):not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 75%, transparent); }
}
.masche-ff-garne button:focus-visible { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 1px; }
.masche-ff-garne button:not(:disabled):active { scale: 0.96; }
.masche-ff-kurz { display: none; }

/* Farbpillen – beim Antippen läuft die Farbe vom Punkt aus durch die Pille */
.masche-ff-palette { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem !important; }
.masche-ff-pille {
	--k: #7E8186; position: relative; isolation: isolate; overflow: hidden; flex: none;
	display: inline-flex; align-items: center; gap: 0.5rem; height: 2.65rem; padding: 0 1rem 0 0.75rem;
	border: 1.5px solid var(--wp--preset--color--sand); border-radius: 999px; background: var(--wp--preset--color--weiss-warm);
	color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.9rem; line-height: 1;
	white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: border-color 0.25s, color 0.35s, translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s, scale 0.12s, opacity 0.3s;
}
.masche-ff-pille::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--k);
	clip-path: circle(0 at 1.25rem 50%); transition: clip-path 0.55s cubic-bezier(0.65, 0, 0.25, 1);
}
.masche-ff-pille[data-familie="bunt"]::before, .masche-ff-pille[data-familie="bunt"] .masche-ff-punkt {
	background: linear-gradient(100deg, #B3262E, #E07B45, #E2B93B, #3E8A4F, #23847F, #2F5D9E, #8466C2, #DD7AA3);
}
.masche-ff-punkt {
	flex: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--k);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); transition: box-shadow 0.3s, scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1), filter 0.3s;
}
.masche-ff-pille .masche-ff-zahl { font-size: 0.76rem; opacity: 0.55; transition: opacity 0.3s; }
@media (hover: hover) {
	.masche-ff-pille:not(:disabled):hover { border-color: var(--k); translate: 0 -2px; box-shadow: 0 6px 16px color-mix(in srgb, var(--k) 25%, transparent); }
	.masche-ff-pille:not(:disabled):hover .masche-ff-punkt { scale: 1.2; }
}
.masche-ff-pille:not(:disabled):active { scale: 0.96; }
.masche-ff-pille:focus-visible { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 2px; }
.masche-ff-pille[aria-pressed="true"] { border-color: transparent; color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--k) 42%, transparent); }
.masche-ff-pille[data-hell][aria-pressed="true"] { color: #241F1A; }
.masche-ff-pille[aria-pressed="true"]::before { clip-path: circle(170% at 1.25rem 50%); }
.masche-ff-pille[aria-pressed="true"] .masche-ff-punkt { scale: 1.15; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.masche-ff-pille[aria-pressed="true"] .masche-ff-zahl { opacity: 0.85; }
/* Farbe gibt es im gewählten Garn gerade nicht */
.masche-ff-pille:disabled { opacity: 0.4; border-style: dashed; cursor: default; }
.masche-ff-pille:disabled .masche-ff-punkt { filter: saturate(0.4); }

/* Steckbrief und Tipp zur gewählten Garnart */
.masche-ff-infos { margin-top: 0.9rem !important; }
.masche-ff-infos:not(:has(.masche-ff-info-garn:not([hidden]))) { display: none; }
.masche-ff-info-garn {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1.1rem; margin: 0; padding: 0.7rem 1rem; border-radius: 16px;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 80%, transparent); border: 1.5px dashed var(--wp--preset--color--sand-dunkel);
	font-size: var(--wp--preset--font-size--small); line-height: 1.45;
}
.masche-ff-info-garn[hidden] { display: none; }
.masche-ff-steckbrief strong { font-family: var(--wp--preset--font-family--quicksand); }
.masche-ff-tipp { flex: 1 1 24rem; color: color-mix(in srgb, var(--wp--preset--color--tinte) 85%, transparent); }
.masche-ff-tipp::before { content: "✿ "; color: var(--wp--preset--color--terracotta); }
.masche-ff-tipp button {
	padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap;
	color: var(--wp--preset--color--terracotta-dunkel); font: inherit; font-weight: 700;
	text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.masche-ff-tipp button span { display: inline-block; transition: translate 0.25s; }
@media (hover: hover) {
	.masche-ff-tipp button:hover span { translate: 3px 0; }
}

/* Ergebnis: Stränge */
.masche-ff-liste {
	list-style: none; margin: 1.25rem 0 0 !important; padding: 0;
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem 0.9rem;
}
.masche-ff-strang { margin: 0; min-width: 0; }
.masche-ff-strang[hidden] { display: none; }
.masche-ff-strang a { display: block; color: inherit; text-decoration: none; }
.masche-ff-bild {
	position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 18px;
	background: var(--farbe, var(--wp--preset--color--sand));
	box-shadow: 0 6px 16px color-mix(in srgb, var(--farbe, #000) 22%, transparent);
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.masche-ff-bild img { display: block; width: 100%; height: 100% !important; object-fit: cover; transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* kleiner Farbpunkt: so hat der Farbfinder den Strang eingeordnet */
.masche-ff-bild::after {
	content: ""; position: absolute; left: 0.5rem; bottom: 0.5rem; width: 0.85rem; height: 0.85rem; border-radius: 50%;
	background: var(--farbe, transparent); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 1px 4px rgba(0, 0, 0, 0.25);
}
/* „+ Mini“: diesen Strang gibt es im Bundle mit einem Mini */
.masche-ff-plus {
	position: absolute; top: 0.5rem; right: 0.5rem; padding: 0.3em 0.6em; border-radius: 999px;
	background: rgba(255, 255, 255, 0.92); color: #241F1A; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.68rem; line-height: 1.15; white-space: nowrap;
}
.masche-ff-info { display: block; padding: 0.55rem 0.15rem 0; }
.masche-ff-info strong { display: block; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.95rem; line-height: 1.25; overflow-wrap: anywhere; }
.masche-ff-info small { display: block; margin-top: 0.1rem; font-size: 0.75rem; line-height: 1.3; color: color-mix(in srgb, var(--wp--preset--color--tinte) 68%, transparent); }
.masche-ff-preis { display: block; margin-top: 0.2rem; font-weight: 700; font-size: 0.85rem; color: var(--wp--preset--color--salbei-dunkel); }
.masche-ff-preis del { opacity: 0.6; font-weight: 400; }
@media (hover: hover) {
	.masche-ff-strang a:hover .masche-ff-bild { translate: 0 -4px; box-shadow: 0 12px 26px color-mix(in srgb, var(--farbe, #000) 35%, transparent); }
	.masche-ff-strang a:hover .masche-ff-bild img { scale: 1.07; }
}
.masche-ff-strang a:active .masche-ff-bild { scale: 0.97; }
.masche-ff-mehr-zeile { margin: 1.1rem 0 0 !important; text-align: center; }
.masche-ff-mehr-zeile:has(.masche-ff-mehr[hidden]) { display: none; }

/* Ohne JavaScript: einfache Reihe wie das Farbband */
.masche-farbfinder:not(.ist-aktiv) .masche-ff-garne,
.masche-farbfinder:not(.ist-aktiv) .masche-ff-palette,
.masche-farbfinder:not(.ist-aktiv) .masche-ff-infos,
.masche-farbfinder:not(.ist-aktiv) .masche-ff-status,
.masche-farbfinder:not(.ist-aktiv) .masche-ff-mehr-zeile { display: none; }
.masche-farbfinder:not(.ist-aktiv) .masche-ff-strang:nth-child(n+13) { display: none; }

/* Animationen (nicht bei „Bewegung reduzieren“) */
@media (prefers-reduced-motion: no-preference) {
	.masche-farbfinder.wartet .masche-ff-garne,
	.masche-farbfinder.wartet .masche-ff-pille { opacity: 0; }
	.masche-farbfinder.rollt .masche-ff-garne { animation: masche-ff-hoch 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
	.masche-farbfinder.rollt .masche-ff-pille { animation: masche-ff-hoch 0.5s calc(0.12s + var(--i, 0) * 40ms) cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
	.masche-ff-zahl.tickt { animation: masche-ff-tick 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
	.masche-ff-info-garn.ist-neu { animation: masche-ff-info 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
	.masche-ff-strang.ist-neu { animation: masche-ff-auf 0.5s calc(var(--n, 0) * 35ms) cubic-bezier(0.2, 0.8, 0.2, 1) both; }
	/* Stränge gleiten beim Wechsel an ihre neuen Plätze (View Transitions, Desktop/Tablet) */
	.masche-ff-wechsel .masche-ff-strang:not([hidden]) { view-transition-name: var(--vtn); }
	.masche-ff-wechsel::view-transition-old(root), .masche-ff-wechsel::view-transition-new(root) { animation: none; }
	.masche-ff-wechsel::view-transition-group(*) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
}

/* Tablet */
@media (max-width: 1023px) {
	.masche-ff-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Handy: Garn als gleich breite Segmente, Pillen umbrechend, Ergebnis als Wischreihe */
@media (max-width: 781px) {
	.masche-farbfinder { border-radius: 24px; }
	.masche-ff-kopf > div { padding-right: 2.6rem; }
	/* „Zurücksetzen“ als kleines ✕ oben rechts – nichts springt */
	.masche-ff-zurueck {
		position: absolute; top: calc(var(--ff-rand) - 0.15rem); right: calc(var(--ff-rand) - 0.35rem);
		width: 2.4rem; height: 2.4rem; padding: 0; display: grid; place-items: center; font-size: 0;
	}
	.masche-ff-zurueck::before { content: "✕"; font-size: 1rem; line-height: 1; }
	.masche-ff-garne { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; border-radius: 16px; }
	.masche-ff-schieber { border-radius: 12px; }
	.masche-ff-garne button { flex-direction: column; justify-content: center; gap: 0.18rem; height: auto; min-height: 2.9rem; padding: 0.35rem 0.15rem; border-radius: 12px; font-size: 0.8rem; }
	.masche-ff-garne .masche-ff-zahl { font-size: 0.68rem; }
	.masche-ff-lang { display: none; }
	.masche-ff-kurz { display: inline; }
	.masche-ff-palette { gap: 0.4rem; }
	.masche-ff-pille { height: 2.35rem; padding: 0 0.8rem 0 0.6rem; gap: 0.4rem; font-size: 0.84rem; }
	.masche-ff-pille .masche-ff-punkt { width: 0.85rem; height: 0.85rem; }
	.masche-ff-pille::before { clip-path: circle(0 at 1.03rem 50%); }
	.masche-ff-pille[aria-pressed="true"]::before { clip-path: circle(170% at 1.03rem 50%); }
	.masche-ff-info-garn { padding: 0.65rem 0.85rem; font-size: 0.85rem; }
	.masche-ff-liste {
		display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
		gap: 0.75rem; margin-inline: calc(-1 * var(--ff-rand)) !important; padding: 0.25rem var(--ff-rand) 0.5rem; scroll-padding-inline: var(--ff-rand);
	}
	.masche-ff-liste::-webkit-scrollbar { display: none; }
	.masche-ff-strang { flex: 0 0 40%; scroll-snap-align: start; }
	.masche-ff-mehr-zeile { display: none; }
}

/* ==========================================================================
   Varianten-Swatches (inc/varianten.php, masche.js Abschnitt 11)
   Foto-Knöpfe für Farben/Motive, Text-Pillen für Größen – ausverkauft = durchgestrichen.
   ========================================================================== */

@keyframes masche-wackeln { 20% { translate: -4px 0; } 40% { translate: 4px 0; } 60% { translate: -3px 0; } 80% { translate: 2px 0; } }
@keyframes masche-mini-hopp { 40% { scale: 1.12; } 70% { scale: 0.97; } }
@keyframes masche-platz { from { scale: 0.4 1; } }

.variations_form table.variations,
.variations_form table.variations tbody,
.variations_form table.variations tr,
.variations_form table.variations th,
.variations_form table.variations td { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.variations_form table.variations { margin: 0 0 0.75rem; border-collapse: collapse; }
.variations_form table.variations tr + tr { margin-top: 1rem; }
.variations_form table.variations th label { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.95rem; }
.masche-gewaehlt { font-weight: 500; opacity: 0.75; }
.variations_form .reset_variations { display: inline-block; margin-top: 0.6rem; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--terracotta-dunkel); }
.variations_form .reset_variations[hidden] { display: none; }

/* Auswahlliste bleibt für WooCommerce da, ist aber unsichtbar, sobald Swatches laufen */
.variations_form:not(.hat-swatches) .masche-swatches { display: none; }
.variations_form.hat-swatches td.hat-swatches > select {
	position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
	overflow: hidden; clip-path: inset(50%); border: 0 !important; opacity: 0; pointer-events: none;
}
.variations_form table.variations td.value { position: relative; }

.masche-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.masche-swatch {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-height: 2.6rem; padding: 0 1.05rem;
	border: 1.5px solid var(--wp--preset--color--sand); border-radius: 999px; background: var(--wp--preset--color--weiss-warm);
	color: var(--wp--preset--color--tinte); font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.9rem; line-height: 1.15;
	cursor: pointer; -webkit-tap-highlight-color: transparent;
	transition: border-color 0.2s, background-color 0.25s, color 0.25s, translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, scale 0.12s, opacity 0.25s;
}
@media (hover: hover) {
	.masche-swatch:not(.ist-aus):hover { border-color: var(--wp--preset--color--tinte); translate: 0 -2px; }
}
.masche-swatch:not(.ist-aus):active { scale: 0.95; }
.masche-swatch:focus-visible { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 2px; }
.masche-swatches--text .masche-swatch[aria-checked="true"] {
	background: var(--wp--preset--color--tinte); border-color: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

/* Foto-Swatches: Variantenbild + Name */
.masche-swatches--bild { gap: 0.6rem; }
.masche-swatches--bild .masche-swatch {
	flex-direction: column; justify-content: flex-start; gap: 0.35rem; width: 5.6rem; min-height: 0; padding: 0.35rem 0.35rem 0.5rem;
	border-radius: 18px; font-size: 0.76rem; text-align: center;
}
.masche-swatches--bild .masche-swatch img,
.masche-swatch-leer {
	display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 13px;
	background: var(--wp--preset--color--sand); transition: scale 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.25s;
}
.masche-swatches--bild .masche-swatch-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (hover: hover) {
	.masche-swatches--bild .masche-swatch:not(.ist-aus):hover img { scale: 1.05; }
}
.masche-swatches--bild .masche-swatch[aria-checked="true"] {
	border-color: var(--wp--preset--color--terracotta);
	box-shadow: 0 0 0 1.5px var(--wp--preset--color--terracotta), 0 8px 20px color-mix(in srgb, var(--wp--preset--color--terracotta) 25%, transparent);
}
.masche-swatches--bild .masche-swatch[aria-checked="true"]::before {
	content: "✓"; position: absolute; top: 0.15rem; right: 0.15rem; z-index: 1; width: 1.35rem; height: 1.35rem; border-radius: 50%;
	display: grid; place-items: center; background: var(--wp--preset--color--terracotta); color: #fff; font-size: 0.75rem;
	box-shadow: 0 0 0 2px var(--wp--preset--color--weiss-warm);
}

/* ausverkauft: blass + Schrägstrich, bleibt sichtbar (Kundin weiß, dass es die Option gibt) */
.masche-swatch.ist-aus { opacity: 0.45; cursor: not-allowed; border-style: dashed; }
.masche-swatch.ist-aus::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background: linear-gradient(to top right, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px), currentColor calc(50% + 0.75px), transparent calc(50% + 0.75px));
	opacity: 0.55;
}
.masche-swatch.ist-aus img { filter: grayscale(0.85); }
.masche-swatch.wackelt { animation: masche-wackeln 0.4s ease; }

/* ==========================================================================
   Sets, Pakete, „Dazu“-Angebote (inc/sets.php, masche.js Abschnitt 12)
   ========================================================================== */

.masche-minis {
	flex: 1 1 100%; min-width: 0; margin: 0 0 0.25rem; padding: 0.95rem 1.1rem 1rem;
	border: 1.5px dashed var(--wp--preset--color--sand-dunkel); border-radius: 22px;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 85%, transparent);
}
.masche-minis legend { float: left; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; margin: 0 0 0.15rem; padding: 0; }
.masche-minis-titel { font-family: var(--wp--preset--font-family--caveat); font-weight: 700; font-size: 1.75rem; line-height: 1; color: var(--wp--preset--color--terracotta); }
.masche-minis-zusatz { font-size: var(--wp--preset--font-size--small); color: color-mix(in srgb, var(--wp--preset--color--tinte) 75%, transparent); }
.masche-minis-zusatz .woocommerce-Price-amount { font-weight: 700; color: var(--wp--preset--color--tinte); }
.masche-minis-text { clear: both; margin: 0 0 0.75rem !important; font-size: var(--wp--preset--font-size--small); line-height: 1.45; }
.masche-minis-liste {
	list-style: none; margin: 0; padding: 0.35rem 0.1rem 0.2rem;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: 0.75rem 0.55rem;
}
.masche-mini { position: relative; margin: 0; min-width: 0; }
.masche-mini-karte {
	display: grid; justify-items: center; gap: 0.3rem; width: 100%; padding: 0; border: 0; background: none;
	color: var(--wp--preset--color--tinte); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.masche-mini-karte img {
	display: block; width: 100%; max-width: 4.6rem; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
	background: var(--farbe, var(--wp--preset--color--sand));
	box-shadow: 0 0 0 2px var(--wp--preset--color--weiss-warm), 0 3px 10px rgba(0, 0, 0, 0.12);
	transition: box-shadow 0.25s, filter 0.25s, opacity 0.25s, translate 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.masche-mini-name { max-width: 100%; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.74rem; line-height: 1.15; text-align: center; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
@media (hover: hover) {
	.masche-mini-karte:not([aria-disabled="true"]):hover img { translate: 0 -3px; }
}
.masche-mini-karte:focus-visible { outline: none; }
.masche-mini-karte:focus-visible img { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 4px; }
.masche-mini.ist-gewaehlt .masche-mini-karte img {
	box-shadow: 0 0 0 3px var(--wp--preset--color--weiss-warm), 0 0 0 5.5px var(--farbe, var(--wp--preset--color--terracotta)), 0 8px 18px color-mix(in srgb, var(--farbe, #000) 35%, transparent);
}
.masche-mini.ist-voll .masche-mini-karte img { opacity: 0.4; filter: grayscale(0.5); }
.masche-mini-zahl {
	position: absolute; top: -0.2rem; right: calc(50% - 2.6rem); min-width: 1.5rem; height: 1.5rem; padding: 0 0.35rem; border-radius: 999px;
	display: grid; place-items: center; background: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.75rem; line-height: 1;
	box-shadow: 0 0 0 2px var(--wp--preset--color--weiss-warm); scale: 0; transition: scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.masche-mini.ist-gewaehlt .masche-mini-zahl { scale: 1; }
.masche-mini-weg {
	position: absolute; top: -0.2rem; left: calc(50% - 2.6rem); width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 50%;
	display: grid; place-items: center; background: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte);
	font-weight: 700; font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 5px rgba(0, 0, 0, 0.22);
}
.masche-mini-weg[hidden] { display: none; }
.masche-mini-weg:active { scale: 0.9; }
/* ohne JavaScript: einfache Zahlenfelder unter jedem Mini */
.masche-mini-feld { display: block; margin-top: 0.3rem; text-align: center; }
.masche-mini-feld input { width: 3.6rem; padding: 0.25rem; border-radius: 8px; text-align: center; }
.masche-minis.ist-aktiv .masche-mini-feld { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masche-minis .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.masche-minis:not(.ist-aktiv) .masche-mini-weg,
.masche-minis:not(.ist-aktiv) .masche-mini-zahl,
.masche-minis:not(.ist-aktiv) .masche-set-plaetze { display: none; }
.masche-minis-summe { min-height: 1.4em; margin: 0.7rem 0 0 !important; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.9rem; color: var(--wp--preset--color--salbei-dunkel); }
.masche-minis-summe:empty { display: none; }
.masche-minis-summe.wackelt { animation: masche-wackeln 0.4s ease; color: var(--wp--preset--color--terracotta-dunkel); }

/* Mini-Set: fünf Plätze füllen sich mit den gewählten Farben */
.masche-set-plaetze { display: flex; gap: 0.4rem; margin: 0 0 0.85rem; }
.masche-set-plaetze i {
	flex: 1 1 0; height: 0.7rem; border-radius: 999px; background: color-mix(in srgb, var(--wp--preset--color--sand) 75%, transparent);
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); transition: background-color 0.35s;
}
.masche-set-plaetze i.ist-voll { background: var(--farbe, var(--wp--preset--color--terracotta)); }
.masche-minis--set.ist-komplett { border-style: solid; border-color: var(--wp--preset--color--salbei-dunkel); }
.masche-set-formular { display: block !important; }
.masche-set-formular .single_add_to_cart_button { width: 100%; margin-top: 0.85rem; }
.masche-set-formular .single_add_to_cart_button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sets mit mehreren Positionen und feste Pakete (inc/sets.php) */
.masche-set-formular .masche-minis + .masche-minis { margin-top: 0.75rem; }
.masche-set-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; margin: 0 0 0.7rem !important; }
.masche-set-fest-titel { margin: 0 0 0.35rem !important; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.masche-set-fest { display: grid; gap: 0.45rem; margin: 0 0 0.85rem; padding: 0; list-style: none; }
.masche-set-fest li {
	display: grid; grid-template-columns: 2.9rem minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; margin: 0; padding: 0.4rem 0.8rem 0.4rem 0.4rem;
	border: 1.5px solid color-mix(in srgb, var(--wp--preset--color--sand-dunkel) 60%, transparent); border-radius: 16px;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 85%, transparent);
}
.masche-set-fest img { grid-column: 1; width: 2.9rem; height: 2.9rem; border-radius: 11px; object-fit: cover; }
.masche-set-fest-name { grid-column: 2; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.9rem; line-height: 1.25; overflow-wrap: anywhere; }
.masche-set-fest-preis { grid-column: 3; font-size: var(--wp--preset--font-size--small); white-space: nowrap; opacity: 0.75; }
.masche-set-gesamt { min-height: 1.4em; margin: 0.8rem 0 0 !important; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.95rem; color: var(--wp--preset--color--salbei-dunkel); }
.masche-set-gesamt:empty { display: none; }
.masche-mini-leer { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--wp--preset--color--sand) 75%, transparent); }

@media (prefers-reduced-motion: no-preference) {
	.masche-mini.hopst .masche-mini-karte img { animation: masche-mini-hopp 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
	.masche-set-plaetze i.ist-voll { animation: masche-platz 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
}
@media (max-width: 781px) {
	.masche-swatches--bild .masche-swatch { width: calc((100% - 1.8rem) / 4); }
	.masche-minis { padding: 0.85rem 0.8rem 0.9rem; }
	.masche-minis-liste { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem 0.4rem; }
	.masche-mini-zahl { right: 0; }
	.masche-mini-weg { left: 0; }
}

/* ==========================================================================
   Lange Wörter (Fortschrittsmarkierer, Glühbirnenverschluss, Strumpfstricknadeln …):
   trennen statt überstehen. masche.js Abschnitt 13 setzt zusätzlich weiche Trennstellen.
   ========================================================================== */
h1, h2, h3, h4,
.wp-block-post-title, .wc-block-components-product-name, .pk-titel, .pk-kat, .masche-kategorie-label,
.masche-swatch-name, .masche-mini-name, .masche-ff-info strong, .masche-ff-info small,
.woocommerce-breadcrumb, .wc-block-breadcrumbs, .brotkrumen, .position .name {
	overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 10 4 4;
}
.masche-krumen-trenner { margin: 0 0.2em; opacity: 0.5; }

/* Foto-Swatches: Kachel wird bei langen Namen breiter (statt dass der Text herausragt) */
.masche-swatches--bild .masche-swatch { width: min-content; min-width: 5.6rem; max-width: 100%; }
.masche-swatches--bild .masche-swatch img,
.masche-swatches--bild .masche-swatch-leer { width: 100%; max-width: 4.9rem; margin-inline: auto; }
.masche-swatches--text .masche-swatch { max-width: 100%; text-align: center; }
@media (max-width: 781px) {
	.masche-swatches--bild .masche-swatch { width: min-content; min-width: calc((100% - 1.8rem) / 4); }
	.masche-swatches--bild .masche-swatch img,
	.masche-swatches--bild .masche-swatch-leer { max-width: 4.6rem; }
	/* Minis: so viele Spalten, wie sauber passen (360 px: 3, ab 390 px: 4) */
	.masche-minis-liste { grid-template-columns: repeat(auto-fill, minmax(4.4rem, 1fr)); }
}

/* Swatch-Namen: bis zu drei Zeilen (z. B. „Glüh-birnen-verschluss“), nie abgeschnitten */
.masche-swatches--bild .masche-swatch-name { -webkit-line-clamp: 3; }
/* Sortierung: nie breiter als die Spalte (lange Optionen wie „Nach Preis sortieren: aufsteigend“) */
.wp-block-woocommerce-catalog-sorting, .woocommerce-ordering { min-width: 0; max-width: 100%; }
.wp-block-woocommerce-catalog-sorting select, .woocommerce-ordering select { max-width: 100%; text-overflow: ellipsis; }

/* ==========================================================================
   Kategorieseiten: Bühne, Bogen-Kacheln, Werkzeugleiste, Filter-Schublade, Varianten-Punkte
   (inc/kategorien.php, patterns/produkt-filter.php, masche.js Abschnitte 7, 14, 15)
   ========================================================================== */
@keyframes kat-auf { from { opacity: 0; translate: 0 14px; } }
@keyframes kat-bild { from { opacity: 0; rotate: -4deg; scale: 0.92; } }
@keyframes filter-teil-auf { from { opacity: 0; translate: -16px 0; } }

/* ---------- Bühne: Titel, ein Satz, Kennzahlen, lebende Collage im Bogen ---------- */
.kat-buehne {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--wp--preset--spacing--30) clamp(1.5rem, 4vw, 3.5rem);
	margin-top: var(--wp--preset--spacing--30); padding: clamp(1.1rem, 2.4vw, 2rem) clamp(1.25rem, 3.6vw, 3rem); border-radius: 32px; overflow: hidden;
	background:
		radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--terracotta) 16%, transparent), transparent 62%),
		radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--wp--preset--color--salbei-dunkel) 10%, transparent), transparent 60%),
		var(--wp--preset--color--weiss-warm);
	border: 1px solid var(--wp--preset--color--sand); box-shadow: var(--wp--preset--shadow--weich);
}
.kat-buehne h1 { margin: 0; font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.3rem); }
.kat-intro { max-width: 52ch; margin: 0.65rem 0 0; font-size: 1.05rem; line-height: 1.55; color: color-mix(in srgb, var(--wp--preset--color--tinte) 82%, transparent); }
.kat-fakten { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.15rem 0 0; padding: 0; }
.kat-fakten li {
	margin: 0; padding: 0.38em 0.9em; border-radius: 999px; background: color-mix(in srgb, var(--wp--preset--color--salbei-dunkel) 9%, var(--wp--preset--color--weiss-warm));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--salbei-dunkel) 18%, transparent);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; font-size: 0.84rem; line-height: 1.2;
}
.kat-fakten strong { color: var(--wp--preset--color--salbei-dunkel); }
.kat-fakten .ist-neu { background: color-mix(in srgb, var(--wp--preset--color--terracotta) 12%, var(--wp--preset--color--weiss-warm)); border-color: color-mix(in srgb, var(--wp--preset--color--terracotta) 30%, transparent); }
.kat-fakten .ist-neu strong { color: var(--wp--preset--color--terracotta-dunkel); }
.kat-buehne-bild {
	position: relative; width: clamp(130px, 13vw, 190px); aspect-ratio: 1 / 1.08; border-radius: 999px 999px 28px 28px; overflow: hidden;
	background: var(--wp--preset--color--sand); box-shadow: 0 0 0 6px var(--wp--preset--color--weiss-warm), var(--wp--preset--shadow--karte-hover); rotate: 2.5deg;
}
.kat-buehne-bild > img { width: 100%; height: 100%; object-fit: cover; }

/* Mini-Collagen aus Produktfotos (Kacheln 2×2, Bühne 1 groß + 5 klein) */
.kat-collage { gap: 2px; background: var(--wp--preset--color--weiss-warm); }
.kat-collage.masche-collage--wand { --spalten: 2; --zeilen: 2; }
.kat-collage[data-anzahl="5"] { --spalten: 3; --zeilen: 2; }
.kat-collage[data-anzahl="5"] .masche-collage-kachel:first-child,
.kat-collage[data-anzahl="3"] .masche-collage-kachel:first-child { grid-row: span 2; }
.kat-collage[data-anzahl="2"] { --zeilen: 1; }
.kat-collage[data-anzahl="1"] { --spalten: 1; --zeilen: 1; }
.kat-collage--mosaik { gap: 3px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); }
.kat-collage--mosaik .masche-collage-kachel:first-child { grid-column: span 2; grid-row: span 2; }

/* ---------- Bogen-Kacheln: Unterkategorien mit Mini-Collage ---------- */
.kat-kacheln {
	display: flex; gap: clamp(0.65rem, 1.5vw, 1.2rem); margin-top: var(--wp--preset--spacing--40); padding: 0.5rem 0.1rem 0.6rem;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
}
.kat-kacheln::-webkit-scrollbar { display: none; }
.kat-kachel {
	flex: 0 0 auto; width: clamp(96px, 9vw, 124px); min-width: 0; scroll-snap-align: start;
	display: grid; justify-items: center; align-content: start; gap: 0.4rem; color: var(--wp--preset--color--tinte); text-decoration: none; text-align: center;
	-webkit-tap-highlight-color: transparent;
}
.kat-kachel-bild {
	position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 999px 999px 22px 22px; overflow: hidden;
	background: var(--wp--preset--color--sand); box-shadow: var(--wp--preset--shadow--weich);
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.kat-kachel-bild img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.kat-kachel-name { max-width: 100%; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.9rem; line-height: 1.2; overflow-wrap: break-word; hyphens: auto; }
.kat-kachel-zahl { margin-top: -0.25rem; font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; font-size: 0.74rem; opacity: 0.6; }
@media (hover: hover) {
	.kat-kachel:hover .kat-kachel-bild { translate: 0 -5px; box-shadow: var(--wp--preset--shadow--karte-hover); }
	.kat-kachel:hover .kat-kachel-bild img { scale: 1.07; }
}
.kat-kachel:active .kat-kachel-bild { scale: 0.97; }
.kat-kachel:focus-visible { outline: none; }
.kat-kachel:focus-visible .kat-kachel-bild { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 3px; }
.kat-kachel[aria-current] .kat-kachel-bild { box-shadow: 0 0 0 3px var(--wp--preset--color--creme), 0 0 0 5.5px var(--wp--preset--color--terracotta), var(--wp--preset--shadow--karte-hover); }
.kat-kachel[aria-current] .kat-kachel-name { color: var(--wp--preset--color--terracotta-dunkel); }

/* ---------- Werkzeugleiste: Filter-Knopf, aktive Filter, Anzahl, Sortierung – bleibt oben ---------- */
.masche-werkzeug {
	position: sticky; top: calc(max(var(--masche-kopf, 0px), var(--wp-admin--admin-bar--height, 0px)) + 0.6rem); z-index: 40; isolation: isolate;
	gap: 0.6rem !important; margin-top: var(--wp--preset--spacing--40) !important; margin-bottom: var(--wp--preset--spacing--40) !important;
	padding: 0.45rem 0.5rem 0.45rem 0.45rem; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand-dunkel) 55%, transparent); box-shadow: var(--wp--preset--shadow--weich);
}
/* Milchglas auf eigener Ebene – direkt auf der Leiste würde es die Schublade einsperren */
.masche-werkzeug::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
	background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 82%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.masche-werkzeug:has(.is-overlay-opened) { z-index: 10000; }
.masche-werkzeug > * { margin: 0 !important; }
.masche-werkzeug .wc-block-product-filters { flex: none; }
.masche-filter .wc-block-product-filters__open-overlay {
	display: inline-flex; align-items: center; gap: 0.35rem; min-height: 2.6rem; padding: 0 1.05rem 0 0.85rem; border-radius: 999px; border: 0;
	background: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: scale 0.12s;
}
.masche-filter .wc-block-product-filters__open-overlay:active { scale: 0.96; }
.masche-filter .wc-block-product-filters__open-overlay svg { width: 20px; height: 20px; }
.masche-filter .wc-block-product-filters__open-overlay[data-anzahl]:not([data-anzahl="0"])::after {
	content: attr(data-anzahl); display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 999px;
	background: var(--wp--preset--color--terracotta); color: #fff; font-size: 0.74rem;
}
.masche-werkzeug-chips { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.masche-werkzeug-chips::-webkit-scrollbar { display: none; }
.masche-werkzeug-chips[hidden] { display: none; }
.masche-chip {
	display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35em 0.75em 0.35em 0.85em; border-radius: 999px; white-space: nowrap; cursor: pointer;
	border: 1px solid var(--wp--preset--color--sand-dunkel); background: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; font-size: 0.82rem;
}
.masche-chip span { font-size: 1rem; line-height: 1; opacity: 0.6; }
.masche-chip:hover { border-color: var(--wp--preset--color--tinte); }
.masche-werkzeug .wc-block-product-results-count { margin-left: auto !important; white-space: nowrap; font-size: var(--wp--preset--font-size--small); opacity: 0.75; }
.masche-werkzeug .wc-block-product-results-count p, .masche-werkzeug .woocommerce-result-count { margin: 0; }
.masche-werkzeug .wp-block-woocommerce-catalog-sorting { flex: 0 1 auto; min-width: 0; }
.masche-werkzeug .wp-block-woocommerce-catalog-sorting form { margin: 0; }

/* ---------- Filter-Schublade (WooCommerce-Overlay) ---------- */
.masche-filter {
	--wc-product-filters-overlay-background-color: var(--wp--preset--color--creme);
	--wc-product-filters-overlay-text-color: var(--wp--preset--color--tinte);
}
.masche-filter.is-overlay-opened .wc-block-product-filters__overlay { background-color: rgba(20, 16, 12, 0.38); }
.masche-filter .wc-block-product-filters__overlay-dialog { width: min(100%, 400px); box-shadow: 0 0 50px rgba(0, 0, 0, 0.22); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.masche-filter .wc-block-product-filters__overlay-header {
	flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--40) 0.9rem; border-bottom: 1px solid var(--wp--preset--color--sand);
}
.masche-filter .wc-block-product-filters__overlay-header::before { content: "Filter"; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.55rem; line-height: 1.1; }
.masche-filter .wc-block-product-filters__close-overlay {
	justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; cursor: pointer;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
}
.masche-filter .wc-block-product-filters__overlay-content { gap: 0; padding: 0 var(--wp--preset--spacing--40); overflow-y: auto; overscroll-behavior: contain; }
.masche-filter .wc-block-product-filters__overlay-content > * { margin: 0 !important; padding: 1.15rem 0 1.25rem; border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand-dunkel) 45%, transparent); }
.masche-filter .wc-block-product-filters__overlay-content > :last-child { border-bottom: 0; }
.masche-filter .wc-block-product-filters__overlay-content > [hidden], .masche-filter .wc-block-product-filter--hidden { display: none; }
.masche-filter .wc-block-product-filters__overlay-content h3 { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.02rem !important; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.masche-filter .wc-block-product-filters__overlay-footer { padding: 0.85rem var(--wp--preset--spacing--40) calc(0.85rem + env(safe-area-inset-bottom)); box-shadow: none; border-top: 1px solid var(--wp--preset--color--sand); }
.masche-filter .wc-block-product-filters__apply { width: 100%; justify-content: center; }

/* aktive Filter oben in der Schublade */
.masche-filter .wc-block-product-filter-removable-chips__items { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.masche-filter .wc-block-product-filter-removable-chips__item {
	display: inline-flex; align-items: center; gap: 0.2rem; margin: 0; padding: 0.2em 0.35em 0.2em 0.85em; border-radius: 999px;
	border: 1px solid var(--wp--preset--color--sand-dunkel); background: var(--wp--preset--color--weiss-warm);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; font-size: 0.82rem;
}
.masche-filter .wc-block-product-filter-removable-chips__remove { display: inline-grid; place-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.masche-filter .wc-block-product-filter-removable-chips__remove-icon { width: 20px; height: 20px; fill: currentColor; }

/* Chips: Kategorien, Nadelstärke, Länge */
.masche-filter .wc-block-product-filter-chips__items { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.masche-filter .wc-block-product-filter-chips__item {
	display: inline-flex; align-items: center; min-height: 2.45rem; padding: 0 1rem; border-radius: 999px;
	border: 1.5px solid var(--wp--preset--color--sand-dunkel); background: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.87rem; line-height: 1.1;
	transition: background-color 0.22s, border-color 0.22s, color 0.22s, scale 0.12s;
}
.masche-filter .wc-block-product-filter-chips__label { display: inline-flex; align-items: center; gap: 0.35rem; }
.masche-filter .wc-block-product-filter-chips__count { font-size: 0.74rem; font-weight: 600; opacity: 0.55; }
@media (hover: hover) {
	.masche-filter .wc-block-product-filter-chips__item:not([disabled]):hover { border-color: var(--wp--preset--color--tinte); }
}
.masche-filter .wc-block-product-filter-chips__item[aria-checked="true"] { background: var(--wp--preset--color--tinte); border-color: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme); }
.masche-filter .wc-block-product-filter-chips__item[aria-checked="true"] .wc-block-product-filter-chips__label::before { content: "✓"; font-size: 0.8rem; }
.masche-filter .wc-block-product-filter-chips__item:focus-visible { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 2px; }
.masche-filter .wc-block-product-filter-chips__item:active { scale: 0.96; }
.masche-filter .wc-block-product-filter-chips__item[disabled] { opacity: 0.4; cursor: default; }
.masche-filter .wc-block-product-filter-chips__show-more { margin-top: 0.4rem; padding: 0; border: 0; background: none; color: var(--wp--preset--color--terracotta-dunkel); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Preis: Histogramm hinter dem Regler, dicke runde Griffe, „von – bis“, Schnellwahl */
.masche-filter .wc-block-product-filter-price-slider__content { padding-top: 3.3rem; row-gap: 0.5rem; }
.masche-filter .wc-block-product-filter-price-slider__range { position: relative; --range-color: var(--wp--preset--color--terracotta); }
.masche-filter .wc-block-product-filter-price-slider__range::before { opacity: 1; height: 6px; top: -1px; border-radius: 999px; background: var(--wp--preset--color--sand); }
.masche-filter .wc-block-product-filter-price-slider__range .range-bar { height: 6px; top: -1px; border-radius: 999px; }
.masche-preis-balken {
	position: absolute; left: 13px; right: 13px; bottom: calc(100% + 16px); height: 2.9rem; pointer-events: none;
	background: linear-gradient(90deg, var(--wp--preset--color--sand-dunkel) 0 var(--low), var(--wp--preset--color--terracotta) var(--low) var(--high), var(--wp--preset--color--sand-dunkel) var(--high) 100%);
	-webkit-mask: var(--maske) 0 0 / 100% 100% no-repeat; mask: var(--maske) 0 0 / 100% 100% no-repeat;
}
.masche-filter .wc-block-product-filter-price-slider__range input[type="range"]::-webkit-slider-thumb {
	width: 22px; height: 22px; margin-top: -9px; border: 0; background: var(--wp--preset--color--weiss-warm);
	box-shadow: 0 0 0 2.5px var(--wp--preset--color--terracotta), 0 3px 10px rgba(0, 0, 0, 0.22); transition: scale 0.15s;
}
.masche-filter .wc-block-product-filter-price-slider__range input[type="range"]:active::-webkit-slider-thumb { scale: 1.15; }
.masche-filter .wc-block-product-filter-price-slider__range input[type="range"]::-moz-range-thumb {
	width: 22px; height: 22px; border: 0; background: var(--wp--preset--color--weiss-warm); box-shadow: 0 0 0 2.5px var(--wp--preset--color--terracotta), 0 3px 10px rgba(0, 0, 0, 0.22);
}
.masche-filter .wc-block-product-filter-price-slider__left, .masche-filter .wc-block-product-filter-price-slider__right {
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.92rem; color: var(--wp--preset--color--terracotta-dunkel);
}
.masche-preis-schnell { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.95rem; }
.masche-preis-chip {
	display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 0.9rem; border-radius: 999px; text-decoration: none;
	border: 1.5px dashed var(--wp--preset--color--sand-dunkel); color: var(--wp--preset--color--tinte);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.83rem; transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.masche-preis-chip:hover { border-color: var(--wp--preset--color--tinte); }
.masche-preis-chip[aria-current] { background: var(--wp--preset--color--tinte); border-style: solid; border-color: var(--wp--preset--color--tinte); color: var(--wp--preset--color--creme); }

/* Verfügbarkeit: „Vorrätig“ als Schalter (die anderen Zustände braucht hier niemand) */
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__item:has(input[value="outofstock"]),
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__item:has(input[value="onbackorder"]) { display: none; }
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__label { display: flex; flex-direction: row-reverse; justify-content: space-between; width: 100%; cursor: pointer; }
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__text-wrapper { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; }
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__input-wrapper {
	position: relative; flex: none; width: 3.2rem; height: 1.85rem; border-radius: 999px; background: var(--wp--preset--color--sand-dunkel); transition: background-color 0.25s;
}
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__input-wrapper::after {
	content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.85rem - 6px); height: calc(1.85rem - 6px); border-radius: 50%;
	background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22); transition: translate 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); pointer-events: none;
}
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__mark { display: none; }
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__input-wrapper:has(input:checked) { background: var(--wp--preset--color--salbei-dunkel); }
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__input-wrapper:has(input:checked)::after { translate: 1.35rem 0; }
.masche-filter .wp-block-woocommerce-product-filter-status .wc-block-product-filter-checkbox-list__input-wrapper:has(input:focus-visible) { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 2px; }

/* ---------- Produktkarten: Varianten-Punkte ---------- */
.pk-varianten { display: flex; align-items: center; gap: 0.35rem; margin: 0.1rem 0 0.5rem; }
.pk-punkt {
	flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--wp--preset--color--sand) center / cover no-repeat; cursor: pointer;
	box-shadow: 0 0 0 2px var(--wp--preset--color--weiss-warm), 0 0 0 3px var(--wp--preset--color--sand-dunkel);
	transition: scale 0.25s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.25s;
}
.pk-punkt:hover, .pk-punkt.ist-aktiv { scale: 1.15; box-shadow: 0 0 0 2px var(--wp--preset--color--weiss-warm), 0 0 0 3.5px var(--wp--preset--color--terracotta); }
.pk-mehr { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.76rem; opacity: 0.65; }
.wc-block-product.zeigt-variante .masche-bild-2 { opacity: 0 !important; }

@media (prefers-reduced-motion: no-preference) {
	.kat-kachel { animation: kat-auf 0.55s calc(var(--i, 0) * 45ms) cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
	.kat-buehne-bild { animation: kat-bild 0.8s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
	.masche-filter.is-overlay-opened .wc-block-product-filters__overlay-content > * { animation: filter-teil-auf 0.45s 0.12s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
	.masche-filter.is-overlay-opened .wc-block-product-filters__overlay-content > :nth-child(2) { animation-delay: 0.19s; }
	.masche-filter.is-overlay-opened .wc-block-product-filters__overlay-content > :nth-child(3) { animation-delay: 0.26s; }
	.masche-filter.is-overlay-opened .wc-block-product-filters__overlay-content > :nth-child(n+4) { animation-delay: 0.33s; }
}
@media (max-width: 781px) {
	.kat-buehne { grid-template-columns: minmax(0, 1fr) auto; align-items: start; border-radius: 26px; }
	.kat-buehne-text { display: contents; }
	.kat-buehne h1 { grid-column: 1; grid-row: 1; align-self: center; font-size: clamp(1.7rem, 1.1rem + 3vw, 2.4rem); }
	.kat-buehne-bild { grid-column: 2; grid-row: 1; width: 80px; box-shadow: 0 0 0 4px var(--wp--preset--color--weiss-warm), var(--wp--preset--shadow--karte-hover); }
	.kat-buehne-bild .kat-collage--mosaik { gap: 2px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
	.kat-buehne-bild .kat-collage--mosaik .masche-collage-kachel:first-child { grid-column: auto; grid-row: auto; }
	.kat-buehne-bild .kat-collage--mosaik .masche-collage-kachel:nth-child(n+5) { display: none; }
	.kat-intro, .kat-fakten { grid-column: 1 / -1; }
	.kat-intro { margin-top: 0; font-size: 0.98rem; }
	.kat-fakten { margin-top: 0.1rem; }
	.kat-fakten li { font-size: 0.8rem; }
	.kat-kacheln { margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1rem)); padding-inline: var(--wp--style--root--padding-left, 1rem); scroll-padding-inline: var(--wp--style--root--padding-left, 1rem); }
	.kat-kachel { width: 88px; }
	.kat-kachel-name { font-size: 0.78rem; }
	.masche-werkzeug { flex-wrap: wrap !important; gap: 0.5rem !important; border-radius: 24px; padding: 0.45rem; }
	.masche-werkzeug .wc-block-product-results-count { display: none; }
	.masche-werkzeug .wp-block-woocommerce-catalog-sorting { flex: 1 1 0; }
	.masche-werkzeug .wp-block-woocommerce-catalog-sorting select { width: 100%; }
	.masche-werkzeug-chips { order: 3; flex-basis: 100%; }
}

/* ---------- Inhaltsseiten: Kontakt, FAQ, Versand und Zahlung, Widerrufsformular (inc/seiten.php) ---------- */

:root { --masche-fehler: #B3261E; }
:root[data-modus="dunkel"] { --masche-fehler: #F2A79F; }

.masche-seitenkopf {
	position: relative; isolation: isolate; overflow-x: clip; text-align: center;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
}
.masche-seitenkopf::before, .masche-seitenkopf::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; aspect-ratio: 1;
}
.masche-seitenkopf::before { width: min(60vw, 560px); right: -12vw; top: -40%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--salbei) 20%, transparent), transparent 66%); }
.masche-seitenkopf::after { width: min(54vw, 480px); left: -14vw; bottom: -55%; background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--terracotta) 17%, transparent), transparent 66%); }
.masche-seitenkopf > * { margin-block: 0 !important; }
.masche-seitenkopf h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem) !important; line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; overflow-wrap: break-word; }
.masche-seitenkopf h1 em { font-style: normal; position: relative; white-space: nowrap; }
.masche-seitenkopf h1 em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 0.34em; pointer-events: none;
	background: var(--wp--preset--color--terracotta);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M3 15C38 4 70 4 100 12s72 9 97-5' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M3 15C38 4 70 4 100 12s72 9 97-5' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.masche-seitenkopf .masche-seitenkopf-text {
	max-width: 36rem; margin: 1.1rem auto 0 !important; line-height: 1.55;
	font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.2rem); color: color-mix(in srgb, var(--wp--preset--color--tinte) 82%, transparent);
}
.masche-seite-inhalt { position: relative; z-index: 1; padding-bottom: var(--wp--preset--spacing--60); }

@keyframes masche-seite-rein { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes masche-seite-strich { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes masche-seite-haken { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
	.masche-seitenkopf > * { animation: masche-seite-rein 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.masche-seitenkopf > :nth-child(2) { animation-delay: 0.08s; }
	.masche-seitenkopf > :nth-child(3) { animation-delay: 0.16s; }
	.masche-seitenkopf h1 em::after { animation: masche-seite-strich 1s 0.6s cubic-bezier(0.6, 0, 0.2, 1) both; }
	.masche-formular-haken svg path { animation: masche-seite-haken 0.7s 0.2s cubic-bezier(0.6, 0, 0.2, 1) both; }
}

/* Kontakt: Wege als Karten, daneben das Formular */
.masche-kontakt { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--wp--preset--spacing--50); align-items: start; }
.masche-kontakt > * { margin: 0 !important; min-width: 0; }
.masche-kontakt-wege { display: grid; gap: 0.75rem; }
.masche-kontakt-wege > * { margin: 0 !important; }
.masche-kontakt-weg {
	display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: center;
	padding: 1rem 1.15rem; border-radius: 22px;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--weich, 0 6px 24px rgba(46, 42, 36, 0.06));
	transition: translate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.masche-kontakt-weg > * { margin: 0 !important; min-width: 0; }
.masche-kontakt-weg .masche-ueber-icon { grid-row: span 2; width: 56px; height: 56px; }
.masche-kontakt-weg .masche-ueber-icon svg { width: 28px; height: 28px; }
.masche-kontakt-weg :is(h2, h3) {
	align-self: end; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.76rem !important;
	letter-spacing: 0.09em; text-transform: uppercase; line-height: 1.3; opacity: 0.68;
}
.masche-kontakt-weg p { align-self: start; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.05rem; line-height: 1.4; overflow-wrap: anywhere; }
.masche-kontakt-weg:nth-child(2) .masche-ueber-icon { --masche-icon-bg: color-mix(in srgb, var(--wp--preset--color--terracotta) 16%, var(--wp--preset--color--weiss-warm)); --masche-icon-farbe: var(--wp--preset--color--terracotta-dunkel); }
.masche-kontakt-weg:nth-child(3) .masche-ueber-icon { --masche-icon-bg: var(--wp--preset--color--sand); --masche-icon-farbe: var(--wp--preset--color--tinte); }
.masche-kontakt-tipp { margin: 0.4rem 0.3rem 0 !important; font-size: var(--wp--preset--font-size--small, 0.9rem); line-height: 1.6; opacity: 0.85; }
@media (hover: hover) {
	.masche-kontakt-weg:hover { translate: 0 -3px; box-shadow: var(--wp--preset--shadow--karte-hover, 0 14px 34px rgba(46, 42, 36, 0.12)); }
}
.masche-widerruf-adresse { margin-top: var(--wp--preset--spacing--40) !important; }

/* Formulare des Themes */
.masche-formular-karte {
	padding: clamp(1.15rem, 0.6rem + 2.2vw, 2.1rem); border-radius: 26px;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--weich, 0 6px 24px rgba(46, 42, 36, 0.06));
}
.masche-formular-karte > * { margin-block: 0 !important; }
.masche-formular-karte > h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem) !important; margin-bottom: 1rem !important; }
.masche-formular { margin: 0; position: relative; }
.masche-formular-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.95rem 1rem; }
.masche-feld { display: flex; flex-direction: column; gap: 0.3rem; margin: 0 !important; min-width: 0; }
.masche-feld--voll { grid-column: 1 / -1; }
.masche-feld label { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.86rem; line-height: 1.3; }
.masche-feld-stern { color: var(--wp--preset--color--terracotta-dunkel); }
.masche-feld-frei { font-weight: 500; font-size: 0.76rem; opacity: 0.6; }
.masche-feld :is(input, textarea) {
	width: 100%; box-sizing: border-box; font: inherit; color: inherit; margin: 0;
	border: 1.5px solid var(--wp--preset--color--sand-dunkel); border-radius: 14px;
	background: var(--wp--preset--color--creme); padding: 0.75em 1em;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.masche-feld textarea { resize: vertical; min-height: 5.5rem; line-height: 1.5; }
.masche-feld :is(input, textarea):focus {
	outline: none; border-color: var(--wp--preset--color--terracotta-dunkel); background: var(--wp--preset--color--weiss-warm);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--terracotta) 20%, transparent);
}
.masche-feld.ist-fehler :is(input, textarea) { border-color: var(--masche-fehler); }
.masche-feld-fehler { color: var(--masche-fehler); font-size: 0.8rem; font-weight: 600; }
.masche-feld-hilfe { font-size: 0.8rem; opacity: 0.7; }
.masche-formular-falle { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.masche-formular-meldung {
	margin: 0 0 1rem !important; padding: 0.7rem 1rem; border-radius: 14px; font-weight: 600; font-size: 0.92rem; line-height: 1.45;
	color: var(--masche-fehler); background: color-mix(in srgb, var(--masche-fehler) 9%, var(--wp--preset--color--weiss-warm));
	border: 1px solid color-mix(in srgb, var(--masche-fehler) 35%, transparent);
}
.masche-formular-einstieg { margin: 0 0 1rem !important; font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; line-height: 1.5; }
.masche-formular-hinweis { margin: 1rem 0 !important; font-size: 0.82rem; line-height: 1.5; opacity: 0.78; }
.masche-formular-knopf { cursor: pointer; border: 0; }
.masche-formular--fertig { text-align: center; padding: 1.2rem 0.5rem; outline: none; }
.masche-formular--fertig p { margin: 1rem auto 0 !important; max-width: 30rem; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.08rem; line-height: 1.45; }
.masche-formular-haken {
	display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
	background: var(--wp--preset--color--salbei-hell); color: var(--wp--preset--color--salbei-dunkel);
}
.masche-formular-haken svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.masche-formular-haken svg path { stroke-dasharray: 1; }

/* FAQ: Fragen zum Aufklappen */
.masche-faq-gruppe { margin-top: var(--wp--preset--spacing--50) !important; }
.masche-seite-inhalt > .masche-faq-gruppe:first-child { margin-top: 0 !important; }
.masche-faq-gruppe > h2, .masche-faq > h2 { margin: 0 0 0.85rem !important; font-size: clamp(1.2rem, 1.08rem + 0.6vw, 1.55rem) !important; }
.masche-frage {
	margin: 0 0 0.6rem !important; border-radius: 20px; overflow: hidden;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--weich, 0 6px 24px rgba(46, 42, 36, 0.06));
	transition: border-color 0.25s ease;
}
.masche-frage[open] { border-color: var(--wp--preset--color--sand-dunkel); }
.masche-frage > summary {
	position: relative; cursor: pointer; list-style: none; padding: 1rem 3.6rem 1rem 1.2rem;
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.02rem; line-height: 1.38;
	-webkit-tap-highlight-color: transparent;
}
.masche-frage > summary::-webkit-details-marker { display: none; }
.masche-frage > summary::after {
	content: ""; position: absolute; right: 1rem; top: 50%; width: 1.9rem; height: 1.9rem; translate: 0 -50%; border-radius: 50%;
	color: var(--wp--preset--color--salbei-dunkel);
	background:
		linear-gradient(currentColor, currentColor) center / 0.8rem 2px no-repeat,
		linear-gradient(currentColor, currentColor) center / 2px 0.8rem no-repeat,
		var(--wp--preset--color--salbei-hell);
	transition: rotate 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.25s ease;
}
.masche-frage[open] > summary::after { rotate: 135deg; }
.masche-frage > :not(summary) { margin: 0 1.2rem 0.75rem !important; line-height: 1.6; }
.masche-frage > :not(summary):last-child { margin-bottom: 1.15rem !important; }
.masche-frage .masche-zahlarten { justify-content: flex-start; }
@supports (interpolate-size: allow-keywords) {
	@media (prefers-reduced-motion: no-preference) {
		.masche-frage { interpolate-size: allow-keywords; }
		.masche-frage::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), content-visibility 0.4s allow-discrete; }
		.masche-frage[open]::details-content { block-size: auto; }
	}
}
.masche-faq-mehr {
	margin-top: var(--wp--preset--spacing--60) !important; padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); border-radius: 26px; text-align: center;
	background: var(--wp--preset--color--salbei-hell);
}
.masche-faq-mehr > * { margin-block: 0 !important; }
.masche-faq-mehr h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem) !important; }
.masche-faq-mehr p { margin-top: 0.4rem !important; }
.masche-faq-mehr :is(.wp-block-buttons, .btn) { margin-top: 1.1rem !important; }

/* Versand und Zahlung */
.masche-info-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--wp--preset--spacing--40); }
.masche-info-karten > * { margin: 0 !important; }
.masche-info-karte {
	display: flex; flex-direction: column; align-items: flex-start; min-width: 0;
	padding: var(--wp--preset--spacing--40); border-radius: 24px;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--weich, 0 6px 24px rgba(46, 42, 36, 0.06));
}
.masche-info-karte > * { margin-block: 0 !important; max-width: 100%; }
.masche-info-karte h2 { margin-top: 1.1rem !important; font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem) !important; }
.masche-info-karte p { margin-top: 0.55rem !important; font-size: var(--wp--preset--font-size--small, 0.9rem); line-height: 1.6; color: color-mix(in srgb, var(--wp--preset--color--tinte) 84%, transparent); }
.masche-info-karte .masche-info-zahl {
	margin-top: 0.7rem !important; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700;
	font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; color: var(--wp--preset--color--salbei-dunkel);
}
.masche-info-karte .masche-info-zahl + p { margin-top: 0.2rem !important; }
.masche-info-karte .masche-info-frei {
	margin-top: 0.9rem !important; padding: 0.4rem 0.85rem; border-radius: 14px; font-weight: 700; line-height: 1.4;
	background: var(--wp--preset--color--salbei-hell); color: var(--wp--preset--color--salbei-dunkel);
}
.masche-info-karte:nth-child(2) .masche-ueber-icon { --masche-icon-bg: color-mix(in srgb, var(--wp--preset--color--terracotta) 16%, var(--wp--preset--color--weiss-warm)); --masche-icon-farbe: var(--wp--preset--color--terracotta-dunkel); }
.masche-info-karte:nth-child(3) .masche-ueber-icon { --masche-icon-bg: var(--wp--preset--color--sand); --masche-icon-farbe: var(--wp--preset--color--tinte); }
.masche-zahlung { margin-top: var(--wp--preset--spacing--60) !important; text-align: center; }
.masche-zahlung > * { margin-block: 0 !important; }
.masche-zahlarten { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; padding: 0; margin: 1.1rem 0 0 !important; }
.masche-zahlarten li {
	margin: 0; padding: 0.5rem 1.1rem; border-radius: 999px; line-height: 1.3;
	border: 1.5px solid var(--wp--preset--color--sand-dunkel); background: var(--wp--preset--color--weiss-warm);
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.92rem;
}
.masche-zahlung-links { margin-top: 1.3rem !important; font-size: var(--wp--preset--font-size--small, 0.9rem); line-height: 1.7; opacity: 0.85; }

/* Übrig gebliebene Flatsome-Inhalte (Auffangnetz in inc/seiten.php) */
.masche-alt-abschnitt + .masche-alt-abschnitt { margin-top: var(--wp--preset--spacing--50); }
.masche-alt-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--wp--preset--spacing--40); margin-block: var(--wp--preset--spacing--40); }
.masche-alt-spalte { min-width: 0; }
.masche-alt-spalte > :first-child { margin-top: 0; }
:is(.masche-alt-bild, .masche-alt-banner, .masche-alt-box) img { max-width: 100%; height: auto; border-radius: 20px; }
.masche-alt-bild { margin: 0 0 1rem; }
.masche-alt-box > img { width: 72px; border-radius: 0; }

@media (max-width: 960px) {
	.masche-info-karten { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
	.masche-info-karte { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; align-items: start; padding: 1.1rem 1.15rem; }
	.masche-info-karte .masche-ueber-icon { grid-row: 1 / span 6; width: 56px; height: 56px; }
	.masche-info-karte .masche-ueber-icon svg { width: 28px; height: 28px; }
	.masche-info-karte > :not(.masche-ueber-icon) { grid-column: 2; justify-self: start; }
	.masche-info-karte h2 { margin-top: 0.15rem !important; }
}
@media (max-width: 860px) {
	.masche-kontakt { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
	.masche-formular-felder { grid-template-columns: minmax(0, 1fr); }
	.masche-formular-knopf { width: 100%; }
	.masche-frage > summary { padding: 0.9rem 3.2rem 0.9rem 1rem; font-size: 0.98rem; }
	.masche-frage > summary::after { right: 0.8rem; }
	.masche-frage > :not(summary) { margin-inline: 1rem !important; }
}

/* Adventskalender-Hinweis auf der Startseite (Kasten kommt vom Plugin; ohne Plugin bleibt die Stelle leer) */
.masche-advent-hinweis { margin-block: 0 !important; }
.masche-advent-hinweis .mak-zaehler { margin-block: var(--wp--preset--spacing--50) 0; }

/* Set-Kurzinfo auf der Produktkarte: was drin ist und wie viel man spart (inc/sets.php) */
.pk-set { display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem; margin: 0.1rem 0 0.5rem !important; font-size: var(--wp--preset--font-size--small); line-height: 1.35; }
.pk-set-was { font-family: var(--wp--preset--font-family--quicksand); font-weight: 600; }
.pk-set-spar {
	padding: 0.2rem 0.6rem; border-radius: 10px; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.8rem; line-height: 1.35;
	background: var(--wp--preset--color--salbei-hell); color: var(--wp--preset--color--salbei-dunkel);
}
.pk-set-spar .woocommerce-Price-amount { font-weight: inherit; color: inherit; }

/* Farbfinder: Sets zeigen ihre Ersparnis (Marke auf dem Foto) und den durchgestrichenen Einzelpreis */
.masche-ff-plus.masche-ff-spar { background: var(--wp--preset--color--salbei-dunkel); color: #fff; font-weight: 700; }
.masche-ff-preis del { font-weight: 500; font-size: 0.9em; opacity: 0.6; margin-right: 0.25em; }
.masche-ff-preis ins { text-decoration: none; background: none; }

/* ---------- Nachtmodus: Warenkorb und Kasse (klassische WooCommerce-Seiten) ---------- */

/* „Warenkorb anzeigen“ im Hinweis: WooCommerce setzt hier fest ein dunkles Grau */
:root[data-modus="dunkel"] .wc-block-components-notice-banner .wc-forward,
:root[data-modus="dunkel"] .wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward,
:root[data-modus="dunkel"] .woocommerce-message .wc-forward,
:root[data-modus="dunkel"] .woocommerce-info .wc-forward {
	color: var(--wp--preset--color--terracotta-dunkel) !important; opacity: 1 !important;
	text-decoration: underline; text-underline-offset: 3px;
}
:root[data-modus="dunkel"] .wc-block-components-notice-banner a { color: var(--wp--preset--color--terracotta-dunkel); }

/* PayPal-Hinweis „Später bezahlen“: PayPal liefert schwarze Schrift – deshalb auf einer hellen Fläche */
:root[data-modus="dunkel"] .ppcp-messages:not(:empty) {
	color-scheme: light; background: #F7F3EE; color: #2B2621;
	padding: 0.55rem 0.8rem; border-radius: 12px; margin: 0.6rem 0 0.9rem;
}

/* Platzhalter, Pflicht-Sternchen, „Entfernen“-Kreuz */
:root[data-modus="dunkel"] .woocommerce form .form-row .input-text::placeholder,
:root[data-modus="dunkel"] .woocommerce .coupon .input-text::placeholder,
:root[data-modus="dunkel"] .woocommerce-cart table.cart td.actions .coupon .input-text::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--tinte) 62%, transparent); opacity: 1;
}
:root[data-modus="dunkel"] .woocommerce form .form-row .required,
:root[data-modus="dunkel"] .woocommerce form .form-row label .required { color: var(--wp--preset--color--terracotta-dunkel); }
:root[data-modus="dunkel"] .woocommerce a.remove { color: var(--wp--preset--color--terracotta-dunkel) !important; }
:root[data-modus="dunkel"] .woocommerce a.remove:hover { background: var(--wp--preset--color--terracotta); color: #15120F !important; }
:root[data-modus="dunkel"] .woocommerce-cart table.cart td.actions .coupon .input-text,
:root[data-modus="dunkel"] .woocommerce .coupon .input-text {
	background-color: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte);
	border-color: var(--wp--preset--color--sand-dunkel);
}

/* Auswahlpunkte und Häkchen: sonst dunkelgrau auf dunkel */
:root[data-modus="dunkel"] .woocommerce input[type="radio"],
:root[data-modus="dunkel"] .woocommerce input[type="checkbox"],
:root[data-modus="dunkel"] .woocommerce-page input[type="radio"],
:root[data-modus="dunkel"] .woocommerce-page input[type="checkbox"] {
	accent-color: var(--wp--preset--color--terracotta); color-scheme: dark;
	outline: 1.5px solid color-mix(in srgb, var(--wp--preset--color--tinte) 55%, transparent); outline-offset: 1px; border-radius: 3px;
}
:root[data-modus="dunkel"] .woocommerce input[type="radio"],
:root[data-modus="dunkel"] .woocommerce-page input[type="radio"] { border-radius: 50%; }

/* Auswahlfelder (Land, Bundesland): bisher eine weiße Fläche */
:root[data-modus="dunkel"] .select2-container--default .select2-selection--single,
:root[data-modus="dunkel"] .woocommerce form .form-row select:not(.country_to_state--single),
:root[data-modus="dunkel"] .woocommerce select:not(.country_to_state--single) {
	background-color: var(--wp--preset--color--weiss-warm) !important; color: var(--wp--preset--color--tinte) !important;
	border: 1px solid var(--wp--preset--color--sand-dunkel) !important;
}
:root[data-modus="dunkel"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--wp--preset--color--tinte); }
:root[data-modus="dunkel"] .select2-container--default .select2-selection--single .select2-selection__placeholder { color: color-mix(in srgb, var(--wp--preset--color--tinte) 62%, transparent); }
:root[data-modus="dunkel"] .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--wp--preset--color--tinte) transparent transparent transparent; }
:root[data-modus="dunkel"] .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--wp--preset--color--tinte) transparent; }
:root[data-modus="dunkel"] .select2-dropdown {
	background-color: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte);
	border-color: var(--wp--preset--color--sand-dunkel);
}
:root[data-modus="dunkel"] .select2-container--default .select2-search--dropdown .select2-search__field {
	background-color: var(--wp--preset--color--creme); color: var(--wp--preset--color--tinte);
	border: 1px solid var(--wp--preset--color--sand-dunkel);
}
:root[data-modus="dunkel"] .select2-container--default .select2-results__option { color: var(--wp--preset--color--tinte); }
:root[data-modus="dunkel"] .select2-container--default .select2-results__option[aria-selected="true"],
:root[data-modus="dunkel"] .select2-container--default .select2-results__option[data-selected="true"] { background-color: var(--wp--preset--color--sand); color: var(--wp--preset--color--tinte); }
:root[data-modus="dunkel"] .select2-container--default .select2-results__option--highlighted[aria-selected],
:root[data-modus="dunkel"] .select2-container--default .select2-results__option--highlighted[data-selected] { background-color: var(--wp--preset--color--terracotta); color: #15120F; }

/* Zahlungsarten: Der Zahlungsanbieter (Stripe: Karte, Klarna) übernimmt Schrift- und Feldfarben
   von der Seite – im Nachtmodus also helle Schrift. Deshalb muss auch der Kasten darunter dunkel sein. */
:root[data-modus="dunkel"] .woocommerce-checkout #payment,
:root[data-modus="dunkel"] #add_payment_method #payment {
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand-dunkel); border-radius: 16px;
}
:root[data-modus="dunkel"] .woocommerce-checkout #payment ul.payment_methods,
:root[data-modus="dunkel"] #add_payment_method #payment ul.payment_methods { border-bottom-color: var(--wp--preset--color--sand-dunkel); }
:root[data-modus="dunkel"] .woocommerce-checkout #payment ul.payment_methods li label { color: var(--wp--preset--color--tinte); }
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box,
:root[data-modus="dunkel"] #add_payment_method #payment div.payment_box {
	background-color: var(--wp--preset--color--creme); color: var(--wp--preset--color--tinte);
	border: 1px solid var(--wp--preset--color--sand-dunkel); border-radius: 12px;
}
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box::before,
:root[data-modus="dunkel"] #add_payment_method #payment div.payment_box::before { border-bottom-color: var(--wp--preset--color--sand-dunkel); }
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box a { color: var(--wp--preset--color--terracotta-dunkel); }
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box label,
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box p,
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box legend { color: var(--wp--preset--color--tinte); }
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box fieldset,
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box .wc-payment-form { border-color: var(--wp--preset--color--sand-dunkel); }
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box input.input-text,
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box textarea,
:root[data-modus="dunkel"] .woocommerce-checkout #payment div.payment_box select {
	background-color: var(--wp--preset--color--weiss-warm); color: var(--wp--preset--color--tinte);
	border-color: var(--wp--preset--color--sand-dunkel);
}

/* Mengenfeld (−  1  +) auf der Produktseite und im Warenkorb: WooCommerce setzt eine weiße Fläche,
   die Schrift war im Nachtmodus aber schon hell */
:root[data-modus="dunkel"] .wc-block-components-quantity-selector,
:root[data-modus="dunkel"] .woocommerce .quantity.wc-block-components-quantity-selector,
:root[data-modus="dunkel"] form.cart .quantity {
	background-color: var(--wp--preset--color--weiss-warm) !important; color: var(--wp--preset--color--tinte) !important;
	border: 1px solid var(--wp--preset--color--sand-dunkel);
}
:root[data-modus="dunkel"] .wc-block-components-quantity-selector::after { border-color: var(--wp--preset--color--sand-dunkel); }
:root[data-modus="dunkel"] .wc-block-components-quantity-selector .wc-block-components-quantity-selector__input,
:root[data-modus="dunkel"] .wc-block-components-quantity-selector input.qty,
:root[data-modus="dunkel"] form.cart .quantity input.qty,
:root[data-modus="dunkel"] .woocommerce .quantity input.qty {
	background-color: transparent !important; color: var(--wp--preset--color--tinte) !important; -webkit-text-fill-color: var(--wp--preset--color--tinte);
}
:root[data-modus="dunkel"] .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	color: var(--wp--preset--color--tinte) !important; opacity: 1;
}
:root[data-modus="dunkel"] .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:hover,
:root[data-modus="dunkel"] .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:focus-visible {
	background-color: var(--wp--preset--color--sand) !important;
}
:root[data-modus="dunkel"] .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled { opacity: 0.4; }

/* Tabellen: Linien und Kopfzeile */
:root[data-modus="dunkel"] .woocommerce table.shop_table,
:root[data-modus="dunkel"] .woocommerce table.shop_table td,
:root[data-modus="dunkel"] .woocommerce table.shop_table th,
:root[data-modus="dunkel"] .woocommerce .cart-collaterals .cart_totals table,
:root[data-modus="dunkel"] .woocommerce .cart-collaterals .cart_totals tr td,
:root[data-modus="dunkel"] .woocommerce .cart-collaterals .cart_totals tr th { border-color: var(--wp--preset--color--sand-dunkel); color: var(--wp--preset--color--tinte); }
:root[data-modus="dunkel"] .woocommerce-checkout .woocommerce-form-login,
:root[data-modus="dunkel"] .woocommerce-checkout .checkout_coupon { border-color: var(--wp--preset--color--sand-dunkel); }

/* ---------- Kategorien: Umschalter zwischen den Bereichen des Shops ---------- */
.kat-nav { margin-top: var(--wp--preset--spacing--40); }
.kat-kacheln[hidden] { display: none; }
.kat-bereiche {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.4rem; padding: 0.4rem;
	border-radius: 28px; background: var(--wp--preset--color--sand);
}
.kat-bereich {
	display: flex; align-items: center; gap: 0.7rem; min-width: 0; padding: 0.5rem 1rem 0.5rem 0.6rem; border-radius: 22px;
	color: var(--wp--preset--color--tinte); text-decoration: none; -webkit-tap-highlight-color: transparent;
	transition: background-color 0.25s, box-shadow 0.25s;
}
.kat-bereich:hover { background: color-mix(in srgb, var(--wp--preset--color--weiss-warm) 55%, transparent); }
.kat-bereich:focus-visible { outline: 2px solid var(--wp--preset--color--terracotta-dunkel); outline-offset: 2px; }
.kat-bereich.ist-gewaehlt { background: var(--wp--preset--color--weiss-warm); box-shadow: var(--wp--preset--shadow--weich); }
.kat-bereich-bild { display: flex; flex: 0 0 auto; padding-left: 12px; }
.kat-bereich-bild img { width: 42px; height: 42px; margin-left: -12px; border-radius: 50%; object-fit: cover; border: 2px solid var(--wp--preset--color--weiss-warm); }
.kat-bereich-name { min-width: 0; font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.kat-bereich.ist-gewaehlt .kat-bereich-name { color: var(--wp--preset--color--terracotta-dunkel); }
.kat-bereich-zahl { margin-left: auto; font-family: var(--wp--preset--font-family--quicksand); font-size: 0.78rem; font-weight: 600; opacity: 0.65; white-space: nowrap; }
.kat-nav .kat-kacheln { margin-top: 0.9rem; }
@media (max-width: 600px) {
	.kat-bereich { flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.4rem; text-align: center; }
	.kat-bereich-zahl { margin: 0; }
	.kat-bereich-name { font-size: 0.9rem; }
}

/* ---------- Rechtstexte: AGB, Datenschutz, Widerrufsbelehrung, Impressum (inc/rechtstexte.php) ----------
   Der Text kommt von der IT-Recht Kanzlei (.agb_content); das Theme gestaltet ihn nur. */
.masche-rt { display: block; }
.masche-rt > * { margin-block: 0 !important; }
.masche-rechtstext {
	box-sizing: border-box; width: 100%; max-width: 46rem !important; margin-inline: auto !important; min-width: 0;
	padding: clamp(1.3rem, 0.6rem + 2.6vw, 2.6rem); border-radius: 26px;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
	box-shadow: var(--wp--preset--shadow--weich, 0 6px 24px rgba(46, 42, 36, 0.06));
	font-size: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem); line-height: 1.72; overflow-wrap: anywhere;
}
.masche-rechtstext > *, .masche-rechtstext .wp-block-post-content > * { margin-block: 0; }
.masche-rechtstext .wp-block-post-content > * + * { margin-top: 1.1rem; }
.masche-rechtstext p, .masche-rechtstext ul, .masche-rechtstext ol { margin: 0 0 0.95em; }
.masche-rechtstext ul, .masche-rechtstext ol { padding-left: 1.3em; }
.masche-rechtstext li { margin-bottom: 0.35em; }
.masche-rechtstext li::marker { color: var(--wp--preset--color--terracotta-dunkel); font-weight: 700; }
.masche-rechtstext :is(h2, h3, h4) { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; scroll-margin-top: calc(var(--masche-kopf, 0px) + 1.5rem); }
.masche-rechtstext h2 {
	margin: 2.1rem 0 0.8rem; padding-top: 1.7rem; border-top: 1px dashed var(--wp--preset--color--sand-dunkel);
	font-size: clamp(1.12rem, 1.02rem + 0.45vw, 1.38rem) !important; line-height: 1.3;
}
.masche-rechtstext .agb_content > div:first-child > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.masche-rechtstext :is(h3, h4) { margin: 1.5rem 0 0.5rem; font-size: clamp(1rem, 0.97rem + 0.2vw, 1.12rem) !important; line-height: 1.35; }
.masche-rechtstext p > b:first-child, .masche-rechtstext p > strong:first-child { font-family: var(--wp--preset--font-family--quicksand); color: var(--wp--preset--color--terracotta-dunkel); }
.masche-rechtstext a { color: var(--wp--preset--color--terracotta-dunkel); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.masche-rechtstext a:hover { text-decoration-thickness: 2px; }
.masche-rechtstext h2.ist-gesprungen { animation: masche-rt-blink 1.4s ease; }
@keyframes masche-rt-blink { 0%, 60% { color: var(--wp--preset--color--terracotta-dunkel); } }
/* Impressum: erste Zeile (Name) hervorheben – auch bei IT-Recht-Text ohne Absätze */
.masche-rechtstext .agb_imprint > div:first-child::first-line { font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 1.28em; }
.masche-rechtstext .wp-block-post-content > p:first-child strong:first-child { display: inline-block; margin-bottom: 0.15rem; font-size: 1.3rem; line-height: 1.25; color: inherit; }
.masche-rechtstext .wp-block-post-content > p + p { padding-top: 1.1rem; border-top: 1px dashed var(--wp--preset--color--sand-dunkel); }
/* „Stand: …“ der IT-Recht Kanzlei: bringt eigene Abstände und float mit */
.masche-rechtstext #itkanzlei_txt_copyright {
	margin-top: 1.8rem !important; padding-top: 1rem; border-top: 1px dashed var(--wp--preset--color--sand-dunkel);
	font-size: 0.8rem !important; opacity: 0.7;
}
.masche-rechtstext #itkanzlei_txt_copyright > div { float: none !important; display: block !important; margin: 0 !important; white-space: normal !important; }
.masche-rechtslinks {
	max-width: 46rem; margin: 1.3rem auto 0 !important; text-align: center;
	font-size: var(--wp--preset--font-size--small, 0.9rem); line-height: 1.8; opacity: 0.85;
}
.masche-rechtslinks a { color: inherit; text-underline-offset: 3px; }

/* Inhaltsverzeichnis (masche.js): am Handy aufklappbar über dem Text, am großen Bildschirm mitlaufend daneben */
.masche-rt-nav[hidden] { display: none; }
.masche-rt-nav details {
	box-sizing: border-box; max-width: 46rem; margin: 0 auto 1rem; border-radius: 22px;
	background: var(--wp--preset--color--weiss-warm); border: 1px solid var(--wp--preset--color--sand);
}
.masche-rt-nav summary {
	display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.1rem; cursor: pointer; list-style: none;
	font-family: var(--wp--preset--font-family--quicksand); font-weight: 700; font-size: 0.95rem;
}
.masche-rt-nav summary::-webkit-details-marker { display: none; }
.masche-rt-nav summary small { font-weight: 600; font-size: 0.78rem; opacity: 0.6; }
.masche-rt-nav summary::after { content: ""; width: 0.55rem; height: 0.55rem; margin-left: auto; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -0.15rem; transition: rotate 0.25s ease, translate 0.25s ease; }
.masche-rt-nav details[open] summary::after { rotate: 225deg; translate: 0 0.15rem; }
.masche-rt-nav ol { margin: 0; padding: 0 0.6rem 0.8rem; list-style: none; }
.masche-rt-nav li { margin: 0; }
.masche-rt-nav a {
	display: block; padding: 0.42rem 0.6rem; border-radius: 12px; color: inherit; text-decoration: none;
	font-size: 0.88rem; line-height: 1.35; transition: background-color 0.2s ease, color 0.2s ease;
}
.masche-rt-nav a:hover { background: var(--wp--preset--color--sand); }
.masche-rt-nav a[aria-current="true"] { background: color-mix(in srgb, var(--wp--preset--color--terracotta) 14%, transparent); color: var(--wp--preset--color--terracotta-dunkel); font-weight: 700; }
/* hat der Text schon ein eigenes Inhaltsverzeichnis (AGB), reicht am Handy dieses */
@media (max-width: 1099px) { .masche-rt--eigenes-verzeichnis .masche-rt-nav { display: none; } }
@media (min-width: 1100px) {
	.masche-rt--mit-nav { display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 46rem); justify-content: center; align-items: start; gap: clamp(1.5rem, 3vw, 3rem); }
	.masche-rt--mit-nav .masche-rt-nav { position: sticky; top: calc(var(--masche-kopf, 0px) + 1.5rem); max-height: calc(100vh - var(--masche-kopf, 0px) - 3rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.masche-rt--mit-nav .masche-rt-nav details { margin: 0; background: transparent; border: 0; }
	.masche-rt--mit-nav .masche-rt-nav summary { pointer-events: none; padding: 0 0.6rem 0.6rem; font-size: 0.76rem; letter-spacing: 0.09em; text-transform: uppercase; opacity: 0.7; }
	.masche-rt--mit-nav .masche-rt-nav summary::after, .masche-rt--mit-nav .masche-rt-nav summary small { display: none; }
	.masche-rt--mit-nav .masche-rt-nav ol { padding: 0; border-left: 2px solid var(--wp--preset--color--sand); }
	.masche-rt--mit-nav .masche-rt-nav a { border-radius: 0 12px 12px 0; margin-left: -2px; border-left: 2px solid transparent; }
	.masche-rt--mit-nav .masche-rt-nav a[aria-current="true"] { border-left-color: var(--wp--preset--color--terracotta-dunkel); }
	.masche-rt--mit-nav .masche-rechtstext { margin-inline: 0 !important; }
}
