Statistical and Thermal Physics from Scaling Concepts for Geometry