The shutdown of the nuclear reactors was an ideologically driven decision by the last government and the last government before that.
Energy prices are extremely high which damages the German economy. Renewables depend on massive subsidies that Germany can't afford less and less.
Oh and Gas: Switching supplier from Russia to Qatar wasn't a brilliant decision. You just replace an adversarial supplier with another one. Thats really no reason to pat yourself on the shoulder. Its an extremely short term decision.