IB 778 then FR 3876 at Madrid
Hamburg → Madrid → Tangier
Timetable, Madrid time
10:00IB 778 from Hamburg at the gatealso LA 1700, VY 5127, AT 5907, AA 8705
06:10FR 3876 to Tangier leaves the gate
20 h 10 apart on the timetable, overnight
FR 3876 leaves 20 h 10 after IB 778 arrives on the timetable: more than half a day, so not a connection we count.