The current concept of working conditions must move beyond typical labor issues of occupational health and safety concerns to consider a more comprehensive environment for teaching and learning.
So prostitution was technically not legalized, but in a typical German effort to not keep this aspect of life unregulated, laws were passed to regulate issues like health and hygiene, labor aspects etc..