EW 2520 then IB 5100 at Barcelona
Stuttgart → Barcelona → Ranon
Timetable, Barcelona time
14:25EW 2520 from Stuttgart at the gate
12:40IB 5100 to Ranon leaves the gate
22 h 15 apart on the timetable, overnight
IB 5100 leaves 22 h 15 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.