{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://aidluna.de/agent-inquiry.schema.json",
  "title": "AID LUNA vorbereitete Objektanfrage",
  "description": "Minimales Schema zum Vorbereiten des sichtbaren Anfrageformulars. Es löst keine Übermittlung aus.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "client_type": {
      "type": "string",
      "enum": ["Eigentümer", "Bank oder institutioneller Bestandshalter"]
    },
    "object_type": {
      "type": "string",
      "enum": ["Bürogebäude", "Mehrfamilienhaus", "Wohn- und Geschäftshaus", "Geschäftshaus", "Gewerbe & Produktion", "Grundstück", "Sonstiges"]
    },
    "city_or_postal_code": {
      "type": "string",
      "maxLength": 80,
      "description": "Nur Stadt oder Postleitzahl, keine exakte Adresse."
    },
    "area_sqm": { "type": "number", "minimum": 1, "maximum": 1000000 },
    "organization": { "type": "string", "maxLength": 160 },
    "role": { "type": "string", "maxLength": 120 },
    "mandate_reason": { "type": "string", "maxLength": 160 },
    "nda_requested": { "type": "boolean" },
    "data_room_available": { "type": "boolean" },
    "vacancy": {
      "type": "string",
      "enum": ["weiß ich nicht", "nein, voll vermietet", "ja, teilweise", "ja, überwiegend", "ja, vollständig"]
    },
    "concern": { "type": "string", "maxLength": 600 },
    "name": { "type": "string", "maxLength": 120 },
    "email": { "type": "string", "format": "email", "maxLength": 254 },
    "phone": { "type": "string", "maxLength": 40 },
    "preferred_time": {
      "type": "string",
      "enum": ["egal", "vormittags", "nachmittags", "abends"]
    }
  }
}
