diff --git a/css/footer.css b/css/footer.css index fff2e04..089dc51 100644 --- a/css/footer.css +++ b/css/footer.css @@ -1,13 +1,9 @@ /* Footer‑Grundlayout */ footer { - position: relative; width: 100%; background: #333d43; text-align: center; padding: 10px 0; - - /* Berechnet die Resthöhe: 100% Bildschirmhöhe minus geschätzte Inhaltshöhe */ - margin-top: calc(100vh - 400px); } footer a { diff --git a/css/main.css b/css/main.css index 1e6d3f6..2392a9a 100644 --- a/css/main.css +++ b/css/main.css @@ -9,6 +9,10 @@ body { background-color: #eef2f7; color: #1f2937; margin: 0; + + min-height: 100vh; + display: grid; + grid-template-rows: auto 1fr auto; /* Header(auto), Inhalt (bekommt Rest), Footer(auto) */ } a, button, input, select, textarea, label, main{