On the sunroof I can not find a flow diagram, on the headlight switch.
E1 = light switch (on the top of the drawing)
E4/5 = high-beam stalk
L1/L2 = headlights
K1/K2 = high beams
And yes, the brown wire should be connected to your sealed beams and provides the ground for the bulbs inside !