Your confused (as always). The loss of German territory after WW1 and WW2 in the 20th century took place AFTER the reunification of Germany in the 19th century.
That the 20C comes chronologically after the 19C seems to be too baffling for you today. I suggest you look at it again tomorrow after a good night’s sleep.