We consider the two-dimensional Z2 lattice gauge theory coupled to fermionic matter. In absence of electric fields, we prove that, at half-filling, the ground state of the gauge theory coincides with the π-flux phase, associated with magnetic flux equal to π in every elementary lattice plaquette, provided the fermionic hopping is large enough. This proves in particular the semimetallic behavior of the ground state of the model. Furthermore, we compute the magnetic susceptibility of the gauge theory, and we prove that it is given by the one of massless 2d Dirac fermions, thus rigorously justifying recent numerical simulations. The proof is based on reflection positivity and chessboard estimates, and on lattice conservation laws for the computation of the transport coefficient.