It's an unusually badly written law:
§ 24 Works of art may be reproduced
1. if they are permanently located on or at a public place outdoors,
2. if the purpose is to advertise an exhibition and sale of works of art, but only to the extent necessary to promote the exhibition or sales, or
3. if they are part of a collection, in catalogs, but not in digital form.