Execution queue not in same order as in flow

Yes, unfortunately all action cards are fired kind of asynchronous, but not always (read this interesting thread )
An idea is, consider starting separating some flows and flowcards.
Your shared flow I call Flow1 in this example.
Then you can split that flow up to:
Flow1A
If…
this flow is started
And…
logic [fun] is No
Then…
switch off all lights
start Flow1B after 1s
set logic [fun] to Yes
Else…
turn all lights off
turn all plugs off
set logic [fun] to No

Flow1B
If…
this flow is started
Then…
turn all Wohnzimmer Stehlampen on
Dim all Stehlampe to 65% after 1s
start flow 1c after 2s

Flow1C
If…
this flow is started
Then…
… the rest of the other action cards
set logic [fun] to Yes