As you mentioned the Sparbeitrag and Risikobeitrag. Basically the pension savings and risk insurance respectively.
Both deductions go into the pension fund but only the first one forms savings. The other one is risk insurance for the case of death or disability.
Your pension statement should state what the payout would be in the case of such unfortunate events.
The same statement should also show how much you are contributing and how much your employer is. This should be at least equal. However, many employers contribute more than the employee or pick up the full cost of the risk insurance.
If you leave Switzerland, you may be able to cash out the savings (your and your employer's contributions) and the payout would be subject to lump sum payout tax. Whether and how much you can cash out depends on the social security agreements between Switzerland and whatever the relevant other country is.