Hi Mike,
Phu, I finally got the hang of it after a few days thinking and more thinking, making drawings and so on.
I have come up with the following:
The red and orange wires both get 12 volts: the red is switched by ignition or accessory; the orange powers the internal light from the headlamp...