In Germany they are paid quite well. At least older, married ones with children as those things give you bonuses. A relative of me had ~4k€ net (after taxes and healthcare) which puts you in the top 15% income earners according to a quick Google search. Not bad for teaching in some random school somewhere in the countryside.
Unfortunately most German states are currently trying to lower the wages.