FR 2508 then FR 1279 at Barcelona
Cologne → Barcelona → Copenhagen
Timetable, Barcelona time
21:45FR 2508 from Cologne at the gate
21:10FR 1279 to Copenhagen leaves the gate
23 h 25 apart on the timetable, overnight
FR 1279 leaves 23 h 25 after FR 2508 arrives on the timetable: more than half a day, so not a connection we count.