Germany was actually one of the last European countries to drop mask mandates on its trains. You still needed masks on trains at a time that you could go into any restaurant or bar without one. This also led to odd situations on international trains. I was on one such train where one minute there was an automated announcement that you were required by law to wear a mask and there would be hefty fines for anybody who didn't, and the next minute there was an announcement that said, when removing your mask please dispose of it in the trashcan and don't just dump it on your seat.