Substitute Deniz Undav emerged as Germany's hero with a dramatic 94th-minute winner that completed his side's stunning comeback win against Ivory Coast and booked their place in the World Cup knockout stages.