EW 520 then FR 2896 at Barcelona
Cologne → Barcelona → Palma de Mallorca
Timetable, Barcelona time
14:45EW 520 from Cologne at the gate
14:00FR 2896 to Palma de Mallorca leaves the gate
23 h 15 apart on the timetable, overnight
FR 2896 leaves 23 h 15 after EW 520 arrives on the timetable: more than half a day, so not a connection we count.