It seems to be common practice here in northern Bavaria to only cool offices to about 5 C below outside temp - so if it's 35 C (95 F) outside, only cooling to 30 (86 F).
Fortunately, wearing shorts to work on extremely hot (over 30 C) days is also more socially acceptable here.
It once was in NZ too even in formal environments - we called them "walk shorts" https://en.wikipedia.org/wiki/Walk_shorts - but they are now derided as an historic "fashion crime".
Fortunately, wearing shorts to work on extremely hot (over 30 C) days is also more socially acceptable here.