/* ==========================================================================
   IKUNIX v1.62 – Footer Layout Cleanup
   --------------------------------------------------------------------------
   Ziele:
   - klare erste Ebene für Brand + normale Linkgruppen
   - Rechtliches als eigener, klar abgegrenzter Bereich
   - Social Media als eigener, klar abgegrenzter Bereich
   - saubere Darstellung auf Desktop, Tablet und Smartphone
   ========================================================================== */

.site-footer.enhanced-footer{
  width:100%;
  display:grid;
  grid-template-columns:minmax(245px,1.25fr) repeat(4,minmax(145px,.82fr));
  column-gap:clamp(28px,3.2vw,54px);
  row-gap:34px;
  align-items:start;
  padding:
    clamp(48px,5vw,72px)
    max(clamp(22px,5vw,80px), calc((100vw - 1540px) / 2))
    30px;
  background:#061b33;
}

/* Brand --------------------------------------------------------------- */

.site-footer.enhanced-footer .footer-brand-block{
  min-width:0;
  padding-right:clamp(8px,2vw,28px);
}

.site-footer.enhanced-footer .footer-brand-block > strong,
.site-footer.enhanced-footer .footer-brand-block > span:first-child{
  display:block;
  margin-bottom:12px;
}

.site-footer.enhanced-footer .footer-brand-block p{
  max-width:390px;
  margin:0;
  line-height:1.7;
}

.site-footer.enhanced-footer .footer-withdrawal-btn{
  margin-top:24px;
}

/* Normale Navigationsgruppen ----------------------------------------- */

.site-footer.enhanced-footer .footer-link-group{
  min-width:0;
}

.site-footer.enhanced-footer .footer-link-group:not(.footer-legal-group){
  align-content:start;
  gap:10px;
}

.site-footer.enhanced-footer .footer-link-group:not(.footer-legal-group) > span{
  min-height:26px;
  margin:0 0 5px;
  line-height:1.3;
}

.site-footer.enhanced-footer .footer-link-group:not(.footer-legal-group) a{
  display:block;
  width:fit-content;
  max-width:100%;
  line-height:1.45;
  overflow-wrap:anywhere;
  transition:color .16s ease,transform .16s ease;
}

.site-footer.enhanced-footer .footer-link-group:not(.footer-legal-group) a:hover{
  transform:translateX(2px);
}

/* Rechtliches --------------------------------------------------------- */

.site-footer.enhanced-footer .footer-legal-group{
  grid-column:1 / 5;
  display:flex;
  flex-wrap:wrap;
  align-content:flex-start;
  align-items:center;
  gap:10px 26px;
  min-height:116px;
  margin:0;
  padding:22px 24px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}

.site-footer.enhanced-footer .footer-legal-group > span{
  flex:0 0 100%;
  margin:0 0 3px;
  color:#fff;
  font-weight:900;
}

.site-footer.enhanced-footer .footer-legal-group a{
  display:inline-flex;
  align-items:center;
  width:auto;
  color:rgba(255,255,255,.72);
  line-height:1.45;
}

.site-footer.enhanced-footer .footer-legal-group a:hover{
  color:#fff;
}

/* Social Media -------------------------------------------------------- */

.site-footer.enhanced-footer .footer-social{
  grid-column:5 / -1;
  align-self:stretch;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:14px;
  min-height:116px;
  margin:0;
  padding:22px 24px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:18px;
  background:rgba(255,255,255,.035);
}

.site-footer.enhanced-footer .footer-social > span{
  margin:0;
}

.site-footer.enhanced-footer .footer-social-icons{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.site-footer.enhanced-footer .footer-social-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid rgba(255,255,255,.52);
  border-radius:50%;
  color:#fff;
  background:rgba(255,255,255,.025);
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}

.site-footer.enhanced-footer .footer-social-icon:hover{
  transform:translateY(-2px);
  border-color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.09);
}

.site-footer.enhanced-footer .footer-social-icon svg{
  width:18px;
  height:18px;
}

.site-footer.enhanced-footer .footer-social-label{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

/* Abschlusszeile ----------------------------------------------------- */

.site-footer.enhanced-footer .footer-bottom{
  grid-column:1 / -1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:0;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.13);
}

.site-footer.enhanced-footer .footer-bottom button{
  flex:0 0 auto;
}

/* Tablet -------------------------------------------------------------- */

@media (max-width:1199px){
  .site-footer.enhanced-footer{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:30px 42px;
    padding:
      50px
      clamp(24px,5vw,56px)
      28px;
  }

  .site-footer.enhanced-footer .footer-brand-block{
    grid-column:1 / -1;
    padding-right:0;
    padding-bottom:4px;
  }

  .site-footer.enhanced-footer .footer-brand-block p{
    max-width:580px;
  }

  .site-footer.enhanced-footer .footer-legal-group{
    grid-column:1;
    min-height:100%;
  }

  .site-footer.enhanced-footer .footer-social{
    grid-column:2;
    min-height:100%;
  }
}

/* Smartphone ---------------------------------------------------------- */

@media (max-width:699px){
  .site-footer.enhanced-footer{
    grid-template-columns:1fr;
    row-gap:0;
    padding:38px 20px 24px;
  }

  .site-footer.enhanced-footer .footer-brand-block{
    grid-column:1;
    padding:0 0 28px;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  .site-footer.enhanced-footer .footer-link-group:not(.footer-legal-group){
    grid-column:1;
    padding:24px 0;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  .site-footer.enhanced-footer .footer-link-group:not(.footer-legal-group) > span{
    min-height:0;
    margin-bottom:7px;
  }

  .site-footer.enhanced-footer .footer-legal-group,
  .site-footer.enhanced-footer .footer-social{
    grid-column:1;
    min-height:0;
    margin-top:20px;
    padding:20px;
    border-radius:16px;
  }

  .site-footer.enhanced-footer .footer-legal-group{
    display:grid;
    gap:11px;
  }

  .site-footer.enhanced-footer .footer-legal-group > span{
    margin-bottom:2px;
  }

  .site-footer.enhanced-footer .footer-social{
    margin-top:12px;
  }

  .site-footer.enhanced-footer .footer-bottom{
    grid-column:1;
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
    margin-top:28px;
    padding-top:22px;
  }

  .site-footer.enhanced-footer .footer-bottom button{
    width:auto;
    max-width:100%;
  }
}

/* Sehr kleine Geräte -------------------------------------------------- */

@media (max-width:420px){
  .site-footer.enhanced-footer{
    padding-left:16px;
    padding-right:16px;
  }

  .site-footer.enhanced-footer .footer-legal-group,
  .site-footer.enhanced-footer .footer-social{
    padding:18px;
  }
}
