FR 6266 then FR 149 at Barcelona
Edinburgh → Barcelona → Berlin
Timetable, Barcelona time
21:20FR 6266 from Edinburgh at the gate
19:00FR 149 to Berlin leaves the gate
21 h 40 apart on the timetable, overnight
FR 149 leaves 21 h 40 after FR 6266 arrives on the timetable: more than half a day, so not a connection we count.