EC 7174 then FR 8631 at Barcelona
Berlin → Barcelona → Tangier
Timetable, Barcelona time
13:30EC 7174 from Berlin at the gate
11:00FR 8631 to Tangier leaves the gate
21 h 30 apart on the timetable, overnight
FR 8631 leaves 21 h 30 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.