/* ============================================================
   Site Footer
   1:1-Uebertragung des Footer-Blocks aus dem Prototyp
   (jp-proto -> .footer).
   ============================================================ */
.site-footer {
  color: var(--wp--preset--color--ivory);
  font-family: var(--wp--preset--font-family--montserrat);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  margin: 0;
}
.site-footer p,
.site-footer figure {
  margin: 0;
}
.site-footer ul,
.site-footer ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer img {
  display: block;
  max-width: 100%;
  height: auto;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer svg {
  display: block;
}
.site-footer {
  padding-inline: 0;
}

/* ==================== Gutter ==================== */
.site-footer > * {
  box-sizing: border-box;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

/* ==================== Spalten-Grid ==================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* ==================== Spalten-Ueberschriften ==================== */
.footer-col h4 {
  font-family: var(--wp--preset--font-family--source-serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--wp--preset--color--accent);
  margin-bottom: 1.25rem;
}

/* ==================== Link-Listen ==================== */
.footer-col li {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.footer-col li:hover,
.footer-col li:focus-within {
  opacity: 1;
  color: var(--wp--preset--color--accent);
}

.footer-col li a {
  color: inherit;
  transition: color 0.2s ease;
}

.footer-col li:hover a,
.footer-col li:focus-within a {
  color: var(--wp--preset--color--accent);
}

.footer-col li a:focus-visible {
  outline: 1px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

/* ==================== Brand-Block ==================== */
.footer-logo {
  display: block;
  width: fit-content;
}

.footer-logo img {
  height: 90px;
  width: auto;
  transition: opacity 0.25s ease;
}

.footer-logo:hover img {
  opacity: 0.8;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.88rem;
  line-height: 1.6;
  opacity: 0.65;
}

/* Social-Icons: 38px-Kacheln mit feiner Goldlinie, Hover fuellt mit Gold. */
.footer-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--wp--preset--color--ivory);
  opacity: 0.75;
  border: 1px solid rgba(189, 144, 18, 0.3);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--primary-deep);
  opacity: 1;
}

.footer-social a:focus-visible {
  outline: 1px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ==================== Schnellkontakt ==================== */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-contact li {
  margin-bottom: 0;
  font-size: 0.88rem;
  opacity: 1;
}

.footer-contact li:hover {
  color: inherit;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--wp--preset--color--ivory);
  opacity: 0.85;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--wp--preset--color--accent);
  opacity: 1;
}

.footer-contact a:focus-visible {
  outline: 1px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

.footer-contact a svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--wp--preset--color--accent);
}

.footer-contact-label {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.footer-contact-value {
  display: block;
  font-weight: 500;
  word-break: break-word;
}

/* ==================== Bottom-Bar ==================== */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  position: relative;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: clamp(1.25rem, 3vw, 2.5rem);
  inset-inline-end: clamp(1.25rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(189, 144, 18, 0.25);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer-legal-links a {
  transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: var(--wp--preset--color--accent);
}

.footer-legal-links a:focus-visible {
  outline: 1px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

/* ==================== Responsive ==================== */
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 2rem;
  }
  .footer-brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
}