I don’t know generally that zoning laws are the problem in Berlin but famously voters fought against adding housing units at the old airport vs the communal parks that were there:
https://www.google.com/amp/s/amp.theguardian.com/cities/2015...
It certainly seems like voters are prioritizing things besides affordable housing and getting what they want (expensive rent and nice parks).