EW 7520 then EC 7107 at Barcelona
Hamburg → Barcelona → Geneva
Timetable, Barcelona time
16:20EW 7520 from Hamburg at the gate
14:20EC 7107 to Geneva leaves the gate
22 h apart on the timetable, overnight
EC 7107 leaves 22 h after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.