/* Footer */
.site-footer {
  position: relative;
  isolation: isolate;
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 1.8rem;
  border-top: 1px solid rgba(223, 173, 145, 0.36);
  /* center bottom statt center top: die Blattgrafik im PNG sitzt unten
     links/rechts, der obere Bereich ist fast leer. Bei "100% auto" waechst
     die gerenderte Bildhoehe mit der Viewport-Breite - auf breiten
     Monitoren rutschten die Blaetter dadurch unten aus dem sichtbaren
     Footer raus. Bottom-Anker haelt sie zuverlaessig am unteren Rand. */
  background:
    linear-gradient(180deg, rgba(7, 21, 15, 0.14), rgba(6, 18, 13, 0.86)),
    url("../../images/ui/footer-botanical-bg.png") center bottom / 100% auto no-repeat,
    #0c1c15;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 -24px 70px rgba(6, 18, 13, 0.1);
  color: rgba(244, 239, 229, 0.82);
}

.footer-container {
  width: calc(100% - 48px);
  max-width: 1320px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(260px, 1fr) minmax(180px, 0.7fr);
  gap: clamp(2.5rem, 7vw, 6rem);
}

.footer-column {
  min-width: 0;
}

.footer-brand {
  margin-bottom: 1.4rem;
}

.site-footer .brand-name {
  color: #fffaf1;
}

.site-footer .brand-suffix {
  color: #e7bda5;
}

.site-footer address {
  color: rgba(226, 239, 229, 0.76);
  font-style: normal;
  line-height: 1.7;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: #e7bda5;
  font-family: "Inter", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.site-footer a:not(.brand) {
  color: rgba(226, 239, 229, 0.78);
  font-size: 0.88rem;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-underline-offset: 0.26em;
  transition:
    color var(--motion-fast) ease,
    text-decoration-color var(--motion-base) var(--ease-smooth);
}

.site-footer a:not(.brand):hover {
  color: #fffaf1;
  text-decoration-color: currentColor;
}

.footer-icon-link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.62rem;
  overflow-wrap: anywhere;
}

.footer-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(226, 239, 229, 0.18);
  border-radius: 8px;
  background: rgba(237, 242, 233, 0.12);
  color: #fffaf1;
  transition:
    transform var(--motion-base) var(--ease-spring),
    background-color var(--motion-base) var(--ease-smooth);
}

@media (hover: hover) and (pointer: fine) {
  .footer-icon-link:hover .footer-icon {
    transform: translateY(-2px) rotate(-3deg) scale(1.05);
    background: rgba(237, 242, 233, 0.2);
  }
}

.footer-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(226, 239, 229, 0.16);
  color: rgba(226, 239, 229, 0.62);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

/* Copyright und Erstellerhinweis in einer Zeile, mit feinem Trenner.
   Bewusst zurueckhaltend: es ist eine Signatur, keine zweite Marke. */
.footer-bottom-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
}

.footer-credit {
  position: relative;
  padding-left: 0.7rem;
  opacity: 0.85;
}

.footer-credit::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 0.85em;
  transform: translateY(-50%);
  background: rgba(226, 239, 229, 0.26);
  content: "";
}

.site-footer .footer-credit a {
  color: #e7bda5;
  font-size: inherit;
  font-weight: 600;
}

.site-footer .footer-credit a:hover {
  color: #fffaf1;
}

/* Auf schmalen Displays bricht der Trenner um - dann ohne Strich. */
@media (max-width: 520px) {
  .footer-credit {
    padding-left: 0;
  }

  .footer-credit::before {
    display: none;
  }
}
