The capital gains tax is automatically withheld by the partner bank as soon as taxable investment income arises. This happens, for example, when a dividend is credited or you sell fund units at a profit. The bank then anonymously pays 25% capital gains tax plus solidarity surcharge (and if applicable, church tax) to the tax office.
Your earnings will therefore be paid out to you as net amounts.