The ensuing Third Silesian War (1756–1763, part of the larger Seven Years' War) was indecisive, and its end saw Prussia holding onto Silesia, despite Russia, France, and Austria all combining against him, and with only Hanover as a significant ally on land. The end of the war saw Austria, poorly prepared at its start, exhausted. Austria continued the alliance with France (cemented in 1770 with the marriage of Maria Theresa's daughter Archduchess Maria Antonia to the Dauphin), but also facing a dangerous situation in Central Europe, faced with the alliance of Frederick the Great of Prussia and Catherine the Great of Russia. The Russo-Turkish War of 1768–1774 caused a serious crisis in east-central Europe, with Prussia and Austria demanding compensation for Russia's gains in the Balkans, ultimately leading to the First Partition of Poland in 1772, in which Maria Theresa took Galicia from Austria's traditional ally. War of Bavarian Succession (1778–1779) Over the next several years, Austro-Russian relations began to improve. When the War of Bavarian Succession (1778–1779) erupted between Austria and Prussia following the extinction of the Bavarian line of the Wittelsbach dynasty, Russia refused to support Austria, its ally from the Seven Years' War, but offered to mediate and the war was ended, after almost no bloodshed, on 13 May 1779, when Russian and French mediators at the Congress of Teschen negotiated an end to the war. In the agreement Austria received the Innviertel from Bavaria, but for Austria it was a case of status quo ante bellum. This war was unusual for this era in that casualties from disease and starvation exceeded wounds, and is considered the last of the Cabinet wars (Kabinettskriege) in which diplomats played as large a part as troops, and as the roots of German Dualism (Austria–Prussia rivalry). Reform Although Maria Theresa and her consort were Baroque absolutist conservatives, this was tempered by a pragmatic sense and they implemented a number of overdue reforms. Thus these reforms were pragmatic responses to the challenges faced by archduchy and empire, not ideologically framed in the Age of Enlightenment as seen by her successor, Joseph II. The collision with other theories of nation states and modernity obliged Austria to perform a delicate balancing act between accepting changing economic and social circumstances while rejecting their accompanying political change. The relative failure to deal with modernity produced major changes in Habsburg power and Austrian culture and society. One