/* Magnet-Konfigurator – Farben aus dem Theme (Fallbacks für fremde Themes) */
.bmm-galerie { position: relative; }
.bmm-blech { aspect-ratio: 4 / 3; background: var(--md-steel, #d3d8dd); border-radius: 24px; display: grid; place-items: center; position: relative; overflow: hidden; }
.bmm-motiv { background: #fff; display: grid; place-items: center; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 18px 30px -14px rgba(0,0,0,.35); transition: width .3s ease, height .3s ease, border-radius .3s ease; }
.bmm-motiv img { width: 100%; height: 100%; object-fit: cover; }
.bmm-motiv.ist-glanz::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%); pointer-events: none; }
.bmm-motiv { position: relative; }
.bmm-platzhalter { text-align: center; font-weight: 600; color: var(--md-ink, #1a1a1a); padding: 8px; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.bmm-platzhalter small { font-weight: 400; color: var(--md-muted, #57534f); }
.bmm-mass { position: absolute; right: 16px; bottom: 14px; background: #fff; border-radius: 99px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.bmm-hinweis { font-size: 14px; color: var(--md-muted, #57534f); margin-top: 12px; }

.bmm { margin: 8px 0 24px; display: grid; gap: 16px; }
.bmm-feld { border: 0; padding: 0; margin: 0; }
.bmm-feld legend { font-weight: 700; font-size: 16px; margin-bottom: 8px; padding: 0; }
.bmm-mass-eingabe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bmm-mass-eingabe label { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bmm .bmm-mass-eingabe input[type="number"] { width: 110px; min-height: 48px; border: 0; box-shadow: inset 0 0 0 1px #8a8580; background: var(--md-sand, #f2f3f5); border-radius: 12px; padding: 12px; font-weight: 600; font-size: 16px; } /* Rand 3,3:1 (WCAG 1.4.11) */
.bmm-mass-eingabe input[aria-invalid="true"] { outline: 2px solid var(--md-coral-d, #c4442b); }
.bmm-fehler { color: var(--md-coral-d, #c4442b); font-weight: 600; margin: 8px 0 0; }
.bmm-wahl { display: grid; gap: 8px; }
.bmm-wahl label { display: flex; gap: 12px; align-items: flex-start; background: var(--md-sand, #f2f3f5); border-radius: 12px; padding: 12px 16px; cursor: pointer; transition: background-color .18s, box-shadow .18s; }
.bmm-wahl label:hover { background: var(--md-sand-2, #e5e8eb); }
/* Gewählt: weiß mit dunklem Rahmen – die dunkelste Fläche bleibt dem Kauf-Knopf vorbehalten */
.bmm-wahl label:has(input:checked) { background: #fff; color: var(--md-ink, #1a1a1a); box-shadow: inset 0 0 0 2px var(--md-ink, #1a1a1a); }
.bmm-wahl label:has(input:checked) small { color: var(--md-muted, #57534f); }
.bmm-wahl label:has(input:disabled):hover { background: var(--md-sand, #f2f3f5); }
.bmm-wahl input { margin-top: 4px; accent-color: var(--md-coral-d, #c4442b); }
.bmm-wahl b { display: block; }
.bmm-wahl small { display: block; color: var(--md-muted, #57534f); font-size: 14px; }
.bmm-staerke { background: #fbe4de; border-radius: 12px; padding: 12px 16px; margin: 0; font-size: 15px; }
.bmm-datei { width: 100%; background: var(--md-sand, #f2f3f5); border-radius: 12px; padding: 12px; }
.bmm-klein { display: block; color: var(--md-muted, #57534f); font-size: 14px; margin-top: 8px; }
.bmm-summe { margin: 0; font-size: 16px; }
.bmm-gesamt { font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bmm-staffel { margin: 0; font-size: 14px; color: var(--md-muted, #57534f); }
form.cart button[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Review 24.10.2026: eigene Auswahlpunkte, sichtbarer Fokus, Ablagezone für die Datei */
.bmm-wahl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bmm-wahl label { position: relative; padding-left: 48px; }
.bmm-wahl label::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--md-muted, #57534f); background: #fff; box-sizing: border-box; }
.bmm-wahl label:has(input:checked)::before { border: 6px solid var(--md-coral, #e0563b); }
.bmm-wahl label:has(input:focus-visible) { outline: 3px solid var(--md-coral, #e0563b); outline-offset: 2px; }
.bmm-datei { border: 2px dashed var(--md-muted, #57534f); padding: 16px; cursor: pointer; font-weight: 600; }
.bmm-datei:hover, .bmm-datei:focus-visible { border-color: var(--md-coral-d, #c4442b); background: #fff; }
.bmm-datei::file-selector-button, .bmm-anfrage input[type=file]::file-selector-button { border: 0; border-radius: 999px; background: var(--md-ink, #1a1a1a); color: #fff; padding: 12px 16px; margin-right: 12px; font-weight: 600; cursor: pointer; }
.bmm-klein, .bmm-hinweis, .bmm-staffel { font-size: 14px; }

.bmm-summe .bmm-gesamt { font-size: 34px; }
.bmm-staffel a { color: var(--md-coral-text, #b03a23); font-weight: 600; }

/* Staffeltabelle + Handy-Preisleiste 25.10.2026 */
.bmm-staffelpreise p { margin: 0 0 8px; font-size: 14px; color: var(--md-muted, #57534f); }
.bmm-staffelpreise table { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-variant-numeric: tabular-nums; }
.bmm-staffelpreise th { text-align: left; font-size: 13px; font-weight: 600; color: var(--md-muted, #57534f); padding: 0 12px; border: 0; }
.bmm-staffelpreise td { background: var(--md-sand, #f2f3f5); padding: 12px; border: 0; font-size: 16px; }
.bmm-staffelpreise td:first-child { border-radius: 12px 0 0 12px; font-weight: 600; }
.bmm-staffelpreise td:last-child { border-radius: 0 12px 12px 0; text-align: right; }
.bmm-staffelpreise td small { color: var(--md-coral-text, #b03a23); font-weight: 600; font-size: 13px; }
.bmm-staffelpreise tr.ist-aktiv td { background: var(--md-ink, #1a1a1a); color: #fff; }
.bmm-staffelpreise tr.ist-aktiv td small { color: #ff8a70; }
.bmm-staffelpreise button { border: 0; border-radius: 999px; background: #fff; color: var(--md-ink, #1a1a1a); padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 44px; }
.bmm-staffelpreise button:hover, .bmm-staffelpreise button:focus-visible { background: var(--md-coral-d, #c4442b); color: #fff; }
.bmm-leiste { display: none; }
@media (max-width: 760px) {
	.bmm-leiste:not([hidden]) { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.12); }
	.bmm-leiste b { display: block; font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
	.bmm-leiste small { display: block; font-size: 13px; color: var(--md-muted, #57534f); }
	.bmm-leiste .button { min-height: 48px; padding: 0 24px; white-space: nowrap; }
	.bmm-produkt .site-footer { padding-bottom: 80px; }
	.bmm-staffelpreise td, .bmm-staffelpreise th { padding-left: 8px; padding-right: 8px; font-size: 14px; }
	.bmm-staffelpreise td small { display: block; } /* Rabatt unter die Stückzahl: Tabelle passt in 342 px */
	.bmm-staffelpreise button { padding: 8px 12px; }
	.bmm-staffelpreise { overflow-x: auto; }
	/* Maße: Breite und Höhe nebeneinander, das „×“ hängt sonst am Zeilenende */
	.bmm-mass-eingabe { display: grid; grid-template-columns: 1fr 1fr; }
	.bmm-mass-eingabe > span[aria-hidden] { display: none; }
	.bmm .bmm-mass-eingabe input[type="number"] { width: 100%; }
}

/* Größenhilfe Fahrzeuge 25.10.2026 */
.bmm-groessen-titel { margin: 0 0 8px; font-weight: 700; }
.bmm-groessen-titel small { font-weight: 400; color: var(--md-muted, #57534f); font-size: 14px; }
.bmm-groessen-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.bmm-groessen-wahl button { border: 0; border-radius: 14px; background: var(--md-sand, #f2f3f5); padding: 12px; text-align: left; cursor: pointer; color: var(--md-ink, #1a1a1a); transition: background-color .18s; min-height: 56px; }
.bmm-groessen-wahl button:hover { background: var(--md-sand-2, #e5e8eb); }
.bmm-groessen-wahl button[aria-pressed="true"] { background: var(--md-ink, #1a1a1a); color: #fff; }
.bmm-groessen-wahl button:focus-visible { outline: 3px solid var(--md-coral, #e0563b); outline-offset: 2px; }
.bmm-groessen-wahl b { display: block; font-size: 15px; }
.bmm-groessen-wahl small { display: block; font-size: 13px; opacity: .8; }
.bmm-messen { margin-top: 8px; background: var(--md-sand, #f2f3f5); border-radius: 14px; padding: 12px 16px; }
.bmm-messen summary { cursor: pointer; font-weight: 600; }
.bmm-messen-inhalt { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; margin-top: 12px; }
.bmm-messen-inhalt svg { width: 100%; height: auto; }
.bmm-messen-inhalt ul { margin: 0; padding-left: 1.1em; font-size: 15px; }
@media (max-width: 560px) { .bmm-messen-inhalt { grid-template-columns: 1fr; } }
.bmm-groessen .bmm-groessen-wahl button:focus, .bmm-groessen .bmm-groessen-wahl button:active { background: var(--md-sand-2, #e5e8eb); color: var(--md-ink, #1a1a1a); }
.bmm-groessen .bmm-groessen-wahl button[aria-pressed="true"], .bmm-groessen .bmm-groessen-wahl button[aria-pressed="true"]:focus { background: var(--md-ink, #1a1a1a); color: #fff; }
.bmm-staffelpreise td { white-space: nowrap; }
.bmm-staffelpreise td:first-child { white-space: normal; }

/* „Wir gestalten für Sie“ 25.10.2026 */
.bmm a.bmm-gestaltung { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 0; background: var(--md-sand, #f2f3f5); border-radius: 14px; padding: 12px 16px; color: inherit; text-decoration: none; }
.bmm a.bmm-gestaltung:hover { background: #fbe4de; }
.bmm-gestaltung b { display: block; }
.bmm-gestaltung small { display: block; font-size: 14px; color: var(--md-muted, #57534f); }
.bmm-pfeil { font-size: 22px; color: var(--md-coral-d, #c4442b); flex: none; }

/* Anfrageformular „Wir gestalten für Sie“ (Shortcode [bmm_anfrage]) */
.bmm-anfrage { display: grid; gap: 16px; max-width: 760px; }
.bmm-anfrage .bmm-reihe { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: end; } /* Felder einer Reihe auf einer Linie */
.bmm-anfrage label { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.bmm-anfrage label small, .bmm-anfrage .bmm-klein { font-weight: 400; color: var(--md-muted, #57534f); font-size: 14px; }
.bmm-anfrage input:not([type=checkbox]):not([type=file]), .bmm-anfrage select, .bmm-anfrage textarea { width: 100%; min-height: 48px; border: 0; box-shadow: inset 0 0 0 1px #8a8580; border-radius: 12px; background: var(--md-sand, #f2f3f5); padding: 12px 16px; font: inherit; font-size: 16px; }
.bmm-anfrage label.bmm-haken { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.bmm-anfrage label.bmm-haken input { width: 22px; height: 22px; flex: none; accent-color: var(--md-coral-d, #c4442b); }
.bmm-anfrage .bmm-falle { position: absolute; left: -9999px; }
.bmm-meldung { border-radius: 14px; padding: 12px 16px; background: #e5f3e8; }
.bmm-meldung.ist-fehler { background: #fbe4de; }

/* Produktionszeit: Blitzschnell über dem Stück-Limit gesperrt */
.bmm-wahl label:has(input:disabled) { opacity: .45; cursor: not-allowed; }

/* Wunschform per Upload: Stanzdaten als Sonderfarbe */
.bmm-kontur-hinweis { margin: 12px 0; padding: 12px 16px; border-radius: 12px; background: #fbe4de; font-size: 14px; }
.bmm-kontur-hinweis p { margin: 0 0 8px; }
.bmm-haken { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.bmm-haken input { width: 22px; height: 22px; flex: none; accent-color: var(--md-coral-d, #c4442b); }

/* Desktop: Vorschau bleibt beim Scrollen bis zum Upload sichtbar; Staffelpreise/Beschreibung/Fragen darunter in zwei Spalten */
@media (min-width: 761px) {
  .bmm-produkt div.product { display: flex; justify-content: space-between; align-items: stretch; }
  .bmm-produkt .bmm-galerie { float: none; }
  .bmm-vorschau { position: sticky; top: 104px; }
  .admin-bar .bmm-vorschau { top: 136px; }
  .bmm-produkt .bmm-inhalt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; clear: both; }
}

/* Daten aus Tabelle: Motive × Stück */
.bmm-tabelle-menge { margin: 8px 0 0; padding: 12px 16px; border-radius: 12px; background: #e5f3e8; font-size: 14px; font-weight: 600; }
.bmm-tabelle-menge.ist-fehler { background: #fbe4de; color: #a1121a; }

/* Abstands-Review 25.10.2026: Blöcke im Konfigurator einheitlich 24 px (8er-Raster) – der Container setzt den Abstand,
   einzelne Ränder der Blöcke (Stärke, Editor-Kasten, Summe …) entfallen. Doppelte Klasse statt !important. */
.bmm.bmm { display: flex; flex-direction: column; gap: 24px; margin-bottom: 12px; } /* + 12 px aus dem Mengen-/Knopf-Bereich = 24 */
.woocommerce div.product .bmm.bmm > * { margin-top: 0; margin-bottom: 0; } /* schlägt Kadence „div.summary p { 1em }“ */
.bmm.bmm .bm-schritt-block { margin-bottom: 0; }
.woocommerce div.product .bmm.bmm > .bmm-summe + .bmm-staffel { margin-top: -12px; } /* Staffel gehört zur Summe: halber Abstand */
form.cart .bmm + .quantity { margin-top: 0; }

/* Design-Review 25.10.2026: Upload im Anfrageformular wie auf der Produktseite */
.bmm-anfrage input[type=file] { width: 100%; background: var(--md-sand, #f2f3f5); border: 2px dashed var(--md-muted, #57534f); border-radius: 12px; padding: 16px; font-weight: 600; cursor: pointer; }
.bmm-anfrage input[type=file]:hover { border-color: var(--md-coral-d, #c4442b); background: #fff; }
.bmm-anfrage [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--md-coral-d, #c4442b); }
