FR 2508 then FR 1421 at Barcelona
Cologne → Barcelona → Budapest
Timetable, Barcelona time
21:45FR 2508 from Cologne at the gate
17:40FR 1421 to Budapest leaves the gate
19 h 55 apart on the timetable, overnight
FR 1421 leaves 19 h 55 after FR 2508 arrives on the timetable: more than half a day, so not a connection we count.