QR 3702 then AT 961 at Barcelona
Berlin → Barcelona → Casablanca
Timetable, Barcelona time
23:50QR 3702 from Berlin at the gate
19:10AT 961 to Casablanca leaves the gate
19 h 20 apart on the timetable, overnight
AT 961 leaves 19 h 20 after QR 3702 arrives on the timetable: more than half a day, so not a connection we count.