It’s not so easy in Germany when the company has 10+ employees. You need a process consisting of warnings, giving time to correct the behaviour and what not. There are cases where people who have been terminated for sexual misconduct or stealing have been ordered by the court to return to work.