FR 2527 then LH 1115 at Madrid
Berlin → Madrid → Frankfurt am Main
Timetable, Madrid time
23:10FR 2527 from Berlin at the gate
17:15LH 1115 to Frankfurt am Main leaves the gate
18 h 05 apart on the timetable, overnight
LH 1115 leaves 18 h 05 after FR 2527 arrives on the timetable: more than half a day, so not a connection we count.