There currently are a variety of options to travel by night train from Würzburg (Germany) to Hamburg (Germany), taking between approximately 6 and 9 hours: Namely the UEX 1850 and the ICE 1080. These lines are operated by UEX and Deutsche Bahn.
UEX (Urlaubs-Express) operates seasonal night trains, including car-carrying trains (Autoreisezüge), from Germany to Austria and back.
Options range from seats and shared couchettes to private couchette compartments, sleeper compartments and connected sleeper cabins.
You can bring your car, but only between the car terminals, and you book the vehicle along with your ticket.
Skis travel free in the ski compartment. A bistro on board sells drinks and snacks.
There is a reduced fare for children who have their own seat or bed.
Deutsche Bahn (DB) exited the actual night train business in 2016. However, it operates around a dozen Intercity and Eurocity trains that run exclusively at night.
These trains only have first and second class seats. The cars remain lit throughout the night and the seats cannot be reclined.