Hungary was a kingdom, not an empire. The empire bit is Austria. And it's a pretty shoddy excuse for an empire, being inaugurated due to Austria's decline and then falling apart about 50 years later.
Germany stopped being an empire in 1919. The German Empire, on the other hand, continued existing until 1943, at which point it was renamed the Greater German Empire.










