Sebastien Ogier has ended world champion Sebastien Loeb's eight year run of wins at the Rally of Germany.