/* Haupt-Footer */
.main-footer {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 3rem 2rem 1rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.95rem;
}

/* Logo */
.footer-logo {
  margin-bottom: 2rem;
}

/* Obere Sektion mit 3 Spalten */
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Spalten-Inhalt */
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}



.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col p {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #1a1a1a;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Untere Zeile */
.footer-bottom {
  display: grid;
  grid-template-areas:
    "logo links socials"
    "copyright copyright copyright";
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 1.5rem auto 0;
  border-top: 1px solid #ddd;
  padding-top: 0.5rem;
  gap: 0.3rem;
}

.footer-bottom a {
  justify-self: start;
}

.footer-logo-wrapper {
  grid-area: logo;
}

.footer-logo-wrapper a {
  display: flex;
  align-items: center;
  height: 100%;
}

.footer-logo {
  display: block;
  height: 90px;
  object-fit: contain;
}

.footer-links {
  grid-area: links;
  display: flex;
  gap: 1rem;
  justify-self: center;
}

.footer-links a {
  margin-right: 1rem;
  color: #585757;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-socials {
  grid-area: socials;
  justify-self: end;
  display: flex;
  gap: 12px;
}

.social-circle {
  width: 40px;
  height: 40px;
  border: 1px solid #b6b3b3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b6b3b3;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-circle:hover {
  border-color: #999;
  color: #999;
  transform: scale(1.1);
}

.copyright {
  grid-area: copyright;
  text-align: center;
  margin-top: 0;
  padding: 0.3rem 0 0.5rem;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  line-height: 1.3;
}

.copyright a {
  color: #666;
  text-decoration: none;
}

.copyright a:hover {
  color: #333;
}

/* Impressum Fullscreen Style */
.legal-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  overflow-y: auto;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.legal-page.hidden {
  display: none;
}

.legal-container {
  max-width: 700px;
  width: 100%;
  color: #1a1a1a;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

.legal-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.5rem;
}

.legal-container h3 {
  margin-top: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

.legal-container p {
  margin-bottom: 1rem;
}

.legal-container a {
  color: #0056b3;
  text-decoration: none;
}

.legal-container a:hover {
  text-decoration: underline;
}

.legal-container li{
  display: inline;
}
#closeImpressum,
#closeDatenschutz {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

#closeImpressum:hover,
#closeDatenschutz:hover {
  color: #777;
}

/* ===== Responsive Breakpoints ===== */

/* === Smartphone: max-width: 767px === */
@media screen and (max-width: 767px) {
  .footer-columns {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-col ul {
    padding: 0;
  }

  .footer-col ul li {
    display: block;
  }

  .footer-logo-wrapper {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .footer-logo {
    height: 70px;
    object-fit: contain;
    margin: 0 auto;
  }

  .footer-socials {
    grid-area: socials;
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .footer-links {
    grid-area: links;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom {
    grid-template-areas:
      "logo"
      "socials"
      "links"
      "copyright";
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .copyright {
    grid-area: copyright;
    text-align: center;
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
}

/* === Tablet: 768px–1023px === */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .footer-columns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-col ul {
    padding: 0;
  }

  .footer-col ul li {
    display: block;
  }

  .footer-logo-wrapper {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .footer-logo {
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
  }

  .footer-socials {
    grid-area: socials;
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
  }

  .footer-links {
    grid-area: links;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 1rem;
  }

  .footer-bottom {
    grid-template-areas:
      "logo"
      "socials"
      "links"
      "copyright";
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .copyright {
    grid-area: copyright;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* === Desktop: min-width: 1024px === */
/* Kein spezieller Code nötig – Desktop-Layout bleibt wie in deinem Original */
