Hi babyjag,
Sorry to hear the news. I haven’t been in these shoes before, so my advice can only be very broad and doesn’t necessarily apply to your situation.
If you have legal insurance, now would be the time to call them and ask for guidance.
If you don’t, I’d wait and see what I’m told. If they fire you under your normal contract terms, then there’s not much you can do but you should be able to get a fair letter of reference and be able to gather unemployment benefits right away (do go and see it first thing if/once you’ve learned the news, they have specific conditions that apply right after the start of unemployment that can result in delays and/or penalties if you don’t tackle them right away).
They can fire you and tell you not to come back to work but if they do, that means that they are willfully giving up on your services but must keep paying you until the normal term of your contract (usually 2-3 months).
You’ll have to refer to your contract to see what happens with potential bonuses. They’re usually taken out and can’t be claimed if HR is half-decent. Edit: unless they fire you with cause (see below), the 13th salary, if you have one, should still be due “pro rata temporis”.
If they try to fire you with cause, meaning they fire you on the spot, without anymore pay, which means penalties regarding unemployment benefits and a potential blow in your career (the business world is a pretty small one where everybody knows everybody), then I’d go and see the Ombudsman/Prud’homme, which is the person dedicated to handle conflicts between employer and employee. While he’s fair and neutral, the purpose of his job is to offer protection to the weaker party, i.e. you. I’d let your employer know this is your next stop when/if they mention firing you with cause. They may want to avoid the trouble and potential legal costs and be willing to terminate your employment in the regular way.
If things escalate and there’s enough money on the table to make it worth it, you may want to take counsel from an attorney. The Ombudsman/Prud’homme should be able to give you advice regarding this step.
Things may vary depending on the conditions of your employment (Swiss person, B or C permit, …) but the bottom line of the Arbeitsgesetz/Loi sur le Travail is to protect employees so there is a legal groundwork to back you up (even though, as nabalzbhf states it, there’s not much that can be done if they fire you under the terms of the law and your contract).
Keep heart and get your network to work.
Edit: addition and typo (sorry nabalzbhf).