EW 7520 then LA 5766 at Barcelona
Hamburg → Barcelona → Granada
Timetable, Barcelona time
18:20EW 7520 from Hamburg at the gate
12:00LA 5766 to Granada leaves the gate
17 h 40 apart on the timetable, overnight
LA 5766 leaves 17 h 40 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.