TP 531 then FR 4390 at Lisbon
Berlin → Lisbon → Marrakesh
Timetable, Lisbon time
15:40TP 531 from Berlin at the gate
13:20FR 4390 to Marrakesh leaves the gate
21 h 40 apart on the timetable, overnight
FR 4390 leaves 21 h 40 after TP 531 arrives on the timetable: more than half a day, so not a connection we count.