FR 4584 then EC 7173 at Barcelona
Porto → Barcelona → Berlin
Timetable, Barcelona time
19:05FR 4584 from Porto at the gate
07:20EC 7173 to Berlin leaves the gate
12 h 15 apart on the timetable, overnight
EC 7173 leaves 12 h 15 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.