EW 2522 then LA 5785 at Barcelona
Stuttgart → Barcelona → Ranon
Timetable, Barcelona time
20:00EW 2522 from Stuttgart at the gate
12:40LA 5785 to Ranon leaves the gate
16 h 40 apart on the timetable, overnight
LA 5785 leaves 16 h 40 after EW 2522 arrives on the timetable: more than half a day, so not a connection we count.