EC 7681 then EW 523 at Barcelona
Lisbon → Barcelona → Cologne
Timetable, Barcelona time
21:20EC 7681 from Lisbon at the gate
20:25EW 523 to Cologne leaves the gate
23 h 05 apart on the timetable, overnight
EW 523 leaves 23 h 05 after EC 7681 arrives on the timetable: more than half a day, so not a connection we count.