The itinerary lasts 19hrs 30min, and has 3 steps.

Nice - Paris
The step from Nice to Paris lasts 12hrs 10min. You'll travel in a night train.

Paris - Cologne
The step from Paris to Cologne lasts 3hrs 20min. You'll travel in a high-speed train.

Cologne - Hambourg
The step from Cologne to Hambourg lasts 4hrs 00min. You'll travel in a high-speed train.