Twelve months ago Germany was on a run of awful results and seemed on course to struggle when it hosted Euro 2024.