FR 9840 then FR 1791 at Lisbon
Cologne → Lisbon → Luxembourg
Timetable, Lisbon time
23:30FR 9840 from Cologne at the gate
15:00FR 1791 to Luxembourg leaves the gate
15 h 30 apart on the timetable, overnight
FR 1791 leaves 15 h 30 after FR 9840 arrives on the timetable: more than half a day, so not a connection we count.