Alcohol banned on Deutsche Bahn?

A question for anyone who has recently traveled by train, especially between Thuringia and Baden-Württemberg or Bavaria and Baden-Württemberg: Is there currently a ban on alcohol on RE and IC trains? Or, to be more specific: is it advisable/critical/forbidden to drink a small glass of sparkling wine on the train? Because I'm clearly distinguishing between…