FR 3040 then EW 7525 at Barcelona
Prague → Barcelona → Hamburg
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
19:00EW 7525 to Hamburg leaves the gate
21 h 45 apart on the timetable, overnight
EW 7525 leaves 21 h 45 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.