Why did Prussia win the Seven Weeks' War?

In numbers and equipment the two sides initially appeared to be fairly evenly matched. In 1857 Helmuth von Moltke the Elder (1800-1891) had been appointed Chief of the Prussian General Staff (Grosser Generalstab). He transformed this previously sleepy outfit into a powerhouse of detailed highly military planning such as no other European power possessed. Detailed study of the Austrian rail network made it clear to the Prussians which routes the Austrians were likely to use and where delays and bottle-necks would occur. This information was very accurate and gave the Prussians an enormous advantage, which they used very effectively to seize Austria's vital regions.