You are correct. The 30 years war was really over the authority of the Hapsburgs and their leadership of the so-called Holy Roman Empire.
For that matter, so was much of the Reformation. Luther didn't want a split, but when he took shelter with the Electors, Pope Leo X didn't care about much else and wanted him out.