I have been on a train ferry between Denmark and Germany during trip from Copenhagen to Hamburg. I hadn't looked up the route in advance and it blew my mind. The train just "drove" onto the boat. Then, we could get off and move around on the boat. You could go up on deck and there were a lot of shops.
Had this same experience many years ago traveling from Hamburg to Copenhagen. I had no idea there would be a boat involved in the trip. "Gee, this is a long stop... and where are we?" only to realize we the train was actually parked and still moving.
I had the same, travelling from Berlin to Copenhagen. It was a sleeper train and the loading onto the ferry happened overnight, so unfortunately I didn't see it happen. I could hear it happen—it was very surreal to hear train noises, then boat noises then train noise again.
I think Puttgarden–Rødby is more likely. It used to be served by diesel ICE trains and it was really fun to ride onto a big old ferry on one of these unusually short ultra-sleek trains, get off the train, walk a lap around it, then go up to the open-air deck and stretch your legs a bit.
There’s still a direct Hamburg–Copenhagen connection via that ferry, but it’s now a normal Eurocity.
I took that diesel ICE in 2008. It blew my mind as well. Another thing I noticed about that train is that it seemed to have discrete gears. I don't know if that's true but my impression was that the train would accelerate and change gears just like in a car/truck (as opposed to a diesel-electric train where the diesel engine generates electricity for an electric motor that drives the wheels).
Diesel locomotives with mechanical transmissions are rare today, but they do exist. Hitachi still makes such transmissions.[1] Here's a train in the UK equipped that way.[2]