Why these political powerhouses suffered crashing defeats in both world wars

Throughout the 20th century, three nations—Germany, Hungary, and Bulgaria—found themselves on the losing side of World War I and II. Their defeats led to significant territorial losses, political upheaval, and long-lasting consequences that reshaped their futures.
As the leader of the Central Powers in World War I, Germany's defeat in 1918 led to the draconian Treaty of Versailles. The treaty imposed severe reparations, military restrictions, and territorial losses, fueling nationalist resentment and paving the way for the rise of Nazi Germany.
Germany's aggressive expansionism in World War II ultimately led to another crushing defeat in 1945. The aftermath saw Germany occupied by the Allies, divided into East and West, and undergoing a complete political transformation under foreign control.
Hungary, once part of the Austro-Hungarian Empire, suffered a devastating loss of over two-thirds of its territory following World War I, as dictated by the Treaty of Trianon in 1920. This loss ignited a deep-seated national resentment, driving Hungary to align itself with Nazi Germany in World War II.
However, as the war turned against the Axis powers, Hungary was successively occupied by both the Nazis and the Soviet Union. Ultimately, Hungary found itself on the losing side once again, remaining under Soviet influence for the next four decades.
Bulgaria's experience in both world wars was marked by shifting allegiances and ultimately, defeat. After joining the Central Powers in World War I, Bulgaria was forced to surrender in 1918, suffering territorial losses under the Treaty of Neuilly in 1919. In World War II, Bulgaria initially allied itself with Nazi Germany but later switched sides in 1944, declaring war on Germany. Despite this late realignment, Bulgaria fell under Soviet influence after the war, its fate mirroring that of Hungary.
Austria's experience in both world wars was distinct from that of Germany, Hungary, and Bulgaria. As part of the Austro-Hungarian Empire, Austria was defeated in World War I, leading to the empire's dissolution. In World War II, Austria was annexed by Nazi Germany in 1938, making it a formal part of Germany rather than an independent belligerent. After the war, Austria positioned itself as a victim of Nazi expansion, a stance that remains a subject of historical debate.