Help to automate - 4b switch w. scene toggle and dimming

Hi - i am still fairly new, and struggeling to wrap my head around how to structure automations - i could really use some ideas on how to build and structure an automation to achive this:

What:
HA + Zigbee2MQTT
4 button switch (LG Wiser Battery Switch)

Controlling:
5 smart lights in a room

What i want:
On button:

  1. Turn on the lights (from last used scene)
  2. Further press cycles defined scenes

Off button:
Turn off lights

Dim up:
Raise brightness of all lights on in the room

Dim down:
Lower brightness of all lights on in the room