diff --git a/assets/css/custom.css b/assets/css/custom.css index 281f58a..0fa4323 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -109,11 +109,19 @@ body > main { -ms-overflow-style: none; } body > main::-webkit-scrollbar { width: 0; height: 0; display: none; } +/* Kurzer Inhalt vertikal zentriert zwischen Header und Footer; langer Inhalt + scrollt normal von oben (safe center fällt bei Überlauf auf start zurück). */ +body:not(.is-home) > main { + display: flex; + flex-direction: column; + justify-content: safe center; +} /* Inhalt 72ch-zentriert in der vollbreiten Scroll-Fläche (Home = Vollbreite). */ body:not(.is-home) > main > * { max-width: calc(var(--container-width) + 3.5rem); margin-inline: auto; padding-inline: 1.75rem; + flex: none; } /* Full-Bleed-Hero füllt die ganze Breite (main ist schon viewportbreit). */ body:not(.is-home) > main > .single-hero-image {