QR 5519 then EW 2521 at Barcelona
Tangier → Barcelona → Stuttgart
Timetable, Barcelona time
11:05QR 5519 from Tangier at the gate
09:20EW 2521 to Stuttgart leaves the gate
22 h 15 apart on the timetable, overnight
EW 2521 leaves 22 h 15 after QR 5519 arrives on the timetable: more than half a day, so not a connection we count.