W6 2375 then FR 2507 at Barcelona
Budapest → Barcelona → Cologne
Timetable, Barcelona time
08:40W6 2375 from Budapest at the gate
06:20FR 2507 to Cologne leaves the gate
21 h 40 apart on the timetable, overnight
FR 2507 leaves 21 h 40 after W6 2375 arrives on the timetable: more than half a day, so not a connection we count.