They moved away from Nuclear. However, now they import power from France, etc. Which has Nuclear and fossil fuel plants.
However you're right that Germany was a net importer from (among others) France: https://de.statista.com/statistik/daten/studie/180862/umfrag...
Which is surprising as I remember reading that France has tremendous difficulties satisfying their electricity demand, especially in winter (lots of electric heating apparently).