Panoramafreiheit, freedom of panorama: https://en.wikipedia.org/wiki/Freedom_of_panorama
"in Germany the permission applies only if the image was taken from public ground, and without any further utilities such as ladders, lifting platforms, airplanes etc.". So the law grants different permissions depending how tall you are.
Mind you, this is copyright law. Might privacy be a separate matter?
Could one argue that the top of a car is a ladder?