The ten men of Germany flirted with disaster before Toni Kroos scored a stunning free-kick to keep the holders alive in Group F