Say you have €80k in investments. Markets go up, in one year time your investments are worth €90k. You did not sell.
That means you had €10k in unrealized capital gains. Subtract the €1800 per person threshold. €8200, 36% tax is €2952 tax to be paid at the start of the year.
Losses give you tax credits redeemable against future capital gains (not against income tax from employment)