EW 7520 then FR 2507 at Barcelona
Hamburg → Barcelona → Cologne
Timetable, Barcelona time
16:20EW 7520 from Hamburg at the gate
14:10FR 2507 to Cologne leaves the gate
21 h 50 apart on the timetable, overnight
FR 2507 leaves 21 h 50 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.