If you do require front lights please be respectful of others either use a proper StVZO light or make sure the beam is pointed towards the ground and for the love of all things good in this world don't flash unless you are in an absolute emergency situation and are trying to beckon for help. The rear is less dangerous as a flashing light but white light is very harmful to our eyes and despite what selfish people might say it isn't safer. I literally have to close my eyes or look away when these folks are passing and that is not safe for anyone.
I would highly recommend getting a dynamo as you will always have light as long as your wheel is moving and they generally are already StVZO complaint and you can get ones with USB charging or get a separate plug.
Here is a handy article about it from across the pond:
https://www.bikeradar.com/advice/buy...o-bike-lights/
You might also consider the Garmin Varia Radar rear light so you can get a little notice when a car is coming from behind and also give a little light as well!