They closed nuclear plants because of strategic-level corruption: Former German Chancellor Gerhard Shroder accepted a senior position at Rosneft as soon as he left politics:
https://www.bbc.com/news/world-europe-54462311
Germany replaced nuclear power with Russian gas.