Austria
The Treaty of Saint-Germain of 1919 (for Hungary the Treaty of Trianon of 1920) confirmed and consolidated the new order of Central Europe which to a great extent had been established in November 1918, creating new states and altering others. The German-speaking parts of Austria which had been part of Austria-Hungary were reduced to a rump state named The Republic of German-Austria (German: "Republik Deutschösterreich"). The desire for "Anschluss" (annexation of Austria to Germany) was a popular opinion shared by all social circles in both Austria and Germany. On 12 November, German-Austria was declared a republic, and named Social Democrat Karl Renner as provisional chancellor. On the same day it drafted a provisional constitution that stated that "German-Austria is a democratic republic" (Article 1) and "German-Austria is an integral part of the German reich" (Article 2). The Treaty of Saint Germain and the Treaty of Versailles explicitly forbid union between Austria and Germany. The treaties also forced German-Austria to rename itself as "Republic of Austria" which consequently led to the first Austrian Republic.
Bavaria
When Napoleon abolished the Holy Roman Empire, Bavaria became a kingdom in 1806 due, in part, to the Confederation of the Rhine. Its area doubled after the Duchy of Jülich was ceded to France, as the Electoral Palatinate was divided between France and the Grand Duchy of Baden. The Duchy of Berg was given to Jerome Bonaparte. The Tyrol and Salzburg were temporarily reunited with Bavaria but finally ceded to Austria by the Congress of Vienna. In return Bavaria was allowed to annex the modern-day region of Palatinate to the west of the Rhine and Franconia in 1815. Between 1799 and 1817, the leading minister, Count Montgelas, followed a strict policy of modernisation; he laid the foundations of administrative structures that survived the monarchy and retain core validity in the 21st century. In May 1808 a first constitution was passed by Maximilian I, being modernized in 1818. This second version established a bicameral Parliament with a House of Lords ("Kammer der Reichsräte") and a House of Commons ("Kammer der Abgeordneten"). That constitution was followed until the collapse of the monarchy at the end of World War I.
After the rise of Prussia to power, Bavaria preserved its independence by playing off the rivalries of Prussia and Austria. Allied to Austria, it was defeated in the 1866 Austro-Prussian War and did not belong to the North German Federation of 1867, but the question of German unity was still alive. When France declared war on Prussia in 1870, the south German states Baden, Württemberg, Hessen-Darmstadt and Bavaria joined the Prussian forces (whereas Austria did not) and ultimately joined the Federation, which was renamed "Deutsches Reich" (German Empire) in 1871. Bavaria continued as a monarchy, and it had some special rights within the federation (such as an army, railways, postal service and a diplomatic body of its own).