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