Does Portugal effectively count as non-Schengen when it comes to the 90/180 rule?

Oh there sometimes is - especially going into Germany. See other threads like: