Discussion about nuclear reactors aside, energy in germany became expensive when they cut off russian gas and they had no good alternative. There was no other source of cheap fossil fuels for electricity production. If anything, renewables are promoted as a solution to that energy problem.
The discussion about fossil fuels vs renewables is a bit different within countries which produce fossil fuels than within those that don't.
The discussion about fossil fuels vs renewables is a bit different within countries which produce fossil fuels than within those that don't.