You have to look back a few decades to see the whole picture. If we'd kept investing in nuclear technology since the 1980s, with a focus on passive safety and cost reduction, we'd never have needed all that gas in the first place.
By "we", I mean the entire western world, not Germany specifically. The fossil fuel companies allegedly encouraged anti-nuclear sentiment during that era, and nobody had the organization and foresight to fight back, so we're all paying the price today.