/* ===== Final Optimiert: footer.css ===== */

/* 🔧 Basis-Setup für Sticky Footer */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto; /* Main nimmt restlichen Platz */
}

#footer {
  flex-shrink: 0; /* Footer bleibt in Höhe fest */
  width: 100vw;
  z-index: 1000;
  background: transparent;
  padding-bottom: 8px;
}

/* Innerer Container */
.footer {
  width: 90%;
  max-width: 800px;
  margin: 10px auto 0;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  text-align: center;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.social-icon.instagram {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/></svg>');
  background-size: 40%;
  background-repeat: no-repeat;
  background-position: center;
}

.copyright {
  font-size: 0.8rem;
  color: #fff;
  opacity: 0.85;
}

/* ============================================= */
/* 📱📲💻🖥 RESPONSIVE BREAKPOINTS – 5 STUFEN BASIS */
/* ============================================= */

/* 📱 1. XS – Kleine Smartphones */
@media (max-width: 480px) {
  .footer {
    padding: 0.25rem;
  }
  .social-icon {
    width: 28px;
    height: 28px;
  }
  .copyright {
    font-size: 0.7rem;
  }
}

/* 📱 2. S – Normale Smartphones */
@media (min-width: 481px) and (max-width: 768px) {
  .footer {
    padding: 0.3rem 0.4rem;
  }
  .social-icon {
    width: 30px;
    height: 30px;
  }
  .copyright {
    font-size: 0.75rem;
  }
}

/* 📲 3. M – Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer {
    padding: 0.4rem 0.5rem;
  }
  .social-icon {
    width: 32px;
    height: 32px;
  }
  .copyright {
    font-size: 0.8rem;
  }
}

/* 💻 4. L – Laptops / kleine Desktops */
@media (min-width: 1025px) and (max-width: 1440px) {
  #footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
  }
  .footer {
    padding: 0.4rem 0.5rem;
  }
  .social-icon {
    width: 34px;
    height: 34px;
  }
  .copyright {
    font-size: 0.85rem;
  }
}

/* 🖥 5. XL – große Desktops */
@media (min-width: 1441px) {
  #footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
  }
  .footer {
    padding: 0.5rem 0.6rem;
  }
  .social-icon {
    width: 36px;
    height: 36px;
  }
  .copyright {
    font-size: 0.9rem;
  }
}
