EW 2520 then VY 1162 at Barcelona
Stuttgart → Barcelona → Munich
Timetable, Barcelona time
14:25EW 2520 from Stuttgart at the gate
14:00VY 1162 to Munich leaves the gatealso IB 5122, LL 5122
23 h 35 apart on the timetable, overnight
VY 1162 leaves 23 h 35 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.