It was over a decade after the end of the war before the average German person realised the Nazis were the bad guys.
Germany is also involving itself in another war right now where it thinks it is a good guy.