EW 7524 then FR 8631 at Barcelona
Hamburg → Barcelona → Tangier
Timetable, Barcelona time
18:05EW 7524 from Hamburg at the gate
11:00FR 8631 to Tangier leaves the gate
16 h 55 apart on the timetable, overnight
FR 8631 leaves 16 h 55 after EW 7524 arrives on the timetable: more than half a day, so not a connection we count.