EW 7520 then VY 1552 at Barcelona
Hamburg → Barcelona → Málaga
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
13:00VY 1552 to Málaga leaves the gatealso IB 5510, LL 5510
18 h 15 apart on the timetable, overnight
VY 1552 leaves 18 h 15 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.