And the Holy Roman Emperor also had other titles that gave him dominion over regions like Hungary. So a huge portion of Central Europe was ruled by a Vienna-based monarch.
Not the Emperor had that titles. Sometimes the very person of the king of Bohemia , the king of Hungary or Archduke of Austria or H.R. Emperor were not the same person in the Habsburg family.