diff --git a/frontend/src/app.css b/frontend/src/app.css index 123cdcb..864699f 100644 --- a/frontend/src/app.css +++ b/frontend/src/app.css @@ -233,10 +233,6 @@ h2 { } @media (min-width: 900px) { - .page { - margin-left: 15rem; - } - .mobile-only, #tabbar, .backdrop { @@ -246,12 +242,22 @@ h2 { /* --- Inhaltsspalte --- */ main { - max-width: 600px; + --main-w: 600px; + max-width: var(--main-w); margin: auto; } main.wide { - max-width: 1200px; + --main-w: 1200px; +} + +/* Desktop: die Seitenleiste schwebt über dem linken Rand und reserviert keine + Fläche. Die Spalte bleibt in der Seitenmitte und rückt nur nach rechts, wenn + sie sonst unter der Leiste (15rem) läge. */ +@media (min-width: 900px) { + main { + margin-left: max(16rem, (100% - var(--main-w)) / 2); + } } main > section,