EW 7520 then VY 4221 at Barcelona
Hamburg → Barcelona → Berlin
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
13:05VY 4221 to Berlin leaves the gate
18 h 20 apart on the timetable, overnight
VY 4221 leaves 18 h 20 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.