What happens if the company of which you are a co-owner is not doing well?

It is highly likely that the company's valuation will decrease, and shares (as well as derived certificates or other instruments) will become less valuable. If an employee buys in at moment 0 for 100 euros each, it might later be worth 80 euros each