Franz Joseph I of Austria
If Greater Germany was to prevail, the crown would necessarily have to go to Franz Joseph, who had no desire to cede it in the first place to anyone else. On the other hand, if the idea of a smaller Germany won out, the German crown could of course not possibly go the Emperor of Austria, but would naturally be offered to the head of the largest and most powerful German state outside of Austria—the King of Prussia. The contest between the two ideas, quickly developed into a contest between Austria and Prussia. After Prussia decisively won the Seven Weeks War, this question was solved; Austria lost no territories as long as they remained out of German affairs.
History of Austria
Over the next three years Austria, whose foreign policy was now directed by Philipp Stadion, attempted to maintain peace with France, avoiding the War of the Fourth Coalition (1806–1807) but obliged to do France's bidding. The overthrow of the Spanish Bourbons in 1808 was deeply disturbing to the Habsburgs, who rather desperately went to war once again in 1809, the War of the Fifth Coalition this time with no continental allies, but the United Kingdom. Stadion's attempts to generate popular uprisings in Germany were unsuccessful, and the Russians honoured their alliance with France, so Austria was once again defeated at the Battle of Wagram, although at greater cost than Napoleon, who had suffered his first battlefield defeat in this war, at Aspern-Essling, had expected. However Napoleon had already re-occupied Vienna. The terms of the subsequent Treaty of Schönbrunn were quite harsh. Austria lost Salzburg to Bavaria, some of its Polish lands to Russia, and its remaining territory on the Adriatic (including much of Carinthia and Styria) to Napoleon's Illyrian Provinces. Austria became a virtual subject state of France.