EW 520 then FR 2239 at Barcelona
Cologne → Barcelona → Marrakesh
Timetable, Barcelona time
12:45EW 520 from Cologne at the gate
06:40FR 2239 to Marrakesh leaves the gate
17 h 55 apart on the timetable, overnight
FR 2239 leaves 17 h 55 after EW 520 arrives on the timetable: more than half a day, so not a connection we count.