How was Germany able to make an insane comeback despite the huge losses after WW2?

Canadian here! I’ve always been blown away by how Germany went from total devastation after WWII to being a global powerhouse in industries and one of the richest countries in the world. How did y’all pull that off?