The bigger problem is that Germany doesn't have any more recent nuclear power plants due to public pressure and instead just extended the lifetimes of the existing ones for decades to compensate. We could have built better and SAFER nuclear power plants but because that would have lost voters we instead had to extend the lifetimes again and again.
All polluting industries have their own tactics to deflect public attention. In Germany coal succeeded at deflecting that attention towards nuclear. The Ruhr region has a romanticized nostalgia for its history of coal mining whereas most people associate nuclear power with Chernobyl (or more recently Fukushima, which really just culturally echoed the existing memories of Chernobyl), the nuclear bombings of Nagasaki and Hiroshima and the threat of global thermonuclear war while being smack in the middle of the Iron Curtain (almost literally, with the Berlin Wall separating both sides of the conflict).
I don't know to what extent the coal industry is actually involved in this, but there is an almost patriotic attitude towards coal plants in contrast with the horrified panic surrounding nuclear. Meanwhile solar is mostly seen as a way to cut down on electric bills by installing pannels on your own roof and wind power is a "blight on the countryside" and "health risk" (because of noise pollution, strobing shadows and of course killing migratory birds). Some of this seems to be finally changing but the "man on the street" will likely still prefer coal over all other forms of energy for no good reason.