# Use DecapBridge PKCE auth (required)
backend:
  name: git-gateway
  repo: kaffeed/wolf-mediation
  branch: main
  auth_type: pkce
  base_url: https://auth.decapbridge.com
  auth_endpoint: /sites/6e6be7f3-0eca-404d-9406-fe4c9fa4ac5b/pkce
  auth_token_endpoint: /sites/6e6be7f3-0eca-404d-9406-fe4c9fa4ac5b/token
  gateway_url: https://gateway.decapbridge.com

  # See who did what (optional)
  commit_messages:
    create: Create {{collection}} “{{slug}}” - {{author-name}} <{{author-login}}> via DecapBridge
    update: Update {{collection}} “{{slug}}” - {{author-name}} <{{author-login}}> via DecapBridge
    delete: Delete {{collection}} “{{slug}}” - {{author-name}} <{{author-login}}> via DecapBridge
    uploadMedia: Upload “{{path}}” - {{author-name}} <{{author-login}}> via DecapBridge
    deleteMedia: Delete “{{path}}” - {{author-name}} <{{author-login}}> via DecapBridge
    openAuthoring: Message {{message}} - {{author-name}} <{{author-login}}> via DecapBridge

# Enable PKCE fields (optional, recommended)
auth:
  email_claim: email
  first_name_claim: first_name
  last_name_claim: last_name
  avatar_url_claim: avatar_url

# Better Decap + Bridge logo (optional)
logo_url: https://decapbridge.com/decapcms-with-bridge.svg

# Add site links in Decap CMS (optional)
site_url: https://www.wolfmediation.at

# Aktiviert lokales Backend für Entwicklung
# Starten Sie: npx decap-server
local_backend: true

media_folder: "public/images"
public_folder: "/images"

collections:
  - name: "settings"
    label: "Site Einstellungen"
    files:
      - label: "Site Information"
        name: "site"
        file: "src/content/settings/site.json"
        fields:
          - { label: "Site Name", name: "siteName", widget: "string" }
          - { label: "Tagline", name: "tagline", widget: "string" }
          - { label: "Hero Titel", name: "heroTitle", widget: "string" }
          - { label: "Hero Untertitel", name: "heroSubtitle", widget: "text" }
          - { label: "Hero Bild", name: "heroImage", widget: "image" }

  - name: "about"
    label: "Über Mich"
    files:
      - label: "Über Mich Sektion"
        name: "about"
        file: "src/content/about/about.json"
        fields:
          - { label: "Titel", name: "title", widget: "string" }
          - { label: "Beschreibung", name: "description", widget: "markdown" }
          - { label: "Qualifikationen", name: "qualifications", widget: "list" }
          - { label: "Bild", name: "image", widget: "image" }

  - name: "services"
    label: "Leistungen"
    files:
      - label: "Leistungen"
        name: "services"
        file: "src/content/services/services.json"
        fields:
          - { label: "Titel", name: "title", widget: "string" }
          - label: "Leistungen"
            name: "items"
            widget: "list"
            fields:
              - { label: "Name", name: "name", widget: "string" }
              - { label: "Beschreibung", name: "description", widget: "text" }
              - { label: "Icon (SVG/Bild)", name: "icon", widget: "image", required: false }

  - name: "gallery"
    label: "Galerie"
    files:
      - label: "Galerie Bilder"
        name: "gallery"
        file: "src/content/gallery/gallery.json"
        fields:
          - label: "Bilder"
            name: "images"
            widget: "list"
            fields:
              - { label: "Bild", name: "url", widget: "image" }
              - { label: "Beschreibung", name: "alt", widget: "string" }

  - name: "contact"
    label: "Kontakt"
    files:
      - label: "Kontaktinformationen"
        name: "contact"
        file: "src/content/contact/contact.json"
        fields:
          - { label: "Titel", name: "title", widget: "string" }
          - { label: "E-Mail", name: "email", widget: "string" }
          - { label: "Telefon", name: "phone", widget: "string", required: false }
          - label: "Standorte"
            name: "locations"
            widget: "list"
            fields:
              - { label: "Name", name: "name", widget: "string" }
              - { label: "Straße", name: "street", widget: "string" }
              - { label: "PLZ & Ort", name: "zipCity", widget: "string" }
              - { label: "Zusatz / Notiz", name: "note", widget: "string", required: false }
          - { label: "Termin-Hinweis", name: "appointmentNote", widget: "string", required: false }

  - name: "impressum"
    label: "Impressum"
    files:
      - label: "Impressum"
        name: "impressum"
        file: "src/content/impressum/impressum.json"
        fields:
          - { label: "Titel", name: "title", widget: "string" }
          - { label: "Name", name: "name", widget: "string" }
          - { label: "Adresse", name: "address", widget: "text" }
          - { label: "E-Mail", name: "email", widget: "string" }
          - { label: "Telefon", name: "phone", widget: "string", required: false }
          - { label: "USt-IdNr.", name: "vatId", widget: "string", required: false }
          - { label: "Inhalt", name: "content", widget: "markdown" }
