EW 520 then FR 3166 at Barcelona
Cologne → Barcelona → Palermo
Timetable, Barcelona time
14:45EW 520 from Cologne at the gate
11:30FR 3166 to Palermo leaves the gate
20 h 45 apart on the timetable, overnight
FR 3166 leaves 20 h 45 after EW 520 arrives on the timetable: more than half a day, so not a connection we count.