> You continue working at a company that you will have to leave? What incentives do you have to keep putting in any effort? Doesn't this lead to massive amount of corporate theft? In the US you are typically "shown the door" when your employment is terminated to minimize the possibility of disgruntled ex-employees taking corporate IP with them.
If employers fear that, they can do something that's called "Freistellung" in Germany - basically, employees don't have to work any more but still get paid just the same until the employment contract expires.