All of the mentioned things were a direct consequence of World War I. After the end of WWI the Austro-Hungarian empire collapsed, new nation-states were created and Germany lost all its colonies - these are exactly the same things that were asked in your question.