EW 7520 then VY 2002 at Barcelona
Hamburg → Barcelona → Berlin
Timetable, Barcelona time
18:20EW 7520 from Hamburg at the gate
14:00VY 2002 to Berlin leaves the gatealso IB 5561, LL 5561
19 h 40 apart on the timetable, overnight
VY 2002 leaves 19 h 40 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.