# Decap CMS – Commity.cz
#
# Lokální úpravy: spusť decap-server (z kořene repa: npx decap-server, nebo z web/: pnpm decap-server),
# pak otevři http://localhost:4321/admin/ – na localhostu se použije lokální backend.

local_backend: true

backend:
  name: gitlab
  repo: "commity/commity-web"
  branch: "production"
  auth_type: pkce
  app_id: "51c2543816a56bdbd76b3d333082be74eb3253a06e8af5d6b153cafb8aaf978f"
  api_root: "https://gitlab.commity.cz/api/v4"
  base_url: "https://gitlab.commity.cz"
  auth_endpoint: "oauth/authorize"

display_url: "https://commity.cz"
locale: cs

# Cesty od kořene repozitáře – app je v podadresáři web/
media_folder: public/images
public_folder: /images
#
# Anglická mutace (stejné Astro schéma jako CS):
# - Markdown stránky: src/content/pages/en/*.md (např. homepage.md, community.md)
# - Reference: src/content/references/en/*.md (vždy `locale: en`, URL `/en/case-studies/…`)

collections:
  - name: pages
    label: "Stránky"
    label_singular: "Stránka"
    folder: "src/content/pages"
    create: true
    slug: "{{slug}}"
    summary: "{{title}}"
    fields: &pages_fields
      - { label: "Název", name: "title", widget: "string" }
      - { label: "Popis", name: "description", widget: "text" }
      - { label: "Stav", name: "status", widget: "select",
          options: [
            { label: "Koncept", value: "draft" },
            { label: "Kontrola", value: "in_review" },
            { label: "Publikováno", value: "published" }
          ], default: "draft" }
      - { label: "SEO titulek", name: "seoTitle", widget: "string", required: false,
          hint: "Pro vyhledávače (doporučeno max 60 znaků). Pokud prázdné, použije se Název." }
      - { label: "SEO popis", name: "seoDescription", widget: "text", required: false,
          hint: "Meta description (doporučeno max 160 znaků)." }
      - { label: "OG obrázek", name: "ogImage", widget: "image", required: false,
          hint: "Obrázek pro sdílení na sociálních sítích (1200×630 px)" }
      - label: "Bloky obsahu"
        name: "blocks"
        widget: "list"
        types:
          - label: "Hero"
            name: "hero"
            widget: "object"
            fields:
              - { label: "Nadpis", name: "heading", widget: "string",
                  hint: "Hlavní claim, např. Vaše know-how + naše technologie" }
              - { label: "Zvýrazněné slovo v nadpisu", name: "headingAccent",
                  widget: "string", required: false,
                  hint: "Přesný výřez z nadpisu (např. byznysem) — zelená barva jako u CTA" }
              - label: "CTA tlačítko"
                name: "cta"
                widget: "object"
                required: false
                fields:
                  - { label: "Text", name: "text", widget: "string" }
                  - { label: "Odkaz", name: "url", widget: "string" }
          - label: "Partneři"
            name: "partners"
            widget: "object"
            fields:
              - { label: "Titulek", name: "title", widget: "string", required: false,
                  hint: "Volitelný nadpis, např. Jsme hrdou součástí" }
              - label: "Chování log při hoveru"
                name: "hoverMode"
                widget: "select"
                default: "color-on-hover"
                hint: "Nastaví, zda se mají loga po najetí myší obarvit, nebo zůstat šedá."
                options:
                  - { label: "Po najetí zobrazit originální barvy", value: "color-on-hover" }
                  - { label: "I po najetí ponechat šedou masku", value: "keep-grey" }
              - label: "Loga partnerů"
                name: "items"
                widget: "list"
                summary: "{{fields.name}}"
                fields:
                  - label: "Logo"
                    name: "image"
                    widget: "image"
                    required: true
                    hint: "Povinné – položky bez loga se nezobrazí"
                  - { label: "Název (pro alt)", name: "name", widget: "string", required: false,
                      hint: "Pro přístupnost, např. Ipsos" }
                  - { label: "Odkaz (URL)", name: "url", widget: "string", required: false,
                      hint: "Externí odkaz, otevře se v novém okně" }
          - label: "Služby"
            name: "services"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string" }
              - label: "Služby"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - label: "Ikona pozadí"
                    name: "bgIcon"
                    widget: "select"
                    options: &iconOptions
                      - { label: "Ocenění", value: "award" }
                      - { label: "Archiv", value: "archive" }
                      - { label: "Peníze", value: "banknote" }
                      - { label: "Mozek", value: "brain" }
                      - { label: "Kalendář", value: "calendar" }
                      - { label: "Fajfka", value: "check" }
                      - { label: "Fajfka v kruhu", value: "check-circle" }
                      - { label: "Sloupcový graf", value: "chart-column" }
                      - { label: "Schránka se seznamem", value: "clipboard-list" }
                      - { label: "Hodiny", value: "clock" }
                      - { label: "Kód (záložky)", value: "code" }
                      - { label: "Procesor (CPU)", value: "cpu" }
                      - { label: "Databáze", value: "database" }
                      - { label: "Oko", value: "eye" }
                      - { label: "Oko vypnuto", value: "eye-off" }
                      - { label: "Tabulka", value: "file-spreadsheet" }
                      - { label: "Soubor s křížkem", value: "file-x" }
                      - { label: "Zkumavka", value: "flask-conical" }
                      - { label: "Svět", value: "globe" }
                      - { label: "Absolventská čepice", value: "graduation-cap" }
                      - { label: "Handshake", value: "handshake" }
                      - { label: "Verzování / Historie", value: "history" }
                      - { label: "Informace", value: "info" }
                      - { label: "Vrstvy", value: "layers" }
                      - { label: "Dashboard", value: "layout-dashboard" }
                      - { label: "Žárovka", value: "lightbulb" }
                      - { label: "Napojení", value: "link" }
                      - { label: "Špendlík na mapě", value: "map-pin" }
                      - { label: "LinkedIn", value: "linkedin" }
                      - { label: "E-mail", value: "mail" }
                      - { label: "Bublina zprávy", value: "message-circle" }
                      - { label: "Mikrofon", value: "mic" }
                      - { label: "PC", value: "monitor" }
                      - { label: "Zobrazení", value: "monitor-play" }
                      - { label: "Síť", value: "network" }
                      - { label: "Telefon", value: "phone" }
                      - { label: "Prezentace", value: "presentation" }
                      - { label: "Zástrčka (plug)", value: "plug" }
                      - { label: "Lupa", value: "search" }
                      - { label: "Uvozovky", value: "quote" }
                      - { label: "Obnovit (šipky)", value: "refresh-cw" }
                      - { label: "Nastavení", value: "settings" }
                      - { label: "Štít s fajfkou", value: "shield-check" }
                      - { label: "Mobil", value: "smartphone" }
                      - { label: "Štítek", value: "tag" }
                      - { label: "Terč", value: "target" }
                      - { label: "Palec nahoru", value: "thumbs-up" }
                      - { label: "Časovač", value: "timer" }
                      - { label: "Graf dolů", value: "trending-down" }
                      - { label: "Graf nahoru", value: "trending-up" }
                      - { label: "Uživatelé", value: "users" }
                      - { label: "WiFi vypnuto", value: "wifi-off" }
                      - { label: "Workflow", value: "workflow" }
                      - { label: "Provoz/Údržba", value: "wrench" }
                      - { label: "Blesk", value: "zap" }
                  - { label: "Název", name: "title", widget: "string" }
                  - { label: "Popis", name: "description", widget: "text" }
              - label: "CTA tlačítko"
                name: "cta"
                widget: "object"
                required: false
                fields:
                  - { label: "Text", name: "text", widget: "string" }
                  - { label: "Odkaz", name: "url", widget: "string" }
          - label: "Statistiky"
            name: "stats"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - label: "Položky"
                name: "items"
                widget: "list"
                summary: "{{fields.value}} – {{fields.label}}"
                fields:
                  - { label: "Hodnota", name: "value", widget: "string" }
                  - { label: "Popisek", name: "label", widget: "string" }
                  - label: "Ikona pozadí"
                    name: "bgIcon"
                    widget: "select"
                    required: false
                    options: *iconOptions
          - label: "Veřejný výzkum"
            name: "public-research"
            widget: "object"
            fields:
              - { label: "Nadpis", name: "title", widget: "string" }
              - label: "Položky"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - label: "Ikona"
                    name: "icon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Název", name: "title", widget: "string" }
                  - { label: "Popis", name: "description", widget: "text" }
              - label: "CTA tlačítko"
                name: "cta"
                widget: "object"
                required: false
                fields:
                  - { label: "Text", name: "text", widget: "string" }
                  - { label: "Odkaz", name: "url", widget: "string" }
          - label: "Důvěra"
            name: "trust"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string" }
              - label: "Položky"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - label: "Ikona"
                    name: "icon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Název", name: "title", widget: "string" }
                  - { label: "Popis", name: "description", widget: "text" }
          - label: "O nás"
            name: "about"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string" }
              - { label: "Štítek", name: "tag", widget: "string", required: false,
                  hint: "např. IT hub na Vysočině" }
              - label: "Popis"
                name: "description"
                widget: "markdown"
                hint: "Markdown (tučné, seznamy, odkazy…)"
              - { label: "Obrázek", name: "image", widget: "image", required: false }
          - label: "Reference"
            name: "testimonials"
            widget: "object"
            fields:
              - { label: "Nadpis", name: "title", widget: "string" }
              - label: "Reference"
                name: "items"
                widget: "list"
                summary: "{{fields.author}}"
                fields:
                  - { label: "Citát", name: "quote", widget: "markdown", hint: "Markdown (tučné, odkazy…)" }
                  - { label: "Autor", name: "author", widget: "string" }
                  - { label: "Role", name: "role", widget: "string", required: false }
                  - { label: "Fotka", name: "photo", widget: "image", required: false }
          - label: "Loga ke stažení"
            name: "logo-downloads"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string", required: false }
              - label: "Loga"
                name: "items"
                widget: "list"
                summary: "{{fields.label}}"
                required: false
                hint: "Volitelné – pokud prázdné, zobrazí se všechna loga ze složky images/logos"
                fields:
                  - label: "Logo"
                    name: "image"
                    widget: "image"
                    required: true
                  - { label: "Popisek", name: "label", widget: "string", required: false }
          - label: "Kontakt"
            name: "contact"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string" }
              - { label: "Podnadpis", name: "subtitle", widget: "string", required: false }
              - { label: "Jméno", name: "name", widget: "string" }
              - { label: "Role", name: "role", widget: "string", required: false }
              - { label: "Fotka", name: "photo", widget: "image", required: false }
              - { label: "E-mail", name: "email", widget: "string" }
              - { label: "Telefon", name: "phone", widget: "string" }
              - { label: "Bookování", name: "booking", widget: "string", required: false,
                  hint: "Text odkazu na rezervaci, např. Rezervovat bezplatnou konzultaci" }
              - { label: "URL rezervace", name: "bookingUrl", widget: "string", required: false,
                  hint: "Odkaz na kalendář (Google Calendar, Calendly atd.) — zobrazí řádek bookování jako klikací odkaz" }
              - { label: "LinkedIn (URL)", name: "linkedinUrl", widget: "string", required: false }
              - label: "CTA tlačítko"
                name: "cta"
                widget: "object"
                required: false
                fields:
                  - { label: "Text", name: "text", widget: "string" }
                  - { label: "Odkaz", name: "url", widget: "string" }
          - label: "Reference (stránka)"
            name: "reference"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - label: "Hero sekce"
                name: "hero"
                widget: "object"
                fields:
                  - { label: "Nadpis", name: "heading", widget: "string" }
                  - { label: "Podnadpis", name: "subheading", widget: "text", required: false }
                  - label: "Statistiky (proužky)"
                    name: "points"
                    widget: "list"
                    summary: "{{fields.label}}"
                    required: false
                    hint: "Volitelné – tmavé štítky s ikonou."
                    fields:
                      - { label: "Text", name: "label", widget: "string" }
                      - label: "Ikona"
                        name: "icon"
                        widget: "select"
                        required: false
                        options: *iconOptions
                  - label: "CTA tlačítko"
                    name: "cta"
                    widget: "object"
                    required: false
                    fields:
                      - { label: "Text", name: "text", widget: "string" }
                      - { label: "Odkaz", name: "url", widget: "string" }
              - label: "Seznam referencí"
                name: "list"
                widget: "object"
                fields:
                  - { label: "Nadpis sekce", name: "title", widget: "string", required: false,
                      hint: "Volitelné — položky se načtou z kolekce Případové studie (publikované)." }
              - label: "CTA sekce"
                name: "cta"
                widget: "object"
                fields:
                  - { label: "Nadpis", name: "title", widget: "string" }
                  - { label: "Text", name: "text", widget: "text", required: false }
                  - label: "Tlačítko"
                    name: "cta"
                    widget: "object"
                    fields:
                      - { label: "Text", name: "text", widget: "string" }
                      - { label: "Odkaz", name: "url", widget: "string" }
          - label: "Vertikální landing hero"
            name: "vertical-landing-hero"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "heading", widget: "text",
                  hint: "Lze zalomit řádkem (Enter)." }
              - { label: "Úvodní text", name: "lead", widget: "text" }
              - label: "Styl chipů zvýraznění"
                name: "highlightChips"
                widget: "select"
                required: false
                default: "pill"
                options:
                  - { label: "Pilulky (výchozí)", value: "pill" }
                  - { label: "Zaoblené obdélníky (subpage)", value: "bar" }
              - label: "Zvýrazněné body (chipy)"
                name: "highlights"
                widget: "list"
                summary: "{{fields.text}}"
                fields:
                  - label: "Ikona"
                    name: "icon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Text", name: "text", widget: "string" }
              - label: "Pozadí sekce"
                name: "surface"
                widget: "select"
                required: false
                default: "default"
                options:
                  - { label: "Bílá", value: "default" }
                  - { label: "Světle zelená", value: "muted" }
              - { label: "Obrázek (volitelné)", name: "image", widget: "image", required: false,
                  hint: "Bez obrázku se zobrazí jen text a chipy." }
              - { label: "Alt obrázku", name: "imageAlt", widget: "string", required: false }
          - label: "Vertikální mřížka služeb"
            name: "vertical-service-grid"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis sekce", name: "title", widget: "string" }
              - label: "Mřížka na velkém displeji"
                name: "gridColumns"
                widget: "select"
                required: false
                default: "auto"
                options:
                  - { label: "Automaticky podle šířky", value: "auto" }
                  - { label: "4 sloupce (např. 8 karet ve 2 řadách)", value: "four" }
              - label: "Karty"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - label: "Ikona pozadí"
                    name: "bgIcon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Název", name: "title", widget: "string" }
                  - { label: "Popis", name: "description", widget: "text" }
                  - { label: "Badge (např. Case study)", name: "badge", widget: "string", required: false }
                  - { label: "URL badže", name: "badgeUrl", widget: "string", required: false }
          - label: "Příběh (split layout)"
            name: "split-story"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Obrázek vlevo", name: "image", widget: "image" }
              - { label: "Alt obrázku", name: "imageAlt", widget: "string", required: false }
              - { label: "Kicker (malý nadpis)", name: "kicker", widget: "string" }
              - { label: "Nadpis", name: "title", widget: "string" }
              - { label: "Hlavní text", name: "body", widget: "markdown" }
              - label: "Citát v boxu"
                name: "quote"
                widget: "object"
                fields:
                  - { label: "Text citátu", name: "text", widget: "markdown" }
                  - { label: "Autor", name: "author", widget: "string" }
                  - { label: "Role", name: "role", widget: "string", required: false }
                  - { label: "Foto autora", name: "photo", widget: "image", required: false }
          - label: "Proces spolupráce (timeline)"
            name: "cooperation-process"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Kicker (malý nadpis)", name: "kicker", widget: "string",
                  hint: "např. Proces spolupráce" }
              - { label: "Hlavní nadpis", name: "title", widget: "string" }
              - { label: "Úvodní odstavec", name: "intro", widget: "text" }
              - label: "CTA tlačítko"
                name: "cta"
                widget: "object"
                fields:
                  - { label: "Text", name: "text", widget: "string" }
                  - { label: "Odkaz", name: "url", widget: "string" }
              - label: "Kroky časové osy"
                name: "steps"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - { label: "Štítek (uppercase řádek)", name: "label", widget: "string" }
                  - { label: "Titulek kroku", name: "title", widget: "string" }
                  - { label: "Popis", name: "description", widget: "text" }
          - label: "Executive CTA (kontakt)"
            name: "executive-cta"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string" }
              - { label: "Podnadpis", name: "subtitle", widget: "text" }
              - label: "Kontaktní osoba"
                name: "person"
                widget: "object"
                fields:
                  - { label: "Jméno", name: "name", widget: "string" }
                  - { label: "Role", name: "role", widget: "string" }
                  - { label: "Foto", name: "photo", widget: "image", required: false }
              - { label: "E-mail", name: "email", widget: "string",
                  hint: "Stačí adresa nebo mailto:…" }
              - label: "LinkedIn"
                name: "linkedin"
                widget: "object"
                fields:
                  - { label: "Popisek odkazu", name: "label", widget: "string" }
                  - { label: "URL", name: "url", widget: "string" }
              - label: "Primární tlačítko"
                name: "cta"
                widget: "object"
                fields:
                  - { label: "Text", name: "text", widget: "string" }
                  - { label: "Odkaz", name: "url", widget: "string" }
          - label: "Komunitní program (GDG / AI Monday)"
            name: "community-program"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string" }
              - { label: "Text", name: "body", widget: "text" }
              - label: "Body s ikonami"
                name: "highlights"
                widget: "list"
                summary: "{{fields.text}}"
                fields:
                  - label: "Ikona"
                    name: "icon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Text", name: "text", widget: "string" }
              - label: "Galerie"
                name: "gallery"
                widget: "list"
                summary: "{{fields.image}}"
                fields:
                  - { label: "Obrázek", name: "image", widget: "image" }
                  - { label: "Alt", name: "imageAlt", widget: "string", required: false }
              - { label: "Štítek partnerů (např. Partneři akce)", name: "partnersLabel", widget: "string", required: false }
              - label: "Loga partnerů"
                name: "partners"
                widget: "list"
                required: false
                summary: "{{fields.name}}"
                fields:
                  - { label: "Logo", name: "image", widget: "image" }
                  - { label: "Název (alt)", name: "name", widget: "string", required: false }
                  - { label: "URL", name: "url", widget: "string", required: false }
              - label: "CTA tlačítko"
                name: "cta"
                widget: "object"
                fields:
                  - { label: "Text", name: "text", widget: "string" }
                  - { label: "Odkaz", name: "url", widget: "string" }
              - label: "Pozadí sekce"
                name: "variant"
                widget: "select"
                options:
                  - { label: "Světle zelená", value: "pale" }
                  - { label: "Bílá", value: "white" }
          - label: "Komunita — výhody (tmavá sekce)"
            name: "community-benefits"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "title", widget: "string" }
              - label: "Položky"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - label: "Ikona"
                    name: "icon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Titulek", name: "title", widget: "string" }
                  - { label: "Popis", name: "description", widget: "text" }
          - label: "Komunitní kontakt (osoba)"
            name: "community-liaison"
            widget: "object"
            fields:
              - { label: "ID (kotva)", name: "id", widget: "string", required: false }
              - { label: "Nadpis", name: "heading", widget: "string" }
              - { label: "Úvodní text", name: "lead", widget: "text" }
              - { label: "Jméno", name: "name", widget: "string" }
              - { label: "Role", name: "role", widget: "string" }
              - { label: "Foto", name: "image", widget: "image" }
              - { label: "Alt fotky", name: "imageAlt", widget: "string", required: false }
              - { label: "E-mail", name: "email", widget: "string" }
              - { label: "LinkedIn URL", name: "linkedinUrl", widget: "string" }
              - { label: "LinkedIn popisek", name: "linkedinLabel", widget: "string", required: false }

  - name: pages_en
    label: "Stránky (anglicky)"
    label_singular: "Stránka EN"
    description: >-
      Anglické stránky pod /en/ (např. homepage.md → úvod, community.md → /en/community).
      Stejné bloky jako u českých stránek.
    folder: "src/content/pages/en"
    create: true
    slug: "{{slug}}"
    summary: "{{title}}"
    fields: *pages_fields

  - name: references
    label: "Případové studie"
    label_singular: "Případová studie"
    folder: "src/content/references"
    create: true
    slug: "{{slug}}"
    summary: "{{title}}"
    fields: &reference_fields
      - { label: "Jazyk", name: "locale", widget: "select",
          options: [{ label: "Čeština", value: "cs" }, { label: "English", value: "en" }],
          default: "cs",
          hint: "Anglické záznamy patří do kolekce „Case studies (anglicky)“ (složka references/en)." }
      - { label: "Nadpis v seznamu", name: "title", widget: "string",
          hint: "Použije se na kartě v přehledu referencí." }
      - { label: "Nadpis detailu", name: "detailTitle", widget: "string", required: false,
          hint: "Volitelné — pokud zůstane prázdné, detail použije nadpis ze seznamu." }
      - { label: "Krátký popis (karta v přehledu)", name: "description", widget: "text" }
      - { label: "URL detailu", name: "url", widget: "string",
          hint: "Musí odpovídat cestě, např. /reference/nazev-souboru" }
      - label: "Stav"
        name: "status"
        widget: "select"
        options:
          - { label: "Koncept", value: "draft" }
          - { label: "Kontrola", value: "in_review" }
          - { label: "Publikováno", value: "published" }
        default: "draft"
      - { label: "Klient", name: "clientName", widget: "string", required: false }
      - { label: "Odvětví", name: "industry", widget: "string", required: false }
      - { label: "Úvodní obrázek", name: "coverImage", widget: "image", required: false }
      - { label: "Štítky", name: "tags", widget: "list", required: false,
          hint: "Např. Z Excelu do systému, Mobilní aplikace" }
      - { label: "SEO titulek", name: "seoTitle", widget: "string", required: false,
          hint: "Pro vyhledávače (doporučeno max 60 znaků). Pokud prázdné, použije se Detail titulek." }
      - { label: "SEO popis", name: "seoDescription", widget: "text", required: false,
          hint: "Meta description (doporučeno max 160 znaků). Pokud prázdné, zůstane prázdné." }
      - { label: "OG obrázek", name: "ogImage", widget: "image", required: false }
      - label: "Detail případové studie"
        name: "detail"
        widget: "object"
        required: false
        hint: "Detailní obsah případové studie - jednotlivé sekce"
        fields:
          - label: "Hero sekce"
            name: "hero"
            widget: "object"
            fields:
              - { label: "Podnadpis", name: "subtitle", widget: "string", required: false }
              - { label: "Detailní popis", name: "description", widget: "text",
                  hint: "Delší popis pro detail (může být jiný než krátký popis)" }
              - { label: "Použité technologie", name: "technologies", widget: "list", required: false,
                  hint: "Např. React Native, Node.js, PostgreSQL" }
              - { label: "Hero obrázek", name: "image", widget: "image", required: false }
          - label: "Technologická výzva"
            name: "challenge"
            widget: "object"
            required: false
            fields:
              - { label: "Nadpis sekce", name: "title", widget: "string", default: "Technologická výzva" }
              - label: "Výzvy"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - label: "Ikona"
                    name: "icon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Název výzvy", name: "title", widget: "string" }
                  - { label: "Popis výzvy", name: "description", widget: "text" }
          - label: "Řešení"
            name: "solution"
            widget: "object"
            required: false
            fields:
              - { label: "Nadpis sekce", name: "title", widget: "string", default: "Řešení" }
              - label: "Položky řešení"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - { label: "Obrázek", name: "image", widget: "image", required: false }
                  - { label: "Název", name: "title", widget: "string" }
                  - { label: "Popis", name: "description", widget: "text" }
          - label: "Reálný přínos"
            name: "benefits"
            widget: "object"
            required: false
            fields:
              - { label: "Nadpis sekce", name: "title", widget: "string", default: "Reálný přínos" }
              - label: "Přínosy"
                name: "items"
                widget: "list"
                summary: "{{fields.title}}"
                fields:
                  - label: "Ikona"
                    name: "icon"
                    widget: "select"
                    options: *iconOptions
                  - { label: "Název přínosu", name: "title", widget: "string" }
                  - { label: "Popis přínosu", name: "description", widget: "text" }
              - label: "Testimonial"
                name: "testimonial"
                widget: "object"
                required: false
                fields:
                  - { label: "Citát", name: "quote", widget: "markdown", hint: "Markdown (tučné, odkazy…)" }
                  - { label: "Autor", name: "author", widget: "string" }
                  - { label: "Role", name: "role", widget: "string", required: false }
                  - { label: "Fotka", name: "photo", widget: "image", required: false }
          - label: "Call to Action"
            name: "cta"
            widget: "object"
            required: false
            fields:
              - { label: "Nadpis", name: "title", widget: "string",
                  default: "Máte před sebou podobnou technickou výzvu?" }
              - label: "Tlačítko"
                name: "cta"
                widget: "object"
                fields:
                  - { label: "Text", name: "text", widget: "string", default: "Pojďme to probrat" }
                  - { label: "Odkaz", name: "url", widget: "string", default: "/kontakt" }

  - name: references_en
    label: "Case studies (anglicky)"
    label_singular: "Case study EN"
    description: >-
      Anglické případové studie (URL typu /en/case-studies/…). U každého záznamu v poli „Jazyk“
      zvolte **English** — jinak se stránka v anglickém výpisu nezobrazí.
    folder: "src/content/references/en"
    create: true
    slug: "{{slug}}"
    summary: "{{title}}"
    fields: *reference_fields

  - name: settings
    label: "Nastavení"
    delete: false
    editor:
      preview: false
    files:
      - name: global
        label: "Globální nastavení"
        file: "src/content/settings/global.yml"
        fields:
          - { label: "Název webu", name: "siteName", widget: "string" }
          - label: "Kontakt"
            name: "contact"
            widget: "object"
            fields:
              - { label: "Adresa", name: "address", widget: "text" }
              - { label: "Telefon", name: "phone", widget: "string" }
              - { label: "E-mail", name: "email", widget: "string" }
          - { label: "Text v patičce", name: "footerText", widget: "string" }
          - { label: "IČO", name: "ico", widget: "string", required: false }
          - { label: "DIČ", name: "dic", widget: "string", required: false }
          - { label: "Společnost u soudu", name: "companyCourt", widget: "string", required: false }
          - { label: "Vložka u soudu", name: "companyCourtInsert", widget: "string", required: false }
          - { label: "URL ochrany osobních údajů", name: "privacyPolicyUrl", widget: "string", required: false }
          - label: "Sociální sítě"
            name: "social"
            widget: "object"
            fields:
              - { label: "LinkedIn", name: "linkedin", widget: "string", required: false }
      - name: menu
        label: "Menu"
        file: "src/content/settings/menu.yml"
        fields:
          - label: "Položky menu"
            name: "navigation"
            widget: "list"
            summary: "{{fields.label}}"
            hint: "Položky hlavní navigace"
            fields:
              - { label: "Text odkazu", name: "label", widget: "string" }
              - { label: "URL", name: "url", widget: "string", required: false, hint: "Pro položky bez submenu. Pokud vyplníte Submenu, URL nechte prázdné." }
              - label: "Submenu (1 úroveň)"
                name: "children"
                widget: "list"
                required: false
                summary: "{{fields.label}}"
                hint: "Volitelné. Pokud vyplněno, top položka bude jen rozbalovací (bez odkazu)."
                fields:
                  - { label: "Text odkazu", name: "label", widget: "string" }
                  - { label: "URL", name: "url", widget: "string" }
      - name: global-en
        label: "Globální nastavení (EN)"
        file: "src/content/settings/global-en.yml"
        fields:
          - { label: "Název webu", name: "siteName", widget: "string" }
          - label: "Kontakt"
            name: "contact"
            widget: "object"
            fields:
              - { label: "Adresa", name: "address", widget: "text" }
              - { label: "Telefon", name: "phone", widget: "string" }
              - { label: "E-mail", name: "email", widget: "string" }
          - { label: "Text v patičce", name: "footerText", widget: "string" }
          - { label: "IČO", name: "ico", widget: "string", required: false }
          - { label: "DIČ", name: "dic", widget: "string", required: false }
          - { label: "Společnost u soudu", name: "companyCourt", widget: "string", required: false }
          - { label: "Vložka u soudu", name: "companyCourtInsert", widget: "string", required: false }
          - { label: "URL ochrany osobních údajů", name: "privacyPolicyUrl", widget: "string", required: false }
          - label: "Sociální sítě"
            name: "social"
            widget: "object"
            fields:
              - { label: "LinkedIn", name: "linkedin", widget: "string", required: false }
      - name: menu-en
        label: "Menu (EN)"
        file: "src/content/settings/menu-en.yml"
        fields:
          - label: "Položky menu"
            name: "navigation"
            widget: "list"
            summary: "{{fields.label}}"
            hint: "Anglická hlavní navigace (/en/…)"
            fields:
              - { label: "Text odkazu", name: "label", widget: "string" }
              - { label: "URL", name: "url", widget: "string", required: false, hint: "For items without submenu. If you fill Submenu, leave URL empty." }
              - label: "Submenu (1 level)"
                name: "children"
                widget: "list"
                required: false
                summary: "{{fields.label}}"
                hint: "Optional. If filled, the top item becomes a dropdown (not a link)."
                fields:
                  - { label: "Link text", name: "label", widget: "string" }
                  - { label: "URL", name: "url", widget: "string" }
