EC 8065 then EW 7521 at Barcelona
London Gatwick → Barcelona → Hamburg
Timetable, Barcelona time
12:20EC 8065 from London Gatwick at the gate
10:10EW 7521 to Hamburg leaves the gate
21 h 50 apart on the timetable, overnight
EW 7521 leaves 21 h 50 after EC 8065 arrives on the timetable: more than half a day, so not a connection we count.