EW 2520 then VY 1072 at Barcelona
Stuttgart → Barcelona → Berlin
Timetable, Barcelona time
14:25EW 2520 from Stuttgart at the gate
13:05VY 1072 to Berlin leaves the gatealso QR 3611, IB 5030, LL 5030
22 h 40 apart on the timetable, overnight
VY 1072 leaves 22 h 40 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.