Briton Lewis Hamilton stormed to pole position at the German Grand Prix on a mixed Saturday for Mercedes, whose misjudgement left last week's Silverstone winner Nico Rosberg 11th on the grid for their home race.