BA 1421 then BA 964 at Heathrow
Inverness → London → Hamburg
Timetable, London time
12:45BA 1421 from Inverness at the gate
11:30BA 964 to Hamburg leaves the gate
22 h 45 apart on the timetable, overnight
BA 964 leaves 22 h 45 after BA 1421 arrives on the timetable: more than half a day, so not a connection we count.