/**
 * Virtueller Spiegel — Overlay auf der Artikelseite.
 *
 * Alles ist unter .zwcl-spiegel eingesperrt, damit nichts ins Theme ausblutet.
 * Die [hidden]-Regel MUSS vor allen display-Regeln stehen: sonst schlägt eine
 * Klassenregel mit display:flex/grid das hidden-Attribut und Blöcke bleiben
 * sichtbar, die verschwinden sollten (bekannte Falle aus dem Prototyp).
 */

.zwcl-spiegel[hidden],
.zwcl-spiegel [hidden] { display: none !important; }

.zwcl-spiegel {
	--zws-akzent: #23434a;
	--zws-akzent-dunkel: #173136;
	--zws-tinte: #1f2937;
	--zws-grau: #6b7280;
	--zws-linie: #e5e7eb;
	--zws-flaeche: #f4f1ec;
	--zws-karte: #fff;
	--zws-radius: 14px;
	--zws-schatten: 0 10px 40px rgba(0, 0, 0, .18);

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(24, 26, 27, .6);
	color: var(--zws-tinte);
	font-size: 15px;
	line-height: 1.45;
	overflow-y: auto;
	overscroll-behavior: contain;
}

body.zwcl-spiegel-offen { overflow: hidden; }

.zwcl-spiegel__fenster {
	position: relative;
	width: 100%;
	max-width: 980px;
	max-height: 94vh;
	overflow: auto;
	background: var(--zws-karte);
	border-radius: 18px;
	box-shadow: var(--zws-schatten);
}

.zwcl-spiegel__schliessen {
	position: absolute;
	top: 8px;
	right: 12px;
	z-index: 3;
	padding: 4px 8px;
	border: 0;
	background: rgba(255, 255, 255, .85);
	border-radius: 50%;
	color: var(--zws-grau);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}
.zwcl-spiegel__schliessen:hover { color: var(--zws-tinte); }

/* --- Ansicht 1: Auswahl -------------------------------------------- */

.zwcl-spiegel__seite[data-seite="auswahl"] { padding: 22px 20px 26px; }
.zwcl-spiegel__kopf { margin: 0 40px 14px 0; }
.zwcl-spiegel__kopf h2 { margin: 0; font-size: 21px; line-height: 1.25; }
.zwcl-spiegel__claim { margin: 4px 0 0; color: var(--zws-grau); font-size: 14px; }

.zwcl-spiegel__schritt { margin-top: 18px; }
.zwcl-spiegel__schrittkopf { display: flex; align-items: center; gap: 9px; }
.zwcl-spiegel__schrittkopf h3 { margin: 0; font-size: 17px; }
.zwcl-spiegel__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	flex: 0 0 25px;
	border-radius: 50%;
	background: var(--zws-akzent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}
.zwcl-spiegel__hinweis { margin: 6px 0 12px; color: var(--zws-grau); font-size: 13.5px; }

.zwcl-spiegel__fotozone {
	padding: 20px 16px;
	border: 2px dashed var(--zws-linie);
	border-radius: 12px;
	text-align: center;
	transition: border-color .15s, background .15s;
}
.zwcl-spiegel__fotozone.is-ziehen { border-color: var(--zws-akzent); background: #f8f7f3; }
.zwcl-spiegel__fotoaktionen { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.zwcl-spiegel__ziehhinweis { margin-top: 10px; color: var(--zws-grau); font-size: 13px; }

/* --- Foto-Speicherung + DSGVO (Etappe 4) --------------------------- */

.zwcl-spiegel__checkbox {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	text-align: left;
	font-size: 13px;
	color: var(--zws-grau);
	cursor: pointer;
}
.zwcl-spiegel__checkbox input { margin-top: 3px; flex: 0 0 auto; }
.zwcl-spiegel__checkbox a { color: var(--zws-akzent); }

/* Kurz-Dialog statt Dauertext (2026-08-03): erscheint erst beim Klick auf
   Foto/Kamera, kompakt gehalten — mobil war der alte Absatz zu lang. */
.zwcl-spiegel__einwilligung {
	margin-bottom: 14px;
	padding: 12px 14px;
	border: 1px solid var(--zws-linie);
	border-left: 4px solid var(--zws-akzent, #AE8B5F);
	border-radius: 12px;
	background: var(--zws-flaeche);
}

.zwcl-spiegel__einwilligung-text {
	margin: 0 0 10px;
	font-size: .9rem;
	line-height: 1.5;
}

.zwcl-spiegel__einwilligung-knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}

.zwcl-spiegel__merken { margin-top: 2px; }

.zwcl-spiegel__gespeichert {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--zws-linie);
	text-align: left;
}
.zwcl-spiegel__gespeicherttitel { margin-bottom: 8px; color: var(--zws-grau); font-size: 13px; }
.zwcl-spiegel__gespeichertreihe { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zwcl-spiegel__gespeichertkachel {
	width: 64px;
	padding: 0;
	border: 2px solid var(--zws-linie);
	border-radius: 10px;
	background: none;
	cursor: pointer;
	overflow: hidden;
}
.zwcl-spiegel__gespeichertkachel img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.zwcl-spiegel__gespeichertkachel:hover { border-color: var(--zws-akzent); }
.zwcl-spiegel__gespeichertloeschen {
	padding: 0;
	border: 0;
	background: none;
	color: var(--zws-grau);
	font-size: 12.5px;
	text-decoration: underline;
	cursor: pointer;
}
.zwcl-spiegel__gespeichertloeschen:hover { color: var(--zws-akzent); }

.zwcl-spiegel__gastbox {
	margin-top: 14px;
	padding: 14px;
	border: 1px solid var(--zws-linie);
	border-radius: 12px;
	background: var(--zws-flaeche);
	text-align: left;
}
.zwcl-spiegel__gastbox strong { display: block; margin-bottom: 4px; color: var(--zws-akzent); }
.zwcl-spiegel__gastbox p { margin: 0 0 10px; color: var(--zws-grau); font-size: 13.5px; }

.zwcl-spiegel__demo { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--zws-linie); }
.zwcl-spiegel__demotitel { margin-bottom: 8px; color: var(--zws-grau); font-size: 13px; }
.zwcl-spiegel__modelle { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.zwcl-spiegel__modell {
	width: 78px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: center;
}
.zwcl-spiegel__modell img {
	display: block;
	width: 78px;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	object-position: top;
	border: 2px solid var(--zws-linie);
	border-radius: 10px;
	background: #fff;
}
.zwcl-spiegel__modell:hover img { border-color: var(--zws-akzent); }

.zwcl-spiegel__vorschau { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.zwcl-spiegel__vorschau img {
	max-width: 100%;
	max-height: 300px;
	border: 1px solid var(--zws-linie);
	border-radius: 10px;
}

.zwcl-spiegel__kamera { margin-top: 14px; text-align: center; }
.zwcl-spiegel__kamera video { width: 100%; max-width: 420px; border-radius: 12px; background: #000; }

/* Hochkant gehaltenes Geraet: Vorschau im selben stehenden 3:4-Ausschnitt
   zeigen, den ausloesen() spaeter speichert (kameraAusschnitt in spiegel.js).
   Ohne das sieht der Besucher ein breites Bild und bekommt ein schmaleres —
   was er am Rand gesehen hat, fehlt dann im Foto. */
@media (orientation: portrait) {
	.zwcl-spiegel__kamera video {
		aspect-ratio: 3 / 4;
		object-fit: cover;
	}
}

/* Teile-Katalog */
.zwcl-spiegel__gruppe { margin-top: 12px; }
.zwcl-spiegel__gruppentitel { margin-bottom: 8px; color: var(--zws-akzent); font-size: 14px; font-weight: 600; }
.zwcl-spiegel__gitter {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
}

.zwcl-spiegel__teil,
.zwcl-spiegel__crossteil,
.zwcl-spiegel__farbe {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0 0 7px;
	border: 2px solid var(--zws-linie);
	border-radius: 12px;
	background: #fbfaf7;
	cursor: pointer;
	overflow: hidden;
	text-align: center;
	font: inherit;
	color: inherit;
}
.zwcl-spiegel__teil img,
.zwcl-spiegel__crossteil img,
.zwcl-spiegel__farbe img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #fff;
}
.zwcl-spiegel__kachelname {
	padding: 6px 6px 0;
	font-size: 12.5px;
	line-height: 1.3;
	word-break: break-word;
}
.zwcl-spiegel__kachelpreis { padding: 2px 6px 0; color: var(--zws-grau); font-size: 12px; }
.zwcl-spiegel__kachelpreis del { opacity: .6; }
.zwcl-spiegel__teil:hover,
.zwcl-spiegel__crossteil:hover,
.zwcl-spiegel__farbe:hover { border-color: var(--zws-akzent); }
.zwcl-spiegel__teil.is-gewaehlt,
.zwcl-spiegel__farbe.is-aktiv {
	border-color: var(--zws-akzent);
	box-shadow: 0 0 0 2px rgba(35, 67, 74, .16);
}
.zwcl-spiegel__teil.is-gewaehlt .zwcl-spiegel__kachelname { font-weight: 600; }
.zwcl-spiegel__teil.is-kontext { background: #fff; }

/*
 * „Ausgewählt"-Fahne (Beta-Test 2026-08-05). Der Rahmen allein wurde nicht als
 * Auswahl gelesen — der Artikel der Seite ist beim Öffnen bereits gewählt, und
 * der Klick darauf hat ihn abgewählt. Die Fahne liegt über der Bildecke; die
 * Kachel bekommt dafür position: relative.
 */
.zwcl-spiegel__teil { position: relative; }
.zwcl-spiegel__teilmarke {
	position: absolute;
	top: 6px;
	left: 6px;
	display: none;
	max-width: calc(100% - 12px);
	padding: 2px 7px;
	border-radius: 999px;
	background: var(--zws-akzent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	pointer-events: none;
}
.zwcl-spiegel__teil.is-gewaehlt .zwcl-spiegel__teilmarke { display: block; }

/*
 * Begründung über dem Namen in „Passt dazu" (Axel-Vorgabe 2026-08-05: die
 * Liste soll verkaufen, nicht nur nichts Falsches zeigen). Bewusst klein und
 * in der Akzentfarbe — sie ordnet den Vorschlag ein, ohne den Namen zu
 * verdrängen.
 */
/*
 * Weg zur Suche aus dem fertigen Look heraus (Axel 2026-08-05). Der Knopf sitzt
 * in der Zeile der Blocküberschrift; unter 480 px bricht er darunter, statt die
 * Überschrift zu quetschen.
 */
.zwcl-spiegel__blockkopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
}
.zwcl-spiegel__suchweg-knopf {
	padding: 0;
	border: 0;
	background: none;
	color: var(--zws-akzent);
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}
.zwcl-spiegel__suchweg-knopf:hover,
.zwcl-spiegel__suchweg-knopf:focus-visible { text-decoration: none; }
/*
 * Gemessen nach dem Deploy von 1.76.0: 19 px hoch — als Textzeile richtig, als
 * Tapfläche zu klein. Wie bei der Größenwahl hängt die Vergrößerung am
 * ZEIGEGERÄT, nicht an der Breite: ein Tablet mit 768 px ist ein Touchgerät und
 * bekäme sonst die Maus-Fläche.
 */
@media (pointer: coarse) {
	.zwcl-spiegel__suchweg-knopf { padding: 13px 0; }
}

/* Sichtbare Beschriftung des Suchfeldes — der Platzhalter allein wird überlesen. */
.zwcl-spiegel__suchlabel {
	display: block;
	margin: 10px 0 4px;
	color: var(--zws-grau);
	font-size: 13px;
}

/*
 * Nach dem Sprung aus dem Look kurz hervorheben: Der Kunde soll sehen, WO er
 * gelandet ist. 1,6 s, dann ist Ruhe.
 */
.zwcl-spiegel__suchfeld.is-hervor {
	border-color: var(--zws-akzent);
	box-shadow: 0 0 0 3px rgba(35, 67, 74, .18);
}

.zwcl-spiegel__crossgrund {
	padding: 6px 6px 0;
	color: var(--zws-akzent);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.zwcl-spiegel__aktionsleiste {
	position: sticky;
	bottom: 0;
	margin: 20px -20px -26px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--zws-linie);
	background: rgba(255, 255, 255, .95);
	backdrop-filter: blur(6px);
	text-align: center;
}
.zwcl-spiegel__aktionsnotiz { margin-top: 4px; color: var(--zws-grau); font-size: 12.5px; }

/* --- Ansicht 2: Ergebnis -------------------------------------------- */

/* min-width:0 auf BEIDEN Spalten ist Pflicht: Grid-Items haben min-width:auto
   und schrumpfen sonst nicht unter ihren Inhalt — die querscrollende
   Hintergrundleiste würde die Bildspalte auf null Breite quetschen. */
.zwcl-spiegel__seite[data-seite="ergebnis"] {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
}

.zwcl-spiegel__bildbox {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 14px;
	background: #efece6;
	border-radius: 18px 0 0 18px;
	overflow: hidden;
}
.zwcl-spiegel__bildbox img { max-width: 100%; max-height: 76vh; border-radius: 10px; }

.zwcl-spiegel__vergleich {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	padding: 8px 16px;
	border: 0;
	border-radius: 20px;
	background: rgba(31, 41, 55, .82);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.zwcl-spiegel__marke {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 4px 12px;
	border-radius: 16px;
	background: rgba(31, 41, 55, .82);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.zwcl-spiegel__seitenleiste {
	display: flex;
	flex-direction: column;
	gap: 13px;
	min-width: 0;
	padding: 22px 20px;
}
.zwcl-spiegel__seitenleiste h3 { margin: 0 34px 0 0; font-size: 18px; }

.zwcl-spiegel__getragen { display: flex; flex-wrap: wrap; gap: 6px; }
.zwcl-spiegel__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 6px 4px 12px;
	border-radius: 20px;
	background: var(--zws-flaeche);
	font-size: 13px;
}
.zwcl-spiegel__chip a { color: inherit; text-decoration: none; }
.zwcl-spiegel__chip a:hover { text-decoration: underline; }
.zwcl-spiegel__chip button {
	padding: 0 5px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--zws-grau);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.zwcl-spiegel__chip button:hover { background: #e6e2da; color: #a33; }
.zwcl-spiegel__leer { color: var(--zws-grau); font-size: 13px; }

.zwcl-spiegel__block { min-width: 0; padding-top: 12px; border-top: 1px solid var(--zws-linie); }
.zwcl-spiegel__blocktitel { margin-bottom: 8px; color: var(--zws-akzent); font-size: 14px; font-weight: 600; }
.zwcl-spiegel__aktionen { display: flex; gap: 10px; flex-wrap: wrap; }

.zwcl-spiegel__farben,
.zwcl-spiegel__cross {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: 8px;
	min-width: 0;
}
.zwcl-spiegel__farbe { border-width: 1px; }
.zwcl-spiegel__farbe .zwcl-spiegel__kachelname { font-size: 11.5px; }

.zwcl-spiegel__hg,
.zwcl-spiegel__historie {
	display: flex;
	gap: 8px;
	min-width: 0;
	max-width: 100%;
	overflow-x: auto;
	padding-bottom: 4px;
}

.zwcl-spiegel__hgkachel,
.zwcl-spiegel__historiekachel {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	text-align: center;
	font: inherit;
	color: inherit;
}
.zwcl-spiegel__hgflaeche {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border: 2px solid var(--zws-linie);
	border-radius: 9px;
	background-size: cover;
	background-position: center;
	color: var(--zws-grau);
	font-size: 10px;
}
.zwcl-spiegel__hgname { display: block; margin-top: 3px; color: var(--zws-grau); font-size: 10px; line-height: 1.2; }
.zwcl-spiegel__hgkachel:hover .zwcl-spiegel__hgflaeche,
.zwcl-spiegel__hgkachel.is-aktiv .zwcl-spiegel__hgflaeche { border-color: var(--zws-akzent); }

.zwcl-spiegel__historiekachel img {
	display: block;
	width: 62px;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border: 2px solid var(--zws-linie);
	border-radius: 9px;
}
.zwcl-spiegel__historiekachel:hover img,
.zwcl-spiegel__historiekachel.is-aktiv img { border-color: var(--zws-akzent); }

.zwcl-spiegel__kleingedruckt { margin: 0; color: var(--zws-grau); font-size: 12px; }

/* --- Knöpfe ---------------------------------------------------------- */

.zwcl-spiegel__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .12s, opacity .12s;
}
.zwcl-spiegel__btn--primaer { background: var(--zws-akzent); color: #fff; }
.zwcl-spiegel__btn--primaer:hover { background: var(--zws-akzent-dunkel); color: #fff; }
.zwcl-spiegel__btn--geist { border-color: var(--zws-linie); background: transparent; color: var(--zws-akzent); }
.zwcl-spiegel__btn--geist:hover { background: var(--zws-flaeche); color: var(--zws-akzent); }
.zwcl-spiegel__btn--klein { padding: 7px 12px; font-size: 13px; }
.zwcl-spiegel__btn--cta { padding: 14px 40px; background: var(--zws-akzent); color: #fff; font-size: 16px; }
.zwcl-spiegel__btn--cta:hover { background: var(--zws-akzent-dunkel); }
.zwcl-spiegel__btn:disabled { opacity: .45; cursor: not-allowed; }

/* Einstieg in der Kaufbox (liegt AUSSERHALB des Overlays) */
.zwcl-spiegel-knopf {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	padding: 11px 18px;
	border: 1px solid #23434a;
	border-radius: 10px;
	/* Gefüllt statt Umriss (Axel 2026-08-03): neben „In den Warenkorb" ging der
	   helle Knopf unter — „das ist eine tolle Funktion, es wäre schade, wenn
	   die untergeht". */
	background: #23434a;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.zwcl-spiegel-knopf:hover { background: #162c31; color: #fff; }
.zwcl-spiegel-knopf__icon { display: inline-flex; align-items: center; }

/* --- Laden + Toast ---------------------------------------------------- */

.zwcl-spiegel__laden {
	position: absolute;
	inset: 0;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 20px;
	background: rgba(255, 255, 255, .9);
	text-align: center;
}
.zwcl-spiegel__spinner {
	width: 52px;
	height: 52px;
	border: 5px solid var(--zws-linie);
	border-top-color: var(--zws-akzent);
	border-radius: 50%;
	animation: zwcl-spiegel-dreh 1s linear infinite;
}
/* Läuft der Theme-Zipper, füllt er den Halter — dann ist der Kreisel weg. */
.zwcl-spiegel__spinner:not(:empty) {
	width: auto;
	height: auto;
	border: 0;
	border-radius: 0;
	animation: none;
}
@keyframes zwcl-spiegel-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.zwcl-spiegel__spinner { animation-duration: 3s; }
}
.zwcl-spiegel__ladetext { color: var(--zws-akzent); font-weight: 600; }
.zwcl-spiegel__ladeschritt { color: var(--zws-grau); font-size: 13px; }

.zwcl-spiegel__toast {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 5;
	max-width: min(420px, 90%);
	transform: translateX(-50%);
	padding: 10px 18px;
	border-radius: 10px;
	background: #1f2937;
	color: #fff;
	font-size: 14px;
	text-align: center;
}

/* --- Suche in der Teileauswahl (Etappe 3) ----------------------------- */

.zwcl-spiegel__suche { position: relative; margin: 0 0 10px; }
.zwcl-spiegel__suchfeld {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 38px 11px 14px;
	border: 1px solid var(--zws-linie);
	border-radius: 10px;
	background: #fff;
	color: var(--zws-akzent);
	font: inherit;
	font-size: 15px;
}
.zwcl-spiegel__suchfeld:focus {
	outline: 2px solid var(--zws-akzent);
	outline-offset: 1px;
}
/* Die Browser-eigene Löschtaste würde neben unserer stehen. */
.zwcl-spiegel__suchfeld::-webkit-search-cancel-button { display: none; }
.zwcl-spiegel__suchweg {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--zws-grau);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.zwcl-spiegel__suchweg:hover { background: var(--zws-flaeche); color: var(--zws-akzent); }
.zwcl-spiegel__suchstatus {
	margin: 0 0 10px;
	color: var(--zws-grau);
	font-size: 14px;
}

/* --- In den Warenkorb (E13) ------------------------------------------- */

.zwcl-spiegel__kauf { display: flex; flex-direction: column; gap: 10px; }

.zwcl-spiegel__kaufzeile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.zwcl-spiegel__kaufzeile.is-laeuft { opacity: .55; pointer-events: none; }
.zwcl-spiegel__kaufzeile.is-drin {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--zws-flaeche);
}

.zwcl-spiegel__kaufkopf {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.zwcl-spiegel__kaufkopf img {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	object-fit: cover;
}
/* min-width:0 ist Pflicht — sonst schiebt der lange Artikelname den Knopf
   aus der schmalen Seitenleiste heraus (Grid-/Flex-Falle des Hauses). */
.zwcl-spiegel__kauftext { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.zwcl-spiegel__kaufname {
	overflow: hidden;
	color: var(--zws-akzent);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.zwcl-spiegel__kaufname:hover { text-decoration: underline; }
.zwcl-spiegel__kaufpreis { color: var(--zws-grau); font-size: 13px; }
.zwcl-spiegel__kaufpreis del { opacity: .6; }
.zwcl-spiegel__kauffertig { flex: 1 1 auto; min-width: 0; color: var(--zws-akzent); font-size: 14px; font-weight: 600; }

.zwcl-spiegel__groessen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--zws-flaeche);
}
.zwcl-spiegel__groessentitel { width: 100%; color: var(--zws-grau); font-size: 13px; }
.zwcl-spiegel__groesse {
	min-width: 42px;
	padding: 8px 10px;
	border: 1px solid var(--zws-linie);
	border-radius: 8px;
	background: #fff;
	color: var(--zws-akzent);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.zwcl-spiegel__groesse:hover:not(:disabled) { border-color: var(--zws-akzent); background: var(--zws-akzent); color: #fff; }
.zwcl-spiegel__groesse.is-weg {
	opacity: .4;
	cursor: not-allowed;
	text-decoration: line-through;
}

/* Farbwahl in der Kaufzeile — nur nötig, wenn das Teil aus der Vorauswahl
   kam und deshalb keine Farbvariante feststeht. */
.zwcl-spiegel__kauffarbe {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	width: 62px;
	padding: 5px;
	border: 1px solid var(--zws-linie);
	border-radius: 8px;
	background: #fff;
	color: var(--zws-akzent);
	font: inherit;
	cursor: pointer;
}
.zwcl-spiegel__kauffarbe:hover { border-color: var(--zws-akzent); }
.zwcl-spiegel__kauffarbe img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; }
.zwcl-spiegel__kauffarbe .zwcl-spiegel__kachelname {
	overflow: hidden;
	width: 100%;
	font-size: 11px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --- Schmale Ansichten ------------------------------------------------ */

@media (max-width: 860px) {
	.zwcl-spiegel { padding: 0; }
	.zwcl-spiegel__fenster { max-width: none; max-height: 100vh; min-height: 100%; border-radius: 0; }

	.zwcl-spiegel__seite[data-seite="ergebnis"] { grid-template-columns: 1fr; }
	.zwcl-spiegel__bildbox { border-radius: 0; padding: 8px; }
	.zwcl-spiegel__bildbox img { max-height: 52vh; }
	.zwcl-spiegel__seitenleiste { padding: 16px 14px calc(20px + env(safe-area-inset-bottom)); }
	.zwcl-spiegel__aktionen .zwcl-spiegel__btn { flex: 1 1 auto; }
}

@media (max-width: 480px) {
	.zwcl-spiegel__seite[data-seite="auswahl"] { padding: 18px 14px 22px; }
	.zwcl-spiegel__aktionsleiste { margin: 18px -14px -22px; padding-inline: 14px; }
	.zwcl-spiegel__gitter { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
	.zwcl-spiegel__btn--cta { width: 100%; padding: 14px 0; }
	.zwcl-spiegel__kopf h2 { font-size: 19px; }

	.zwcl-spiegel__kaufkopf .zwcl-spiegel__btn { flex: none; }
}

/* Größen werden mit dem Daumen getroffen: volle 44-px-Tapfläche.
   Hängt bewusst am ZEIGEGERÄT, nicht an der Breite — ein Tablet mit 768 px ist
   ein Touchgerät und bekam sonst die 32-px-Maustaste (live gemessen 2026-08-03). */
@media (pointer: coarse) {
	.zwcl-spiegel__groesse { min-width: 48px; padding: 14px 12px; }
	.zwcl-spiegel__checkbox input { width: 20px; height: 20px; }
}
