One thing has nothing to do with the other.
Germany is pushing for renewable and has not transitioned to it.
It is depending on Russia for 30% or so in gas. It has this problem because the transition is not done and Fukushima pushed the faster end of nuclear power.
Which is understandable when you remember Tschernobyl and how dense populated Germany is.
I drive by isar nuclear power plant by train since I remember. While it looks interesting it's also frightening when you see how little real knowledge or excercise anyone had when Tschernobyl happened and when Fukushima happened.