EC 7174 then VY 1164 at Barcelona
Berlin → Barcelona → Munich
Timetable, Barcelona time
18:35EC 7174 from Berlin at the gate
18:10VY 1164 to Munich leaves the gatealso IB 5084, LL 5084
23 h 35 apart on the timetable, overnight
VY 1164 leaves 23 h 35 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.