From what I know the law in germany concerning dynamos depends on the wieght of your bike, if you have a light wieght bike then you can use batery powered lights.
I have just remembered another rule here. If the bike is a racing bike (road only) it doesn't have to have lights or reflectors which are a legal requirement even in the day over here.