EC 7681 then EC 7173 at Barcelona
Lisbon → Barcelona → Berlin
Timetable, Barcelona time
21:20EC 7681 from Lisbon at the gate
18:40EC 7173 to Berlin leaves the gate
21 h 20 apart on the timetable, overnight
EC 7173 leaves 21 h 20 after EC 7681 arrives on the timetable: more than half a day, so not a connection we count.