EW 7524 then QR 3683 at Barcelona
Hamburg → Barcelona → Santander
Timetable, Barcelona time
18:05EW 7524 from Hamburg at the gate
16:05QR 3683 to Santander leaves the gate
22 h apart on the timetable, overnight
QR 3683 leaves 22 h after EW 7524 arrives on the timetable: more than half a day, so not a connection we count.