Although Salzburg is across the border in Austria, it has a historical connection to Bavaria (the German state Munich is capital of), as it was part of Bavaria at certain points when Bavaria was its own kingdom. One can even use the "Bayern-Ticket" (a special transit ticket that allows for unlimited rail travel within Bavaria) to access Salzburg, despite it not technically being in Bavaria.