I built a similar function (to get our compulsory daylight driving lights without raising the [UGLY!] pods)
into the fog light circuit myself when I rebuilt the car.
<b>All this was done without any fancy electronics that eventually <u>will</u> go wild...</b>
It's just a case of some relays, the original switches and pure logics:
Engine on? = Front fogs ON and Outer rear (LED)lights ON.
Parking light on? = Front fogs OFF and All four rear (LED)lights ON.
Dipped front lights on? = Front fogs OFF and All four rear (LED)lights ON.
Main (High beam) lights on? = Front fogs ON and All four rear (LED)lights ON.
Engine off? = Everything reverts back to Parking (all LED!) lights ON only.
Or to
Nothing if only automatic driving lights were the selected operation prior to shutting the engine down...
Piece of cake, really...

<font color="red"><b>My two 1980 Wedges...</b></font id="red">
