3O 391 then LH 1805 at Madrid
Tangier → Madrid → Munich
Timetable, Madrid time
20:003O 391 from Tangier at the gate
18:35LH 1805 to Munich leaves the gate
22 h 35 apart on the timetable, overnight
LH 1805 leaves 22 h 35 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.