Germany crashed out of the FIFA World Cup despite a 4-2 win over Costa Rica in their final Group E game. The four-time champions ended third after Japan stunned Spain 2-1 to top the group. Spain edged Germany on goal difference to take the second spot.