/* ===================================================================
   littleOMhome - Legal link styling
   -------------------------------------------------------------------
   Makes the legal links in the footer recognisably clickable.
   They are rendered as pill/chip buttons with a visible border and
   background, so it is obvious at a glance that they can be clicked.

   Applied automatically to any footer link pointing at one of the
   legal anchors (#impressum, #privacy, #terms, #cancellation,
   #cookies, #circle, #omlings) or opening the cookie settings.

   Uses currentColor so it adapts to light and dark footers alike.
   =================================================================== */

footer a[href^="#impressum"],
footer a[href^="#privacy"],
footer a[href^="#terms"],
footer a[href^="#cancellation"],
footer a[href^="#cookies"],
footer a[href^="#circle"],
footer a[href^="#omlings"],
footer a[onclick*="lomCookieSettings"],
.gate-legal a[href^="#impressum"],
.gate-legal a[href^="#privacy"],
.gate-legal a[href^="#terms"],
.gate-legal a[href^="#cancellation"],
.gate-legal a[href^="#cookies"],
.gate-legal a[onclick*="lomCookieSettings"] {
  display: inline-block;
  padding: 7px 15px;
  margin: 4px 3px;
  border: 1.5px solid currentColor;
  border-radius: 22px;
  background: rgba(255, 255, 255, .10);
  text-decoration: none;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.3;
  letter-spacing: .3px;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, transform .18s, box-shadow .18s;
}

/* light footers: darker ink, stronger fill and border for readability.
   Detected via a body-level class or by the footer sitting on a light
   background; the .light-legal class is applied where needed. */
footer.light-legal a[href^="#impressum"],
footer.light-legal a[href^="#privacy"],
footer.light-legal a[href^="#terms"],
footer.light-legal a[href^="#cancellation"],
footer.light-legal a[href^="#cookies"],
footer.light-legal a[href^="#circle"],
footer.light-legal a[href^="#omlings"],
footer.light-legal a[onclick*="lomCookieSettings"] {
  color: #4a3f0c;
  border: 2px solid #7d6f16;
  background: rgba(125, 111, 22, .14);
}

footer.light-legal a[href^="#impressum"]:hover,
footer.light-legal a[href^="#privacy"]:hover,
footer.light-legal a[href^="#terms"]:hover,
footer.light-legal a[href^="#cancellation"]:hover,
footer.light-legal a[href^="#cookies"]:hover,
footer.light-legal a[href^="#circle"]:hover,
footer.light-legal a[href^="#omlings"]:hover,
footer.light-legal a[onclick*="lomCookieSettings"]:hover {
  background: rgba(125, 111, 22, .30);
  color: #2f2708;
}

footer a[href^="#impressum"]:hover,
footer a[href^="#privacy"]:hover,
footer a[href^="#terms"]:hover,
footer a[href^="#cancellation"]:hover,
footer a[href^="#cookies"]:hover,
footer a[href^="#circle"]:hover,
footer a[href^="#omlings"]:hover,
footer a[onclick*="lomCookieSettings"]:hover,
.gate-legal a:hover {
  background: rgba(242, 193, 78, .28);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

footer a[href^="#impressum"]:focus-visible,
footer a[href^="#privacy"]:focus-visible,
footer a[href^="#terms"]:focus-visible,
footer a[href^="#cancellation"]:focus-visible,
footer a[href^="#cookies"]:focus-visible,
footer a[href^="#circle"]:focus-visible,
footer a[href^="#omlings"]:focus-visible,
footer a[onclick*="lomCookieSettings"]:focus-visible,
.gate-legal a:focus-visible {
  outline: 2px solid #f2c14e;
  outline-offset: 2px;
}

/* the "·" separators between links are no longer needed once the
   links are chips - hide stray text nodes visually by tightening spacing */
footer p:has(> a[href^="#impressum"]) {
  line-height: 2.4;
}

/* small screens: let the chips wrap neatly */
@media (max-width: 640px) {
  footer a[href^="#impressum"],
  footer a[href^="#privacy"],
  footer a[href^="#terms"],
  footer a[href^="#cancellation"],
  footer a[href^="#cookies"],
  footer a[href^="#circle"],
  footer a[href^="#omlings"],
  footer a[onclick*="lomCookieSettings"] {
    font-size: 12px;
    padding: 6px 12px;
  }
}
