title: Person Status
path: person-status
icon: mdi:account-group
type: sections
max_columns: 1  # én kolonne for fuld bredde

sections:

  # 👨‍👩‍👧‍👦 Personer (2x2 grid)
  - type: grid
    columns: 2
    square: false
    cards:

      - type: entities
        title: Daniel
        entities:
          - entity: person.daniel_schusler_dethlefsen
          - entity: input_select.daniel_status

      - type: entities
        title: Claus
        entities:
          - entity: person.claus_dethlefsen
          - entity: input_select.claus_status

      - type: entities
        title: Anne
        entities:
          - entity: person.anne_schusler_dethlefsen
          - entity: input_select.anne_status

      - type: entities
        title: Andreas
        entities:
          - entity: person.andreas_schusler_dethlefsen
          - entity: input_select.andreas_status


  # 🗺️ Popup kort nederst
  - type: grid
    cards:
      - type: custom:button-card
        name: Åbn kort
        icon: mdi:map
        show_state: false
        styles:
          card:
            - border-radius: 16px
            - padding: 14px
            - background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.1))
          icon:
            - color: var(--primary-color)
          name:
            - font-size: 14px
            - font-weight: 600
        tap_action:
          action: call-service
          service: browser_mod.popup
          service_data:
            title: 📍 Familien
            size: fullscreen
            style:
              --popup-border-radius: 20px
              --popup-background-color: rgba(0,0,0,0.9)
            content:
              type: map
              default_zoom: 12
              hours_to_show: 6
              aspect_ratio: 1
              entities:
                - entity: device_tracker.andreas_iphone_12
                  name: Andreas
                - entity: device_tracker.daniels_iphone_7_3
                  name: Daniel
                - entity: device_tracker.annes_iphone_xs_4
                  name: Anne
                - entity: device_tracker.claus_iphone_15pro
                  name: Claus
