EW 522 then FR 3189 at Barcelona
Cologne → Barcelona → Fes
Timetable, Barcelona time
19:45EW 522 from Cologne at the gate
14:50FR 3189 to Fes leaves the gate
19 h 05 apart on the timetable, overnight
FR 3189 leaves 19 h 05 after EW 522 arrives on the timetable: more than half a day, so not a connection we count.