so in the past days I tried to achieve the following results:

the idea is to have a div (red) that is ultimately centered (using margin: auto;), and at the same level (along the x axis) another div that has a fixed size (blue).
On a large enough display, maximized, it looks great. Now the interesting part is having a smaller screen and / or resizing the window. due to the automatic field, one of the divs overlaps the other:

This is what I want to prevent. (in the explanation: red is the menu, blue is the logo)
so the first idea was to shift the red div to the right pixels of the blue div to the right using padding-left: ?? px;

but this makes the red div no longer centering itself completely, but padded px to the right. figuratively centered in an additional box (gray).
The second idea is to create another (transparent) div to the right of the red div. but this makes the minimum width of the entire site violated:

In other words: the scrollbar becomes visible far to early. it should appear only when the window is smaller than the sum of the pixels of the red and blue div together. and not, as in img 4, where it appears only when the window is less than the sum of the pixels of the red div and both divs are to the right and left of it).
so I want: two divs that do not overlap (even when resized), the right one at a fixed size, the left one in the center of the window, without creating a div duo, creating empty space at low resolutions. oh and please don't javascript if possible.
I hope my explanation helped me get my idea. and I also hope that someone with a great idea or missed opportunity can help me.
source share