Dynamo powered lights are legal even though traditionally they have gone out when you stop (modern dynamo systems have 'standlight' technology which means that the light stays on for a while after you have stopped - another German legal requirement).