EW 7520 then IB 5092 at Barcelona
Hamburg → Barcelona → Porto
Timetable, Barcelona time
16:20EW 7520 from Hamburg at the gate
12:55IB 5092 to Porto leaves the gate
20 h 35 apart on the timetable, overnight
IB 5092 leaves 20 h 35 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.