LA 5742 then EC 7173 at Barcelona
Málaga → Barcelona → Berlin
Timetable, Barcelona time
08:15LA 5742 from Málaga at the gate
07:20EC 7173 to Berlin leaves the gate
23 h 05 apart on the timetable, overnight
EC 7173 leaves 23 h 05 after LA 5742 arrives on the timetable: more than half a day, so not a connection we count.