FR 2508 then W6 2378 at Barcelona
Cologne → Barcelona → Budapest
Timetable, Barcelona time
21:45FR 2508 from Cologne at the gate
20:50W6 2378 to Budapest leaves the gate
23 h 05 apart on the timetable, overnight
W6 2378 leaves 23 h 05 after FR 2508 arrives on the timetable: more than half a day, so not a connection we count.