FR 3877 then LH 1115 at Madrid
Tangier → Madrid → Frankfurt am Main
Timetable, Madrid time
17:35FR 3877 from Tangier at the gate
17:15LH 1115 to Frankfurt am Main leaves the gate
23 h 40 apart on the timetable, overnight
LH 1115 leaves 23 h 40 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.