FR 8859 then FR 9841 at Lisbon
Budapest → Lisbon → Cologne
Timetable, Lisbon time
14:40FR 8859 from Budapest at the gate
06:05FR 9841 to Cologne leaves the gate
15 h 25 apart on the timetable, overnight
FR 9841 leaves 15 h 25 after FR 8859 arrives on the timetable: more than half a day, so not a connection we count.