This place started to think in memes I feel. Every issue comes with the automated arguments, the same ones every time. If the topic is energy someone must write the "they shouldn't have closed those Nuclear power plants, silly environmentalist".
Anyway, France is full blown nuclear state and they are having energy issues too, because as it turns out nuclear power plants require long regular maintenance periods.
Maybe there's no simple answer for energy issues and countries don't simply build or close down power plants over single issue? Maybe it wasn't done just to please some tree huggers?
Maybe someone in Germany could have had crunched the numbers too and see the risks? Maybe some politicians were too close to fossil fuel money? Maybe it was considered as a way to keep the relationship with Russia profitable for Russia and encourage Russia to build good relationships with their primary customer? Maybe EU wanted to have Russia as a reliable petrostate as an alternative to the USA so they can do their thing without USA? Maybe they wanted to reduce their footing in Africa by not relying for them in Uranium production? Maybe it make more economical sense to use the non-nuclear solutions?
Just maybe it wasn't a single issue decision even if it didn't play out as hoped? Europe is acutely aware of its tight energy situation, that's why they have been regulating the efficiency since decades, it's not coincidence that in Europe everything is very energy efficient. They squeezed it to the point where faster water heaters and more powerful vacuums were presented as Brexit benefits.
Oh, I'm so fed up by this culture war.