1. electrify those applications currently served by gas 2. import or manufacture carbon-neutral synthetic gas 3. buy a heck of a lot of offsets
And they are disrupting neighbors' energy production economics when they offload their overproduction precisely when nobody wants it.
That's German superiority complex in all it's "glory".
Continuing to burn fossil fuel is simply not an option. Not if we want to comfortable keep living on this planet.
The reason countries buy electricity from their neighbors is because it's cheaper not because they couldn't meat the demands themselves.
Now Germany is by no means perfect, heating is largely gas based which increases emissions. Ironically the law that was trying to change this, had a big counter campaign that likely contributed to the change of government.
So while the greens energiewende are often blamed for Germanys dependency on gas (although the dependency had been going for much longer), it's the conservatives who likely had a much bigger impact on Germany sticking with gas by preventing to move heating to electricity.