EW 2522 then 3O 378 at Barcelona
Stuttgart → Barcelona → Tangier
Timetable, Barcelona time
20:00EW 2522 from Stuttgart at the gate
17:453O 378 to Tangier leaves the gate
21 h 45 apart on the timetable, overnight
3O 378 leaves 21 h 45 after EW 2522 arrives on the timetable: more than half a day, so not a connection we count.