FR 3188 then FR 2507 at Barcelona
Fes → Barcelona → Cologne
Timetable, Barcelona time
09:55FR 3188 from Fes at the gate
06:20FR 2507 to Cologne leaves the gate
20 h 25 apart on the timetable, overnight
FR 2507 leaves 20 h 25 after FR 3188 arrives on the timetable: more than half a day, so not a connection we count.