Isochrone map of travel time by train from Barcelona

Barcelona – A Coruña (1082 km)
Plane: 1h 45m
Car: 9h 30m
Train: 12h 52m

Barcelona – Cologne (1358 km)
Plane: 2h 15m
Car: 12h 20m
Train: 11h 55m

So, Cologne is two countries and almost 300km farther from Barcelona than Coruña, but it takes 1 hour less to get there by train as shown by this isochrone map.