/* Blaupause (Prototyp 25.10.2026). Das Blatt ist ein SVG in mm, gefärbt über currentColor. */

.bp-flaeche { position: relative; width: 100%; aspect-ratio: 300 / 400; }
.bp-flaeche.fassung-dunkel { color: #fff; }
.bp-flaeche.fassung-hell   { color: #000; }
.bp-flaeche .bp-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bp-flaeche .bp-svg text { letter-spacing: 0.02em; }
.bp-flaeche .bp-svg .bp-slab { font-family: 'Roboto Slab', Georgia, serif; font-weight: 800; }
/* Das Strich-Bild ist schwarz, auf dunklem Stoff wird es weiß */
.bp-flaeche.fassung-dunkel .bp-bus { filter: invert(1); }
/* Druckbild aus bulli-strich.js ist schon in der Druckfarbe, nicht umkehren */
.bp-flaeche.bp-tinte .bp-bus { filter: none; }

/* Brust 62 x 81 mm (06.11.2026). Die Bühne hat beide, je Seite eins sichtbar (wie Titelheld) */
.bp-flaeche--brust { aspect-ratio: 62 / 81; }
/* Über die Klasse, nicht die ID: die Lightbox klont die Fläche mit removeAttr('id'), dort griff
   die ID-Regel nicht — Brust und Rücken standen untereinander und die Fläche wurde doppelt so
   hoch (13.11.2026). Die ID bleibt zusätzlich stehen, falls irgendwo nur sie passt. */
.ist-blaupause.is-front [data-bp-ruecken],
.ist-blaupause:not(.is-front) [data-bp-brust],
#myt3KonfiguratorOverlay.ist-blaupause.is-front [data-bp-ruecken],
#myt3KonfiguratorOverlay.ist-blaupause:not(.is-front) [data-bp-brust] { display: none; }

/* Produktseite: Blatt hat 300 x 400, die Fläche wächst mit */
.bulli-vorschau__konfiguratorflaeche.ist-blaupause .bp-flaeche { width: 100%; }

/* ── Druckfläche freiräumen (13.11.2026, eingebacken für Live) ──
   bulli-galerie.php setzt neben .ist-blaupause auch .ist-collage. Die zugehörigen Regeln standen
   bisher nur in collage.css, und die lädt auf Live nicht (myt3-collage.php ist Staging-only).
   Ohne sie bliebe die Fläche quadratisch, die Logo-Stanze des Busses aktiv und das Logo-Overlay
   sichtbar — genau die Fehler, die beim Titelheld nachgezogen werden mussten.
   Über die Klasse, nicht die ID: die Lightbox klont die Fläche ohne ID. */
/* 19.11.2026: aspect-ratio und overflow werden hier NICHT mehr aufgehoben. Das Format
   kommt als --dd-w/--dd-h an die Flaeche (Filter myt3_vorschau_druckformat), der
   Overflow bleibt. Ohne ihn hatte die Flaeche keinen Boden: ein Blatt im Umbau ragte
   heraus und beim Bildwechsel wanderte die ganze Hoehe mit. */
.bulli-vorschau__konfiguratorflaeche.ist-collage {
  -webkit-mask-image: none !important;  /* keine Logo-Stanze: das Blatt trägt sein eigenes Logo */
          mask-image: none !important;
}
.bulli-vorschau__konfiguratorflaeche.ist-collage ~ .bulli-vorschau__logo { display: none !important; }

/* ── Formular auf der Artikelseite ── */
.bp-formular {
  border: 1px solid #d9d6cf;
  border-radius: 8px;
  padding: 12px 14px 14px;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  min-width: 0;
}
.bp-formular legend { font-weight: 700; padding: 0 4px; font-size: 15px; }
.bp-formular legend span { font-weight: 400; color: #666; }
.bp-feld { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bp-feld label { font-size: 13px; color: #333; }
.bp-feld input, .bp-feld select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #c9c6bf; border-radius: 6px; font-size: 15px; background: #fff; }
.bp-einheit { display: flex; align-items: center; gap: 6px; }
.bp-einheit input { flex: 1 1 auto; }
.bp-hinweis-text { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #666; }
@media (max-width: 480px) { .bp-formular { grid-template-columns: 1fr; } }
/* Die Kaufzeile ist eine Flex-Reihe (Menge + Knopf): das Formular bekommt eine eigene volle Zeile darüber */
.woocommerce-variation-add-to-cart:has(.bp-formular) { flex-wrap: wrap !important; }
form.cart .bp-formular { flex: 0 0 100%; width: 100%; box-sizing: border-box; order: -1; }

/* ── Testseite /blaupause-test/ ── */
.bp-test { max-width: 560px; margin: 0 auto; padding-block: 24px 48px; font-family: 'Roboto', system-ui, sans-serif; }
.bp-buehne { background: var(--stoff, #1f2a44); padding: 6%; border-radius: 8px; margin-bottom: 14px; }
.bp-buehne--plakette .bp-flaeche { aspect-ratio: 150 / 85; max-width: 70%; margin: 0 auto; }
.bp-test .collage-steuerung { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bp-test .collage-steuerung label { font-weight: 600; }
.bp-test .collage-steuerung input { flex: 1 1 160px; min-width: 0; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; text-transform: uppercase; }
.bp-test .collage-steuerung button { padding: 8px 14px !important; border: 0 !important; border-radius: 6px !important; background: #b91826 !important; color: #fff !important; font-weight: 600 !important; font-size: 15px !important; }
.bp-test .collage-stoffe { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.bp-test .collage-stoff { display: inline-flex !important; align-items: center; gap: 6px; padding: 6px 12px !important; border: 1px solid #ccc !important; border-radius: 999px !important; background: #fff !important; color: #2a2925 !important; font: 500 14px/1.2 'Roboto', system-ui, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; }
.bp-test .collage-stoff span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.bp-test .collage-stoff.ist-aktiv { border-color: #2a2925 !important; box-shadow: inset 0 0 0 1px #2a2925 !important; }
.bp-status { font-size: 13px; color: #555; }

/* Blaupause rechnet (REST + Strich): den Galerie-Spinner halten, bis Blatt und Bus stehen */
.myt3-gallery.bp-laedt .myt3-gallery__spinner { opacity: 1; }
