The availability feature checks whether your devices are online. The availability state of a device is published to zigbee2mqtt/[FRIENDLY_NAME]/availability with payload {"state":"online"} or {"state":"offline"} (this message is a retained MQTT message).
Then, how to create a card that shows all of the state:offline devices?