LH 965 then LH 1118 at Frankfurt
Edinburgh → Frankfurt am Main → Madrid
Timetable, Frankfurt am Main time
08:55LH 965 from Edinburgh at the gate
21:15LH 1118 to Madrid leaves the gate
12 h 20 apart on the timetable
LH 1118 leaves 12 h 20 after LH 965 arrives on the timetable: more than half a day, so not a connection we count.