Do you have to turn off your full beam headlights when approaching a train travelling in the opposite direction?
“Full beam headlights may not be used [...] when meeting an oncoming track-bound transport [...] if there is a possible risk of dazzling the driver.” (Road Traffic Ordinance)
The train driver must be able to see the tracks. There could be an elk on the line further ahead, for example. The driver of the train must then have good visibility in order to activate the emergency brake.
More examples of explanations: