{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "StartenBuilder Page 3.15",
  "type": "object",
  "required": ["title", "slug", "blocks"],
  "properties": {
    "builder": {"const": "startenbuilder"},
    "builder_version": {"type": "string"},
    "title": {"type": "string"},
    "slug": {"type": "string"},
    "status": {"enum": ["draft", "published", "scheduled"]},
    "page_type": {"enum": ["standard", "landing", "local"]},
    "menu_id": {"type": "string"},
    "footer_id": {"type": "string"},
    "seo_title": {"type": "string"},
    "description": {"type": "string"},
    "primary_keyword": {"type": "string"},
    "target_city": {"type": "string"},
    "target_region": {"type": "string"},
    "robots": {"enum": ["index,follow", "noindex,follow"]},
    "blocks": {
      "type": "array",
      "items": {"$ref": "#/$defs/block"}
    }
  },
  "$defs": {
    "style": {
      "type": "object",
      "properties": {
        "background": {"enum": ["inherit", "light", "dark", "sand", "white", "transparent"]},
        "text_color": {"enum": ["inherit", "dark", "light", "gold"]},
        "align": {"enum": ["left", "center", "right"]},
        "width": {"enum": ["narrow", "normal", "wide", "full"]},
        "background_image": {"type": "string"},
        "background_color": {"type": "string"},
        "background_gradient_from": {"type": "string"},
        "background_gradient_to": {"type": "string"},
        "background_overlay": {"type": "integer", "minimum": 0, "maximum": 100},
        "padding_top": {"type": "integer"},
        "padding_right": {"type": "integer"},
        "padding_bottom": {"type": "integer"},
        "padding_left": {"type": "integer"},
        "margin_top": {"type": "integer"},
        "margin_bottom": {"type": "integer"}
      }
    },
    "block": {
      "type": "object",
      "required": ["type"],
      "properties": {
        "id": {"type": "string"},
        "type": {
          "enum": ["container", "hero", "text", "text_image", "image", "video", "button", "cards", "stats", "logos", "testimonial", "pricing", "faq", "cta", "form", "whatsapp", "insights", "divider", "spacer"]
        },
        "enabled": {"type": "boolean"},
        "style": {"$ref": "#/$defs/style"},
        "responsive": {"type": "object"},
        "columns": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "width": {"type": "number"},
              "blocks": {"type": "array", "items": {"$ref": "#/$defs/block"}}
            }
          }
        }
      },
      "additionalProperties": true
    }
  }
}
