Matter in strong magnetic fields