HV 5131 then AT 965 at Barcelona
Amsterdam → Barcelona → Casablanca
Timetable, Barcelona time
13:35HV 5131 from Amsterdam at the gate
12:45AT 965 to Casablanca leaves the gate
23 h 10 apart on the timetable, overnight
AT 965 leaves 23 h 10 after HV 5131 arrives on the timetable: more than half a day, so not a connection we count.