Bavarian or saxonian rulers was mostly OK.Unfortunatelly,prussian take over with their state worshipping,so everybody must turn into shit.
Church was never involved,only prussian rulers for whom church was part of state.And they created omnipotent state which could gave children to pedophiles...