EW 7520 then W4 6018 at Barcelona
Hamburg → Barcelona → Rome
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
10:00W4 6018 to Rome leaves the gate
15 h 15 apart on the timetable, overnight
W4 6018 leaves 15 h 15 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.