AZ 76 then FR 2507 at Barcelona
Rome → Barcelona → Cologne
Timetable, Barcelona time
15:55AZ 76 from Rome at the gate
14:10FR 2507 to Cologne leaves the gate
22 h 15 apart on the timetable, overnight
FR 2507 leaves 22 h 15 after AZ 76 arrives on the timetable: more than half a day, so not a connection we count.