/* --- Footer --- */
footer {
  background: #C6C6C4;
  color: white;
  display: flex;
  align-items: center;
  /* vertical centering */
  justify-content: flex-start;
  height: 8em;
}

.footer-content {
  width: 50%;
  /* match .main-content width */
  margin: 0 auto;
  /* center horizontally */
  display: flex;
  /* make children (contact + legal) align side by side */
  justify-content: space-between;
  /* push them to opposite sides */
  align-items: center;
  /* vertically center them */
}


/* --- Kontakt --- */
/* --- Kontakt Info --- */

.contact-info {
  text-align: left;
  line-height: 1.6;
  color: #4A4A49;

}


.contact-info p {
  display: inline;
  margin: 0.3rem 0;
  color: #4A4A49;
}

.contact-info a {
 text-decoration: none;
  color: black;
  line-height: 1.6;
}

.contact-info i {
  width: auto;
  /* allow icon to size naturally */
  height: auto;
  padding: 4px 6px;
  /* small square/padding */
  background-color: #C6C6C4;
  color: #4A4A49;
  border-radius: 4px;
  text-align: left;
}


.contact-info a:hover {
  color: #F9F9F9;
}

.contact-info h3 {
  color: #4A4A49;
}

.legal-info {
  text-align: right;
}

/* Optional: style for legal links */
.legal-info a {
  color: black;
  text-decoration: none;
}

.legal-info a:hover {
  text-decoration: underline;
}

.icon {
  width: 20px;
  /* Slightly larger for bolder appearance */
  height: 20px;
  fill: #555;
  flex-shrink: 0;
  /* Prevent icon from shrinking */
  transition: fill 0.3s;
}

/* ----- Tablet (≤ 1024px) ----- */
@media (max-width: 1024px) {
  .footer-content {
    width: 80%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    height: auto;
    padding: 1rem 0;
  }

  footer {
    height: auto;
  }
}

/* ----- Mobile (≤ 768px) ----- */
@media (max-width: 768px) {
  /* Footer stacked layout */
  .footer-content {
    flex-direction: column;
    width: 90%;
    text-align: center;
    align-items: center;
  }

  .contact-info,
  .legal-info {
    text-align: center;
  }

  .icon {
    width: 18px;
    height: 18px;
  }
}