There is quite a body of scholarship on the sociolinguistics of the Austro-Hungarian Empire, if you are curious.
You don't build a bond with some nation and culture over the course of one century it takes more than that. For example like you probably know Ottoman Empire was ruling and controlling south-east Europe for 500 years and impact of that is very much visible and present today.
The German connection is definitely there. There was even a transliterated word used for people working abroad: "gastarbajter," from German Gastarbeiter. And it was used for anyone working abroad, no matter where :-)
Edit: https://en.wiktionary.org/w/index.php?title=Category:Serbo-C... . I can't believe "boja" is borrowed.
Certainly German words in Croatian testify to contacts at some level of the population. Romanian, too, abounds in German words in some domains, for example, but this doesn’t mean the average Romanian would have been able to speak any German. But in Croatia knowledge of German varied greatly from the country’s northwest to its south. Again, the sociolinguistics of the Austro-Hungarian Empire are well-described.
[1] https://en.wikipedia.org/wiki/Habsburg_Monarchy