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