VY 1007 then VY 1162 at Barcelona
Madrid → Barcelona → Munich
Timetable, Barcelona time
13:50VY 1007 from Madrid at the gatealso QR 5526, IB 5991, LL 5991
12:55VY 1162 to Munich leaves the gatealso IB 5122
23 h 05 apart on the timetable, overnight
VY 1162 leaves 23 h 05 after VY 1007 arrives on the timetable: more than half a day, so not a connection we count.