Hiya Vortix,
So I know you were doing the DIY arduino based flight controller, but even off the shelf flight controllers suffer from accelerometer drift, there are some ways I saw and think I shared about how to try and account for that over time, but like Renov8r is saying without some other sensors to help with position locking you might be chasing that one forever. Along with the options mentioned you could use optical flow sensors to try and lock position have heard good things about this for some smaller quads (never tried myself), for the altitude lock you can use a combo of ultrasound sensors (if close enough to the gnd to bounce sound waves off it), barometric pressure (for larger altitude changes high in the air), and/or GPS/compass to get position roughly.
Renov8r answered the original question too but yah "trim" itself is typically just an adjustment to account for the stick center not sending actual center values or to adjust for the aircraft itself dragging one direction or another and is basically adjusting the 'default' for planes, but quad auto-levelling with PID tuning is somewhat less about the control input and more about the computer/configuration that actually sends out the motor control signals and attempts to help level things.... all said I agree on all accounts with Renov8r hovering is overrated learn to fly acro and you don't need to worry about the accelerometer drifting