It is terrible that someone did this. Nobody should have to put up with that bullshit.
I do not know anything about German law. But for reference, if this had happened in the US, I would recommend that you contact an employment law attorney, because as you described it you might have a basis for a lawsuit. (Only a lawyer could tell you for sure.)