FR 2240 then FR 2507 at Barcelona
Marrakesh → Barcelona → Cologne
Timetable, Barcelona time
12:05FR 2240 from Marrakesh at the gate
06:20FR 2507 to Cologne leaves the gate
18 h 15 apart on the timetable, overnight
FR 2507 leaves 18 h 15 after FR 2240 arrives on the timetable: more than half a day, so not a connection we count.