/* ==========================================================================
   footer.css - Perls Holzschmiede
   Seitenfuss mit Navigationslinks, Kontaktdaten und Social Media
   ========================================================================== */


/* --------------------------------------------------------------------------
   Site Footer
   Dunkler Hintergrund, helle Schrift
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--color-text);
  color: var(--color-bg);
  padding-top: var(--space-3xl);
  padding-bottom: 0;
}


/* --------------------------------------------------------------------------
   Footer Grid
   3-4 Spalten: Ueber uns, Links, Kontakt, Social Media
   -------------------------------------------------------------------------- */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}


/* --------------------------------------------------------------------------
   Footer Sektionen
   Einzelne Inhaltsbloecke innerhalb des Grids
   -------------------------------------------------------------------------- */

.footer-section {
  /* Standardmaessig keine besonderen Stile */
}

.footer-section h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-bg);
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Dekorative Linie unter Footer-Ueberschriften */
.footer-section h4::after {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background-color: var(--color-accent);
  margin-top: var(--space-sm);
}

/* Beschreibungstext in der "Ueber uns"-Sektion */
.footer-about-text {
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
  color: rgba(250, 246, 240, 0.75);
}


/* --------------------------------------------------------------------------
   Footer Links
   Navigationslinks im Fuss
   -------------------------------------------------------------------------- */

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(250, 246, 240, 0.75);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-accent);
  padding-left: var(--space-xs);
  text-decoration: none;
}


/* --------------------------------------------------------------------------
   Footer Kontaktdaten
   Adresse, Telefon, E-Mail
   -------------------------------------------------------------------------- */

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.75);
}

.footer-contact-item .contact-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-accent);
  margin-top: 0.125rem;
}

.footer-contact-item a {
  color: rgba(250, 246, 240, 0.75);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-contact-item a:hover {
  color: var(--color-accent);
}


/* --------------------------------------------------------------------------
   Footer Social Media Links
   Icon-Links zu sozialen Netzwerken
   -------------------------------------------------------------------------- */

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(250, 246, 240, 0.1);
  color: rgba(250, 246, 240, 0.75);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.footer-social a:hover {
  background-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social a svg,
.footer-social a img {
  width: 1.25rem;
  height: 1.25rem;
}


/* --------------------------------------------------------------------------
   Footer Bottom (Copyright-Zeile)
   Ganz unten: Copyright, Impressum, Datenschutz
   -------------------------------------------------------------------------- */

.footer-bottom {
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: rgba(250, 246, 240, 0.5);
}

.footer-bottom a {
  color: rgba(250, 246, 240, 0.5);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

/* Rechtliche Links (Impressum, Datenschutz) */
.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}


/* ==========================================================================
   Responsive Anpassungen
   ========================================================================== */

/* Tablet: 2 Spalten */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

/* Mobile: 1 Spalte, alles gestapelt */
@media (max-width: 768px) {
  .site-footer {
    padding-top: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .footer-legal-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .footer-social {
    justify-content: center;
  }
}
