/* Footer adapted from FooterSection5, with animated vertical glass lamellae. */
.site-footer {
  --footer-ink: #18232f;
  --footer-ink-soft: #303645;
  --footer-divider: #61461938;
  margin-top: clamp(112px, 12vw, 184px);
  isolation: isolate;
  font-synthesis: none;
}

.footer-wordmark {
  --wordmark-fade: linear-gradient(#000 12%, #000b 58%, #0005 82%, transparent);
  width: min(94%, 1160px);
  margin: 0 auto clamp(-24px, -1.6vw, -6px);
  opacity: .58;
  -webkit-mask-image: var(--wordmark-fade);
  mask-image: var(--wordmark-fade);
  user-select: none;
  pointer-events: none;
}
.footer-wordmark img { display: block; width: 100%; height: auto; }

.footer-panel {
  --footer-radius: 88px;
  position: relative;
  z-index: 1;
  min-height: 400px;
  margin-inline: clamp(6px, .7vw, 12px);
  border-radius: var(--footer-radius) var(--footer-radius) 0 0;
  overflow: hidden;
  background: #ead6a6;
  box-shadow: 0 -1px 0 #936a201a, 0 -6px 24px -16px #936a204d;
  color: var(--footer-ink);
}
/* A single curved rim catches the light above the existing glass surface. */
.footer-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid #fff4d8bc;
  border-bottom: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #fff4d855, #fff4d81a 12px, transparent 44px);
  box-shadow: inset 0 2px 2px #ffffff80, inset 0 10px 14px -10px #fff4d8b3;
  -webkit-mask-image: linear-gradient(#000 16px, transparent 112px);
  mask-image: linear-gradient(#000 16px, transparent 112px);
  pointer-events: none;
}
.footer-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(120deg, #dbb86f, #f4e7c5 55%, #e6c88b);
}
.footer-glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.footer-glass.is-ready { background: none; }
.footer-inner {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
  padding-block: 80px 32px;
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr);
  gap: 64px 72px;
}
.footer-logo { display: inline-flex; place-self: start; max-width: 100%; }
.footer-logo img {
  display: block;
  width: 192px;
  max-width: 100%;
  height: auto;
  -webkit-mask: url("img/dentalliebe-logo-maske.svg") center / 100% 100% no-repeat;
  mask: url("img/dentalliebe-logo-maske.svg") center / 100% 100% no-repeat;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1.5fr);
  gap: 28px;
}
.footer-column { min-width: 0; }
.footer-column h3 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; }
.footer-column ul { display: grid; gap: 10px; list-style: none; margin: 19px 0 0; padding: 0; }
.footer-column a { display: inline-block; padding-block: 3px; font-size: 14px; line-height: 1.5; color: var(--footer-ink); }
.footer-contact address { margin-top: 22px; font-size: 14px; line-height: 1.65; font-style: normal; color: var(--footer-ink); }
.footer-contact ul { margin-top: 14px; gap: 4px; }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--footer-divider);
  font-size: 12px;
  line-height: 1.5;
  color: var(--footer-ink-soft);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { display: inline-block; padding-block: 5px; color: var(--footer-ink); }
.site-footer a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline: 2px solid var(--footer-ink); outline-offset: 5px; border-radius: 3px; }

@media (max-width: 1180px) {
  .footer-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 64px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(190px, 1.5fr); gap: 24px; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .site-footer { margin-top: 88px; }
  .footer-panel { --footer-radius: 36px; margin-inline: 8px; }
  .footer-inner { width: calc(100% - 44px); padding-block: 40px 24px; gap: 32px; }
  .footer-logo img { width: 172px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .footer-column ul { margin-top: 8px; gap: 0; }
  .footer-column a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; overflow-wrap: anywhere; }
  .footer-column:nth-child(3), .footer-contact { grid-column: 1 / -1; }
  .footer-column:nth-child(3) ul { display: flex; flex-wrap: wrap; column-gap: 20px; }
  .footer-contact { padding-top: 24px; border-top: 1px solid var(--footer-divider); }
  .footer-contact address { margin-top: 12px; font-size: 14px; overflow-wrap: anywhere; }
  .footer-contact ul { margin-top: 8px; gap: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 20px; }
  .footer-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-legal { gap: 24px; }
}
