I went on the train between Hamburg and Copenhagen around 2007. Crossed on a ferry between Puttgarden (Germany) and Rødby (Denmark). Looks like this was discontinued in 2019 but I'm not sure what replaces the Hamburg-Copenhagen link. I'm glad I did it, it was definitely a strange experience to disembark the train on to a ferry and go and stand on the deck as it crossed.