FR 2512 then EC 7151 at Barcelona
Cologne → Barcelona → Milan
Timetable, Barcelona time
08:30FR 2512 from Cologne at the gate
07:30EC 7151 to Milan leaves the gate
23 h apart on the timetable, overnight
EC 7151 leaves 23 h after FR 2512 arrives on the timetable: more than half a day, so not a connection we count.