By the terms of that treaty, essentially, each country adopted the religion of the ruler.
In the Academic and Political world of Europe, the leaders tried to keep Religion out of the arena so as to be able to work with some sort of accord.