FR 9840 then AT 983 at Lisbon
Cologne → Lisbon → Casablanca
Timetable, Lisbon time
23:30FR 9840 from Cologne at the gate
17:55AT 983 to Casablanca leaves the gate
18 h 25 apart on the timetable, overnight
AT 983 leaves 18 h 25 after FR 9840 arrives on the timetable: more than half a day, so not a connection we count.