FR 2527 then FR 5301 at Madrid
Berlin → Madrid → Luxembourg
Timetable, Madrid time
12:55FR 2527 from Berlin at the gate
07:15FR 5301 to Luxembourg leaves the gate
18 h 20 apart on the timetable, overnight
FR 5301 leaves 18 h 20 after FR 2527 arrives on the timetable: more than half a day, so not a connection we count.