FR 9840 then TP 1438 at Lisbon
Cologne → Lisbon → Casablanca
Timetable, Lisbon time
23:30FR 9840 from Cologne at the gate
13:30TP 1438 to Casablanca leaves the gate
14 h apart on the timetable, overnight
TP 1438 leaves 14 h after FR 9840 arrives on the timetable: more than half a day, so not a connection we count.