Germany has long been regarded as a leader on climate action, but the outgoing coalition leaves a mixed legacy.