footer:has(> .rianovFooterLegal){flex-wrap:wrap}
footer>.rianovFooterLegal{
  display:flex;flex:0 0 100%;width:100%;min-width:0;max-width:100%;flex-wrap:wrap;
  grid-column:1/-1;justify-content:center;align-items:center;text-align:center;
  column-gap:clamp(12px,1.4vw,22px);row-gap:3px;
}
footer>.rianovFooterLegal>a{
  display:inline-flex;align-items:center;min-height:30px;
  font:600 12px/1.4 system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;
}
footer>.rianovFooterLegal>a:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#contact>footer{flex-wrap:wrap;justify-content:center;column-gap:clamp(12px,1.4vw,22px);row-gap:4px;text-align:center}
#contact>footer>span:first-child{flex:0 0 100%}
.rianovFooterStandalone{
  margin-inline:auto;max-width:100%;padding:16px clamp(16px,5vw,72px);
  border-top:1px solid #aaa;background:#f5f5ed;color:#111;
}
.rianovFooterInWorld{
  position:fixed;z-index:8998;inset:auto auto 30px 12px;max-width:calc(100% - 24px);
  padding:4px 10px;border:1px solid #65586e;background:#100d19e8;color:#fff;
}
@media(max-width:740px){
  footer>.rianovFooterLegal>a{min-height:34px}
}

/* Project detail footer: centered copyright, independent of the catalog link. */
footer.projectDetailFooter{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
}
footer.projectDetailFooter>span:first-child{
  grid-column:2;grid-row:1;justify-self:center;text-align:center;
}
footer.projectDetailFooter>a[href="/projects"]{
  grid-column:3;grid-row:1;justify-self:end;text-align:end;
  margin-inline-end:max(0px,calc(130px - 5vw));
}
footer.projectDetailFooter>.rianovFooterLegal{grid-row:2}
@media(max-width:640px){
  footer.projectDetailFooter{grid-template-columns:minmax(0,1fr);gap:8px}
  footer.projectDetailFooter>span:first-child{grid-column:1}
  footer.projectDetailFooter>a[href="/projects"]{
    grid-column:1;grid-row:2;justify-self:center;text-align:center;margin-inline-end:0;
  }
  footer.projectDetailFooter>.rianovFooterLegal{grid-row:3}
}
