Germany has more than enough alternatives for nuclear power. The situation would have been even better if not for some brain farts sabotaging the movement to alternatives for various reasons.
The big problem is that has Germany has big dependencies on coal, gas and gasoline, for industry, heating, and cars. Nuclear power can't replace this at all. Which is why Germany is shifting around usages and started investing big in hydrogen.
They did, most German reactors are ancient and were past the recommended life-time. And coal consumption did not increase because of the closing down of nuclear reactors.
The big problem is that has Germany has big dependencies on coal, gas and gasoline, for industry, heating, and cars. Nuclear power can't replace this at all. Which is why Germany is shifting around usages and started investing big in hydrogen.