I have now made a rough calculation. According to the U-value calculator, the U-value of the roof is 0.20 W/m^2K without the additional insulation and 0.125 W/m^2K with the insulation. Heating the transmission losses of the house will cost me an estimated 500 EUR per year (losses from ventilation and heating costs for hot water are additional). The roof area accounts for 26% of the building envelope of the house, and I reduce the energy transmission of the roof by 38%. Therefore, I save about 10% of the transmission losses of the entire house through the additional insulation, resulting in a saving of about 50 EUR per year.
If the insulating mats for the area already cost 1500 euros, it will take 30 years to break even if I can finance at zero percent. So basically, the measure is silly.
However, I might do it anyway, also because of heat protection in the summer. And I would probably have put some kind of flooring in the attic anyway (chipboard or something), so insulation can equally be included in this flooring.