HV 5754 then KL 1521 at Schiphol
Marrakesh → Amsterdam → Barcelona
Timetable, Amsterdam time
23:30HV 5754 from Marrakesh at the gate
20:50KL 1521 to Barcelona leaves the gate
21 h 20 apart on the timetable, overnight
KL 1521 leaves 21 h 20 after HV 5754 arrives on the timetable: more than half a day, so not a connection we count.