/*
		mobileLysel.css - einseitiger mobiler Ablauf LYSEL HOME / Window Fashion P1615 (nur aktiv mit body.mlActive)

		Aenderungen:
		20.10.2026	Claude		Erste Version
		28.10.2026	Claude		Am Dateiende ergaenzt (jeweils mit eigenem Kommentar):
								- .ml-mass-fehler: Fehlertext + mm-Vorschlag unter dem Massfeld
								- .ml-seite: Messanleitung / Messvideo / Shopseiten im Vollbild (iframe)
								- .ml-vertrauen: Vertrauenszeile in der Zusammenfassung, eine Zeile bei 375px (11.5px)
								- .ml-stoff-sheet: kompakter Filter im Stoff-Fenster (Farben als Wischreihe, Chip "Weitere Filter")
								- .ml-resize-frage / .ml-resize-karte: ReSize-Frage vor dem Warenkorb
								- .ml-wk-*: Warenkorb-Sheet mit "Naechstes Fenster"
								- Tippflaechen mind. 44x44px per unsichtbarem ::after (Optik unveraendert)
								- Kontrast: .ml-grenzen und .ml-zus-zeilen b.offen von #8a8a86 (3.5:1) auf var(--ml-grau) (> 5:1)
*/

body.mlActive #mobile_top,
body.mlActive #konfiguratorGesamt,
body.mlActive #navigation_mobile { display: none !important; }

#mobileLysel { display: none; }
body.mlActive #mobileLysel {
		display: block;
		--ml-blau: #006AE5;
		--ml-ink: #151515;
		--ml-grau: #6b6b68;
		--ml-linie: #E4E4E0;
		--ml-flaeche: #F2F2F0;
		--ml-orange: #E07B00;
		font-size: 15px;
		color: var(--ml-ink);
		background: #fff;
}
#mobileLysel * { box-sizing: border-box; }
#mobileLysel button { font-family: inherit; color: inherit; cursor: pointer; }
#mobileLysel img { max-width: 100%; }
#mobileLysel small { font-size: 12px; color: var(--ml-grau); font-weight: 500; }

.ml-top { display: flex; align-items: center; gap: 8px; padding: 8px 16px; }
.ml-top-titel { flex: 1; text-align: center; font-weight: 700; }
.ml-top-titel small { display: block; letter-spacing: .05em; font-weight: 600; }
.ml-icon-btn { width: 40px; height: 40px; border: 0; border-radius: 20px; background: var(--ml-flaeche); font-size: 16px; flex: none; display: flex; align-items: center; justify-content: center; }
.ml-unsichtbar { visibility: hidden; }

.ml-scroll { padding-bottom: 16px; }

/* bestehende Visualisierung */
.ml-preview { margin: 0 16px; border-radius: 18px; overflow: hidden; background: #EEECE7; position: relative; }
.ml-preview-stoff { aspect-ratio: 4 / 3; }
.ml-preview-stoff img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-preview-label { position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.92); padding: 4px 9px; border-radius: 8px; }
.ml-preview-3d { display: none; min-height: 300px; }
.ml-preview.ist3d .ml-preview-stoff { display: none; }
.ml-preview.ist3d .ml-preview-3d { display: block; }
.ml-preview-btns { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 5; }
.ml-preview-btns button { height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.18); font-size: 13px; font-weight: 600; }
.ml-preview.ist3d .ml-preview-btns { top: 12px; bottom: auto; }
body.mlActive .ml-preview #visualisierung { display: block !important; width: 100% !important; flex: none !important; padding: 0 !important; margin: 0 !important; }
body.mlActive .ml-preview #modellbild_ueberschrift,
body.mlActive .ml-preview #steuerung_ar,
body.mlActive .ml-preview #steuerung_ansicht3D,
body.mlActive .ml-preview #steuerung_stoff { display: none !important; }

.ml-sek { padding: 22px 16px 0; }
.ml-sek-kopf { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.ml-sek-kopf h2 { font-size: 17px; font-weight: 700; margin: 0; }
.ml-link { border: 0; background: none; padding: 6px 0; color: var(--ml-blau) !important; font-size: 13px; font-weight: 600; }
.ml-link.ml-dunkel { color: var(--ml-ink) !important; margin-left: 14px; }
.ml-meta { font-size: 13px; color: var(--ml-grau); margin-top: 6px; }

/* Stoff Schnellwahl */
.ml-schnell { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 3px 16px 4px; }
.ml-schnell-item { flex: none; width: 72px; border: 0; background: none; padding: 0; text-align: center; }
.ml-schnell-item img, .ml-plus-box { width: 64px; height: 64px; margin: 0 auto; display: block; border-radius: 14px; object-fit: cover; background: #EEECE7; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ml-schnell-item.aktiv img { box-shadow: 0 0 0 3px var(--ml-blau); }
.ml-schnell-item span { display: block; font-size: 11px; font-weight: 600; margin-top: 6px; }
.ml-plus-box { display: flex !important; align-items: center; justify-content: center; border: 1.5px dashed #9DBFEA; background: #F2F7FE; color: var(--ml-blau); font-size: 28px; margin-top: 0 !important; box-shadow: none; }
.ml-plus span:last-child { color: var(--ml-blau); }

/* Chips */
.ml-chips { display: flex; gap: 8px; margin-bottom: 12px; }
.ml-chips.ml-wrap { flex-wrap: wrap; }
.ml-chip { height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #D6D6D2; background: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ml-chip img { width: 18px; height: 18px; }
.ml-chip.aktiv { background: var(--ml-ink); border-color: var(--ml-ink); color: #fff !important; }
.ml-chip.aktiv small { color: #fff; opacity: .7; }

/* Befestigung */
.ml-bef-reihe { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 3px 16px 6px; align-items: flex-start; }
.ml-bef { flex: none; width: 160px; scroll-snap-align: start; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ml-linie); overflow: hidden; position: relative; cursor: pointer; background: #fff; }
.ml-bef.aktiv { box-shadow: 0 0 0 2px var(--ml-blau); }
.ml-bef > img { width: 100%; height: auto; display: block; background: #F4F3EF; }
.ml-info-btn { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 15px; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.25); font-family: Georgia, serif !important; font-weight: 700; font-size: 16px; }
.ml-bef-text { padding: 8px 10px 10px; }
.ml-bef-text b { display: block; font-size: 13px; line-height: 1.25; }
.ml-aufpreis { font-size: 12px; font-weight: 600; color: #4a4a47; }
.ml-aufpreis { display: block; min-height: 16px; }
.ml-aufpreis.ink { color: #2E7D32; }

/* Masse */
.ml-messen { border-radius: 14px; background: #FFF4E2; border: 1.5px solid #F2B45A; padding: 12px 14px; margin-bottom: 12px; }
.ml-messen-titel { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.ml-messen-titel span { width: 22px; height: 22px; border-radius: 11px; background: var(--ml-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.ml-messen ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: #3a3a38; }
.ml-messen ul li.nichtansicht3 { display: list-item; }
.ml-messen-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.ml-messen-btns a { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; }
.ml-btn-orange { background: var(--ml-orange); color: #fff !important; }
.ml-btn-orange-outline { background: #fff; border: 1.5px solid var(--ml-orange); color: #B35F00 !important; }
.ml-mass { display: flex; align-items: center; gap: 12px; border: 1.5px solid #D6D6D2; border-radius: 12px; padding: 0 14px; height: 56px; margin-bottom: 10px; }
.ml-mass.fehler { border-color: #b3261e; }
.ml-mass span { width: 52px; font-size: 14px; font-weight: 600; color: #4a4a47; }
.ml-mass input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 20px; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.ml-mass input::-webkit-outer-spin-button, .ml-mass input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ml-grenzen { font-size: 12px; color: var(--ml-grau); margin-top: -2px; }
.ml-resize { margin-top: 12px; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--ml-linie); }
.ml-resize.aktiv { border-color: var(--ml-blau); background: #F2F7FE; }
.ml-resize input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ml-blau); }
.ml-resize b { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ml-resize b img { width: 26px; height: 23px; }
.ml-resize-text > span { display: block; font-size: 12px; color: #4a4a47; margin-top: 3px; line-height: 1.4; }

/* Weitere Optionen */
.ml-optionen { border: 1px solid var(--ml-linie); border-radius: 14px; }
.ml-optionen-kopf { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; background: none; text-align: left; font-size: 16px; }
.ml-optionen-kopf > span:first-child { flex: 1; }
.ml-optionen-kopf b { display: block; font-size: 15px; }
.ml-optionen-inhalt { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 18px; }
.ml-opt-titel { font-size: 13px; font-weight: 700; margin: 14px 0 8px; }
.ml-opt .ml-opt-titel { margin-top: 0; }
.ml-opt-unter { font-size: 11px; font-weight: 700; color: var(--ml-grau); letter-spacing: .05em; text-transform: uppercase; margin: 10px 0 6px; }
.ml-modell-aktiv { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--ml-blau); border-radius: 12px; padding: 10px 12px; }
.ml-modell-aktiv img { width: 52px; height: 52px; object-fit: contain; flex: none; border-radius: 6px; }
.ml-modell-aktiv span { flex: 1; }
.ml-modell-aktiv i { width: 22px; height: 22px; border-radius: 11px; background: var(--ml-blau); color: #fff; font-style: normal; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ml-weitere-modelle { width: 100%; margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ml-linie); border-radius: 12px; background: #fff; }
.ml-weitere-modelle img { width: 30px; height: 30px; object-fit: contain; }
.ml-weitere-modelle span:first-of-type { flex: 1; text-align: left; font-weight: 600; text-decoration: underline; }
.ml-farben { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ml-farbe-kachel { padding: 4px 4px 6px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--ml-linie); background: #fff; font-size: 11px; font-weight: 600; }
.ml-farbe-kachel.aktiv { box-shadow: 0 0 0 2px var(--ml-blau); }
.ml-farbe-kachel img { width: 100%; aspect-ratio: 1/1; object-fit: contain; display: block; }
.ml-farbe-kachel span, .ml-farbe-kachel small { display: block; }
.ml-profile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-profil { padding: 10px; border-radius: 12px; border: 0; box-shadow: inset 0 0 0 1px var(--ml-linie); background: #fff; text-align: left; }
.ml-profil.aktiv { box-shadow: 0 0 0 2px var(--ml-blau); }
.ml-profil img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ml-profil b, .ml-profil small { display: block; margin-top: 6px; font-size: 13px; }
.ml-hinweis { margin-top: 8px; font-size: 12px; background: #FFF6DC; border-radius: 10px; padding: 8px 10px; line-height: 1.4; }

.ml-menge-zeile { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.ml-stepper { display: flex; align-items: center; gap: 4px; background: var(--ml-flaeche); border-radius: 22px; padding: 4px; }
.ml-stepper button { width: 36px; height: 36px; border: 0; border-radius: 18px; background: #fff; font-size: 18px; }
.ml-stepper b { min-width: 28px; text-align: center; }

/* Preisleiste */
.ml-leiste { position: sticky; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--ml-linie); padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 14px; }
.ml-leiste-preis { flex: 1; min-width: 0; }
.ml-preis { display: block; font-size: 22px; font-weight: 700; }
.ml-preis:empty::before { content: '–'; }
.ml-cta { height: 52px; padding: 0 22px; border: 0; border-radius: 26px; background: var(--ml-blau); color: #fff !important; font-size: 16px; font-weight: 700; }
.ml-cta.inaktiv { background: #B7C9E2; }
.ml-voll { width: 100%; }

/* Bottom-Sheets */
.ml-sheet-bg { position: fixed; inset: 0; z-index: 9000; background: rgba(20,20,20,.4); }
.ml-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001; max-height: 92vh; background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; }
.ml-sheet-hoch { height: 92vh; }
.ml-sheet-kopf { flex: none; padding: 10px 16px 8px; display: flex; align-items: flex-start; gap: 10px; position: relative; }
.ml-griff { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #D6D6D2; }
.ml-sheet-kopf h3 { flex: 1; font-size: 19px; margin: 14px 0 0; line-height: 1.25; }
.ml-sheet-kopf .ml-icon-btn { margin-top: 8px; }
.ml-sheet-inhalt { flex: 1; overflow-y: auto; padding: 4px 16px 20px; }
.ml-sheet-fuss { flex: none; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ml-linie); }

.ml-farbgruppen { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 4px; }
.ml-farbgruppe { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; padding: 0; }
.ml-farbgruppe small { font-size: 10.5px; color: var(--ml-ink); }
.ml-farbpunkt { width: 36px; height: 36px; border-radius: 18px; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.14); background: #ccc; }
.ml-farbgruppe.aktiv .ml-farbpunkt { box-shadow: 0 0 0 2px var(--ml-ink); }
.ml-farbgruppe.aktiv small { font-weight: 700; }
/* gleiche Farbwerte wie .fensterDesign .farbbox in konfigurator.css */
.ml-farbpunkt.beige { background: #d4be8d; } .ml-farbpunkt.blau { background: #3485ff; } .ml-farbpunkt.braun { background: #6f3e18; }
.ml-farbpunkt.gelb { background: #fffc00; } .ml-farbpunkt.gruen { background: #73b525; } .ml-farbpunkt.orange { background: #ff6501; }
.ml-farbpunkt.rosa { background: #ed008c; } .ml-farbpunkt.rot { background: #ea0001; } .ml-farbpunkt.schwarz { background: #000; }
.ml-farbpunkt.violett { background: #9349aa; } .ml-farbpunkt.weiss { background: #fff; } .ml-farbpunkt.grau { background: #838383; }

.ml-liste-kopf { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; padding-top: 12px; border-top: 1px solid #EDEDEA; font-size: 13px; font-weight: 600; }
.ml-stoffraster { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.ml-stoff { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.ml-stoff-bild { position: relative; }
.ml-stoff-bild .ml-info-btn { top: 8px; right: 8px; }
.ml-vgl-btn { position: absolute; left: 8px; top: 8px; height: 32px; padding: 0 10px; border-radius: 16px; border: 0; background: rgba(255,255,255,.95); box-shadow: 0 1px 4px rgba(0,0,0,.2); font-size: 11px; font-weight: 700; }
.ml-vgl-btn.aktiv { background: var(--ml-ink); color: #fff !important; }
.ml-stoff-licht { display: flex !important; align-items: center; gap: 4px; }
.ml-stoff-licht img { width: 18px; height: 18px; }
.ml-stoff img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; border-radius: 14px; background: #EEECE7; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.ml-stoff.aktiv img { box-shadow: 0 0 0 3px var(--ml-blau); }
.ml-stoff b { display: block; font-size: 14px; margin-top: 8px; }
.ml-stoff small, .ml-stoff span { display: block; }
.ml-stoff span { font-size: 13px; font-weight: 600; margin-top: 2px; }
.ml-mehr { width: 100%; height: 48px; margin-top: 16px; border-radius: 24px; border: 1.5px solid var(--ml-ink); background: #fff; font-weight: 600; }
.ml-leer { text-align: center; padding: 30px 10px; color: #4a4a47; }

.ml-info-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-info-bilder img { width: 100%; height: auto; display: block; border-radius: 8px; }
.ml-anleitungen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ml-anl { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 8px; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; }
.ml-anl.orange { background: #F28A1C; }
.ml-anl.blau { background: #3580C0; }
.ml-info-text { font-size: 14px; line-height: 1.55; margin-top: 16px; }
.ml-info-preis { font-size: 13px; font-weight: 600; margin-top: 10px; color: #4a4a47; }

/* Modelle Vollbild */
.ml-vollbild { position: fixed; inset: 0; z-index: 9002; background: #fff; display: flex; flex-direction: column; }
.ml-vollbild-kopf { flex: none; background: #1B3B5C; color: #fff; padding: 16px; display: flex; align-items: center; gap: 10px; }
.ml-vollbild-kopf h3 { flex: 1; margin: 0; font-size: 19px; color: #fff; }
.ml-vollbild-kopf button { height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: rgba(255,255,255,.14); color: #fff !important; font-size: 14px; font-weight: 600; }
.ml-vollbild-inhalt { flex: 1; overflow-y: auto; padding: 16px 16px 32px; color: #1B3B5C; font-size: 14px; line-height: 1.55; }
.ml-vollbild-inhalt hr { border: 0; height: 1px; background: var(--ml-linie); margin: 28px 0 22px; }
.ml-logo { height: 28px; width: auto; display: block; margin: 6px 0 10px; }
.ml-modell-foto { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--ml-linie); margin-top: 14px; }
.ml-btn-blau, .ml-btn-blau-outline { width: 100%; height: 52px; margin-top: 10px; border-radius: 10px; font-size: 16px; font-weight: 600; }
.ml-btn-blau { border: 0; background: #3A8FD9; color: #fff !important; }
.ml-btn-blau-outline { border: 1.5px solid #3A8FD9; background: #fff; color: #3A8FD9 !important; }


/* Bedienbarkeit Smartphones (iOS Safari, Chrome Android, Samsung Internet) */
#mobileLysel button, #mobileLysel a, #mobileLysel label, #mobileLysel .ml-bef { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#mobileLysel button:active, #mobileLysel a:active, #mobileLysel .ml-bef:active { opacity: .75; }
.ml-chip { height: 40px; }
.ml-info-btn { width: 36px; height: 36px; border-radius: 18px; }
.ml-stepper button { width: 40px; height: 40px; border-radius: 20px; }
.ml-link { min-height: 40px; }
.ml-schnell, .ml-bef-reihe { -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.ml-schnell::-webkit-scrollbar, .ml-bef-reihe::-webkit-scrollbar { display: none; }
.ml-mass input { font-size: 20px; }		/* >= 16px: kein Auto-Zoom in iOS */
.ml-sheet { max-height: 92vh; max-height: 92dvh; }
.ml-sheet-hoch { height: 92vh; height: 92dvh; }
.ml-sheet-inhalt, .ml-vollbild-inhalt { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.mlSheetOffen, html.mlSheetOffen body { overflow: hidden; }
.ml-vollbild { padding-top: env(safe-area-inset-top); }
@media (max-width: 360px) {
		.ml-farbgruppen { grid-template-columns: repeat(4, 1fr); }
		.ml-farben { grid-template-columns: repeat(3, 1fr); }
		.ml-bef { width: 140px; }
		.ml-cta { padding: 0 16px; font-size: 15px; }
		.ml-preis { font-size: 19px; }
}

/* Stoff: Meta + Details */
.ml-meta-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.ml-meta-zeile .ml-meta { margin-top: 0; min-width: 0; }
.ml-meta-zeile .ml-chip { flex: none; margin: 0; }
.ml-i { font-family: Georgia, serif; }

/* Lichtdurchlaessigkeit: eine Zeile mit Icons */
.ml-licht-reihe { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ml-licht-reihe::-webkit-scrollbar { display: none; }
.ml-licht { flex: none; height: 44px; padding: 0 14px 0 8px; border-radius: 22px; border: 1.5px solid #D6D6D2; background: #fff; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ml-licht img { width: 28px; height: 28px; }
.ml-licht.aktiv { border-color: var(--ml-ink); background: #F2F2F0; }

/* Weitere Filter */
.ml-filter-mehr { margin-top: 14px; border: 1px solid var(--ml-linie); border-radius: 12px; }
.ml-filter-mehr-kopf { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 0; background: none; text-align: left; font-size: 14px; }
.ml-filter-mehr-kopf > span:first-child { flex: 1; }
.ml-filter-mehr-inhalt { padding: 0 14px 12px; }

/* Vergleich-Leiste */
.ml-vgl-leiste { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ml-linie); background: #fff; }
.ml-vgl-thumbs { flex: 1; display: flex; gap: 6px; min-width: 0; }
.ml-vgl-thumbs img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.ml-vgl-leiste .ml-cta { height: 44px; padding: 0 16px; font-size: 14px; }

/* Ebenen */
.ml-sheet-bg.ml-ebene2 { z-index: 9010; }
.ml-sheet.ml-ebene2 { z-index: 9011; }
.ml-vollbild.ml-ebene3 { z-index: 9020; }

/* Stoffdetail */
.ml-sheet-kopf h3 small { font-size: 11px; letter-spacing: .05em; font-weight: 700; }
.ml-detail-bilder { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
.ml-detail-bilder::-webkit-scrollbar { display: none; }
.ml-detail-bilder img { flex: none; width: 86%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; scroll-snap-align: start; background: #EEECE7; }
.ml-detail-licht { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #F4F3EF; }
.ml-detail-licht img { width: 36px; height: 36px; flex: none; }
.ml-detail-licht b, .ml-detail-licht small { display: block; }
.ml-detail-zeilen { margin: 8px 0 6px; }
.ml-detail-zeilen > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #EDEDEA; font-size: 13px; }
.ml-detail-zeilen span { color: var(--ml-grau); }
.ml-detail-zeilen b { text-align: right; }
.ml-laden { text-align: center; color: var(--ml-grau); padding: 6px; }
.ml-fuss-2 { display: flex; gap: 10px; }
.ml-fuss-2 .ml-cta { flex: 1; }
.ml-btn-rand { flex: none; height: 52px; padding: 0 16px; border-radius: 26px; border: 1.5px solid var(--ml-ink); background: #fff; font-size: 14px; font-weight: 600; }

/* Vergleich Vollbild */
.ml-vollbild-kopf.ml-hell { background: #fff; color: var(--ml-ink); border-bottom: 1px solid var(--ml-linie); }
.ml-vollbild-kopf.ml-hell h3 { color: var(--ml-ink); }
.ml-vollbild-kopf.ml-hell button { width: 40px; padding: 0; background: var(--ml-flaeche); color: var(--ml-ink) !important; font-size: 20px; }
.ml-vgl-raster { display: grid; gap: 10px; }
.ml-vgl-spalte { min-width: 0; color: var(--ml-ink); }
.ml-vgl-spalte > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; display: block; }
.ml-vgl-spalte > b { display: block; font-size: 14px; margin: 8px 0 4px; line-height: 1.25; }
.ml-vgl-zeile { padding: 7px 0; border-bottom: 1px solid #EDEDEA; }
.ml-vgl-zeile small, .ml-vgl-zeile span { display: block; }
.ml-vgl-zeile span { font-size: 13px; font-weight: 600; }
.ml-vgl-spalte .ml-cta { margin-top: 10px; height: 44px; font-size: 13px; padding: 0 8px; }
.ml-cta-hell { background: #E8F1FD; color: var(--ml-blau) !important; }

/* Korrekturen Stoffkacheln */
.ml-stoff b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.ml-stoff-licht { flex-wrap: nowrap; gap: 6px !important; margin-top: 4px; white-space: nowrap; overflow: hidden; }
.ml-stoff-licht img { width: auto !important; height: 14px !important; flex: none; }
.ml-stoff span { white-space: nowrap; }
.ml-licht img { width: auto !important; height: 18px !important; }
.ml-detail-licht img { width: auto !important; height: 22px !important; }

/* 3D-Ansicht als Vollbild (Touch-Drehen ohne Seitenscroll-Konflikt) */
.ml-preview.ist3d { position: fixed; inset: 0; z-index: 9030; margin: 0; border-radius: 0; background: #fff; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.ml-preview.ist3d .ml-preview-3d { flex: 1; min-height: 0; display: block; overflow: hidden; touch-action: none; }
body.mlActive .ml-preview.ist3d #visualisierung { height: 100% !important; }
body.mlActive .ml-preview.ist3d #ansicht3D, body.mlActive .ml-preview.ist3d #ansicht3D canvas { width: 100% !important; height: 100% !important; }
.ml-preview.ist3d .ml-preview-btns { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; left: 12px; bottom: auto; justify-content: flex-end; }
.ml-preview.ist3d .ml-preview-btns .ml-3d-zu { margin-right: auto; width: 44px; padding: 0; font-size: 16px; }
.ml-preview-btns button { min-height: 44px; }

/* Badges aus Verkaufsdaten */
.ml-badge { font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1; }
.ml-badge-mini { display: inline-block; margin-top: 3px; padding: 3px 6px; border-radius: 6px; background: #151515; color: #fff; }
.ml-badge-stoff { position: absolute; left: 8px; bottom: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.95); color: #151515; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ml-badge-stoff.top { background: #151515; color: #fff; }
.ml-badge-bef { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 56px); padding: 5px 8px; border-radius: 8px; background: #FFF4E2; color: #8a4b00; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ml-plus-hinweis { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; padding: 10px 12px; border-radius: 12px; background: #FFF6DC; font-size: 13px; line-height: 1.4; }
.ml-plus-hinweis > span { flex: 1; }
.ml-plus-hinweis .ml-chip { flex: none; margin: 0; background: #151515; border-color: #151515; color: #fff !important; }
body.mlActive .ml-preview.ist3d #ansicht3dInteraktion { display: none !important; }
body.mlActive .ml-preview.ist3d #ansicht3D { pointer-events: auto !important; }

/* 3D-Vollbild: nur das 3D-Modell, keine seitliche Steuerung, kein seitliches Scrollen */
.ml-preview.ist3d { overflow: hidden; overscroll-behavior: none; }
.ml-preview.ist3d .ml-preview-3d { flex: 1 1 auto; min-height: 50vh; overflow: hidden; }
body.mlActive .ml-preview.ist3d #visualisierung { position: relative; width: 100% !important; height: 100% !important; overflow: hidden !important; padding: 0 !important; }
body.mlActive .ml-preview.ist3d #visualisierung > *:not(#ansicht3D):not(#qr-code) { display: none !important; }
body.mlActive .ml-preview.ist3d #ansicht3D { display: block !important; position: absolute; inset: 0; }
.ml-3d-info { display: none; }
.ml-preview.ist3d .ml-3d-info { display: block; flex: none; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ml-linie); background: #fff; max-height: 40vh; overflow-y: auto; }
.ml-3d-info-kopf { display: flex; align-items: center; gap: 10px; }
.ml-3d-info-kopf img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; }
.ml-3d-info-kopf > span { flex: 1; min-width: 0; }
.ml-3d-info-kopf b, .ml-3d-info-kopf small { display: block; }
.ml-3d-info-kopf .ml-chip { flex: none; margin: 0; }
.ml-3d-info-zeilen { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-top: 10px; }
.ml-3d-info-zeilen small, .ml-3d-info-zeilen span { display: block; }
.ml-3d-info-zeilen span { font-size: 13px; font-weight: 600; }
.ml-sheet-bg.ml-ebene2 { z-index: 9040; } .ml-sheet.ml-ebene2 { z-index: 9041; }

/* 3D: nur Canvas + grosser Zurueck-Button */
.ml-3d-info { display: none !important; }
.ml-3d-fuss { display: none; }
.ml-preview.ist3d .ml-3d-fuss { display: block; flex: none; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: #fff; }
.ml-preview.ist3d .ml-3d-fuss .ml-cta { height: 56px; font-size: 17px; }
.ml-preview.ist3d .ml-preview-3d { position: relative; }
.ml-preview.ist3d .ml-preview-3d #ansicht3D { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; overflow: hidden !important; }
.ml-preview.ist3d .ml-preview-3d #ansicht3D canvas { width: 100% !important; height: 100% !important; display: block; }
.ml-preview.ist3d .ml-preview-3d ::-webkit-scrollbar { display: none; }
/* Vergleich: Merkmale zeilenweise */
.ml-vgl-merkmal { padding: 8px 0; border-bottom: 1px solid #EDEDEA; }
.ml-vgl-merkmal > small { display: block; margin-bottom: 3px; }
.ml-vgl-merkmal span { font-size: 13px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.ml-vgl-aktionen { margin-top: 12px; }
.ml-ebene3 .ml-vollbild-inhalt { color: var(--ml-ink); }

/* Richtig messen: freundliches Gruen statt Orange */
.ml-messen { background: #EEF7EF; border-color: #9ED0A6; }
.ml-messen-titel span { background: #2E7D32; }
.ml-btn-orange { background: #2E7D32; }
.ml-btn-orange-outline { border-color: #2E7D32; color: #1F5E24 !important; }
/* ReSize Info */
.ml-resize { position: relative; padding-right: 56px; }
.ml-resize-i { position: absolute; top: 10px; right: 10px; }
.ml-resize-inhalt { font-size: 14px; line-height: 1.55; }
.ml-resize-inhalt img { max-width: 100%; height: auto; }
.ml-resize-inhalt h1, .ml-resize-inhalt h2, .ml-resize-inhalt h3 { font-size: 16px; margin: 16px 0 6px; }
.ml-resize-inhalt ul, .ml-resize-inhalt ol { padding-left: 20px; }

/* Neukunden-Hilfen */
.ml-mass input::placeholder { color: #B5B5B0; font-weight: 500; font-size: 17px; }
.ml-mass.ml-hervor { border-color: var(--ml-blau); box-shadow: 0 0 0 4px rgba(0,106,229,.18); transition: box-shadow .2s; }
.ml-offen { display: block; color: #8a4b00 !important; font-weight: 600 !important; }
.ml-offen:empty { display: none; }
.ml-cta.inaktiv { background: #8FB4E8; }

/* Abstand zum Rand: horizontale Reihen starten/enden mit 16px Innenabstand, Auswahl-Ring wird nicht abgeschnitten */
.ml-bef-reihe, .ml-schnell, .ml-licht-reihe { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; padding-top: 4px; padding-bottom: 8px; }
.ml-bef-reihe::after, .ml-schnell::after, .ml-licht-reihe::after { content: ''; flex: 0 0 4px; }
.ml-bef { margin: 2px 0; }

/* Zusammenfassung + 3D vor dem Warenkorb */
.ml-zus { border-radius: 16px; background: #F4F3EF; padding: 14px; }
.ml-zus-kopf { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ml-zus-kopf img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: #E4E2DC; }
.ml-zus-kopf b { font-size: 17px; }
.ml-zus-zeilen > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #E4E2DC; font-size: 13px; }
.ml-zus-zeilen span { color: var(--ml-grau); flex: none; }
.ml-zus-zeilen b { text-align: right; min-width: 0; }
.ml-zus-zeilen b.offen { color: var(--ml-grau); font-weight: 500; }
.ml-zus-3d { width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--ml-blau); background: #fff; text-align: left; }
.ml-zus-3d > span:nth-child(2) { flex: 1; min-width: 0; }
.ml-zus-3d b { display: block; font-size: 15px; color: var(--ml-blau); }
.ml-zus-3d small { display: block; margin-top: 2px; }
.ml-zus-3d > span:last-child { font-size: 22px; color: var(--ml-blau); }
.ml-zus-3d-icon { width: 40px; height: 40px; border-radius: 10px; background: #E8F1FD; color: var(--ml-blau); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.ml-3d-fuss-reihe { display: flex; gap: 10px; }
.ml-3d-fuss-reihe .ml-btn-rand { height: 56px; }
.ml-3d-fuss-reihe .ml-cta { flex: 1; min-width: 0; height: 56px; font-size: 15px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Masse: Fehler direkt am Feld, ggf. mit mm-Vorschlag (Kunde hat cm eingegeben) */
.ml-mass.fehler { background: #FDF3F2; }
.ml-mass-fehler { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 10px; font-size: 13px; color: #b3261e; font-weight: 600; }
.ml-mass-fehler button { border: 0; border-radius: 16px; background: #FDE7E5; color: #8c1d18 !important; font-size: 13px; padding: 6px 12px; }
.ml-mass-fehler button b { color: var(--ml-blau); margin-left: 4px; }

/* Messanleitung / Messvideo / Shopseiten im Vollbild */
.ml-seite .ml-vollbild-kopf { padding: 12px 16px; }
.ml-seite-rahmen { flex: 1; min-height: 0; position: relative; background: #fff; }
.ml-seite-rahmen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ml-seite-rahmen.ml-seite-video { background: #000; display: flex; align-items: center; }
.ml-seite-rahmen.ml-seite-video iframe { position: static; height: auto; aspect-ratio: 16 / 9; }

/* Vertrauenszeile in der Zusammenfassung, eine kompakte Zeile */
.ml-vertrauen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 6px; margin-top: 10px; font-size: 11.5px; line-height: 18px; font-weight: 600; color: #2E7D32; }
.ml-vertrauen button, .ml-vertrauen span { border: 0; background: none; padding: 4px 0; font: inherit; line-height: inherit; color: inherit !important; white-space: nowrap; }
.ml-vertrauen button { text-decoration: underline; text-decoration-color: rgba(46,125,50,.35); text-underline-offset: 3px; }

/* Stoff-Fenster: Filter kompakt (Farben in einer scrollbaren Reihe, weitere Filter als Chip) */
.ml-stoff-sheet .ml-opt-titel { font-size: 12px; margin: 10px 0 6px; color: var(--ml-grau); }
.ml-stoff-sheet .ml-opt-titel:first-child { margin-top: 2px; }
.ml-stoff-sheet .ml-farbgruppen { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.ml-stoff-sheet .ml-farbgruppen::-webkit-scrollbar { display: none; }
.ml-stoff-sheet .ml-farbgruppe { flex: none; min-width: 40px; gap: 2px; }
.ml-stoff-sheet .ml-farbpunkt { width: 30px; height: 30px; border-radius: 15px; }
.ml-stoff-sheet .ml-farbgruppe small { font-size: 10px; }
.ml-stoff-sheet .ml-licht { height: 36px; padding: 0 12px 0 8px; font-size: 12.5px; }
.ml-stoff-sheet .ml-filter-reihe { overflow-x: auto; margin: 0 -16px 8px; padding: 0 16px; scrollbar-width: none; }
.ml-stoff-sheet .ml-filter-reihe::-webkit-scrollbar { display: none; }
.ml-stoff-sheet .ml-filter-reihe .ml-chip { flex: none; height: 34px; padding: 0 12px; white-space: nowrap; }
.ml-chip-mehr span { font-size: 15px; font-weight: 400; }
.ml-chip-mehr.offen { border-color: var(--ml-ink); }
.ml-stoff-sheet .ml-filter-mehr { margin-top: 0; border: 0; border-radius: 0; }
.ml-stoff-sheet .ml-filter-mehr.offen { border-top: 1px solid var(--ml-linie); border-bottom: 1px solid var(--ml-linie); margin-bottom: 8px; }
.ml-stoff-sheet .ml-filter-mehr-inhalt { padding: 0 0 4px; }

/* ReSize-Frage vor dem Warenkorb */
.ml-resize-frage p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #3a3a38; }
.ml-resize-karte { border: 1.5px solid #9ED0A6; background: #EEF7EF; border-radius: 14px; padding: 12px 14px; }
.ml-resize-karte > b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.ml-resize-karte > b img { width: 26px; height: 26px; }
.ml-resize-karte > b i { margin-left: auto; font-style: normal; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; background: #2E7D32; color: #fff; border-radius: 10px; padding: 3px 8px; }
.ml-resize-karte ul { margin: 8px 0 4px; padding-left: 0; list-style: none; font-size: 13.5px; line-height: 1.6; }
.ml-resize-karte li::before { content: '✓ '; color: #2E7D32; font-weight: 700; }
.ml-resize-nein { width: 100%; height: 44px; margin-top: 6px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--ml-grau) !important; }

/* Warenkorb-Sheet (ersetzt das Fenster aus openFensterWarenkorb) */
.ml-wk .ml-sheet-kopf h3 { display: flex; align-items: center; gap: 10px; }
.ml-wk-haken { width: 28px; height: 28px; border-radius: 14px; background: #2E7D32; color: #fff; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.ml-wk-artikel { display: flex; gap: 12px; align-items: center; padding: 4px 0 12px; border-bottom: 1px solid var(--ml-linie); }
.ml-wk-artikel img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--ml-flaeche); }
.ml-wk-artikel span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ml-wk-artikel b { font-size: 15px; }
.ml-wk-artikel .ml-wk-preis { color: var(--ml-ink) !important; font-weight: 700 !important; font-size: 14px; }
.ml-wk-meldung { margin-top: 10px; font-size: 13px; color: #8a4b00; }
.ml-wk-summe { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 2px; font-size: 14px; }
.ml-wk-summe b { font-size: 17px; }
.ml-wk-versand { font-size: 12.5px; font-weight: 600; color: #2E7D32; }
.ml-wk-naechstes { width: 100%; margin-top: 14px; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--ml-blau); background: #F2F7FE; text-align: left; }
.ml-wk-naechstes > span:nth-child(2) { flex: 1; min-width: 0; }
.ml-wk-naechstes b { display: block; font-size: 15px; color: var(--ml-blau); }
.ml-wk-naechstes small { display: block; margin-top: 2px; }
.ml-wk-naechstes > span:last-child { font-size: 22px; color: var(--ml-blau); }
.ml-wk-plus { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1.5px dashed #9DBFEA; color: var(--ml-blau); font-size: 24px; display: flex; align-items: center; justify-content: center; flex: none; }
a.ml-cta-link { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Tippflaechen mind. 44 x 44 px (Apple HIG) ohne optische Vergroesserung: unsichtbare Trefferflaeche per ::after */
.ml-icon-btn, .ml-stepper button, .ml-link, .ml-chip, .ml-licht, .ml-farbgruppe, .ml-vertrauen button, .ml-mass-fehler button { position: relative; }
.ml-info-btn::after, .ml-icon-btn::after, .ml-stepper button::after, .ml-link::after, .ml-chip::after, .ml-licht::after, .ml-farbgruppe::after, .ml-vertrauen button::after, .ml-mass-fehler button::after { content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
