How can I make accordion animation responsive?

I want to change the size of my accordion button at different breakpoints in order to maintain the look & feel of button size / typo size of the desktop view. But then the animation defining the opening action with the initial state doesn’t adapt at the other breakponts (as it is linked to the acordion size of the desktop version). As a result at lower breakpopints the seize of the accordion is not hidden by the toggle button but looks out from underneath (look @ my work). Do I have to create a new animation (with a new inital size) each time I change the size of the accordion button? Or is there a way to go along with only one animation and find a way that it adapts to different accordion-button sizes at the different breakoints?

Cannot wait to hear from you!

Here is my work: