FR 2897 then FR 2507 at Barcelona
Palma de Mallorca → Barcelona → Cologne
Timetable, Barcelona time
16:45FR 2897 from Palma de Mallorca at the gate
06:20FR 2507 to Cologne leaves the gate
13 h 35 apart on the timetable, overnight
FR 2507 leaves 13 h 35 after FR 2897 arrives on the timetable: more than half a day, so not a connection we count.