/* Legal links belong beside the brand, not on a separate footer row. */
:is(.home-footer,.site-shell>footer){display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,.8fr) minmax(0,1.2fr) minmax(0,1.2fr)!important;gap:40px!important;align-items:start}
:is(.home-footer,.site-shell>footer)>.footer-brand{grid-column:1;grid-row:1}
:is(.home-footer,.site-shell>footer)>div:nth-of-type(2){grid-column:3;grid-row:1}
:is(.home-footer,.site-shell>footer)>div:nth-of-type(3):not(:has(>a[href="/impressum.html"])){grid-column:4;grid-row:1}
:is(.home-footer,.site-shell>footer)>div:has(>a[href="/impressum.html"]){grid-column:2;grid-row:1}
:is(.home-footer,.site-shell>footer)>.legal{grid-column:1/-1;grid-row:2}
@media(max-width:1000px){:is(.home-footer,.site-shell>footer){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px!important}:is(.home-footer,.site-shell>footer)>div:nth-of-type(2){grid-column:1;grid-row:2}:is(.home-footer,.site-shell>footer)>div:nth-of-type(3):not(:has(>a[href="/impressum.html"])){grid-column:2;grid-row:2}:is(.home-footer,.site-shell>footer)>.legal{grid-row:3}}
@media(max-width:600px){:is(.home-footer,.site-shell>footer){grid-template-columns:minmax(0,1fr)!important}:is(.home-footer,.site-shell>footer)>div,:is(.home-footer,.site-shell>footer)>.legal{grid-column:auto!important;grid-row:auto!important}:is(.home-footer,.site-shell>footer)>div:has(>a[href="/impressum.html"]){order:1}:is(.home-footer,.site-shell>footer)>div:nth-of-type(2){order:2}:is(.home-footer,.site-shell>footer)>div:nth-of-type(3):not(:has(>a[href="/impressum.html"])){order:3}:is(.home-footer,.site-shell>footer)>.legal{order:4}}

a:is([href="/projekte.html"],[href="/en/projekte.html"],[href="/fr/projekte.html"],[href="/it/projekte.html"],[href="/es/projekte.html"]){display:none!important}
