As far as I have informed myself, you have to reckon with about 20k for a heat pump. Furthermore, problems can occur during drilling that can increase the costs (e.g. concrete casing). With a heat pump alone, you save on gas, but of course there will be electricity consumption. Since the price for this rises more sharply than for gas, it only makes sense to also use a photovoltaic system and use the electricity from it. You can’t do it without a storage system either. With an 8kWp system, including an electricity storage, you are at about 25k. With the heat pump, you then reach 45k.
For 45k, I get a gas heating system with gas for many, many years (at 6000 mwh/a/m² we are at about 400 euros).
I am an absolute fan of heat pumps and photovoltaic systems, but if the compound interest effects are already higher than the investment in the gas heating system + gas, how is this ever supposed to pay off? Maybe it's better to wait a bit and retrofit this later?
If something is wrong with my calculation, I would appreciate criticism ;-).