/* Titelheld (Comic-Cover), Prototyp 27.10.2026. Maße in mm über --mm = Breite / Seitenbreite (titelheld.json). */

.th-flaeche {
  position: relative;
  width: 100%;
  aspect-ratio: var(--w) / var(--h);
  container-type: inline-size;
  --mm: calc(100cqw / var(--w));
  overflow: hidden; /* Bus-Rahmen ist breiter als das Cover, wie im Druck an der Seite beschnitten */
}
.th-flaeche .th-ebene {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important; max-width: none !important;
  object-fit: fill; border-radius: 0 !important; pointer-events: none;
}
.th-flaeche .th-ebene:first-child { z-index: 0; }
.th-flaeche .th-bus ~ .th-ebene { z-index: 2; }

/* Bus: ganze Zeichenfläche, Rand wie der Schlagschatten am Rahmen (Spread 100 %). Farbe je Design über bus_rand_farbe, sonst weiß */
.th-bus {
  position: absolute; z-index: 1; aspect-ratio: 1; pointer-events: none;
  filter: drop-shadow(var(--rand) 0 0 var(--rand-farbe, #fff)) drop-shadow(calc(var(--rand) * -1) 0 0 var(--rand-farbe, #fff))
          drop-shadow(0 var(--rand) 0 var(--rand-farbe, #fff)) drop-shadow(0 calc(var(--rand) * -1) 0 var(--rand-farbe, #fff));
}
.th-bus .bulli-vorschau__konfiguratorflaeche { position: absolute; inset: 0; }
/* Die Bus-Vorlage 1304 begrenzt ihren äußeren Container auf 900 px Höhe und Elementor die Breite: frei geben */
.th-bus .bulli-vorschau__konfiguratorflaeche .bulli-tpl-slot,
.th-bus .bulli-vorschau__konfiguratorflaeche .e-con,
.th-bus .bulli-vorschau__konfiguratorflaeche .e-con-inner,
.th-bus .bulli-vorschau__konfiguratorflaeche > div > div.elementor-element {
  max-width: none !important; max-height: none !important;
  --container-max-width: none; --content-width: 100%;
}
.th-bus .bulli-vorschau__konfiguratorflaeche .bulli-tpl-slot,
.th-bus .bulli-vorschau__konfiguratorflaeche .elementor-1304 > .e-con { height: 100% !important; }
.th-bus .bulli-vorschau__konfiguratorflaeche > div.elementor-1304 { position: absolute; inset: 0 !important; display: flex; align-items: center; }
.th-bus .bulli-vorschau__konfiguratorflaeche .elementor,
.th-bus .bulli-vorschau__konfiguratorflaeche .elementor-section-wrap,
.th-bus .bulli-vorschau__konfiguratorflaeche .elementor-section,
.th-bus .bulli-vorschau__konfiguratorflaeche .elementor-container,
.th-bus .bulli-vorschau__konfiguratorflaeche .elementor-widget-wrap,
.th-bus .bulli-vorschau__konfiguratorflaeche .elementor-widget {
  width: 100% !important; height: 100% !important; padding: 0 !important; margin: 0 !important;
}
.th-bus .bulli-pa_hintergrundbild { display: none !important; } /* Kundenhintergrund gehört nicht ins Cover */

/* Heftnummer, Code (Bangers, mittig wie in der InDesign-Datei) */
.th-text {
  position: absolute; z-index: 3;
  display: flex; align-items: flex-start; justify-content: center;
  font-family: 'MYT3 Bangers', 'Bangers', Impact, sans-serif;
  font-weight: 400; line-height: 1; white-space: nowrap; text-transform: none;
  padding-top: calc(var(--mm) * var(--th-oben, 0));
}
.th-heftnummer { --th-oben: 0; }
.th-barcode { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }

/* Shop-Kacheln: Fläche richtet sich nach dem Cover, nicht quadratisch, keine Logo-Maske */
.bulli-vorschau__konfiguratorflaeche.ist-design {
  aspect-ratio: auto !important; overflow: visible !important;
  -webkit-mask-image: none !important; mask-image: none !important;
}
/* Warenkorb: kleines Cover über der Konfiguration */
.th-cart { width: 110px; max-width: 100%; margin: 0 0 8px; position: relative; }
.th-cart .th-flaeche { box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }

/* Produktseite: Rücken zeigt das Cover, Vorderseite die Cover-Ecke */
.bulli-vorschau__konfiguratorflaeche.ist-titelheld:not(.is-front) .th-brust,
.bulli-vorschau__konfiguratorflaeche.ist-titelheld.is-front .th-ruecken { display: none; }

/* ── Testseite /titelheld-test/ ── */
.th-test { max-width: 640px; margin: 0 auto; padding-block: 24px 48px; font-family: 'Roboto', system-ui, sans-serif; }
.th-buehne { background: var(--stoff, #1d1d1f); padding: 6%; border-radius: 8px; margin-bottom: 14px; }
.th-buehne--brust .th-flaeche { max-width: 45%; margin-left: auto; }
.th-test .th-steuerung { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.th-test .th-steuerung label { font-weight: 600; }
.th-test .th-steuerung input { flex: 1 1 160px; min-width: 0; padding: 8px 10px; border: 1px solid #ccc; border-radius: 6px; text-transform: uppercase; }
.th-test .th-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; }
.th-test .th-stoffe { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.th-test .th-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; }
.th-test .th-stoff span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.th-test .th-stoff.ist-aktiv { border-color: #2a2925 !important; box-shadow: inset 0 0 0 1px #2a2925 !important; }
.th-status { font-size: 13px; color: #555; }
.th-test .th-karten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.th-test .th-karte p { font-size: 13px; margin: 0 0 6px; }
