EW 2604 then TP 1016 at Lisbon
Stuttgart → Lisbon → Madrid
Timetable, Lisbon time
17:55EW 2604 from Stuttgart at the gate
14:50TP 1016 to Madrid leaves the gate
20 h 55 apart on the timetable, overnight
TP 1016 leaves 20 h 55 after EW 2604 arrives on the timetable: more than half a day, so not a connection we count.