EW 2522 then LA 5794 at Barcelona
Stuttgart → Barcelona → Vigo
Timetable, Barcelona time
20:00EW 2522 from Stuttgart at the gate
18:15LA 5794 to Vigo leaves the gate
22 h 15 apart on the timetable, overnight
LA 5794 leaves 22 h 15 after EW 2522 arrives on the timetable: more than half a day, so not a connection we count.