Does the card also work when the terminal is offline/not connected?

No, the card cannot be used when the terminal has no data connection. Neither is it possible to enter the payment manually afterwards, since the card balance may not be sufficient.