EW 7520 then AT 965 at Barcelona
Hamburg → Barcelona → Casablanca
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
12:45AT 965 to Casablanca leaves the gate
18 h apart on the timetable, overnight
AT 965 leaves 18 h after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.