Religion is generally treated as a private matter in Germany, so it is normal to avoid asking strangers about their beliefs or assuming they will discuss them openly. Churches,
mosques, and
synagogues are respected, and in more observant settings you should dress modestly, keep your voice low, and follow any posted rules about photography or entering during services.