{
    "schemaVersion": 2,
    "product": {
        "sku": "CP-TRIKOT-UV",
        "name": "Fußballtrikot aus Glas mit Farbdruck, 10–15 cm",
        "type": "jersey",
        "basePrice": 15.9,
        "tiers": [
            {
                "qty": 10,
                "pct": 10
            },
            {
                "qty": 50,
                "pct": 20
            }
        ],
        "tiersNote": "Mengenrabatt:",
        "inclLine": "UV-Farbdruck, Vereinslogo und Wunschtext inklusive",
        "previewNote": "Live-Vorschau auf dem echten Glas. Gedruckt wird die gewählte Seite in Vollfarbe (UV-Direktdruck), vor dem Druck prüfen wir Logo und Text."
    },
    "canvas": {
        "width": 750,
        "height": 750
    },
    "assetBase": "/media/builder/uvw211/",
    "layers": [
        {
            "id": "studio",
            "type": "static",
            "image": "photos/base.webp"
        },
        {
            "id": "jersey",
            "type": "jersey",
            "box": {
                "x": 110,
                "y": 109,
                "w": 540
            },
            "path": "M148.4,0.0 L107.9,11.4 L104.6,13.0 L89.2,16.2 L49.5,27.6 L39.7,30.8 L26.0,34.1 L22.7,35.7 L8.9,38.9 L3.2,43.8 L1.6,47.0 L1.6,48.7 L0.0,50.3 L0.0,77.9 L0.8,79.5 L0.8,90.8 L1.6,92.5 L1.6,105.4 L3.2,108.7 L7.3,111.9 L10.5,113.6 L25.1,116.8 L36.5,118.4 L45.4,121.7 L46.2,123.3 L54.3,128.2 L57.6,131.4 L60.8,133.0 L68.9,142.8 L70.6,146.0 L75.4,154.1 L75.4,155.7 L79.5,163.8 L79.5,165.5 L80.3,167.1 L80.3,170.3 L81.1,172.0 L81.1,173.6 L83.5,175.2 L83.5,186.6 L82.7,188.2 L82.7,202.8 L81.9,204.4 L81.9,219.0 L81.1,220.6 L81.1,236.8 L80.3,238.5 L80.3,253.1 L79.5,254.7 L79.5,269.3 L78.7,270.9 L78.7,285.5 L77.9,287.1 L77.9,303.4 L77.1,305.0 L77.1,319.6 L76.2,321.2 L76.2,335.8 L75.4,337.4 L75.4,353.6 L74.6,355.3 L74.6,369.9 L73.8,371.5 L73.8,386.1 L73.0,387.7 L73.0,402.3 L72.2,403.9 L72.2,420.2 L71.4,421.8 L71.4,432.3 L356.9,432.3 L356.9,408.8 L356.1,407.2 L356.1,382.8 L355.3,381.2 L355.3,358.5 L354.5,356.9 L354.5,334.2 L353.6,332.6 L353.6,309.8 L352.8,308.2 L352.8,285.5 L352.0,283.9 L352.0,261.2 L351.2,259.6 L351.2,235.2 L350.4,233.6 L350.4,210.9 L349.6,209.3 L349.6,186.6 L348.8,184.9 L348.8,175.2 L351.2,172.0 L351.2,168.7 L352.0,167.1 L352.0,160.6 L354.5,157.4 L354.5,155.7 L356.9,150.9 L358.5,149.2 L358.5,147.6 L359.3,146.0 L361.8,144.4 L365.0,137.9 L373.1,129.8 L381.2,124.9 L382.0,123.3 L386.1,121.7 L400.7,113.6 L411.2,110.3 L421.0,108.7 L423.4,107.1 L430.7,105.4 L434.8,99.0 L434.8,95.7 L435.6,94.1 L435.6,89.2 L436.4,87.6 L436.4,79.5 L437.2,77.9 L437.2,66.5 L438.0,64.9 L438.0,45.4 L436.4,42.2 L436.4,40.6 L433.9,35.7 L432.3,34.1 L421.0,29.2 L411.2,27.6 L383.7,21.1 L373.9,19.5 L371.5,17.8 L319.6,6.5 L309.8,3.2 L301.7,1.6 L296.9,0.0 Z",
            "unitH": 432.3,
            "photo": true,
            "reflect": 0.22,
            "categories": {
                "layout": "layout",
                "c1": "color1",
                "c2": "color2"
            }
        },
        {
            "id": "logo",
            "type": "upload",
            "category": "logo",
            "hideWhen": {
                "category": "side",
                "equals": "hinten"
            },
            "clip": {
                "shape": "rect",
                "points": [
                    {
                        "x": 0.408,
                        "y": 0.2308
                    },
                    {
                        "x": 0.6053,
                        "y": 0.2308
                    },
                    {
                        "x": 0.6053,
                        "y": 0.4281
                    },
                    {
                        "x": 0.408,
                        "y": 0.4281
                    }
                ]
            }
        },
        {
            "id": "engraving",
            "type": "text",
            "category": "customText",
            "hideWhen": {
                "category": "side",
                "equals": "hinten"
            },
            "box": {
                "x": 0.5067,
                "y": 0.5645,
                "maxWidthPx": 296,
                "maxHeightPx": 166
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.15,
                "familyFrom": "font",
                "defaultFamily": "Archivo Black",
                "colorFrom": "textColor",
                "glow": 4,
                "outline": 2.2,
                "maxPx": 49
            }
        },
        {
            "id": "backName",
            "type": "text",
            "category": "customText",
            "textLines": "first",
            "hideWhen": {
                "category": "side",
                "equals": "vorne"
            },
            "box": {
                "x": 0.5067,
                "y": 0.2736,
                "maxWidthPx": 291,
                "maxHeightPx": 57
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.15,
                "familyFrom": "font",
                "defaultFamily": "Archivo Black",
                "colorFrom": "textColor",
                "glow": 4,
                "outline": 2.2,
                "maxPx": 42
            }
        },
        {
            "id": "backNumber",
            "type": "text",
            "category": "customText",
            "textLines": "rest",
            "hideWhen": {
                "category": "side",
                "equals": "vorne"
            },
            "box": {
                "x": 0.5067,
                "y": 0.4905,
                "maxWidthPx": 271,
                "maxHeightPx": 216
            },
            "font": {
                "style": "bold",
                "align": "center",
                "lineHeight": 1.15,
                "familyFrom": "font",
                "defaultFamily": "Archivo Black",
                "colorFrom": "textColor",
                "glow": 4,
                "outline": 2.2,
                "maxPx": 210
            }
        },
        {
            "id": "glass",
            "type": "static",
            "image": "photos/overlay.webp"
        }
    ],
    "categories": [
        {
            "id": "side",
            "title": "Bedruckte Seite",
            "type": "radio",
            "default": "vorne",
            "defaultCounts": true,
            "alwaysOpen": true,
            "cartOption": "design",
            "cartLabel": "Seite",
            "note": "Gedruckt wird eine Seite – wie beim echten Trikot",
            "options": [
                {
                    "id": "vorne",
                    "label": "Vorderseite: Logo + Text"
                },
                {
                    "id": "hinten",
                    "label": "Rückseite: Name + Nummer"
                }
            ]
        },
        {
            "id": "layout",
            "title": "Muster",
            "type": "image-grid",
            "default": "laengs",
            "liveThumbs": true,
            "cartOption": "design",
            "cartLabel": "Muster",
            "note": "In Ihren Vereinsfarben",
            "options": [
                {
                    "id": "uni",
                    "label": "Uni",
                    "jerseyLayout": true
                },
                {
                    "id": "laengs",
                    "label": "Längsstreifen",
                    "jerseyLayout": true
                },
                {
                    "id": "quer",
                    "label": "Querstreifen",
                    "jerseyLayout": true
                },
                {
                    "id": "schaerpe",
                    "label": "Schärpe",
                    "jerseyLayout": true
                },
                {
                    "id": "halb",
                    "label": "Halb-halb",
                    "jerseyLayout": true
                }
            ]
        },
        {
            "id": "color1",
            "title": "Hauptfarbe",
            "type": "swatch-image",
            "default": "rot",
            "cartOption": "design",
            "cartLabel": "Hauptfarbe",
            "options": [
                {
                    "id": "weiss",
                    "label": "Weiß",
                    "swatch": "#FFFFFF"
                },
                {
                    "id": "schwarz",
                    "label": "Schwarz",
                    "swatch": "#151515"
                },
                {
                    "id": "rot",
                    "label": "Rot",
                    "swatch": "#D0021B"
                },
                {
                    "id": "weinrot",
                    "label": "Weinrot",
                    "swatch": "#7A1022"
                },
                {
                    "id": "blau",
                    "label": "Blau",
                    "swatch": "#1F4FB4"
                },
                {
                    "id": "dunkelblau",
                    "label": "Dunkelblau",
                    "swatch": "#13284B"
                },
                {
                    "id": "hellblau",
                    "label": "Hellblau",
                    "swatch": "#6CB4EE"
                },
                {
                    "id": "gruen",
                    "label": "Grün",
                    "swatch": "#1E8E3E"
                },
                {
                    "id": "dunkelgruen",
                    "label": "Dunkelgrün",
                    "swatch": "#0B5D2B"
                },
                {
                    "id": "gelb",
                    "label": "Gelb",
                    "swatch": "#FFD200"
                },
                {
                    "id": "orange",
                    "label": "Orange",
                    "swatch": "#F57C00"
                },
                {
                    "id": "lila",
                    "label": "Lila",
                    "swatch": "#6A1B9A"
                },
                {
                    "id": "gold",
                    "label": "Gold",
                    "swatch": "#C9A227"
                },
                {
                    "id": "grau",
                    "label": "Grau",
                    "swatch": "#8E949A"
                }
            ]
        },
        {
            "id": "color2",
            "title": "Zweitfarbe",
            "type": "swatch-image",
            "default": "weiss",
            "cartOption": "design",
            "cartLabel": "Zweitfarbe",
            "note": "Streifen, Kragen und Ärmelbündchen",
            "options": [
                {
                    "id": "weiss",
                    "label": "Weiß",
                    "swatch": "#FFFFFF"
                },
                {
                    "id": "schwarz",
                    "label": "Schwarz",
                    "swatch": "#151515"
                },
                {
                    "id": "rot",
                    "label": "Rot",
                    "swatch": "#D0021B"
                },
                {
                    "id": "weinrot",
                    "label": "Weinrot",
                    "swatch": "#7A1022"
                },
                {
                    "id": "blau",
                    "label": "Blau",
                    "swatch": "#1F4FB4"
                },
                {
                    "id": "dunkelblau",
                    "label": "Dunkelblau",
                    "swatch": "#13284B"
                },
                {
                    "id": "hellblau",
                    "label": "Hellblau",
                    "swatch": "#6CB4EE"
                },
                {
                    "id": "gruen",
                    "label": "Grün",
                    "swatch": "#1E8E3E"
                },
                {
                    "id": "dunkelgruen",
                    "label": "Dunkelgrün",
                    "swatch": "#0B5D2B"
                },
                {
                    "id": "gelb",
                    "label": "Gelb",
                    "swatch": "#FFD200"
                },
                {
                    "id": "orange",
                    "label": "Orange",
                    "swatch": "#F57C00"
                },
                {
                    "id": "lila",
                    "label": "Lila",
                    "swatch": "#6A1B9A"
                },
                {
                    "id": "gold",
                    "label": "Gold",
                    "swatch": "#C9A227"
                },
                {
                    "id": "grau",
                    "label": "Grau",
                    "swatch": "#8E949A"
                }
            ]
        },
        {
            "id": "logo",
            "title": "Vereinslogo",
            "type": "fileUpload",
            "accept": [
                "png",
                "jpg",
                "jpeg",
                "pdf"
            ],
            "maxSizeMb": 10,
            "required": false,
            "visibleWhen": {
                "category": "side",
                "equals": "vorne"
            },
            "hint": "Logo als PNG, JPG oder PDF – inklusive. Ohne Logo bleibt die Brust frei. Wir prüfen die Datei vor dem Druck.",
            "options": []
        },
        {
            "id": "engravingMode",
            "title": "Text aufdrucken",
            "type": "radio",
            "default": "text",
            "defaultCounts": true,
            "alwaysOpen": true,
            "options": [
                {
                    "id": "text",
                    "label": "mit Text"
                },
                {
                    "id": "none",
                    "label": "ohne Text"
                }
            ]
        },
        {
            "id": "customText",
            "title": "Ihr Text",
            "type": "textarea",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "maxLength": 90,
            "showCounter": true,
            "note": "Bis zu 3 Zeilen, stehen unter dem Logo.",
            "noteWhen": {
                "category": "side",
                "map": {
                    "vorne": "Bis zu 3 Zeilen, stehen unter dem Logo.",
                    "hinten": "Zeile 1 = Name, Zeile 2 = Rückennummer (Enter dazwischen)."
                }
            },
            "placeholderWhen": {
                "category": "side",
                "map": {
                    "vorne": "z. B. SPIELER DES JAHRES\n2026",
                    "hinten": "z. B. MÜLLER\n10"
                }
            }
        },
        {
            "id": "font",
            "title": "Schriftart",
            "type": "font-select",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "optionsFrom": "shared/fonts.json",
            "collapseOnSelect": true,
            "options": []
        },
        {
            "id": "textColor",
            "title": "Schriftfarbe",
            "type": "swatch-image",
            "default": "auto",
            "cartOption": "design",
            "cartLabel": "Schriftfarbe",
            "note": "Automatisch = Schwarz oder Weiß, je nach Hauptfarbe. Jede Schrift bekommt eine feine Kontur.",
            "visibleWhen": {
                "category": "engravingMode",
                "equals": "text"
            },
            "options": [
                {
                    "id": "auto",
                    "label": "Automatisch (Kontrast)",
                    "swatch": "linear-gradient(135deg,#151515 50%,#ffffff 50%)",
                    "autoFrom": "color1"
                },
                {
                    "id": "weiss",
                    "label": "Weiß",
                    "swatch": "#FFFFFF"
                },
                {
                    "id": "schwarz",
                    "label": "Schwarz",
                    "swatch": "#151515"
                },
                {
                    "id": "rot",
                    "label": "Rot",
                    "swatch": "#D0021B"
                },
                {
                    "id": "weinrot",
                    "label": "Weinrot",
                    "swatch": "#7A1022"
                },
                {
                    "id": "blau",
                    "label": "Blau",
                    "swatch": "#1F4FB4"
                },
                {
                    "id": "dunkelblau",
                    "label": "Dunkelblau",
                    "swatch": "#13284B"
                },
                {
                    "id": "hellblau",
                    "label": "Hellblau",
                    "swatch": "#6CB4EE"
                },
                {
                    "id": "gruen",
                    "label": "Grün",
                    "swatch": "#1E8E3E"
                },
                {
                    "id": "dunkelgruen",
                    "label": "Dunkelgrün",
                    "swatch": "#0B5D2B"
                },
                {
                    "id": "gelb",
                    "label": "Gelb",
                    "swatch": "#FFD200"
                },
                {
                    "id": "orange",
                    "label": "Orange",
                    "swatch": "#F57C00"
                },
                {
                    "id": "lila",
                    "label": "Lila",
                    "swatch": "#6A1B9A"
                },
                {
                    "id": "gold",
                    "label": "Gold",
                    "swatch": "#C9A227"
                },
                {
                    "id": "grau",
                    "label": "Grau",
                    "swatch": "#8E949A"
                }
            ]
        },
        {
            "id": "size",
            "title": "Größe",
            "type": "radio",
            "default": "100",
            "defaultCounts": true,
            "alwaysOpen": true,
            "note": "Glas 4 mm in Trikotform mit Metallstift",
            "options": [
                {
                    "id": "100",
                    "label": "10 cm · 15,90 €",
                    "sku": "BS-W211-UV",
                    "price": 15.9
                },
                {
                    "id": "125",
                    "label": "12,5 cm · 16,45 €",
                    "sku": "BS-W212-UV",
                    "price": 16.45
                },
                {
                    "id": "150",
                    "label": "15 cm · 17,00 €",
                    "sku": "BS-W213-UV",
                    "price": 17
                }
            ]
        }
    ],
    "cart": {
        "productId": 6950,
        "addUrl": "/checkout/cart/add/product/6950/",
        "uploadUrl": "/cpbuilder/upload/",
        "optionIds": {
            "customText": 7236,
            "font": 7237,
            "preview": 7239,
            "logo": 7238,
            "design": 7235
        },
        "superAttribute": {
            "category": "size",
            "attributeId": 218,
            "byOption": {
                "100": 5994,
                "125": 6031,
                "150": 5995
            }
        }
    }
}
